Arize Phoenix TS
    Preparing search index...

    This file was auto-generated by openapi-typescript. Do not make direct changes to the file.

    interface paths {
        "/v1/annotation_configs": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path?: undefined;
                    query?: { cursor?: string | null; limit?: number };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: (
                                    | {
                                        description?: string
                                        | null;
                                        id: string;
                                        name: string;
                                        optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                        type: "CATEGORICAL";
                                        values: { label: ...; score?: ... }[];
                                    }
                                    | {
                                        description?: string
                                        | null;
                                        id: string;
                                        lower_bound?: number | null;
                                        name: string;
                                        optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                        type: "CONTINUOUS";
                                        upper_bound?: number | null;
                                    }
                                    | {
                                        description?: string
                                        | null;
                                        id: string;
                                        name: string;
                                        type: "FREEFORM";
                                    }
                                )[];
                                next_cursor: string
                                | null;
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path?: undefined;
                    query?: undefined;
                };
                requestBody: {
                    content: {
                        "application/json": | {
                            description?: string
                            | null;
                            name: string;
                            optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                            type: "CATEGORICAL";
                            values: { label: string; score?: number | null }[];
                        }
                        | {
                            description?: string
                            | null;
                            lower_bound?: number | null;
                            name: string;
                            optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                            type: "CONTINUOUS";
                            upper_bound?: number | null;
                        }
                        | { description?: string
                        | null; name: string; type: "FREEFORM" };
                    };
                };
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: | {
                                    description?: string
                                    | null;
                                    id: string;
                                    name: string;
                                    optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                    type: "CATEGORICAL";
                                    values: { label: string; score?: (...) | (...) | (...) }[];
                                }
                                | {
                                    description?: string
                                    | null;
                                    id: string;
                                    lower_bound?: number | null;
                                    name: string;
                                    optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                    type: "CONTINUOUS";
                                    upper_bound?: number | null;
                                }
                                | {
                                    description?: string
                                    | null;
                                    id: string;
                                    name: string;
                                    type: "FREEFORM";
                                };
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            put?: undefined;
            trace?: undefined;
        };
        "/v1/annotation_configs/{config_id}": {
            delete: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { config_id: string };
                    query?: undefined;
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: | {
                                    description?: string
                                    | null;
                                    id: string;
                                    name: string;
                                    optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                    type: "CATEGORICAL";
                                    values: { label: string; score?: (...) | (...) | (...) }[];
                                }
                                | {
                                    description?: string
                                    | null;
                                    id: string;
                                    lower_bound?: number | null;
                                    name: string;
                                    optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                    type: "CONTINUOUS";
                                    upper_bound?: number | null;
                                }
                                | {
                                    description?: string
                                    | null;
                                    id: string;
                                    name: string;
                                    type: "FREEFORM";
                                };
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            get?: undefined;
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { config_id: string };
                    query?: undefined;
                };
                requestBody: {
                    content: {
                        "application/json": | {
                            description?: string
                            | null;
                            name: string;
                            optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                            type: "CATEGORICAL";
                            values: { label: string; score?: number | null }[];
                        }
                        | {
                            description?: string
                            | null;
                            lower_bound?: number | null;
                            name: string;
                            optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                            type: "CONTINUOUS";
                            upper_bound?: number | null;
                        }
                        | { description?: string
                        | null; name: string; type: "FREEFORM" };
                    };
                };
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: | {
                                    description?: string
                                    | null;
                                    id: string;
                                    name: string;
                                    optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                    type: "CATEGORICAL";
                                    values: { label: string; score?: (...) | (...) | (...) }[];
                                }
                                | {
                                    description?: string
                                    | null;
                                    id: string;
                                    lower_bound?: number | null;
                                    name: string;
                                    optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                    type: "CONTINUOUS";
                                    upper_bound?: number | null;
                                }
                                | {
                                    description?: string
                                    | null;
                                    id: string;
                                    name: string;
                                    type: "FREEFORM";
                                };
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            trace?: undefined;
        };
        "/v1/annotation_configs/{config_identifier}": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { config_identifier: string };
                    query?: undefined;
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: | {
                                    description?: string
                                    | null;
                                    id: string;
                                    name: string;
                                    optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                    type: "CATEGORICAL";
                                    values: { label: string; score?: (...) | (...) | (...) }[];
                                }
                                | {
                                    description?: string
                                    | null;
                                    id: string;
                                    lower_bound?: number | null;
                                    name: string;
                                    optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                    type: "CONTINUOUS";
                                    upper_bound?: number | null;
                                }
                                | {
                                    description?: string
                                    | null;
                                    id: string;
                                    name: string;
                                    type: "FREEFORM";
                                };
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/datasets": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path?: undefined;
                    query?: { cursor?: string
                    | null; limit?: number; name?: string | null };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    created_at: string;
                                    description: string
                                    | null;
                                    example_count: number;
                                    id: string;
                                    metadata: { [key: string]: unknown };
                                    name: string;
                                    updated_at: string;
                                }[];
                                next_cursor: string
                                | null;
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/datasets/{dataset_id}/experiments": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { dataset_id: string };
                    query?: { cursor?: string | null; limit?: number };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    created_at: string;
                                    dataset_id: string;
                                    dataset_version_id: string;
                                    example_count: number;
                                    failed_run_count: number;
                                    id: string;
                                    metadata: { [key: string]: unknown };
                                    missing_run_count: number;
                                    project_name: string | null;
                                    repetitions: number;
                                    successful_run_count: number;
                                    updated_at: string;
                                }[];
                                next_cursor: string
                                | null;
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { dataset_id: string };
                    query?: undefined;
                };
                requestBody: {
                    content: {
                        "application/json": {
                            description?: string
                            | null;
                            metadata?: { [key: string]: unknown } | null;
                            name?: string | null;
                            repetitions?: number;
                            splits?: string[] | null;
                            version_id?: string | null;
                        };
                    };
                };
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    created_at: string;
                                    dataset_id: string;
                                    dataset_version_id: string;
                                    example_count: number;
                                    failed_run_count: number;
                                    id: string;
                                    metadata: { [key: string]: unknown };
                                    missing_run_count: number;
                                    project_name: string | null;
                                    repetitions: number;
                                    successful_run_count: number;
                                    updated_at: string;
                                };
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            put?: undefined;
            trace?: undefined;
        };
        "/v1/datasets/{id}": {
            delete: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { id: string };
                    query?: undefined;
                };
                requestBody?: undefined;
                responses: {
                    "204": { content?: undefined; headers: { [name: string]: unknown } };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { id: string };
                    query?: undefined;
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    created_at: string;
                                    description: string
                                    | null;
                                    example_count: number;
                                    id: string;
                                    metadata: { [key: string]: unknown };
                                    name: string;
                                    updated_at: string;
                                };
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/datasets/{id}/csv": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { id: string };
                    query?: { version_id?: string | null };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: { "text/csv": string };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/datasets/{id}/examples": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { id: string };
                    query?: { split?: string[] | null; version_id?: string | null };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    dataset_id: string;
                                    examples: {
                                        id: string;
                                        input: { [key: string]: unknown };
                                        metadata: { [key: string]: unknown };
                                        output: { [key: string]: unknown };
                                        updated_at: string;
                                    }[];
                                    filtered_splits?: string[];
                                    version_id: string;
                                };
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/datasets/{id}/jsonl/openai_evals": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { id: string };
                    query?: { version_id?: string | null };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/datasets/{id}/jsonl/openai_ft": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { id: string };
                    query?: { version_id?: string | null };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/datasets/{id}/versions": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { id: string };
                    query?: { cursor?: string | null; limit?: number };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    created_at: string;
                                    description: string
                                    | null;
                                    metadata: { [key: string]: unknown };
                                    version_id: string;
                                }[];
                                next_cursor: string
                                | null;
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/datasets/upload": {
            delete?: undefined;
            get?: undefined;
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path?: undefined;
                    query?: { sync?: boolean };
                };
                requestBody?: {
                    content: {
                        "application/json": {
                            action?: "create"
                            | "append";
                            description?: string;
                            inputs: Record<string, unknown>[];
                            metadata?: Record<string, unknown>[];
                            name: string;
                            outputs?: Record<string, unknown>[];
                            span_ids?: (string | null)[];
                            splits?: (string | string[] | null)[];
                        };
                        "multipart/form-data": {
                            action?: "create"
                            | "append";
                            description?: string;
                            file: string;
                            "input_keys[]": string[];
                            "metadata_keys[]"?: string[];
                            name: string;
                            "output_keys[]": string[];
                            span_id_key?: string;
                            "split_keys[]"?: string[];
                        };
                    };
                };
                responses: {
                    "200": {
                        content: {
                            "application/json": | {
                                data: { dataset_id: string; version_id: string };
                            }
                            | null;
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "409": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            put?: undefined;
            trace?: undefined;
        };
        "/v1/document_annotations": {
            delete?: undefined;
            get?: undefined;
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path?: undefined;
                    query?: { sync?: boolean };
                };
                requestBody: {
                    content: {
                        "application/json": {
                            data: {
                                annotator_kind: "LLM"
                                | "CODE"
                                | "HUMAN";
                                document_position: number;
                                identifier?: string;
                                metadata?: { [key: string]: unknown } | null;
                                name: string;
                                result?:
                                    | {
                                        explanation?: string
                                        | null;
                                        label?: string | null;
                                        score?: number | null;
                                    }
                                    | null;
                                span_id: string;
                            }[];
                        };
                    };
                };
                responses: {
                    "200": {
                        content: { "application/json": { data: { id: string }[] } };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            put?: undefined;
            trace?: undefined;
        };
        "/v1/evaluations": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path?: undefined;
                    query?: { project_name?: string
                    | null };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: { "application/json": unknown };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post: {
                parameters: {
                    cookie?: undefined;
                    header?: {
                        "content-encoding"?: string
                        | null;
                        "content-type"?: string | null;
                    };
                    path?: undefined;
                    query?: undefined;
                };
                requestBody: {
                    content: {
                        "application/x-pandas-arrow": string;
                        "application/x-protobuf": string;
                    };
                };
                responses: {
                    "204": { content?: undefined; headers: { [name: string]: unknown } };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "415": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            put?: undefined;
            trace?: undefined;
        };
        "/v1/experiment_evaluations": {
            delete?: undefined;
            get?: undefined;
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path?: undefined;
                    query?: undefined;
                };
                requestBody: {
                    content: {
                        "application/json": {
                            annotator_kind: "LLM"
                            | "CODE"
                            | "HUMAN";
                            end_time: string;
                            error?: string | null;
                            experiment_run_id: string;
                            metadata?: { [key: string]: unknown } | null;
                            name: string;
                            result?:
                                | {
                                    explanation?: string
                                    | null;
                                    label?: string | null;
                                    score?: number | null;
                                }
                                | null;
                            start_time: string;
                            trace_id?: string
                            | null;
                        };
                    };
                };
                responses: {
                    "200": {
                        content: { "application/json": { data: { id: string } } };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            put?: undefined;
            trace?: undefined;
        };
        "/v1/experiments/{experiment_id}": {
            delete: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { experiment_id: string };
                    query?: { delete_project?: boolean };
                };
                requestBody?: undefined;
                responses: {
                    "204": { content?: undefined; headers: { [name: string]: unknown } };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { experiment_id: string };
                    query?: undefined;
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    created_at: string;
                                    dataset_id: string;
                                    dataset_version_id: string;
                                    example_count: number;
                                    failed_run_count: number;
                                    id: string;
                                    metadata: { [key: string]: unknown };
                                    missing_run_count: number;
                                    project_name: string | null;
                                    repetitions: number;
                                    successful_run_count: number;
                                    updated_at: string;
                                };
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/experiments/{experiment_id}/csv": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { experiment_id: string };
                    query?: undefined;
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: { "application/json": unknown; "text/csv": string };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/experiments/{experiment_id}/incomplete-evaluations": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { experiment_id: string };
                    query?: {
                        cursor?: string | null;
                        evaluation_name?: string[];
                        limit?: number;
                    };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    dataset_example: {
                                        id: string;
                                        input: { [key: string]: unknown };
                                        metadata: { [key: string]: unknown };
                                        output: { [key: string]: unknown };
                                        updated_at: string;
                                    };
                                    evaluation_names: string[];
                                    experiment_run: {
                                        dataset_example_id: string;
                                        end_time: string;
                                        error?: string
                                        | null;
                                        experiment_id: string;
                                        id: string;
                                        output: unknown;
                                        repetition_number: number;
                                        start_time: string;
                                        trace_id?: string | null;
                                    };
                                }[];
                                next_cursor: string
                                | null;
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "400": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/experiments/{experiment_id}/incomplete-runs": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { experiment_id: string };
                    query?: { cursor?: string | null; limit?: number };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    dataset_example: {
                                        id: string;
                                        input: { [key: string]: unknown };
                                        metadata: { [key: string]: unknown };
                                        output: { [key: string]: unknown };
                                        updated_at: string;
                                    };
                                    repetition_numbers: number[];
                                }[];
                                next_cursor: string
                                | null;
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/experiments/{experiment_id}/json": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { experiment_id: string };
                    query?: undefined;
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/experiments/{experiment_id}/runs": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { experiment_id: string };
                    query?: { cursor?: string | null; limit?: number | null };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    dataset_example_id: string;
                                    end_time: string;
                                    error?: string
                                    | null;
                                    experiment_id: string;
                                    id: string;
                                    output: unknown;
                                    repetition_number: number;
                                    start_time: string;
                                    trace_id?: string | null;
                                }[];
                                next_cursor: string
                                | null;
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { experiment_id: string };
                    query?: undefined;
                };
                requestBody: {
                    content: {
                        "application/json": {
                            dataset_example_id: string;
                            end_time: string;
                            error?: string
                            | null;
                            output: unknown;
                            repetition_number: number;
                            start_time: string;
                            trace_id?: string | null;
                        };
                    };
                };
                responses: {
                    "200": {
                        content: { "application/json": { data: { id: string } } };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "409": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            put?: undefined;
            trace?: undefined;
        };
        "/v1/projects": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path?: undefined;
                    query?: {
                        cursor?: string
                        | null;
                        include_dataset_evaluator_projects?: boolean;
                        include_experiment_projects?: boolean;
                        limit?: number;
                    };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: { description?: string
                                | null; id: string; name: string }[];
                                next_cursor: string | null;
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path?: undefined;
                    query?: undefined;
                };
                requestBody: {
                    content: {
                        "application/json": { description?: string
                        | null; name: string };
                    };
                };
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: { description?: string
                                | null; id: string; name: string };
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            put?: undefined;
            trace?: undefined;
        };
        "/v1/projects/{project_identifier}": {
            delete: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { project_identifier: string };
                    query?: undefined;
                };
                requestBody?: undefined;
                responses: {
                    "204": { content?: undefined; headers: { [name: string]: unknown } };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { project_identifier: string };
                    query?: undefined;
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: { description?: string
                                | null; id: string; name: string };
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { project_identifier: string };
                    query?: undefined;
                };
                requestBody: {
                    content: { "application/json": { description?: string
                    | null } };
                };
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: { description?: string
                                | null; id: string; name: string };
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            trace?: undefined;
        };
        "/v1/projects/{project_identifier}/session_annotations": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { project_identifier: string };
                    query: {
                        cursor?: string | null;
                        exclude_annotation_names?: string[] | null;
                        include_annotation_names?: string[] | null;
                        limit?: number;
                        session_ids: string[];
                    };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    annotator_kind: "LLM"
                                    | "CODE"
                                    | "HUMAN";
                                    created_at: string;
                                    id: string;
                                    identifier?: string;
                                    metadata?: { [key: string]: unknown } | null;
                                    name: string;
                                    result?:
                                        | {
                                            explanation?: (...)
                                            | (...)
                                            | (...);
                                            label?: (...) | (...) | (...);
                                            score?: (...) | (...) | (...);
                                        }
                                        | null;
                                    session_id: string;
                                    source: "API"
                                    | "APP";
                                    updated_at: string;
                                    user_id: string | null;
                                }[];
                                next_cursor: string
                                | null;
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/projects/{project_identifier}/span_annotations": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { project_identifier: string };
                    query: {
                        cursor?: string | null;
                        exclude_annotation_names?: string[] | null;
                        include_annotation_names?: string[] | null;
                        limit?: number;
                        span_ids: string[];
                    };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    annotator_kind: "LLM"
                                    | "CODE"
                                    | "HUMAN";
                                    created_at: string;
                                    id: string;
                                    identifier?: string;
                                    metadata?: { [key: string]: unknown } | null;
                                    name: string;
                                    result?:
                                        | {
                                            explanation?: (...)
                                            | (...)
                                            | (...);
                                            label?: (...) | (...) | (...);
                                            score?: (...) | (...) | (...);
                                        }
                                        | null;
                                    source: "API"
                                    | "APP";
                                    span_id: string;
                                    updated_at: string;
                                    user_id: string | null;
                                }[];
                                next_cursor: string
                                | null;
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/projects/{project_identifier}/spans": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { project_identifier: string };
                    query?: {
                        cursor?: string | null;
                        end_time?: string | null;
                        limit?: number;
                        start_time?: string | null;
                    };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    attributes?: { [key: string]: unknown };
                                    context: { span_id: string; trace_id: string };
                                    end_time: string;
                                    events?: { attributes?: ...; name: ...; timestamp: ... }[];
                                    id?: string;
                                    name: string;
                                    parent_id?: string | null;
                                    span_kind: string;
                                    start_time: string;
                                    status_code: string;
                                    status_message?: string;
                                }[];
                                next_cursor: string
                                | null;
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { project_identifier: string };
                    query?: undefined;
                };
                requestBody: {
                    content: {
                        "application/json": {
                            data: {
                                attributes?: { [key: string]: unknown };
                                context: { span_id: string; trace_id: string };
                                end_time: string;
                                events?: {
                                    attributes?: (...) | (...);
                                    name: string;
                                    timestamp: string;
                                }[];
                                id?: string;
                                name: string;
                                parent_id?: string
                                | null;
                                span_kind: string;
                                start_time: string;
                                status_code: string;
                                status_message?: string;
                            }[];
                        };
                    };
                };
                responses: {
                    "202": {
                        content: {
                            "application/json": {
                                total_queued: number;
                                total_received: number;
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "400": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            put?: undefined;
            trace?: undefined;
        };
        "/v1/projects/{project_identifier}/spans/otlpv1": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { project_identifier: string };
                    query?: {
                        cursor?: string | null;
                        end_time?: string | null;
                        limit?: number;
                        start_time?: string | null;
                    };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    attributes?: { key?: ...; value?: ... }[]
                                    | null;
                                    dropped_attributes_count?: number | null;
                                    dropped_events_count?: number | null;
                                    dropped_links_count?: number | null;
                                    end_time_unix_nano?: string | number | null;
                                    events?:
                                        | {
                                            attributes?: ...;
                                            dropped_attributes_count?: ...;
                                            name?: ...;
                                            time_unix_nano?: ...;
                                        }[]
                                        | null;
                                    flags?: number
                                    | null;
                                    kind?:
                                        | number
                                        | "SPAN_KIND_UNSPECIFIED"
                                        | "SPAN_KIND_INTERNAL"
                                        | "SPAN_KIND_SERVER"
                                        | "SPAN_KIND_CLIENT"
                                        | "SPAN_KIND_PRODUCER"
                                        | "SPAN_KIND_CONSUMER"
                                        | null;
                                    links?: null;
                                    name?: string
                                    | null;
                                    parent_span_id?: string | null;
                                    span_id?: string | null;
                                    start_time_unix_nano?: string | number | null;
                                    status?:
                                        | {
                                            code?: (...)
                                            | (...)
                                            | (...);
                                            message?: (...) | (...) | (...);
                                        }
                                        | null;
                                    trace_id?: string
                                    | null;
                                    trace_state?: string | null;
                                }[];
                                next_cursor: string
                                | null;
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/projects/{project_identifier}/trace_annotations": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { project_identifier: string };
                    query: {
                        cursor?: string | null;
                        exclude_annotation_names?: string[] | null;
                        include_annotation_names?: string[] | null;
                        limit?: number;
                        trace_ids: string[];
                    };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    annotator_kind: "LLM"
                                    | "CODE"
                                    | "HUMAN";
                                    created_at: string;
                                    id: string;
                                    identifier?: string;
                                    metadata?: { [key: string]: unknown } | null;
                                    name: string;
                                    result?:
                                        | {
                                            explanation?: (...)
                                            | (...)
                                            | (...);
                                            label?: (...) | (...) | (...);
                                            score?: (...) | (...) | (...);
                                        }
                                        | null;
                                    source: "API"
                                    | "APP";
                                    trace_id: string;
                                    updated_at: string;
                                    user_id: string | null;
                                }[];
                                next_cursor: string
                                | null;
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/prompt_versions/{prompt_version_id}": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { prompt_version_id: string };
                    query?: undefined;
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    description?: string
                                    | null;
                                    id: string;
                                    invocation_parameters:
                                        | {
                                            anthropic: {
                                                max_tokens: number;
                                                stop_sequences?: (...)
                                                | (...);
                                                temperature?: (...) | (...);
                                                thinking?: (...) | (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "anthropic";
                                        }
                                        | {
                                            aws: {
                                                max_tokens?: (...)
                                                | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "aws";
                                        }
                                        | {
                                            azure_openai: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_completion_tokens?: (...) | (...);
                                                max_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                reasoning_effort?:
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...);
                                                seed?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "azure_openai";
                                        }
                                        | {
                                            deepseek: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_completion_tokens?: (...) | (...);
                                                max_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                reasoning_effort?:
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...);
                                                seed?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "deepseek";
                                        }
                                        | {
                                            google: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_output_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                stop_sequences?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_k?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "google";
                                        }
                                        | {
                                            ollama: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_completion_tokens?: (...) | (...);
                                                max_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                reasoning_effort?:
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...);
                                                seed?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "ollama";
                                        }
                                        | {
                                            openai: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_completion_tokens?: (...) | (...);
                                                max_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                reasoning_effort?:
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...);
                                                seed?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "openai";
                                        }
                                        | {
                                            type: "xai";
                                            xai: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_completion_tokens?: (...) | (...);
                                                max_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                reasoning_effort?:
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...);
                                                seed?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                        };
                                    model_name: string;
                                    model_provider: | "OPENAI"
                                    | "AZURE_OPENAI"
                                    | "ANTHROPIC"
                                    | "GOOGLE"
                                    | "DEEPSEEK"
                                    | "XAI"
                                    | "OLLAMA"
                                    | "AWS";
                                    response_format?: | {
                                        json_schema: {
                                            description?: (...)
                                            | (...);
                                            name: string;
                                            schema?: (...) | (...);
                                            strict?: (...) | (...) | (...);
                                        };
                                        type: "json_schema";
                                    }
                                    | null;
                                    template: | {
                                        messages: { content: ...; role: ... }[];
                                        type: "chat";
                                    }
                                    | { template: string; type: "string" };
                                    template_format: "NONE" | "MUSTACHE" | "F_STRING";
                                    template_type: "STR" | "CHAT";
                                    tools?:
                                        | {
                                            disable_parallel_tool_calls?: boolean;
                                            tool_choice?: | { type: ... }
                                            | { type: ... }
                                            | { function_name: ...; type: ... }
                                            | { type: ... };
                                            tools: { function: ...; type: ... }[];
                                            type: "tools";
                                        }
                                        | null;
                                };
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/prompt_versions/{prompt_version_id}/tags": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { prompt_version_id: string };
                    query?: { cursor?: string | null; limit?: number };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: { description?: string
                                | null; id: string; name: string }[];
                                next_cursor: string | null;
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { prompt_version_id: string };
                    query?: undefined;
                };
                requestBody: {
                    content: {
                        "application/json": { description?: string
                        | null; name: string };
                    };
                };
                responses: {
                    "204": { content?: undefined; headers: { [name: string]: unknown } };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            put?: undefined;
            trace?: undefined;
        };
        "/v1/prompts": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path?: undefined;
                    query?: { cursor?: string
                    | null; limit?: number };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    description?: string
                                    | null;
                                    id: string;
                                    metadata?: { [key: string]: unknown } | null;
                                    name: string;
                                    source_prompt_id?: string | null;
                                }[];
                                next_cursor: string
                                | null;
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path?: undefined;
                    query?: undefined;
                };
                requestBody: {
                    content: {
                        "application/json": {
                            prompt: {
                                description?: string
                                | null;
                                metadata?: { [key: string]: unknown } | null;
                                name: string;
                                source_prompt_id?: string | null;
                            };
                            version: {
                                description?: string
                                | null;
                                invocation_parameters:
                                    | {
                                        anthropic: {
                                            max_tokens: number;
                                            stop_sequences?: (...)[];
                                            temperature?: number;
                                            thinking?: { type: ... } | { budget_tokens: ...; type: ... };
                                            top_p?: number;
                                        };
                                        type: "anthropic";
                                    }
                                    | {
                                        aws: {
                                            max_tokens?: number;
                                            temperature?: number;
                                            top_p?: number;
                                        };
                                        type: "aws";
                                    }
                                    | {
                                        azure_openai: {
                                            frequency_penalty?: number;
                                            max_completion_tokens?: number;
                                            max_tokens?: number;
                                            presence_penalty?: number;
                                            reasoning_effort?: | "none"
                                            | "minimal"
                                            | "low"
                                            | "medium"
                                            | "high"
                                            | "xhigh";
                                            seed?: number;
                                            temperature?: number;
                                            top_p?: number;
                                        };
                                        type: "azure_openai";
                                    }
                                    | {
                                        deepseek: {
                                            frequency_penalty?: number;
                                            max_completion_tokens?: number;
                                            max_tokens?: number;
                                            presence_penalty?: number;
                                            reasoning_effort?: | "none"
                                            | "minimal"
                                            | "low"
                                            | "medium"
                                            | "high"
                                            | "xhigh";
                                            seed?: number;
                                            temperature?: number;
                                            top_p?: number;
                                        };
                                        type: "deepseek";
                                    }
                                    | {
                                        google: {
                                            frequency_penalty?: number;
                                            max_output_tokens?: number;
                                            presence_penalty?: number;
                                            stop_sequences?: (...)[];
                                            temperature?: number;
                                            top_k?: number;
                                            top_p?: number;
                                        };
                                        type: "google";
                                    }
                                    | {
                                        ollama: {
                                            frequency_penalty?: number;
                                            max_completion_tokens?: number;
                                            max_tokens?: number;
                                            presence_penalty?: number;
                                            reasoning_effort?: | "none"
                                            | "minimal"
                                            | "low"
                                            | "medium"
                                            | "high"
                                            | "xhigh";
                                            seed?: number;
                                            temperature?: number;
                                            top_p?: number;
                                        };
                                        type: "ollama";
                                    }
                                    | {
                                        openai: {
                                            frequency_penalty?: number;
                                            max_completion_tokens?: number;
                                            max_tokens?: number;
                                            presence_penalty?: number;
                                            reasoning_effort?: | "none"
                                            | "minimal"
                                            | "low"
                                            | "medium"
                                            | "high"
                                            | "xhigh";
                                            seed?: number;
                                            temperature?: number;
                                            top_p?: number;
                                        };
                                        type: "openai";
                                    }
                                    | {
                                        type: "xai";
                                        xai: {
                                            frequency_penalty?: number;
                                            max_completion_tokens?: number;
                                            max_tokens?: number;
                                            presence_penalty?: number;
                                            reasoning_effort?: | "none"
                                            | "minimal"
                                            | "low"
                                            | "medium"
                                            | "high"
                                            | "xhigh";
                                            seed?: number;
                                            temperature?: number;
                                            top_p?: number;
                                        };
                                    };
                                model_name: string;
                                model_provider: | "OPENAI"
                                | "AZURE_OPENAI"
                                | "ANTHROPIC"
                                | "GOOGLE"
                                | "DEEPSEEK"
                                | "XAI"
                                | "OLLAMA"
                                | "AWS";
                                response_format?: | {
                                    json_schema: {
                                        description?: string;
                                        name: string;
                                        schema?: { [key: ...]: ... };
                                        strict?: boolean;
                                    };
                                    type: "json_schema";
                                }
                                | null;
                                template: | {
                                    messages: {
                                        content: (...)
                                        | (...);
                                        role: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                    }[];
                                    type: "chat";
                                }
                                | { template: string; type: "string" };
                                template_format: "NONE" | "MUSTACHE" | "F_STRING";
                                template_type: "STR" | "CHAT";
                                tools?:
                                    | {
                                        disable_parallel_tool_calls?: boolean;
                                        tool_choice?: | { type: "none" }
                                        | { type: "one_or_more" }
                                        | { function_name: string; type: "specific_function" }
                                        | { type: "zero_or_more" };
                                        tools: {
                                            function: {
                                                description?: ...;
                                                name: ...;
                                                parameters?: ...;
                                                strict?: ...;
                                            };
                                            type: "function";
                                        }[];
                                        type: "tools";
                                    }
                                    | null;
                            };
                        };
                    };
                };
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    description?: string
                                    | null;
                                    id: string;
                                    invocation_parameters:
                                        | {
                                            anthropic: {
                                                max_tokens: number;
                                                stop_sequences?: (...)
                                                | (...);
                                                temperature?: (...) | (...);
                                                thinking?: (...) | (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "anthropic";
                                        }
                                        | {
                                            aws: {
                                                max_tokens?: (...)
                                                | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "aws";
                                        }
                                        | {
                                            azure_openai: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_completion_tokens?: (...) | (...);
                                                max_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                reasoning_effort?:
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...);
                                                seed?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "azure_openai";
                                        }
                                        | {
                                            deepseek: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_completion_tokens?: (...) | (...);
                                                max_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                reasoning_effort?:
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...);
                                                seed?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "deepseek";
                                        }
                                        | {
                                            google: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_output_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                stop_sequences?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_k?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "google";
                                        }
                                        | {
                                            ollama: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_completion_tokens?: (...) | (...);
                                                max_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                reasoning_effort?:
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...);
                                                seed?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "ollama";
                                        }
                                        | {
                                            openai: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_completion_tokens?: (...) | (...);
                                                max_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                reasoning_effort?:
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...);
                                                seed?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "openai";
                                        }
                                        | {
                                            type: "xai";
                                            xai: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_completion_tokens?: (...) | (...);
                                                max_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                reasoning_effort?:
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...);
                                                seed?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                        };
                                    model_name: string;
                                    model_provider: | "OPENAI"
                                    | "AZURE_OPENAI"
                                    | "ANTHROPIC"
                                    | "GOOGLE"
                                    | "DEEPSEEK"
                                    | "XAI"
                                    | "OLLAMA"
                                    | "AWS";
                                    response_format?: | {
                                        json_schema: {
                                            description?: (...)
                                            | (...);
                                            name: string;
                                            schema?: (...) | (...);
                                            strict?: (...) | (...) | (...);
                                        };
                                        type: "json_schema";
                                    }
                                    | null;
                                    template: | {
                                        messages: { content: ...; role: ... }[];
                                        type: "chat";
                                    }
                                    | { template: string; type: "string" };
                                    template_format: "NONE" | "MUSTACHE" | "F_STRING";
                                    template_type: "STR" | "CHAT";
                                    tools?:
                                        | {
                                            disable_parallel_tool_calls?: boolean;
                                            tool_choice?: | { type: ... }
                                            | { type: ... }
                                            | { function_name: ...; type: ... }
                                            | { type: ... };
                                            tools: { function: ...; type: ... }[];
                                            type: "tools";
                                        }
                                        | null;
                                };
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            put?: undefined;
            trace?: undefined;
        };
        "/v1/prompts/{prompt_identifier}/latest": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { prompt_identifier: string };
                    query?: undefined;
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    description?: string
                                    | null;
                                    id: string;
                                    invocation_parameters:
                                        | {
                                            anthropic: {
                                                max_tokens: number;
                                                stop_sequences?: (...)
                                                | (...);
                                                temperature?: (...) | (...);
                                                thinking?: (...) | (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "anthropic";
                                        }
                                        | {
                                            aws: {
                                                max_tokens?: (...)
                                                | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "aws";
                                        }
                                        | {
                                            azure_openai: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_completion_tokens?: (...) | (...);
                                                max_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                reasoning_effort?:
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...);
                                                seed?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "azure_openai";
                                        }
                                        | {
                                            deepseek: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_completion_tokens?: (...) | (...);
                                                max_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                reasoning_effort?:
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...);
                                                seed?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "deepseek";
                                        }
                                        | {
                                            google: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_output_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                stop_sequences?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_k?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "google";
                                        }
                                        | {
                                            ollama: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_completion_tokens?: (...) | (...);
                                                max_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                reasoning_effort?:
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...);
                                                seed?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "ollama";
                                        }
                                        | {
                                            openai: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_completion_tokens?: (...) | (...);
                                                max_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                reasoning_effort?:
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...);
                                                seed?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "openai";
                                        }
                                        | {
                                            type: "xai";
                                            xai: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_completion_tokens?: (...) | (...);
                                                max_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                reasoning_effort?:
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...);
                                                seed?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                        };
                                    model_name: string;
                                    model_provider: | "OPENAI"
                                    | "AZURE_OPENAI"
                                    | "ANTHROPIC"
                                    | "GOOGLE"
                                    | "DEEPSEEK"
                                    | "XAI"
                                    | "OLLAMA"
                                    | "AWS";
                                    response_format?: | {
                                        json_schema: {
                                            description?: (...)
                                            | (...);
                                            name: string;
                                            schema?: (...) | (...);
                                            strict?: (...) | (...) | (...);
                                        };
                                        type: "json_schema";
                                    }
                                    | null;
                                    template: | {
                                        messages: { content: ...; role: ... }[];
                                        type: "chat";
                                    }
                                    | { template: string; type: "string" };
                                    template_format: "NONE" | "MUSTACHE" | "F_STRING";
                                    template_type: "STR" | "CHAT";
                                    tools?:
                                        | {
                                            disable_parallel_tool_calls?: boolean;
                                            tool_choice?: | { type: ... }
                                            | { type: ... }
                                            | { function_name: ...; type: ... }
                                            | { type: ... };
                                            tools: { function: ...; type: ... }[];
                                            type: "tools";
                                        }
                                        | null;
                                };
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/prompts/{prompt_identifier}/tags/{tag_name}": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { prompt_identifier: string; tag_name: string };
                    query?: undefined;
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    description?: string
                                    | null;
                                    id: string;
                                    invocation_parameters:
                                        | {
                                            anthropic: {
                                                max_tokens: number;
                                                stop_sequences?: (...)
                                                | (...);
                                                temperature?: (...) | (...);
                                                thinking?: (...) | (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "anthropic";
                                        }
                                        | {
                                            aws: {
                                                max_tokens?: (...)
                                                | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "aws";
                                        }
                                        | {
                                            azure_openai: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_completion_tokens?: (...) | (...);
                                                max_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                reasoning_effort?:
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...);
                                                seed?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "azure_openai";
                                        }
                                        | {
                                            deepseek: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_completion_tokens?: (...) | (...);
                                                max_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                reasoning_effort?:
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...);
                                                seed?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "deepseek";
                                        }
                                        | {
                                            google: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_output_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                stop_sequences?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_k?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "google";
                                        }
                                        | {
                                            ollama: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_completion_tokens?: (...) | (...);
                                                max_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                reasoning_effort?:
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...);
                                                seed?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "ollama";
                                        }
                                        | {
                                            openai: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_completion_tokens?: (...) | (...);
                                                max_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                reasoning_effort?:
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...);
                                                seed?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                            type: "openai";
                                        }
                                        | {
                                            type: "xai";
                                            xai: {
                                                frequency_penalty?: (...)
                                                | (...);
                                                max_completion_tokens?: (...) | (...);
                                                max_tokens?: (...) | (...);
                                                presence_penalty?: (...) | (...);
                                                reasoning_effort?:
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...)
                                                    | (...);
                                                seed?: (...) | (...);
                                                temperature?: (...) | (...);
                                                top_p?: (...) | (...);
                                            };
                                        };
                                    model_name: string;
                                    model_provider: | "OPENAI"
                                    | "AZURE_OPENAI"
                                    | "ANTHROPIC"
                                    | "GOOGLE"
                                    | "DEEPSEEK"
                                    | "XAI"
                                    | "OLLAMA"
                                    | "AWS";
                                    response_format?: | {
                                        json_schema: {
                                            description?: (...)
                                            | (...);
                                            name: string;
                                            schema?: (...) | (...);
                                            strict?: (...) | (...) | (...);
                                        };
                                        type: "json_schema";
                                    }
                                    | null;
                                    template: | {
                                        messages: { content: ...; role: ... }[];
                                        type: "chat";
                                    }
                                    | { template: string; type: "string" };
                                    template_format: "NONE" | "MUSTACHE" | "F_STRING";
                                    template_type: "STR" | "CHAT";
                                    tools?:
                                        | {
                                            disable_parallel_tool_calls?: boolean;
                                            tool_choice?: | { type: ... }
                                            | { type: ... }
                                            | { function_name: ...; type: ... }
                                            | { type: ... };
                                            tools: { function: ...; type: ... }[];
                                            type: "tools";
                                        }
                                        | null;
                                };
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/prompts/{prompt_identifier}/versions": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { prompt_identifier: string };
                    query?: { cursor?: string | null; limit?: number };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: {
                                    description?: string
                                    | null;
                                    id: string;
                                    invocation_parameters:
                                        | {
                                            anthropic: {
                                                max_tokens: ...;
                                                stop_sequences?: ...;
                                                temperature?: ...;
                                                thinking?: ...;
                                                top_p?: ...;
                                            };
                                            type: "anthropic";
                                        }
                                        | {
                                            aws: { max_tokens?: ...; temperature?: ...; top_p?: ... };
                                            type: "aws";
                                        }
                                        | {
                                            azure_openai: {
                                                frequency_penalty?: ...;
                                                max_completion_tokens?: ...;
                                                max_tokens?: ...;
                                                presence_penalty?: ...;
                                                reasoning_effort?: ...;
                                                seed?: ...;
                                                temperature?: ...;
                                                top_p?: ...;
                                            };
                                            type: "azure_openai";
                                        }
                                        | {
                                            deepseek: {
                                                frequency_penalty?: ...;
                                                max_completion_tokens?: ...;
                                                max_tokens?: ...;
                                                presence_penalty?: ...;
                                                reasoning_effort?: ...;
                                                seed?: ...;
                                                temperature?: ...;
                                                top_p?: ...;
                                            };
                                            type: "deepseek";
                                        }
                                        | {
                                            google: {
                                                frequency_penalty?: ...;
                                                max_output_tokens?: ...;
                                                presence_penalty?: ...;
                                                stop_sequences?: ...;
                                                temperature?: ...;
                                                top_k?: ...;
                                                top_p?: ...;
                                            };
                                            type: "google";
                                        }
                                        | {
                                            ollama: {
                                                frequency_penalty?: ...;
                                                max_completion_tokens?: ...;
                                                max_tokens?: ...;
                                                presence_penalty?: ...;
                                                reasoning_effort?: ...;
                                                seed?: ...;
                                                temperature?: ...;
                                                top_p?: ...;
                                            };
                                            type: "ollama";
                                        }
                                        | {
                                            openai: {
                                                frequency_penalty?: ...;
                                                max_completion_tokens?: ...;
                                                max_tokens?: ...;
                                                presence_penalty?: ...;
                                                reasoning_effort?: ...;
                                                seed?: ...;
                                                temperature?: ...;
                                                top_p?: ...;
                                            };
                                            type: "openai";
                                        }
                                        | {
                                            type: "xai";
                                            xai: {
                                                frequency_penalty?: ...;
                                                max_completion_tokens?: ...;
                                                max_tokens?: ...;
                                                presence_penalty?: ...;
                                                reasoning_effort?: ...;
                                                seed?: ...;
                                                temperature?: ...;
                                                top_p?: ...;
                                            };
                                        };
                                    model_name: string;
                                    model_provider: | "OPENAI"
                                    | "AZURE_OPENAI"
                                    | "ANTHROPIC"
                                    | "GOOGLE"
                                    | "DEEPSEEK"
                                    | "XAI"
                                    | "OLLAMA"
                                    | "AWS";
                                    response_format?: | {
                                        json_schema: {
                                            description?: ...;
                                            name: ...;
                                            schema?: ...;
                                            strict?: ...;
                                        };
                                        type: "json_schema";
                                    }
                                    | null;
                                    template: | { messages: (...)[]; type: "chat" }
                                    | { template: string; type: "string" };
                                    template_format: "NONE" | "MUSTACHE" | "F_STRING";
                                    template_type: "STR" | "CHAT";
                                    tools?:
                                        | {
                                            disable_parallel_tool_calls?: (...)
                                            | (...)
                                            | (...);
                                            tool_choice?: (...) | (...) | (...) | (...) | (...);
                                            tools: (...)[];
                                            type: "tools";
                                        }
                                        | null;
                                }[];
                                next_cursor: string
                                | null;
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/session_annotations": {
            delete?: undefined;
            get?: undefined;
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path?: undefined;
                    query?: { sync?: boolean };
                };
                requestBody: {
                    content: {
                        "application/json": {
                            data: {
                                annotator_kind: "LLM"
                                | "CODE"
                                | "HUMAN";
                                identifier?: string;
                                metadata?: { [key: string]: unknown } | null;
                                name: string;
                                result?:
                                    | {
                                        explanation?: string
                                        | null;
                                        label?: string | null;
                                        score?: number | null;
                                    }
                                    | null;
                                session_id: string;
                            }[];
                        };
                    };
                };
                responses: {
                    "200": {
                        content: { "application/json": { data: { id: string }[] } };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            put?: undefined;
            trace?: undefined;
        };
        "/v1/span_annotations": {
            delete?: undefined;
            get?: undefined;
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path?: undefined;
                    query?: { sync?: boolean };
                };
                requestBody: {
                    content: {
                        "application/json": {
                            data: {
                                annotator_kind: "LLM"
                                | "CODE"
                                | "HUMAN";
                                identifier?: string;
                                metadata?: { [key: string]: unknown } | null;
                                name: string;
                                result?:
                                    | {
                                        explanation?: string
                                        | null;
                                        label?: string | null;
                                        score?: number | null;
                                    }
                                    | null;
                                span_id: string;
                            }[];
                        };
                    };
                };
                responses: {
                    "200": {
                        content: { "application/json": { data: { id: string }[] } };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            put?: undefined;
            trace?: undefined;
        };
        "/v1/span_notes": {
            delete?: undefined;
            get?: undefined;
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path?: undefined;
                    query?: undefined;
                };
                requestBody: {
                    content: {
                        "application/json": { data: { note: string; span_id: string } };
                    };
                };
                responses: {
                    "200": {
                        content: { "application/json": { data: { id: string } } };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            put?: undefined;
            trace?: undefined;
        };
        "/v1/spans/{span_identifier}": {
            delete: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { span_identifier: string };
                    query?: undefined;
                };
                requestBody?: undefined;
                responses: {
                    "204": { content?: undefined; headers: { [name: string]: unknown } };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            get?: undefined;
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/trace_annotations": {
            delete?: undefined;
            get?: undefined;
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path?: undefined;
                    query?: { sync?: boolean };
                };
                requestBody: {
                    content: {
                        "application/json": {
                            data: {
                                annotator_kind: "LLM"
                                | "CODE"
                                | "HUMAN";
                                identifier?: string;
                                metadata?: { [key: string]: unknown } | null;
                                name: string;
                                result?:
                                    | {
                                        explanation?: string
                                        | null;
                                        label?: string | null;
                                        score?: number | null;
                                    }
                                    | null;
                                trace_id: string;
                            }[];
                        };
                    };
                };
                responses: {
                    "200": {
                        content: { "application/json": { data: { id: string }[] } };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            put?: undefined;
            trace?: undefined;
        };
        "/v1/traces/{trace_identifier}": {
            delete: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { trace_identifier: string };
                    query?: undefined;
                };
                requestBody?: undefined;
                responses: {
                    "204": { content?: undefined; headers: { [name: string]: unknown } };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: {
                            "application/json": {
                                detail?: {
                                    ctx?: Record<(...), (...)>;
                                    input?: unknown;
                                    loc: ((...) | (...))[];
                                    msg: string;
                                    type: string;
                                }[];
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            get?: undefined;
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
        "/v1/users": {
            delete?: undefined;
            get: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path?: undefined;
                    query?: { cursor?: string; limit?: number };
                };
                requestBody?: undefined;
                responses: {
                    "200": {
                        content: {
                            "application/json": {
                                data: (
                                    | {
                                        auth_method: "LOCAL";
                                        created_at: string;
                                        email: string;
                                        id: string;
                                        password?: string;
                                        password_needs_reset: boolean;
                                        role: "SYSTEM"
                                        | "ADMIN"
                                        | "MEMBER"
                                        | "VIEWER";
                                        updated_at: string;
                                        username: string;
                                    }
                                    | {
                                        auth_method: "OAUTH2";
                                        created_at: string;
                                        email: string;
                                        id: string;
                                        oauth2_client_id?: string;
                                        oauth2_user_id?: string;
                                        profile_picture_url?: string;
                                        role: "SYSTEM"
                                        | "ADMIN"
                                        | "MEMBER"
                                        | "VIEWER";
                                        updated_at: string;
                                        username: string;
                                    }
                                    | {
                                        auth_method: "LDAP";
                                        created_at: string;
                                        email: string;
                                        id: string;
                                        role: "SYSTEM"
                                        | "ADMIN"
                                        | "MEMBER"
                                        | "VIEWER";
                                        updated_at: string;
                                        username: string;
                                    }
                                )[];
                                next_cursor: string
                                | null;
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path?: undefined;
                    query?: undefined;
                };
                requestBody: {
                    content: {
                        "application/json": {
                            send_welcome_email?: boolean;
                            user: | {
                                auth_method: "LOCAL";
                                email: string;
                                password?: string;
                                role: "SYSTEM"
                                | "ADMIN"
                                | "MEMBER"
                                | "VIEWER";
                                username: string;
                            }
                            | {
                                auth_method: "OAUTH2";
                                email: string;
                                oauth2_client_id?: string;
                                oauth2_user_id?: string;
                                role: "SYSTEM"
                                | "ADMIN"
                                | "MEMBER"
                                | "VIEWER";
                                username: string;
                            }
                            | {
                                auth_method: "LDAP";
                                email: string;
                                role: "SYSTEM"
                                | "ADMIN"
                                | "MEMBER"
                                | "VIEWER";
                                username: string;
                            };
                        };
                    };
                };
                responses: {
                    "201": {
                        content: {
                            "application/json": {
                                data: | {
                                    auth_method: "LOCAL";
                                    created_at: string;
                                    email: string;
                                    id: string;
                                    password?: string;
                                    password_needs_reset: boolean;
                                    role: "SYSTEM"
                                    | "ADMIN"
                                    | "MEMBER"
                                    | "VIEWER";
                                    updated_at: string;
                                    username: string;
                                }
                                | {
                                    auth_method: "OAUTH2";
                                    created_at: string;
                                    email: string;
                                    id: string;
                                    oauth2_client_id?: string;
                                    oauth2_user_id?: string;
                                    profile_picture_url?: string;
                                    role: "SYSTEM"
                                    | "ADMIN"
                                    | "MEMBER"
                                    | "VIEWER";
                                    updated_at: string;
                                    username: string;
                                }
                                | {
                                    auth_method: "LDAP";
                                    created_at: string;
                                    email: string;
                                    id: string;
                                    role: "SYSTEM"
                                    | "ADMIN"
                                    | "MEMBER"
                                    | "VIEWER";
                                    updated_at: string;
                                    username: string;
                                };
                            };
                        };
                        headers: { [name: string]: unknown };
                    };
                    "400": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "409": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            put?: undefined;
            trace?: undefined;
        };
        "/v1/users/{user_id}": {
            delete: {
                parameters: {
                    cookie?: undefined;
                    header?: undefined;
                    path: { user_id: string };
                    query?: undefined;
                };
                requestBody?: undefined;
                responses: {
                    "204": { content?: undefined; headers: { [name: string]: unknown } };
                    "403": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "404": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                    "422": {
                        content: { "text/plain": string };
                        headers: { [name: string]: unknown };
                    };
                };
            };
            get?: undefined;
            head?: undefined;
            options?: undefined;
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            patch?: undefined;
            post?: undefined;
            put?: undefined;
            trace?: undefined;
        };
    }
    Index

    Properties

    "/v1/annotation_configs": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: { cursor?: string | null; limit?: number };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: (
                                | {
                                    description?: string
                                    | null;
                                    id: string;
                                    name: string;
                                    optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                    type: "CATEGORICAL";
                                    values: { label: ...; score?: ... }[];
                                }
                                | {
                                    description?: string
                                    | null;
                                    id: string;
                                    lower_bound?: number | null;
                                    name: string;
                                    optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                    type: "CONTINUOUS";
                                    upper_bound?: number | null;
                                }
                                | {
                                    description?: string
                                    | null;
                                    id: string;
                                    name: string;
                                    type: "FREEFORM";
                                }
                            )[];
                            next_cursor: string
                            | null;
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            requestBody: {
                content: {
                    "application/json": | {
                        description?: string
                        | null;
                        name: string;
                        optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                        type: "CATEGORICAL";
                        values: { label: string; score?: number | null }[];
                    }
                    | {
                        description?: string
                        | null;
                        lower_bound?: number | null;
                        name: string;
                        optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                        type: "CONTINUOUS";
                        upper_bound?: number | null;
                    }
                    | { description?: string
                    | null; name: string; type: "FREEFORM" };
                };
            };
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: | {
                                description?: string
                                | null;
                                id: string;
                                name: string;
                                optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                type: "CATEGORICAL";
                                values: { label: string; score?: (...) | (...) | (...) }[];
                            }
                            | {
                                description?: string
                                | null;
                                id: string;
                                lower_bound?: number | null;
                                name: string;
                                optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                type: "CONTINUOUS";
                                upper_bound?: number | null;
                            }
                            | {
                                description?: string
                                | null;
                                id: string;
                                name: string;
                                type: "FREEFORM";
                            };
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path?: undefined;
              query?: { cursor?: string | null; limit?: number };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: (
                              | {
                                  description?: string
                                  | null;
                                  id: string;
                                  name: string;
                                  optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                  type: "CATEGORICAL";
                                  values: { label: ...; score?: ... }[];
                              }
                              | {
                                  description?: string
                                  | null;
                                  id: string;
                                  lower_bound?: number | null;
                                  name: string;
                                  optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                  type: "CONTINUOUS";
                                  upper_bound?: number | null;
                              }
                              | {
                                  description?: string
                                  | null;
                                  id: string;
                                  name: string;
                                  type: "FREEFORM";
                              }
                          )[];
                          next_cursor: string
                          | null;
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      List annotation configurations

      Retrieve a paginated list of all annotation configurations in the system.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: { cursor?: string | null; limit?: number };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • Optionalpath?: undefined
        • Optionalquery?: { cursor?: string | null; limit?: number }
          • Optionalcursor?: string | null

            Cursor for pagination (base64-encoded annotation config ID)

          • Optionallimit?: number

            Maximum number of configs to return

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: (
                            | {
                                description?: string
                                | null;
                                id: string;
                                name: string;
                                optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                type: "CATEGORICAL";
                                values: { label: ...; score?: ... }[];
                            }
                            | {
                                description?: string
                                | null;
                                id: string;
                                lower_bound?: number | null;
                                name: string;
                                optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                type: "CONTINUOUS";
                                upper_bound?: number | null;
                            }
                            | {
                                description?: string
                                | null;
                                id: string;
                                name: string;
                                type: "FREEFORM";
                            }
                        )[];
                        next_cursor: string
                        | null;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: (
                          | {
                              description?: string
                              | null;
                              id: string;
                              name: string;
                              optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                              type: "CATEGORICAL";
                              values: { label: ...; score?: ... }[];
                          }
                          | {
                              description?: string
                              | null;
                              id: string;
                              lower_bound?: number | null;
                              name: string;
                              optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                              type: "CONTINUOUS";
                              upper_bound?: number | null;
                          }
                          | {
                              description?: string
                              | null;
                              id: string;
                              name: string;
                              type: "FREEFORM";
                          }
                      )[];
                      next_cursor: string
                      | null;
                  };
              };
              headers: { [name: string]: unknown };
          }

          A list of annotation configurations with pagination information

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • post: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path?: undefined;
              query?: undefined;
          };
          requestBody: {
              content: {
                  "application/json": | {
                      description?: string
                      | null;
                      name: string;
                      optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                      type: "CATEGORICAL";
                      values: { label: string; score?: number | null }[];
                  }
                  | {
                      description?: string
                      | null;
                      lower_bound?: number | null;
                      name: string;
                      optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                      type: "CONTINUOUS";
                      upper_bound?: number | null;
                  }
                  | { description?: string
                  | null; name: string; type: "FREEFORM" };
              };
          };
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: | {
                              description?: string
                              | null;
                              id: string;
                              name: string;
                              optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                              type: "CATEGORICAL";
                              values: { label: string; score?: (...) | (...) | (...) }[];
                          }
                          | {
                              description?: string
                              | null;
                              id: string;
                              lower_bound?: number | null;
                              name: string;
                              optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                              type: "CONTINUOUS";
                              upper_bound?: number | null;
                          }
                          | {
                              description?: string
                              | null;
                              id: string;
                              name: string;
                              type: "FREEFORM";
                          };
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Create an annotation configuration

      • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
      • requestBody: {
            content: {
                "application/json":
                    | {
                        description?: string
                        | null;
                        name: string;
                        optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                        type: "CATEGORICAL";
                        values: { label: string; score?: number | null }[];
                    }
                    | {
                        description?: string
                        | null;
                        lower_bound?: number | null;
                        name: string;
                        optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                        type: "CONTINUOUS";
                        upper_bound?: number | null;
                    }
                    | { description?: string
                    | null; name: string; type: "FREEFORM" };
            };
        }
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data:
                            | {
                                description?: string
                                | null;
                                id: string;
                                name: string;
                                optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                type: "CATEGORICAL";
                                values: { label: string; score?: (...) | (...) | (...) }[];
                            }
                            | {
                                description?: string
                                | null;
                                id: string;
                                lower_bound?: number | null;
                                name: string;
                                optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                type: "CONTINUOUS";
                                upper_bound?: number | null;
                            }
                            | {
                                description?: string
                                | null;
                                id: string;
                                name: string;
                                type: "FREEFORM";
                            };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data:
                          | {
                              description?: string
                              | null;
                              id: string;
                              name: string;
                              optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                              type: "CATEGORICAL";
                              values: { label: string; score?: (...) | (...) | (...) }[];
                          }
                          | {
                              description?: string
                              | null;
                              id: string;
                              lower_bound?: number | null;
                              name: string;
                              optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                              type: "CONTINUOUS";
                              upper_bound?: number | null;
                          }
                          | {
                              description?: string
                              | null;
                              id: string;
                              name: string;
                              type: "FREEFORM";
                          };
                  };
              };
              headers: { [name: string]: unknown };
          }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/annotation_configs/{config_id}": {
        delete: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { config_id: string };
                query?: undefined;
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: | {
                                description?: string
                                | null;
                                id: string;
                                name: string;
                                optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                type: "CATEGORICAL";
                                values: { label: string; score?: (...) | (...) | (...) }[];
                            }
                            | {
                                description?: string
                                | null;
                                id: string;
                                lower_bound?: number | null;
                                name: string;
                                optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                type: "CONTINUOUS";
                                upper_bound?: number | null;
                            }
                            | {
                                description?: string
                                | null;
                                id: string;
                                name: string;
                                type: "FREEFORM";
                            };
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        get?: undefined;
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { config_id: string };
                query?: undefined;
            };
            requestBody: {
                content: {
                    "application/json": | {
                        description?: string
                        | null;
                        name: string;
                        optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                        type: "CATEGORICAL";
                        values: { label: string; score?: number | null }[];
                    }
                    | {
                        description?: string
                        | null;
                        lower_bound?: number | null;
                        name: string;
                        optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                        type: "CONTINUOUS";
                        upper_bound?: number | null;
                    }
                    | { description?: string
                    | null; name: string; type: "FREEFORM" };
                };
            };
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: | {
                                description?: string
                                | null;
                                id: string;
                                name: string;
                                optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                type: "CATEGORICAL";
                                values: { label: string; score?: (...) | (...) | (...) }[];
                            }
                            | {
                                description?: string
                                | null;
                                id: string;
                                lower_bound?: number | null;
                                name: string;
                                optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                type: "CONTINUOUS";
                                upper_bound?: number | null;
                            }
                            | {
                                description?: string
                                | null;
                                id: string;
                                name: string;
                                type: "FREEFORM";
                            };
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        trace?: undefined;
    }

    Type Declaration

    • delete: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { config_id: string };
              query?: undefined;
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: | {
                              description?: string
                              | null;
                              id: string;
                              name: string;
                              optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                              type: "CATEGORICAL";
                              values: { label: string; score?: (...) | (...) | (...) }[];
                          }
                          | {
                              description?: string
                              | null;
                              id: string;
                              lower_bound?: number | null;
                              name: string;
                              optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                              type: "CONTINUOUS";
                              upper_bound?: number | null;
                          }
                          | {
                              description?: string
                              | null;
                              id: string;
                              name: string;
                              type: "FREEFORM";
                          };
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Delete an annotation configuration

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { config_id: string };
            query?: undefined;
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { config_id: string }
          • config_id: string

            ID of the annotation configuration

        • Optionalquery?: undefined
      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data:
                            | {
                                description?: string
                                | null;
                                id: string;
                                name: string;
                                optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                type: "CATEGORICAL";
                                values: { label: string; score?: (...) | (...) | (...) }[];
                            }
                            | {
                                description?: string
                                | null;
                                id: string;
                                lower_bound?: number | null;
                                name: string;
                                optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                type: "CONTINUOUS";
                                upper_bound?: number | null;
                            }
                            | {
                                description?: string
                                | null;
                                id: string;
                                name: string;
                                type: "FREEFORM";
                            };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data:
                          | {
                              description?: string
                              | null;
                              id: string;
                              name: string;
                              optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                              type: "CATEGORICAL";
                              values: { label: string; score?: (...) | (...) | (...) }[];
                          }
                          | {
                              description?: string
                              | null;
                              id: string;
                              lower_bound?: number | null;
                              name: string;
                              optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                              type: "CONTINUOUS";
                              upper_bound?: number | null;
                          }
                          | {
                              description?: string
                              | null;
                              id: string;
                              name: string;
                              type: "FREEFORM";
                          };
                  };
              };
              headers: { [name: string]: unknown };
          }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionalget?: undefined
    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • put: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { config_id: string };
              query?: undefined;
          };
          requestBody: {
              content: {
                  "application/json": | {
                      description?: string
                      | null;
                      name: string;
                      optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                      type: "CATEGORICAL";
                      values: { label: string; score?: number | null }[];
                  }
                  | {
                      description?: string
                      | null;
                      lower_bound?: number | null;
                      name: string;
                      optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                      type: "CONTINUOUS";
                      upper_bound?: number | null;
                  }
                  | { description?: string
                  | null; name: string; type: "FREEFORM" };
              };
          };
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: | {
                              description?: string
                              | null;
                              id: string;
                              name: string;
                              optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                              type: "CATEGORICAL";
                              values: { label: string; score?: (...) | (...) | (...) }[];
                          }
                          | {
                              description?: string
                              | null;
                              id: string;
                              lower_bound?: number | null;
                              name: string;
                              optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                              type: "CONTINUOUS";
                              upper_bound?: number | null;
                          }
                          | {
                              description?: string
                              | null;
                              id: string;
                              name: string;
                              type: "FREEFORM";
                          };
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Update an annotation configuration

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { config_id: string };
            query?: undefined;
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { config_id: string }
          • config_id: string

            ID of the annotation configuration

        • Optionalquery?: undefined
      • requestBody: {
            content: {
                "application/json":
                    | {
                        description?: string
                        | null;
                        name: string;
                        optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                        type: "CATEGORICAL";
                        values: { label: string; score?: number | null }[];
                    }
                    | {
                        description?: string
                        | null;
                        lower_bound?: number | null;
                        name: string;
                        optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                        type: "CONTINUOUS";
                        upper_bound?: number | null;
                    }
                    | { description?: string
                    | null; name: string; type: "FREEFORM" };
            };
        }
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data:
                            | {
                                description?: string
                                | null;
                                id: string;
                                name: string;
                                optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                type: "CATEGORICAL";
                                values: { label: string; score?: (...) | (...) | (...) }[];
                            }
                            | {
                                description?: string
                                | null;
                                id: string;
                                lower_bound?: number | null;
                                name: string;
                                optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                type: "CONTINUOUS";
                                upper_bound?: number | null;
                            }
                            | {
                                description?: string
                                | null;
                                id: string;
                                name: string;
                                type: "FREEFORM";
                            };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data:
                          | {
                              description?: string
                              | null;
                              id: string;
                              name: string;
                              optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                              type: "CATEGORICAL";
                              values: { label: string; score?: (...) | (...) | (...) }[];
                          }
                          | {
                              description?: string
                              | null;
                              id: string;
                              lower_bound?: number | null;
                              name: string;
                              optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                              type: "CONTINUOUS";
                              upper_bound?: number | null;
                          }
                          | {
                              description?: string
                              | null;
                              id: string;
                              name: string;
                              type: "FREEFORM";
                          };
                  };
              };
              headers: { [name: string]: unknown };
          }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionaltrace?: undefined
    "/v1/annotation_configs/{config_identifier}": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { config_identifier: string };
                query?: undefined;
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: | {
                                description?: string
                                | null;
                                id: string;
                                name: string;
                                optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                type: "CATEGORICAL";
                                values: { label: string; score?: (...) | (...) | (...) }[];
                            }
                            | {
                                description?: string
                                | null;
                                id: string;
                                lower_bound?: number | null;
                                name: string;
                                optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                type: "CONTINUOUS";
                                upper_bound?: number | null;
                            }
                            | {
                                description?: string
                                | null;
                                id: string;
                                name: string;
                                type: "FREEFORM";
                            };
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { config_identifier: string };
              query?: undefined;
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: | {
                              description?: string
                              | null;
                              id: string;
                              name: string;
                              optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                              type: "CATEGORICAL";
                              values: { label: string; score?: (...) | (...) | (...) }[];
                          }
                          | {
                              description?: string
                              | null;
                              id: string;
                              lower_bound?: number | null;
                              name: string;
                              optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                              type: "CONTINUOUS";
                              upper_bound?: number | null;
                          }
                          | {
                              description?: string
                              | null;
                              id: string;
                              name: string;
                              type: "FREEFORM";
                          };
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Get an annotation configuration by ID or name

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { config_identifier: string };
            query?: undefined;
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { config_identifier: string }
          • config_identifier: string

            ID or name of the annotation configuration

        • Optionalquery?: undefined
      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data:
                            | {
                                description?: string
                                | null;
                                id: string;
                                name: string;
                                optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                type: "CATEGORICAL";
                                values: { label: string; score?: (...) | (...) | (...) }[];
                            }
                            | {
                                description?: string
                                | null;
                                id: string;
                                lower_bound?: number | null;
                                name: string;
                                optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                                type: "CONTINUOUS";
                                upper_bound?: number | null;
                            }
                            | {
                                description?: string
                                | null;
                                id: string;
                                name: string;
                                type: "FREEFORM";
                            };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data:
                          | {
                              description?: string
                              | null;
                              id: string;
                              name: string;
                              optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                              type: "CATEGORICAL";
                              values: { label: string; score?: (...) | (...) | (...) }[];
                          }
                          | {
                              description?: string
                              | null;
                              id: string;
                              lower_bound?: number | null;
                              name: string;
                              optimization_direction: "MINIMIZE" | "MAXIMIZE" | "NONE";
                              type: "CONTINUOUS";
                              upper_bound?: number | null;
                          }
                          | {
                              description?: string
                              | null;
                              id: string;
                              name: string;
                              type: "FREEFORM";
                          };
                  };
              };
              headers: { [name: string]: unknown };
          }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/datasets": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: { cursor?: string | null; limit?: number; name?: string | null };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                created_at: string;
                                description: string
                                | null;
                                example_count: number;
                                id: string;
                                metadata: { [key: string]: unknown };
                                name: string;
                                updated_at: string;
                            }[];
                            next_cursor: string
                            | null;
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path?: undefined;
              query?: { cursor?: string | null; limit?: number; name?: string | null };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              created_at: string;
                              description: string
                              | null;
                              example_count: number;
                              id: string;
                              metadata: { [key: string]: unknown };
                              name: string;
                              updated_at: string;
                          }[];
                          next_cursor: string
                          | null;
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      List datasets

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: { cursor?: string | null; limit?: number; name?: string | null };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • Optionalpath?: undefined
        • Optionalquery?: { cursor?: string | null; limit?: number; name?: string | null }
          • Optionalcursor?: string | null

            Cursor for pagination

          • Optionallimit?: number

            The max number of datasets to return at a time.

          • Optionalname?: string | null

            An optional dataset name to filter by

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            created_at: string;
                            description: string | null;
                            example_count: number;
                            id: string;
                            metadata: { [key: string]: unknown };
                            name: string;
                            updated_at: string;
                        }[];
                        next_cursor: string
                        | null;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          created_at: string;
                          description: string | null;
                          example_count: number;
                          id: string;
                          metadata: { [key: string]: unknown };
                          name: string;
                          updated_at: string;
                      }[];
                      next_cursor: string
                      | null;
                  };
              };
              headers: { [name: string]: unknown };
          }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/datasets/{dataset_id}/experiments": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { dataset_id: string };
                query?: { cursor?: string | null; limit?: number };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                created_at: string;
                                dataset_id: string;
                                dataset_version_id: string;
                                example_count: number;
                                failed_run_count: number;
                                id: string;
                                metadata: { [key: string]: unknown };
                                missing_run_count: number;
                                project_name: string | null;
                                repetitions: number;
                                successful_run_count: number;
                                updated_at: string;
                            }[];
                            next_cursor: string
                            | null;
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { dataset_id: string };
                query?: undefined;
            };
            requestBody: {
                content: {
                    "application/json": {
                        description?: string
                        | null;
                        metadata?: { [key: string]: unknown } | null;
                        name?: string | null;
                        repetitions?: number;
                        splits?: string[] | null;
                        version_id?: string | null;
                    };
                };
            };
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                created_at: string;
                                dataset_id: string;
                                dataset_version_id: string;
                                example_count: number;
                                failed_run_count: number;
                                id: string;
                                metadata: { [key: string]: unknown };
                                missing_run_count: number;
                                project_name: string | null;
                                repetitions: number;
                                successful_run_count: number;
                                updated_at: string;
                            };
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { dataset_id: string };
              query?: { cursor?: string | null; limit?: number };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              created_at: string;
                              dataset_id: string;
                              dataset_version_id: string;
                              example_count: number;
                              failed_run_count: number;
                              id: string;
                              metadata: { [key: string]: unknown };
                              missing_run_count: number;
                              project_name: string | null;
                              repetitions: number;
                              successful_run_count: number;
                              updated_at: string;
                          }[];
                          next_cursor: string
                          | null;
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      List experiments by dataset

      Retrieve a paginated list of experiments for the specified dataset.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { dataset_id: string };
            query?: { cursor?: string | null; limit?: number };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { dataset_id: string }
        • Optionalquery?: { cursor?: string | null; limit?: number }
          • Optionalcursor?: string | null

            Cursor for pagination (base64-encoded experiment ID)

          • Optionallimit?: number

            The max number of experiments to return at a time.

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            created_at: string;
                            dataset_id: string;
                            dataset_version_id: string;
                            example_count: number;
                            failed_run_count: number;
                            id: string;
                            metadata: { [key: string]: unknown };
                            missing_run_count: number;
                            project_name: string | null;
                            repetitions: number;
                            successful_run_count: number;
                            updated_at: string;
                        }[];
                        next_cursor: string
                        | null;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          created_at: string;
                          dataset_id: string;
                          dataset_version_id: string;
                          example_count: number;
                          failed_run_count: number;
                          id: string;
                          metadata: { [key: string]: unknown };
                          missing_run_count: number;
                          project_name: string | null;
                          repetitions: number;
                          successful_run_count: number;
                          updated_at: string;
                      }[];
                      next_cursor: string
                      | null;
                  };
              };
              headers: { [name: string]: unknown };
          }

          Paginated list of experiments for the dataset

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • post: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { dataset_id: string };
              query?: undefined;
          };
          requestBody: {
              content: {
                  "application/json": {
                      description?: string
                      | null;
                      metadata?: { [key: string]: unknown } | null;
                      name?: string | null;
                      repetitions?: number;
                      splits?: string[] | null;
                      version_id?: string | null;
                  };
              };
          };
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              created_at: string;
                              dataset_id: string;
                              dataset_version_id: string;
                              example_count: number;
                              failed_run_count: number;
                              id: string;
                              metadata: { [key: string]: unknown };
                              missing_run_count: number;
                              project_name: string | null;
                              repetitions: number;
                              successful_run_count: number;
                              updated_at: string;
                          };
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Create experiment on a dataset

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { dataset_id: string };
            query?: undefined;
        }
      • requestBody: {
            content: {
                "application/json": {
                    description?: string | null;
                    metadata?: { [key: string]: unknown } | null;
                    name?: string | null;
                    repetitions?: number;
                    splits?: string[] | null;
                    version_id?: string | null;
                };
            };
        }
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            created_at: string;
                            dataset_id: string;
                            dataset_version_id: string;
                            example_count: number;
                            failed_run_count: number;
                            id: string;
                            metadata: { [key: string]: unknown };
                            missing_run_count: number;
                            project_name: string | null;
                            repetitions: number;
                            successful_run_count: number;
                            updated_at: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          created_at: string;
                          dataset_id: string;
                          dataset_version_id: string;
                          example_count: number;
                          failed_run_count: number;
                          id: string;
                          metadata: { [key: string]: unknown };
                          missing_run_count: number;
                          project_name: string | null;
                          repetitions: number;
                          successful_run_count: number;
                          updated_at: string;
                      };
                  };
              };
              headers: { [name: string]: unknown };
          }

          Experiment retrieved successfully

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Dataset or DatasetVersion not found

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/datasets/{id}": {
        delete: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { id: string };
                query?: undefined;
            };
            requestBody?: undefined;
            responses: {
                "204": { content?: undefined; headers: { [name: string]: unknown } };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { id: string };
                query?: undefined;
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                created_at: string;
                                description: string
                                | null;
                                example_count: number;
                                id: string;
                                metadata: { [key: string]: unknown };
                                name: string;
                                updated_at: string;
                            };
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • delete: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { id: string };
              query?: undefined;
          };
          requestBody?: undefined;
          responses: {
              "204": { content?: undefined; headers: { [name: string]: unknown } };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Delete dataset by ID

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id: string };
            query?: undefined;
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { id: string }
          • id: string

            The ID of the dataset to delete.

        • Optionalquery?: undefined
      • OptionalrequestBody?: undefined
      • responses: {
            "204": { content?: undefined; headers: { [name: string]: unknown } };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 204: { content?: undefined; headers: { [name: string]: unknown } }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Dataset not found

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Invalid dataset ID

    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { id: string };
              query?: undefined;
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              created_at: string;
                              description: string
                              | null;
                              example_count: number;
                              id: string;
                              metadata: { [key: string]: unknown };
                              name: string;
                              updated_at: string;
                          };
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Get dataset by ID

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id: string };
            query?: undefined;
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { id: string }
          • id: string

            The ID of the dataset

        • Optionalquery?: undefined
      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            created_at: string;
                            description: string | null;
                            example_count: number;
                            id: string;
                            metadata: { [key: string]: unknown };
                            name: string;
                            updated_at: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          created_at: string;
                          description: string | null;
                          example_count: number;
                          id: string;
                          metadata: { [key: string]: unknown };
                          name: string;
                          updated_at: string;
                      };
                  };
              };
              headers: { [name: string]: unknown };
          }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Not Found

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/datasets/{id}/csv": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { id: string };
                query?: { version_id?: string | null };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: { "text/csv": string };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { id: string };
              query?: { version_id?: string | null };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: { "text/csv": string };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Download dataset examples as CSV file

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id: string };
            query?: { version_id?: string | null };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { id: string }
          • id: string

            The ID of the dataset

        • Optionalquery?: { version_id?: string | null }
          • Optionalversion_id?: string | null

            The ID of the dataset version (if omitted, returns data from the latest version)

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: { "text/csv": string };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: { content: { "text/csv": string }; headers: { [name: string]: unknown } }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/datasets/{id}/examples": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { id: string };
                query?: { split?: string[] | null; version_id?: string | null };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                dataset_id: string;
                                examples: {
                                    id: string;
                                    input: { [key: string]: unknown };
                                    metadata: { [key: string]: unknown };
                                    output: { [key: string]: unknown };
                                    updated_at: string;
                                }[];
                                filtered_splits?: string[];
                                version_id: string;
                            };
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { id: string };
              query?: { split?: string[] | null; version_id?: string | null };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              dataset_id: string;
                              examples: {
                                  id: string;
                                  input: { [key: string]: unknown };
                                  metadata: { [key: string]: unknown };
                                  output: { [key: string]: unknown };
                                  updated_at: string;
                              }[];
                              filtered_splits?: string[];
                              version_id: string;
                          };
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Get examples from a dataset

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id: string };
            query?: { split?: string[] | null; version_id?: string | null };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { id: string }
          • id: string

            The ID of the dataset

        • Optionalquery?: { split?: string[] | null; version_id?: string | null }
          • Optionalsplit?: string[] | null

            List of dataset split identifiers (GlobalIDs or names) to filter by

          • Optionalversion_id?: string | null

            The ID of the dataset version (if omitted, returns data from the latest version)

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            dataset_id: string;
                            examples: {
                                id: string;
                                input: { [key: string]: unknown };
                                metadata: { [key: string]: unknown };
                                output: { [key: string]: unknown };
                                updated_at: string;
                            }[];
                            filtered_splits?: string[];
                            version_id: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          dataset_id: string;
                          examples: {
                              id: string;
                              input: { [key: string]: unknown };
                              metadata: { [key: string]: unknown };
                              output: { [key: string]: unknown };
                              updated_at: string;
                          }[];
                          filtered_splits?: string[];
                          version_id: string;
                      };
                  };
              };
              headers: { [name: string]: unknown };
          }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Not Found

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/datasets/{id}/jsonl/openai_evals": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { id: string };
                query?: { version_id?: string | null };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { id: string };
              query?: { version_id?: string | null };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Download dataset examples as OpenAI evals JSONL file

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id: string };
            query?: { version_id?: string | null };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { id: string }
          • id: string

            The ID of the dataset

        • Optionalquery?: { version_id?: string | null }
          • Optionalversion_id?: string | null

            The ID of the dataset version (if omitted, returns data from the latest version)

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Invalid dataset or version ID

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/datasets/{id}/jsonl/openai_ft": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { id: string };
                query?: { version_id?: string | null };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { id: string };
              query?: { version_id?: string | null };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Download dataset examples as OpenAI fine-tuning JSONL file

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id: string };
            query?: { version_id?: string | null };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { id: string }
          • id: string

            The ID of the dataset

        • Optionalquery?: { version_id?: string | null }
          • Optionalversion_id?: string | null

            The ID of the dataset version (if omitted, returns data from the latest version)

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Invalid dataset or version ID

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/datasets/{id}/versions": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { id: string };
                query?: { cursor?: string | null; limit?: number };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                created_at: string;
                                description: string
                                | null;
                                metadata: { [key: string]: unknown };
                                version_id: string;
                            }[];
                            next_cursor: string
                            | null;
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { id: string };
              query?: { cursor?: string | null; limit?: number };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              created_at: string;
                              description: string
                              | null;
                              metadata: { [key: string]: unknown };
                              version_id: string;
                          }[];
                          next_cursor: string
                          | null;
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      List dataset versions

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { id: string };
            query?: { cursor?: string | null; limit?: number };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { id: string }
          • id: string

            The ID of the dataset

        • Optionalquery?: { cursor?: string | null; limit?: number }
          • Optionalcursor?: string | null

            Cursor for pagination

          • Optionallimit?: number

            The max number of dataset versions to return at a time

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            created_at: string;
                            description: string | null;
                            metadata: { [key: string]: unknown };
                            version_id: string;
                        }[];
                        next_cursor: string
                        | null;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          created_at: string;
                          description: string | null;
                          metadata: { [key: string]: unknown };
                          version_id: string;
                      }[];
                      next_cursor: string
                      | null;
                  };
              };
              headers: { [name: string]: unknown };
          }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/datasets/upload": {
        delete?: undefined;
        get?: undefined;
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: { sync?: boolean };
            };
            requestBody?: {
                content: {
                    "application/json": {
                        action?: "create"
                        | "append";
                        description?: string;
                        inputs: Record<string, unknown>[];
                        metadata?: Record<string, unknown>[];
                        name: string;
                        outputs?: Record<string, unknown>[];
                        span_ids?: (string | null)[];
                        splits?: (string | string[] | null)[];
                    };
                    "multipart/form-data": {
                        action?: "create"
                        | "append";
                        description?: string;
                        file: string;
                        "input_keys[]": string[];
                        "metadata_keys[]"?: string[];
                        name: string;
                        "output_keys[]": string[];
                        span_id_key?: string;
                        "split_keys[]"?: string[];
                    };
                };
            };
            responses: {
                "200": {
                    content: {
                        "application/json": | {
                            data: { dataset_id: string; version_id: string };
                        }
                        | null;
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "409": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • Optionalget?: undefined
    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • post: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path?: undefined;
              query?: { sync?: boolean };
          };
          requestBody?: {
              content: {
                  "application/json": {
                      action?: "create"
                      | "append";
                      description?: string;
                      inputs: Record<string, unknown>[];
                      metadata?: Record<string, unknown>[];
                      name: string;
                      outputs?: Record<string, unknown>[];
                      span_ids?: (string | null)[];
                      splits?: (string | string[] | null)[];
                  };
                  "multipart/form-data": {
                      action?: "create"
                      | "append";
                      description?: string;
                      file: string;
                      "input_keys[]": string[];
                      "metadata_keys[]"?: string[];
                      name: string;
                      "output_keys[]": string[];
                      span_id_key?: string;
                      "split_keys[]"?: string[];
                  };
              };
          };
          responses: {
              "200": {
                  content: {
                      "application/json": | {
                          data: { dataset_id: string; version_id: string };
                      }
                      | null;
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "409": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Upload dataset from JSON, JSONL, CSV, or PyArrow

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: { sync?: boolean };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • Optionalpath?: undefined
        • Optionalquery?: { sync?: boolean }
          • Optionalsync?: boolean

            If true, fulfill request synchronously and return JSON containing dataset_id.

      • OptionalrequestBody?: {
            content: {
                "application/json": {
                    action?: "create" | "append";
                    description?: string;
                    inputs: Record<string, unknown>[];
                    metadata?: Record<string, unknown>[];
                    name: string;
                    outputs?: Record<string, unknown>[];
                    span_ids?: (string | null)[];
                    splits?: (string | string[] | null)[];
                };
                "multipart/form-data": {
                    action?: "create"
                    | "append";
                    description?: string;
                    file: string;
                    "input_keys[]": string[];
                    "metadata_keys[]"?: string[];
                    name: string;
                    "output_keys[]": string[];
                    span_id_key?: string;
                    "split_keys[]"?: string[];
                };
            };
        }
      • responses: {
            "200": {
                content: {
                    "application/json":
                        | { data: { dataset_id: string; version_id: string } }
                        | null;
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "409": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json":
                      | { data: { dataset_id: string; version_id: string } }
                      | null;
              };
              headers: { [name: string]: unknown };
          }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 409: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Dataset of the same name already exists

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Invalid request body

    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/document_annotations": {
        delete?: undefined;
        get?: undefined;
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: { sync?: boolean };
            };
            requestBody: {
                content: {
                    "application/json": {
                        data: {
                            annotator_kind: "LLM"
                            | "CODE"
                            | "HUMAN";
                            document_position: number;
                            identifier?: string;
                            metadata?: { [key: string]: unknown } | null;
                            name: string;
                            result?:
                                | {
                                    explanation?: string
                                    | null;
                                    label?: string | null;
                                    score?: number | null;
                                }
                                | null;
                            span_id: string;
                        }[];
                    };
                };
            };
            responses: {
                "200": {
                    content: { "application/json": { data: { id: string }[] } };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • Optionalget?: undefined
    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • post: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path?: undefined;
              query?: { sync?: boolean };
          };
          requestBody: {
              content: {
                  "application/json": {
                      data: {
                          annotator_kind: "LLM"
                          | "CODE"
                          | "HUMAN";
                          document_position: number;
                          identifier?: string;
                          metadata?: { [key: string]: unknown } | null;
                          name: string;
                          result?:
                              | {
                                  explanation?: string
                                  | null;
                                  label?: string | null;
                                  score?: number | null;
                              }
                              | null;
                          span_id: string;
                      }[];
                  };
              };
          };
          responses: {
              "200": {
                  content: { "application/json": { data: { id: string }[] } };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Annotate Span Documents

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: { sync?: boolean };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • Optionalpath?: undefined
        • Optionalquery?: { sync?: boolean }
          • Optionalsync?: boolean

            If set to true, the annotations are inserted synchronously.

      • requestBody: {
            content: {
                "application/json": {
                    data: {
                        annotator_kind: "LLM" | "CODE" | "HUMAN";
                        document_position: number;
                        identifier?: string;
                        metadata?: { [key: string]: unknown } | null;
                        name: string;
                        result?:
                            | {
                                explanation?: string
                                | null;
                                label?: string | null;
                                score?: number | null;
                            }
                            | null;
                        span_id: string;
                    }[];
                };
            };
        }
      • responses: {
            "200": {
                content: { "application/json": { data: { id: string }[] } };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: { "application/json": { data: { id: string }[] } };
              headers: { [name: string]: unknown };
          }

          Span document annotation inserted successfully

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Span not found

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Invalid request - non-empty identifier not supported

    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/evaluations": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: { project_name?: string | null };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: { "application/json": unknown };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post: {
            parameters: {
                cookie?: undefined;
                header?: {
                    "content-encoding"?: string
                    | null;
                    "content-type"?: string | null;
                };
                path?: undefined;
                query?: undefined;
            };
            requestBody: {
                content: {
                    "application/x-pandas-arrow": string;
                    "application/x-protobuf": string;
                };
            };
            responses: {
                "204": { content?: undefined; headers: { [name: string]: unknown } };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "415": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path?: undefined;
              query?: { project_name?: string | null };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: { "application/json": unknown };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Get span, trace, or document evaluations from a project

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: { project_name?: string | null };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • Optionalpath?: undefined
        • Optionalquery?: { project_name?: string | null }
          • Optionalproject_name?: string | null

            The name of the project to get evaluations from (if omitted, evaluations will be drawn from the default project)

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: { "application/json": unknown };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: { "application/json": unknown };
              headers: { [name: string]: unknown };
          }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Not Found

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • post: {
          parameters: {
              cookie?: undefined;
              header?: {
                  "content-encoding"?: string | null;
                  "content-type"?: string | null;
              };
              path?: undefined;
              query?: undefined;
          };
          requestBody: {
              content: {
                  "application/x-pandas-arrow": string;
                  "application/x-protobuf": string;
              };
          };
          responses: {
              "204": { content?: undefined; headers: { [name: string]: unknown } };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "415": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Add span, trace, or document evaluations

      • parameters: {
            cookie?: undefined;
            header?: {
                "content-encoding"?: string | null;
                "content-type"?: string | null;
            };
            path?: undefined;
            query?: undefined;
        }
      • requestBody: {
            content: {
                "application/x-pandas-arrow": string;
                "application/x-protobuf": string;
            };
        }
      • responses: {
            "204": { content?: undefined; headers: { [name: string]: unknown } };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "415": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 204: { content?: undefined; headers: { [name: string]: unknown } }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 415: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unsupported content type, only gzipped protobuf and pandas-arrow are supported

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/experiment_evaluations": {
        delete?: undefined;
        get?: undefined;
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            requestBody: {
                content: {
                    "application/json": {
                        annotator_kind: "LLM"
                        | "CODE"
                        | "HUMAN";
                        end_time: string;
                        error?: string | null;
                        experiment_run_id: string;
                        metadata?: { [key: string]: unknown } | null;
                        name: string;
                        result?:
                            | {
                                explanation?: string
                                | null;
                                label?: string | null;
                                score?: number | null;
                            }
                            | null;
                        start_time: string;
                        trace_id?: string
                        | null;
                    };
                };
            };
            responses: {
                "200": {
                    content: { "application/json": { data: { id: string } } };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • Optionalget?: undefined
    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • post: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path?: undefined;
              query?: undefined;
          };
          requestBody: {
              content: {
                  "application/json": {
                      annotator_kind: "LLM"
                      | "CODE"
                      | "HUMAN";
                      end_time: string;
                      error?: string | null;
                      experiment_run_id: string;
                      metadata?: { [key: string]: unknown } | null;
                      name: string;
                      result?:
                          | {
                              explanation?: string
                              | null;
                              label?: string | null;
                              score?: number | null;
                          }
                          | null;
                      start_time: string;
                      trace_id?: string
                      | null;
                  };
              };
          };
          responses: {
              "200": {
                  content: { "application/json": { data: { id: string } } };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Create or update evaluation for an experiment run

      • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
      • requestBody: {
            content: {
                "application/json": {
                    annotator_kind: "LLM" | "CODE" | "HUMAN";
                    end_time: string;
                    error?: string | null;
                    experiment_run_id: string;
                    metadata?: { [key: string]: unknown } | null;
                    name: string;
                    result?:
                        | {
                            explanation?: string
                            | null;
                            label?: string | null;
                            score?: number | null;
                        }
                        | null;
                    start_time: string;
                    trace_id?: string
                    | null;
                };
            };
        }
      • responses: {
            "200": {
                content: { "application/json": { data: { id: string } } };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: { "application/json": { data: { id: string } } };
              headers: { [name: string]: unknown };
          }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Experiment run not found

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/experiments/{experiment_id}": {
        delete: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { experiment_id: string };
                query?: { delete_project?: boolean };
            };
            requestBody?: undefined;
            responses: {
                "204": { content?: undefined; headers: { [name: string]: unknown } };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { experiment_id: string };
                query?: undefined;
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                created_at: string;
                                dataset_id: string;
                                dataset_version_id: string;
                                example_count: number;
                                failed_run_count: number;
                                id: string;
                                metadata: { [key: string]: unknown };
                                missing_run_count: number;
                                project_name: string | null;
                                repetitions: number;
                                successful_run_count: number;
                                updated_at: string;
                            };
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • delete: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { experiment_id: string };
              query?: { delete_project?: boolean };
          };
          requestBody?: undefined;
          responses: {
              "204": { content?: undefined; headers: { [name: string]: unknown } };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Delete experiment by ID

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { experiment_id: string };
            query?: { delete_project?: boolean };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { experiment_id: string }
        • Optionalquery?: { delete_project?: boolean }
          • Optionaldelete_project?: boolean

            If true, also delete the project associated with the experiment that contains traces and spans for the experiment tasks.

      • OptionalrequestBody?: undefined
      • responses: {
            "204": { content?: undefined; headers: { [name: string]: unknown } };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 204: { content?: undefined; headers: { [name: string]: unknown } }

          Experiment deleted successfully

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Experiment not found

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { experiment_id: string };
              query?: undefined;
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              created_at: string;
                              dataset_id: string;
                              dataset_version_id: string;
                              example_count: number;
                              failed_run_count: number;
                              id: string;
                              metadata: { [key: string]: unknown };
                              missing_run_count: number;
                              project_name: string | null;
                              repetitions: number;
                              successful_run_count: number;
                              updated_at: string;
                          };
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Get experiment by ID

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { experiment_id: string };
            query?: undefined;
        }
      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            created_at: string;
                            dataset_id: string;
                            dataset_version_id: string;
                            example_count: number;
                            failed_run_count: number;
                            id: string;
                            metadata: { [key: string]: unknown };
                            missing_run_count: number;
                            project_name: string | null;
                            repetitions: number;
                            successful_run_count: number;
                            updated_at: string;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          created_at: string;
                          dataset_id: string;
                          dataset_version_id: string;
                          example_count: number;
                          failed_run_count: number;
                          id: string;
                          metadata: { [key: string]: unknown };
                          missing_run_count: number;
                          project_name: string | null;
                          repetitions: number;
                          successful_run_count: number;
                          updated_at: string;
                      };
                  };
              };
              headers: { [name: string]: unknown };
          }

          Experiment retrieved successfully

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Experiment not found

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/experiments/{experiment_id}/csv": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { experiment_id: string };
                query?: undefined;
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: { "application/json": unknown; "text/csv": string };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { experiment_id: string };
              query?: undefined;
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: { "application/json": unknown; "text/csv": string };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Download experiment runs as a CSV file

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { experiment_id: string };
            query?: undefined;
        }
      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: { "application/json": unknown; "text/csv": string };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: { "application/json": unknown; "text/csv": string };
              headers: { [name: string]: unknown };
          }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/experiments/{experiment_id}/incomplete-evaluations": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { experiment_id: string };
                query?: {
                    cursor?: string | null;
                    evaluation_name?: string[];
                    limit?: number;
                };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                dataset_example: {
                                    id: string;
                                    input: { [key: string]: unknown };
                                    metadata: { [key: string]: unknown };
                                    output: { [key: string]: unknown };
                                    updated_at: string;
                                };
                                evaluation_names: string[];
                                experiment_run: {
                                    dataset_example_id: string;
                                    end_time: string;
                                    error?: string
                                    | null;
                                    experiment_id: string;
                                    id: string;
                                    output: unknown;
                                    repetition_number: number;
                                    start_time: string;
                                    trace_id?: string | null;
                                };
                            }[];
                            next_cursor: string
                            | null;
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "400": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { experiment_id: string };
              query?: {
                  cursor?: string | null;
                  evaluation_name?: string[];
                  limit?: number;
              };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              dataset_example: {
                                  id: string;
                                  input: { [key: string]: unknown };
                                  metadata: { [key: string]: unknown };
                                  output: { [key: string]: unknown };
                                  updated_at: string;
                              };
                              evaluation_names: string[];
                              experiment_run: {
                                  dataset_example_id: string;
                                  end_time: string;
                                  error?: string
                                  | null;
                                  experiment_id: string;
                                  id: string;
                                  output: unknown;
                                  repetition_number: number;
                                  start_time: string;
                                  trace_id?: string | null;
                              };
                          }[];
                          next_cursor: string
                          | null;
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "400": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Get incomplete evaluations for an experiment

      Get experiment runs that have incomplete evaluations.

      Returns runs with:
      - Missing evaluations (evaluator has not been run)
      - Failed evaluations (evaluator ran but has errors)
      
      Args:
          experiment_id: The ID of the experiment
          evaluation_name: List of evaluation names to check (required, at least one)
          cursor: Cursor for pagination
          limit: Maximum number of results to return
      
      Returns:
          Paginated list of runs with incomplete evaluations
      
      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { experiment_id: string };
            query?: {
                cursor?: string | null;
                evaluation_name?: string[];
                limit?: number;
            };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { experiment_id: string }
        • Optionalquery?: { cursor?: string | null; evaluation_name?: string[]; limit?: number }
          • Optionalcursor?: string | null

            Cursor for pagination

          • Optionalevaluation_name?: string[]

            Evaluation names to check

          • Optionallimit?: number

            Maximum number of runs with incomplete evaluations to return

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            dataset_example: {
                                id: string;
                                input: { [key: string]: unknown };
                                metadata: { [key: string]: unknown };
                                output: { [key: string]: unknown };
                                updated_at: string;
                            };
                            evaluation_names: string[];
                            experiment_run: {
                                dataset_example_id: string;
                                end_time: string;
                                error?: string
                                | null;
                                experiment_id: string;
                                id: string;
                                output: unknown;
                                repetition_number: number;
                                start_time: string;
                                trace_id?: string | null;
                            };
                        }[];
                        next_cursor: string
                        | null;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          dataset_example: {
                              id: string;
                              input: { [key: string]: unknown };
                              metadata: { [key: string]: unknown };
                              output: { [key: string]: unknown };
                              updated_at: string;
                          };
                          evaluation_names: string[];
                          experiment_run: {
                              dataset_example_id: string;
                              end_time: string;
                              error?: string
                              | null;
                              experiment_id: string;
                              id: string;
                              output: unknown;
                              repetition_number: number;
                              start_time: string;
                              trace_id?: string | null;
                          };
                      }[];
                      next_cursor: string
                      | null;
                  };
              };
              headers: { [name: string]: unknown };
          }

          Incomplete evaluations retrieved successfully

        • 400: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          No evaluator names provided

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Experiment not found

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Invalid cursor format

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/experiments/{experiment_id}/incomplete-runs": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { experiment_id: string };
                query?: { cursor?: string | null; limit?: number };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                dataset_example: {
                                    id: string;
                                    input: { [key: string]: unknown };
                                    metadata: { [key: string]: unknown };
                                    output: { [key: string]: unknown };
                                    updated_at: string;
                                };
                                repetition_numbers: number[];
                            }[];
                            next_cursor: string
                            | null;
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { experiment_id: string };
              query?: { cursor?: string | null; limit?: number };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              dataset_example: {
                                  id: string;
                                  input: { [key: string]: unknown };
                                  metadata: { [key: string]: unknown };
                                  output: { [key: string]: unknown };
                                  updated_at: string;
                              };
                              repetition_numbers: number[];
                          }[];
                          next_cursor: string
                          | null;
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Get incomplete runs for an experiment

      Get runs that need to be completed for this experiment.

      Returns all incomplete runs, including both missing runs (not yet attempted)
      and failed runs (attempted but have errors).
      
      Args:
          experiment_id: The ID of the experiment
          cursor: Cursor for pagination
          limit: Maximum number of results to return
      
      Returns:
          Paginated list of incomplete runs grouped by dataset example,
          with repetition numbers that need to be run
      
      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { experiment_id: string };
            query?: { cursor?: string | null; limit?: number };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { experiment_id: string }
        • Optionalquery?: { cursor?: string | null; limit?: number }
          • Optionalcursor?: string | null

            Cursor for pagination

          • Optionallimit?: number

            Maximum number of examples with incomplete runs to return

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            dataset_example: {
                                id: string;
                                input: { [key: string]: unknown };
                                metadata: { [key: string]: unknown };
                                output: { [key: string]: unknown };
                                updated_at: string;
                            };
                            repetition_numbers: number[];
                        }[];
                        next_cursor: string
                        | null;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          dataset_example: {
                              id: string;
                              input: { [key: string]: unknown };
                              metadata: { [key: string]: unknown };
                              output: { [key: string]: unknown };
                              updated_at: string;
                          };
                          repetition_numbers: number[];
                      }[];
                      next_cursor: string
                      | null;
                  };
              };
              headers: { [name: string]: unknown };
          }

          Incomplete runs retrieved successfully

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Experiment not found

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Invalid cursor format

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/experiments/{experiment_id}/json": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { experiment_id: string };
                query?: undefined;
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { experiment_id: string };
              query?: undefined;
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Download experiment runs as a JSON file

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { experiment_id: string };
            query?: undefined;
        }
      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 200: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Experiment not found

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/experiments/{experiment_id}/runs": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { experiment_id: string };
                query?: { cursor?: string | null; limit?: number | null };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                dataset_example_id: string;
                                end_time: string;
                                error?: string
                                | null;
                                experiment_id: string;
                                id: string;
                                output: unknown;
                                repetition_number: number;
                                start_time: string;
                                trace_id?: string | null;
                            }[];
                            next_cursor: string
                            | null;
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { experiment_id: string };
                query?: undefined;
            };
            requestBody: {
                content: {
                    "application/json": {
                        dataset_example_id: string;
                        end_time: string;
                        error?: string
                        | null;
                        output: unknown;
                        repetition_number: number;
                        start_time: string;
                        trace_id?: string | null;
                    };
                };
            };
            responses: {
                "200": {
                    content: { "application/json": { data: { id: string } } };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "409": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { experiment_id: string };
              query?: { cursor?: string | null; limit?: number | null };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              dataset_example_id: string;
                              end_time: string;
                              error?: string
                              | null;
                              experiment_id: string;
                              id: string;
                              output: unknown;
                              repetition_number: number;
                              start_time: string;
                              trace_id?: string | null;
                          }[];
                          next_cursor: string
                          | null;
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      List runs for an experiment

      Retrieve a paginated list of runs for an experiment

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { experiment_id: string };
            query?: { cursor?: string | null; limit?: number | null };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { experiment_id: string }
        • Optionalquery?: { cursor?: string | null; limit?: number | null }
          • Optionalcursor?: string | null

            Cursor for pagination (base64-encoded experiment run ID)

          • Optionallimit?: number | null

            The max number of experiment runs to return at a time. If not specified, returns all results.

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            dataset_example_id: string;
                            end_time: string;
                            error?: string | null;
                            experiment_id: string;
                            id: string;
                            output: unknown;
                            repetition_number: number;
                            start_time: string;
                            trace_id?: string | null;
                        }[];
                        next_cursor: string
                        | null;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          dataset_example_id: string;
                          end_time: string;
                          error?: string | null;
                          experiment_id: string;
                          id: string;
                          output: unknown;
                          repetition_number: number;
                          start_time: string;
                          trace_id?: string | null;
                      }[];
                      next_cursor: string
                      | null;
                  };
              };
              headers: { [name: string]: unknown };
          }

          Experiment runs retrieved successfully

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Experiment not found

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Invalid cursor format

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • post: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { experiment_id: string };
              query?: undefined;
          };
          requestBody: {
              content: {
                  "application/json": {
                      dataset_example_id: string;
                      end_time: string;
                      error?: string
                      | null;
                      output: unknown;
                      repetition_number: number;
                      start_time: string;
                      trace_id?: string | null;
                  };
              };
          };
          responses: {
              "200": {
                  content: { "application/json": { data: { id: string } } };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "409": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Create run for an experiment

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { experiment_id: string };
            query?: undefined;
        }
      • requestBody: {
            content: {
                "application/json": {
                    dataset_example_id: string;
                    end_time: string;
                    error?: string | null;
                    output: unknown;
                    repetition_number: number;
                    start_time: string;
                    trace_id?: string | null;
                };
            };
        }
      • responses: {
            "200": {
                content: { "application/json": { data: { id: string } } };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "409": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: { "application/json": { data: { id: string } } };
              headers: { [name: string]: unknown };
          }

          Experiment run created successfully

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Experiment or dataset example not found

        • 409: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Experiment run already exists with a successful result and cannot be updated

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/projects": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: {
                    cursor?: string | null;
                    include_dataset_evaluator_projects?: boolean;
                    include_experiment_projects?: boolean;
                    limit?: number;
                };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: { description?: string
                            | null; id: string; name: string }[];
                            next_cursor: string | null;
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            requestBody: {
                content: {
                    "application/json": { description?: string
                    | null; name: string };
                };
            };
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: { description?: string
                            | null; id: string; name: string };
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path?: undefined;
              query?: {
                  cursor?: string | null;
                  include_dataset_evaluator_projects?: boolean;
                  include_experiment_projects?: boolean;
                  limit?: number;
              };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: { description?: string
                          | null; id: string; name: string }[];
                          next_cursor: string | null;
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      List all projects

      Retrieve a paginated list of all projects in the system.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: {
                cursor?: string | null;
                include_dataset_evaluator_projects?: boolean;
                include_experiment_projects?: boolean;
                limit?: number;
            };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • Optionalpath?: undefined
        • Optionalquery?: {
              cursor?: string | null;
              include_dataset_evaluator_projects?: boolean;
              include_experiment_projects?: boolean;
              limit?: number;
          }
          • Optionalcursor?: string | null

            Cursor for pagination (project ID)

          • Optionalinclude_dataset_evaluator_projects?: boolean

            Include dataset evaluator projects in the response. Dataset evaluator projects are created when running experiments with persisted evaluators.

          • Optionalinclude_experiment_projects?: boolean

            Include experiment projects in the response. Experiment projects are created from running experiments.

          • Optionallimit?: number

            The max number of projects to return at a time.

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: { description?: string | null; id: string; name: string }[];
                        next_cursor: string | null;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: { description?: string | null; id: string; name: string }[];
                      next_cursor: string | null;
                  };
              };
              headers: { [name: string]: unknown };
          }

          A list of projects with pagination information

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • post: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path?: undefined;
              query?: undefined;
          };
          requestBody: {
              content: {
                  "application/json": { description?: string
                  | null; name: string };
              };
          };
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: { description?: string
                          | null; id: string; name: string };
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Create a new project

      Create a new project with the specified configuration.

      • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
      • requestBody: {
            content: {
                "application/json": { description?: string | null; name: string };
            };
        }
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: { description?: string | null; id: string; name: string };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: { description?: string | null; id: string; name: string };
                  };
              };
              headers: { [name: string]: unknown };
          }

          The newly created project

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/projects/{project_identifier}": {
        delete: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { project_identifier: string };
                query?: undefined;
            };
            requestBody?: undefined;
            responses: {
                "204": { content?: undefined; headers: { [name: string]: unknown } };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { project_identifier: string };
                query?: undefined;
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: { description?: string
                            | null; id: string; name: string };
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { project_identifier: string };
                query?: undefined;
            };
            requestBody: {
                content: { "application/json": { description?: string
                | null } };
            };
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: { description?: string
                            | null; id: string; name: string };
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        trace?: undefined;
    }

    Type Declaration

    • delete: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { project_identifier: string };
              query?: undefined;
          };
          requestBody?: undefined;
          responses: {
              "204": { content?: undefined; headers: { [name: string]: unknown } };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Delete a project by ID or name

      Delete an existing project and all its associated data. The project identifier is either project ID or project name. The default project cannot be deleted. Note: When using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { project_identifier: string };
            query?: undefined;
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { project_identifier: string }
          • project_identifier: string

            The project identifier: either project ID or project name. If using a project name, it cannot contain slash (/), question mark (?), or pound sign (#) characters.

        • Optionalquery?: undefined
      • OptionalrequestBody?: undefined
      • responses: {
            "204": { content?: undefined; headers: { [name: string]: unknown } };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 204: { content?: undefined; headers: { [name: string]: unknown } }

          No content returned on successful deletion

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Not Found

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { project_identifier: string };
              query?: undefined;
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: { description?: string
                          | null; id: string; name: string };
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Get project by ID or name

      Retrieve a specific project using its unique identifier: either project ID or project name. Note: When using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { project_identifier: string };
            query?: undefined;
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { project_identifier: string }
          • project_identifier: string

            The project identifier: either project ID or project name. If using a project name, it cannot contain slash (/), question mark (?), or pound sign (#) characters.

        • Optionalquery?: undefined
      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: { description?: string | null; id: string; name: string };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: { description?: string | null; id: string; name: string };
                  };
              };
              headers: { [name: string]: unknown };
          }

          The requested project

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Not Found

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • put: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { project_identifier: string };
              query?: undefined;
          };
          requestBody: {
              content: { "application/json": { description?: string
              | null } };
          };
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: { description?: string
                          | null; id: string; name: string };
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Update a project by ID or name

      Update an existing project with new configuration. Project names cannot be changed. The project identifier is either project ID or project name. Note: When using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { project_identifier: string };
            query?: undefined;
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { project_identifier: string }
          • project_identifier: string

            The project identifier: either project ID or project name. If using a project name, it cannot contain slash (/), question mark (?), or pound sign (#) characters.

        • Optionalquery?: undefined
      • requestBody: { content: { "application/json": { description?: string | null } } }
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: { description?: string | null; id: string; name: string };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: { description?: string | null; id: string; name: string };
                  };
              };
              headers: { [name: string]: unknown };
          }

          The updated project

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Not Found

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionaltrace?: undefined
    "/v1/projects/{project_identifier}/session_annotations": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { project_identifier: string };
                query: {
                    cursor?: string | null;
                    exclude_annotation_names?: string[] | null;
                    include_annotation_names?: string[] | null;
                    limit?: number;
                    session_ids: string[];
                };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                annotator_kind: "LLM"
                                | "CODE"
                                | "HUMAN";
                                created_at: string;
                                id: string;
                                identifier?: string;
                                metadata?: { [key: string]: unknown } | null;
                                name: string;
                                result?:
                                    | {
                                        explanation?: (...)
                                        | (...)
                                        | (...);
                                        label?: (...) | (...) | (...);
                                        score?: (...) | (...) | (...);
                                    }
                                    | null;
                                session_id: string;
                                source: "API"
                                | "APP";
                                updated_at: string;
                                user_id: string | null;
                            }[];
                            next_cursor: string
                            | null;
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { project_identifier: string };
              query: {
                  cursor?: string | null;
                  exclude_annotation_names?: string[] | null;
                  include_annotation_names?: string[] | null;
                  limit?: number;
                  session_ids: string[];
              };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              annotator_kind: "LLM"
                              | "CODE"
                              | "HUMAN";
                              created_at: string;
                              id: string;
                              identifier?: string;
                              metadata?: { [key: string]: unknown } | null;
                              name: string;
                              result?:
                                  | {
                                      explanation?: (...)
                                      | (...)
                                      | (...);
                                      label?: (...) | (...) | (...);
                                      score?: (...) | (...) | (...);
                                  }
                                  | null;
                              session_id: string;
                              source: "API"
                              | "APP";
                              updated_at: string;
                              user_id: string | null;
                          }[];
                          next_cursor: string
                          | null;
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Get session annotations for a list of session_ids.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { project_identifier: string };
            query: {
                cursor?: string | null;
                exclude_annotation_names?: string[] | null;
                include_annotation_names?: string[] | null;
                limit?: number;
                session_ids: string[];
            };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { project_identifier: string }
          • project_identifier: string

            The project identifier: either project ID or project name. If using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters.

        • query: {
              cursor?: string | null;
              exclude_annotation_names?: string[] | null;
              include_annotation_names?: string[] | null;
              limit?: number;
              session_ids: string[];
          }
          • Optionalcursor?: string | null

            A cursor for pagination

          • Optionalexclude_annotation_names?: string[] | null

            Optional list of annotation names to exclude from results.

          • Optionalinclude_annotation_names?: string[] | null

            Optional list of annotation names to include. If provided, only annotations with these names will be returned. 'note' annotations are excluded by default unless explicitly included in this list.

          • Optionallimit?: number

            The maximum number of annotations to return in a single request

          • session_ids: string[]

            One or more session id to fetch annotations for

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            annotator_kind: "LLM" | "CODE" | "HUMAN";
                            created_at: string;
                            id: string;
                            identifier?: string;
                            metadata?: { [key: string]: unknown } | null;
                            name: string;
                            result?:
                                | {
                                    explanation?: (...)
                                    | (...)
                                    | (...);
                                    label?: (...) | (...) | (...);
                                    score?: (...) | (...) | (...);
                                }
                                | null;
                            session_id: string;
                            source: "API"
                            | "APP";
                            updated_at: string;
                            user_id: string | null;
                        }[];
                        next_cursor: string
                        | null;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          annotator_kind: "LLM" | "CODE" | "HUMAN";
                          created_at: string;
                          id: string;
                          identifier?: string;
                          metadata?: { [key: string]: unknown } | null;
                          name: string;
                          result?:
                              | {
                                  explanation?: (...)
                                  | (...)
                                  | (...);
                                  label?: (...) | (...) | (...);
                                  score?: (...) | (...) | (...);
                              }
                              | null;
                          session_id: string;
                          source: "API"
                          | "APP";
                          updated_at: string;
                          user_id: string | null;
                      }[];
                      next_cursor: string
                      | null;
                  };
              };
              headers: { [name: string]: unknown };
          }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Project or sessions not found

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Invalid parameters

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/projects/{project_identifier}/span_annotations": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { project_identifier: string };
                query: {
                    cursor?: string | null;
                    exclude_annotation_names?: string[] | null;
                    include_annotation_names?: string[] | null;
                    limit?: number;
                    span_ids: string[];
                };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                annotator_kind: "LLM"
                                | "CODE"
                                | "HUMAN";
                                created_at: string;
                                id: string;
                                identifier?: string;
                                metadata?: { [key: string]: unknown } | null;
                                name: string;
                                result?:
                                    | {
                                        explanation?: (...)
                                        | (...)
                                        | (...);
                                        label?: (...) | (...) | (...);
                                        score?: (...) | (...) | (...);
                                    }
                                    | null;
                                source: "API"
                                | "APP";
                                span_id: string;
                                updated_at: string;
                                user_id: string | null;
                            }[];
                            next_cursor: string
                            | null;
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { project_identifier: string };
              query: {
                  cursor?: string | null;
                  exclude_annotation_names?: string[] | null;
                  include_annotation_names?: string[] | null;
                  limit?: number;
                  span_ids: string[];
              };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              annotator_kind: "LLM"
                              | "CODE"
                              | "HUMAN";
                              created_at: string;
                              id: string;
                              identifier?: string;
                              metadata?: { [key: string]: unknown } | null;
                              name: string;
                              result?:
                                  | {
                                      explanation?: (...)
                                      | (...)
                                      | (...);
                                      label?: (...) | (...) | (...);
                                      score?: (...) | (...) | (...);
                                  }
                                  | null;
                              source: "API"
                              | "APP";
                              span_id: string;
                              updated_at: string;
                              user_id: string | null;
                          }[];
                          next_cursor: string
                          | null;
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Get span annotations for a list of span_ids.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { project_identifier: string };
            query: {
                cursor?: string | null;
                exclude_annotation_names?: string[] | null;
                include_annotation_names?: string[] | null;
                limit?: number;
                span_ids: string[];
            };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { project_identifier: string }
          • project_identifier: string

            The project identifier: either project ID or project name. If using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters.

        • query: {
              cursor?: string | null;
              exclude_annotation_names?: string[] | null;
              include_annotation_names?: string[] | null;
              limit?: number;
              span_ids: string[];
          }
          • Optionalcursor?: string | null

            A cursor for pagination

          • Optionalexclude_annotation_names?: string[] | null

            Optional list of annotation names to exclude from results.

          • Optionalinclude_annotation_names?: string[] | null

            Optional list of annotation names to include. If provided, only annotations with these names will be returned. 'note' annotations are excluded by default unless explicitly included in this list.

          • Optionallimit?: number

            The maximum number of annotations to return in a single request

          • span_ids: string[]

            One or more span id to fetch annotations for

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            annotator_kind: "LLM" | "CODE" | "HUMAN";
                            created_at: string;
                            id: string;
                            identifier?: string;
                            metadata?: { [key: string]: unknown } | null;
                            name: string;
                            result?:
                                | {
                                    explanation?: (...)
                                    | (...)
                                    | (...);
                                    label?: (...) | (...) | (...);
                                    score?: (...) | (...) | (...);
                                }
                                | null;
                            source: "API"
                            | "APP";
                            span_id: string;
                            updated_at: string;
                            user_id: string | null;
                        }[];
                        next_cursor: string
                        | null;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          annotator_kind: "LLM" | "CODE" | "HUMAN";
                          created_at: string;
                          id: string;
                          identifier?: string;
                          metadata?: { [key: string]: unknown } | null;
                          name: string;
                          result?:
                              | {
                                  explanation?: (...)
                                  | (...)
                                  | (...);
                                  label?: (...) | (...) | (...);
                                  score?: (...) | (...) | (...);
                              }
                              | null;
                          source: "API"
                          | "APP";
                          span_id: string;
                          updated_at: string;
                          user_id: string | null;
                      }[];
                      next_cursor: string
                      | null;
                  };
              };
              headers: { [name: string]: unknown };
          }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Project or spans not found

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Invalid parameters

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/projects/{project_identifier}/spans": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { project_identifier: string };
                query?: {
                    cursor?: string | null;
                    end_time?: string | null;
                    limit?: number;
                    start_time?: string | null;
                };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                attributes?: { [key: string]: unknown };
                                context: { span_id: string; trace_id: string };
                                end_time: string;
                                events?: { attributes?: ...; name: ...; timestamp: ... }[];
                                id?: string;
                                name: string;
                                parent_id?: string | null;
                                span_kind: string;
                                start_time: string;
                                status_code: string;
                                status_message?: string;
                            }[];
                            next_cursor: string
                            | null;
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { project_identifier: string };
                query?: undefined;
            };
            requestBody: {
                content: {
                    "application/json": {
                        data: {
                            attributes?: { [key: string]: unknown };
                            context: { span_id: string; trace_id: string };
                            end_time: string;
                            events?: {
                                attributes?: (...) | (...);
                                name: string;
                                timestamp: string;
                            }[];
                            id?: string;
                            name: string;
                            parent_id?: string
                            | null;
                            span_kind: string;
                            start_time: string;
                            status_code: string;
                            status_message?: string;
                        }[];
                    };
                };
            };
            responses: {
                "202": {
                    content: {
                        "application/json": { total_queued: number; total_received: number };
                    };
                    headers: { [name: string]: unknown };
                };
                "400": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { project_identifier: string };
              query?: {
                  cursor?: string | null;
                  end_time?: string | null;
                  limit?: number;
                  start_time?: string | null;
              };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              attributes?: { [key: string]: unknown };
                              context: { span_id: string; trace_id: string };
                              end_time: string;
                              events?: { attributes?: ...; name: ...; timestamp: ... }[];
                              id?: string;
                              name: string;
                              parent_id?: string | null;
                              span_kind: string;
                              start_time: string;
                              status_code: string;
                              status_message?: string;
                          }[];
                          next_cursor: string
                          | null;
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      List spans with simple filters (no DSL)

      Return spans within a project filtered by time range. Supports cursor-based pagination.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { project_identifier: string };
            query?: {
                cursor?: string | null;
                end_time?: string | null;
                limit?: number;
                start_time?: string | null;
            };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { project_identifier: string }
          • project_identifier: string

            The project identifier: either project ID or project name. If using a project name, it cannot contain slash (/), question mark (?), or pound sign (#) characters.

        • Optionalquery?: {
              cursor?: string | null;
              end_time?: string | null;
              limit?: number;
              start_time?: string | null;
          }
          • Optionalcursor?: string | null

            Pagination cursor (Span Global ID)

          • Optionalend_time?: string | null

            Exclusive upper bound time

          • Optionallimit?: number

            Maximum number of spans to return

          • Optionalstart_time?: string | null

            Inclusive lower bound time

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            attributes?: { [key: string]: unknown };
                            context: { span_id: string; trace_id: string };
                            end_time: string;
                            events?: { attributes?: ...; name: ...; timestamp: ... }[];
                            id?: string;
                            name: string;
                            parent_id?: string | null;
                            span_kind: string;
                            start_time: string;
                            status_code: string;
                            status_message?: string;
                        }[];
                        next_cursor: string
                        | null;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          attributes?: { [key: string]: unknown };
                          context: { span_id: string; trace_id: string };
                          end_time: string;
                          events?: { attributes?: ...; name: ...; timestamp: ... }[];
                          id?: string;
                          name: string;
                          parent_id?: string | null;
                          span_kind: string;
                          start_time: string;
                          status_code: string;
                          status_message?: string;
                      }[];
                      next_cursor: string
                      | null;
                  };
              };
              headers: { [name: string]: unknown };
          }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Not Found

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • post: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { project_identifier: string };
              query?: undefined;
          };
          requestBody: {
              content: {
                  "application/json": {
                      data: {
                          attributes?: { [key: string]: unknown };
                          context: { span_id: string; trace_id: string };
                          end_time: string;
                          events?: {
                              attributes?: (...) | (...);
                              name: string;
                              timestamp: string;
                          }[];
                          id?: string;
                          name: string;
                          parent_id?: string
                          | null;
                          span_kind: string;
                          start_time: string;
                          status_code: string;
                          status_message?: string;
                      }[];
                  };
              };
          };
          responses: {
              "202": {
                  content: {
                      "application/json": { total_queued: number; total_received: number };
                  };
                  headers: { [name: string]: unknown };
              };
              "400": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Create spans

      Submit spans to be inserted into a project. If any spans are invalid or duplicates, no spans will be inserted.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { project_identifier: string };
            query?: undefined;
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { project_identifier: string }
          • project_identifier: string

            The project identifier: either project ID or project name. If using a project name, it cannot contain slash (/), question mark (?), or pound sign (#) characters.

        • Optionalquery?: undefined
      • requestBody: {
            content: {
                "application/json": {
                    data: {
                        attributes?: { [key: string]: unknown };
                        context: { span_id: string; trace_id: string };
                        end_time: string;
                        events?: { attributes?: (...) | (...); name: string; timestamp: string }[];
                        id?: string;
                        name: string;
                        parent_id?: string | null;
                        span_kind: string;
                        start_time: string;
                        status_code: string;
                        status_message?: string;
                    }[];
                };
            };
        }
      • responses: {
            "202": {
                content: {
                    "application/json": { total_queued: number; total_received: number };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 202: {
              content: {
                  "application/json": { total_queued: number; total_received: number };
              };
              headers: { [name: string]: unknown };
          }

          Successful Response

        • 400: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Bad Request

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Not Found

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/projects/{project_identifier}/spans/otlpv1": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { project_identifier: string };
                query?: {
                    cursor?: string | null;
                    end_time?: string | null;
                    limit?: number;
                    start_time?: string | null;
                };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                attributes?: { key?: ...; value?: ... }[]
                                | null;
                                dropped_attributes_count?: number | null;
                                dropped_events_count?: number | null;
                                dropped_links_count?: number | null;
                                end_time_unix_nano?: string | number | null;
                                events?:
                                    | {
                                        attributes?: ...;
                                        dropped_attributes_count?: ...;
                                        name?: ...;
                                        time_unix_nano?: ...;
                                    }[]
                                    | null;
                                flags?: number
                                | null;
                                kind?:
                                    | number
                                    | "SPAN_KIND_UNSPECIFIED"
                                    | "SPAN_KIND_INTERNAL"
                                    | "SPAN_KIND_SERVER"
                                    | "SPAN_KIND_CLIENT"
                                    | "SPAN_KIND_PRODUCER"
                                    | "SPAN_KIND_CONSUMER"
                                    | null;
                                links?: null;
                                name?: string
                                | null;
                                parent_span_id?: string | null;
                                span_id?: string | null;
                                start_time_unix_nano?: string | number | null;
                                status?:
                                    | {
                                        code?: (...)
                                        | (...)
                                        | (...);
                                        message?: (...) | (...) | (...);
                                    }
                                    | null;
                                trace_id?: string
                                | null;
                                trace_state?: string | null;
                            }[];
                            next_cursor: string
                            | null;
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { project_identifier: string };
              query?: {
                  cursor?: string | null;
                  end_time?: string | null;
                  limit?: number;
                  start_time?: string | null;
              };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              attributes?: { key?: ...; value?: ... }[]
                              | null;
                              dropped_attributes_count?: number | null;
                              dropped_events_count?: number | null;
                              dropped_links_count?: number | null;
                              end_time_unix_nano?: string | number | null;
                              events?:
                                  | {
                                      attributes?: ...;
                                      dropped_attributes_count?: ...;
                                      name?: ...;
                                      time_unix_nano?: ...;
                                  }[]
                                  | null;
                              flags?: number
                              | null;
                              kind?:
                                  | number
                                  | "SPAN_KIND_UNSPECIFIED"
                                  | "SPAN_KIND_INTERNAL"
                                  | "SPAN_KIND_SERVER"
                                  | "SPAN_KIND_CLIENT"
                                  | "SPAN_KIND_PRODUCER"
                                  | "SPAN_KIND_CONSUMER"
                                  | null;
                              links?: null;
                              name?: string
                              | null;
                              parent_span_id?: string | null;
                              span_id?: string | null;
                              start_time_unix_nano?: string | number | null;
                              status?:
                                  | {
                                      code?: (...)
                                      | (...)
                                      | (...);
                                      message?: (...) | (...) | (...);
                                  }
                                  | null;
                              trace_id?: string
                              | null;
                              trace_state?: string | null;
                          }[];
                          next_cursor: string
                          | null;
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Search spans with simple filters (no DSL)

      Return spans within a project filtered by time range. Supports cursor-based pagination.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { project_identifier: string };
            query?: {
                cursor?: string | null;
                end_time?: string | null;
                limit?: number;
                start_time?: string | null;
            };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { project_identifier: string }
          • project_identifier: string

            The project identifier: either project ID or project name. If using a project name, it cannot contain slash (/), question mark (?), or pound sign (#) characters.

        • Optionalquery?: {
              cursor?: string | null;
              end_time?: string | null;
              limit?: number;
              start_time?: string | null;
          }
          • Optionalcursor?: string | null

            Pagination cursor (Span Global ID)

          • Optionalend_time?: string | null

            Exclusive upper bound time

          • Optionallimit?: number

            Maximum number of spans to return

          • Optionalstart_time?: string | null

            Inclusive lower bound time

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            attributes?: { key?: ...; value?: ... }[] | null;
                            dropped_attributes_count?: number | null;
                            dropped_events_count?: number | null;
                            dropped_links_count?: number | null;
                            end_time_unix_nano?: string | number | null;
                            events?:
                                | {
                                    attributes?: ...;
                                    dropped_attributes_count?: ...;
                                    name?: ...;
                                    time_unix_nano?: ...;
                                }[]
                                | null;
                            flags?: number
                            | null;
                            kind?:
                                | number
                                | "SPAN_KIND_UNSPECIFIED"
                                | "SPAN_KIND_INTERNAL"
                                | "SPAN_KIND_SERVER"
                                | "SPAN_KIND_CLIENT"
                                | "SPAN_KIND_PRODUCER"
                                | "SPAN_KIND_CONSUMER"
                                | null;
                            links?: null;
                            name?: string
                            | null;
                            parent_span_id?: string | null;
                            span_id?: string | null;
                            start_time_unix_nano?: string | number | null;
                            status?:
                                | { code?: (...)
                                | (...)
                                | (...); message?: (...) | (...) | (...) }
                                | null;
                            trace_id?: string | null;
                            trace_state?: string | null;
                        }[];
                        next_cursor: string
                        | null;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          attributes?: { key?: ...; value?: ... }[] | null;
                          dropped_attributes_count?: number | null;
                          dropped_events_count?: number | null;
                          dropped_links_count?: number | null;
                          end_time_unix_nano?: string | number | null;
                          events?:
                              | {
                                  attributes?: ...;
                                  dropped_attributes_count?: ...;
                                  name?: ...;
                                  time_unix_nano?: ...;
                              }[]
                              | null;
                          flags?: number
                          | null;
                          kind?:
                              | number
                              | "SPAN_KIND_UNSPECIFIED"
                              | "SPAN_KIND_INTERNAL"
                              | "SPAN_KIND_SERVER"
                              | "SPAN_KIND_CLIENT"
                              | "SPAN_KIND_PRODUCER"
                              | "SPAN_KIND_CONSUMER"
                              | null;
                          links?: null;
                          name?: string
                          | null;
                          parent_span_id?: string | null;
                          span_id?: string | null;
                          start_time_unix_nano?: string | number | null;
                          status?:
                              | { code?: (...)
                              | (...)
                              | (...); message?: (...) | (...) | (...) }
                              | null;
                          trace_id?: string | null;
                          trace_state?: string | null;
                      }[];
                      next_cursor: string
                      | null;
                  };
              };
              headers: { [name: string]: unknown };
          }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Not Found

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/projects/{project_identifier}/trace_annotations": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { project_identifier: string };
                query: {
                    cursor?: string | null;
                    exclude_annotation_names?: string[] | null;
                    include_annotation_names?: string[] | null;
                    limit?: number;
                    trace_ids: string[];
                };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                annotator_kind: "LLM"
                                | "CODE"
                                | "HUMAN";
                                created_at: string;
                                id: string;
                                identifier?: string;
                                metadata?: { [key: string]: unknown } | null;
                                name: string;
                                result?:
                                    | {
                                        explanation?: (...)
                                        | (...)
                                        | (...);
                                        label?: (...) | (...) | (...);
                                        score?: (...) | (...) | (...);
                                    }
                                    | null;
                                source: "API"
                                | "APP";
                                trace_id: string;
                                updated_at: string;
                                user_id: string | null;
                            }[];
                            next_cursor: string
                            | null;
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { project_identifier: string };
              query: {
                  cursor?: string | null;
                  exclude_annotation_names?: string[] | null;
                  include_annotation_names?: string[] | null;
                  limit?: number;
                  trace_ids: string[];
              };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              annotator_kind: "LLM"
                              | "CODE"
                              | "HUMAN";
                              created_at: string;
                              id: string;
                              identifier?: string;
                              metadata?: { [key: string]: unknown } | null;
                              name: string;
                              result?:
                                  | {
                                      explanation?: (...)
                                      | (...)
                                      | (...);
                                      label?: (...) | (...) | (...);
                                      score?: (...) | (...) | (...);
                                  }
                                  | null;
                              source: "API"
                              | "APP";
                              trace_id: string;
                              updated_at: string;
                              user_id: string | null;
                          }[];
                          next_cursor: string
                          | null;
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Get trace annotations for a list of trace_ids.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { project_identifier: string };
            query: {
                cursor?: string | null;
                exclude_annotation_names?: string[] | null;
                include_annotation_names?: string[] | null;
                limit?: number;
                trace_ids: string[];
            };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { project_identifier: string }
          • project_identifier: string

            The project identifier: either project ID or project name. If using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters.

        • query: {
              cursor?: string | null;
              exclude_annotation_names?: string[] | null;
              include_annotation_names?: string[] | null;
              limit?: number;
              trace_ids: string[];
          }
          • Optionalcursor?: string | null

            A cursor for pagination

          • Optionalexclude_annotation_names?: string[] | null

            Optional list of annotation names to exclude from results.

          • Optionalinclude_annotation_names?: string[] | null

            Optional list of annotation names to include. If provided, only annotations with these names will be returned. 'note' annotations are excluded by default unless explicitly included in this list.

          • Optionallimit?: number

            The maximum number of annotations to return in a single request

          • trace_ids: string[]

            One or more trace id to fetch annotations for

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            annotator_kind: "LLM" | "CODE" | "HUMAN";
                            created_at: string;
                            id: string;
                            identifier?: string;
                            metadata?: { [key: string]: unknown } | null;
                            name: string;
                            result?:
                                | {
                                    explanation?: (...)
                                    | (...)
                                    | (...);
                                    label?: (...) | (...) | (...);
                                    score?: (...) | (...) | (...);
                                }
                                | null;
                            source: "API"
                            | "APP";
                            trace_id: string;
                            updated_at: string;
                            user_id: string | null;
                        }[];
                        next_cursor: string
                        | null;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          annotator_kind: "LLM" | "CODE" | "HUMAN";
                          created_at: string;
                          id: string;
                          identifier?: string;
                          metadata?: { [key: string]: unknown } | null;
                          name: string;
                          result?:
                              | {
                                  explanation?: (...)
                                  | (...)
                                  | (...);
                                  label?: (...) | (...) | (...);
                                  score?: (...) | (...) | (...);
                              }
                              | null;
                          source: "API"
                          | "APP";
                          trace_id: string;
                          updated_at: string;
                          user_id: string | null;
                      }[];
                      next_cursor: string
                      | null;
                  };
              };
              headers: { [name: string]: unknown };
          }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Project or traces not found

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Invalid parameters

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/prompt_versions/{prompt_version_id}": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { prompt_version_id: string };
                query?: undefined;
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                description?: string
                                | null;
                                id: string;
                                invocation_parameters:
                                    | {
                                        anthropic: {
                                            max_tokens: number;
                                            stop_sequences?: (...)
                                            | (...);
                                            temperature?: (...) | (...);
                                            thinking?: (...) | (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "anthropic";
                                    }
                                    | {
                                        aws: {
                                            max_tokens?: (...)
                                            | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "aws";
                                    }
                                    | {
                                        azure_openai: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_completion_tokens?: (...) | (...);
                                            max_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            reasoning_effort?:
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...);
                                            seed?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "azure_openai";
                                    }
                                    | {
                                        deepseek: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_completion_tokens?: (...) | (...);
                                            max_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            reasoning_effort?:
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...);
                                            seed?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "deepseek";
                                    }
                                    | {
                                        google: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_output_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            stop_sequences?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_k?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "google";
                                    }
                                    | {
                                        ollama: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_completion_tokens?: (...) | (...);
                                            max_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            reasoning_effort?:
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...);
                                            seed?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "ollama";
                                    }
                                    | {
                                        openai: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_completion_tokens?: (...) | (...);
                                            max_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            reasoning_effort?:
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...);
                                            seed?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "openai";
                                    }
                                    | {
                                        type: "xai";
                                        xai: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_completion_tokens?: (...) | (...);
                                            max_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            reasoning_effort?:
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...);
                                            seed?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                    };
                                model_name: string;
                                model_provider: | "OPENAI"
                                | "AZURE_OPENAI"
                                | "ANTHROPIC"
                                | "GOOGLE"
                                | "DEEPSEEK"
                                | "XAI"
                                | "OLLAMA"
                                | "AWS";
                                response_format?: | {
                                    json_schema: {
                                        description?: (...)
                                        | (...);
                                        name: string;
                                        schema?: (...) | (...);
                                        strict?: (...) | (...) | (...);
                                    };
                                    type: "json_schema";
                                }
                                | null;
                                template: | { messages: { content: ...; role: ... }[]; type: "chat" }
                                | { template: string; type: "string" };
                                template_format: "NONE" | "MUSTACHE" | "F_STRING";
                                template_type: "STR" | "CHAT";
                                tools?:
                                    | {
                                        disable_parallel_tool_calls?: boolean;
                                        tool_choice?: | { type: ... }
                                        | { type: ... }
                                        | { function_name: ...; type: ... }
                                        | { type: ... };
                                        tools: { function: ...; type: ... }[];
                                        type: "tools";
                                    }
                                    | null;
                            };
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { prompt_version_id: string };
              query?: undefined;
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              description?: string
                              | null;
                              id: string;
                              invocation_parameters:
                                  | {
                                      anthropic: {
                                          max_tokens: number;
                                          stop_sequences?: (...)
                                          | (...);
                                          temperature?: (...) | (...);
                                          thinking?: (...) | (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "anthropic";
                                  }
                                  | {
                                      aws: {
                                          max_tokens?: (...)
                                          | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "aws";
                                  }
                                  | {
                                      azure_openai: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_completion_tokens?: (...) | (...);
                                          max_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          reasoning_effort?:
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...);
                                          seed?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "azure_openai";
                                  }
                                  | {
                                      deepseek: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_completion_tokens?: (...) | (...);
                                          max_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          reasoning_effort?:
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...);
                                          seed?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "deepseek";
                                  }
                                  | {
                                      google: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_output_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          stop_sequences?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_k?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "google";
                                  }
                                  | {
                                      ollama: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_completion_tokens?: (...) | (...);
                                          max_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          reasoning_effort?:
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...);
                                          seed?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "ollama";
                                  }
                                  | {
                                      openai: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_completion_tokens?: (...) | (...);
                                          max_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          reasoning_effort?:
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...);
                                          seed?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "openai";
                                  }
                                  | {
                                      type: "xai";
                                      xai: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_completion_tokens?: (...) | (...);
                                          max_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          reasoning_effort?:
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...);
                                          seed?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                  };
                              model_name: string;
                              model_provider: | "OPENAI"
                              | "AZURE_OPENAI"
                              | "ANTHROPIC"
                              | "GOOGLE"
                              | "DEEPSEEK"
                              | "XAI"
                              | "OLLAMA"
                              | "AWS";
                              response_format?: | {
                                  json_schema: {
                                      description?: (...)
                                      | (...);
                                      name: string;
                                      schema?: (...) | (...);
                                      strict?: (...) | (...) | (...);
                                  };
                                  type: "json_schema";
                              }
                              | null;
                              template: | { messages: { content: ...; role: ... }[]; type: "chat" }
                              | { template: string; type: "string" };
                              template_format: "NONE" | "MUSTACHE" | "F_STRING";
                              template_type: "STR" | "CHAT";
                              tools?:
                                  | {
                                      disable_parallel_tool_calls?: boolean;
                                      tool_choice?: | { type: ... }
                                      | { type: ... }
                                      | { function_name: ...; type: ... }
                                      | { type: ... };
                                      tools: { function: ...; type: ... }[];
                                      type: "tools";
                                  }
                                  | null;
                          };
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Get prompt version by ID

      Retrieve a specific prompt version using its unique identifier. A prompt version contains the actual template and configuration.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { prompt_version_id: string };
            query?: undefined;
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { prompt_version_id: string }
          • prompt_version_id: string

            The ID of the prompt version.

        • Optionalquery?: undefined
      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            description?: string | null;
                            id: string;
                            invocation_parameters:
                                | {
                                    anthropic: {
                                        max_tokens: number;
                                        stop_sequences?: (...)
                                        | (...);
                                        temperature?: (...) | (...);
                                        thinking?: (...) | (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "anthropic";
                                }
                                | {
                                    aws: {
                                        max_tokens?: (...)
                                        | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "aws";
                                }
                                | {
                                    azure_openai: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_completion_tokens?: (...) | (...);
                                        max_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        reasoning_effort?:
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...);
                                        seed?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "azure_openai";
                                }
                                | {
                                    deepseek: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_completion_tokens?: (...) | (...);
                                        max_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        reasoning_effort?:
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...);
                                        seed?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "deepseek";
                                }
                                | {
                                    google: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_output_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        stop_sequences?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_k?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "google";
                                }
                                | {
                                    ollama: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_completion_tokens?: (...) | (...);
                                        max_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        reasoning_effort?:
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...);
                                        seed?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "ollama";
                                }
                                | {
                                    openai: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_completion_tokens?: (...) | (...);
                                        max_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        reasoning_effort?:
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...);
                                        seed?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "openai";
                                }
                                | {
                                    type: "xai";
                                    xai: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_completion_tokens?: (...) | (...);
                                        max_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        reasoning_effort?:
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...);
                                        seed?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                };
                            model_name: string;
                            model_provider: | "OPENAI"
                            | "AZURE_OPENAI"
                            | "ANTHROPIC"
                            | "GOOGLE"
                            | "DEEPSEEK"
                            | "XAI"
                            | "OLLAMA"
                            | "AWS";
                            response_format?: | {
                                json_schema: {
                                    description?: (...)
                                    | (...);
                                    name: string;
                                    schema?: (...) | (...);
                                    strict?: (...) | (...) | (...);
                                };
                                type: "json_schema";
                            }
                            | null;
                            template: | { messages: { content: ...; role: ... }[]; type: "chat" }
                            | { template: string; type: "string" };
                            template_format: "NONE" | "MUSTACHE" | "F_STRING";
                            template_type: "STR" | "CHAT";
                            tools?:
                                | {
                                    disable_parallel_tool_calls?: boolean;
                                    tool_choice?: | { type: ... }
                                    | { type: ... }
                                    | { function_name: ...; type: ... }
                                    | { type: ... };
                                    tools: { function: ...; type: ... }[];
                                    type: "tools";
                                }
                                | null;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          description?: string | null;
                          id: string;
                          invocation_parameters:
                              | {
                                  anthropic: {
                                      max_tokens: number;
                                      stop_sequences?: (...)
                                      | (...);
                                      temperature?: (...) | (...);
                                      thinking?: (...) | (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "anthropic";
                              }
                              | {
                                  aws: {
                                      max_tokens?: (...)
                                      | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "aws";
                              }
                              | {
                                  azure_openai: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_completion_tokens?: (...) | (...);
                                      max_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      reasoning_effort?:
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...);
                                      seed?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "azure_openai";
                              }
                              | {
                                  deepseek: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_completion_tokens?: (...) | (...);
                                      max_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      reasoning_effort?:
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...);
                                      seed?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "deepseek";
                              }
                              | {
                                  google: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_output_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      stop_sequences?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_k?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "google";
                              }
                              | {
                                  ollama: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_completion_tokens?: (...) | (...);
                                      max_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      reasoning_effort?:
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...);
                                      seed?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "ollama";
                              }
                              | {
                                  openai: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_completion_tokens?: (...) | (...);
                                      max_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      reasoning_effort?:
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...);
                                      seed?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "openai";
                              }
                              | {
                                  type: "xai";
                                  xai: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_completion_tokens?: (...) | (...);
                                      max_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      reasoning_effort?:
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...);
                                      seed?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                              };
                          model_name: string;
                          model_provider: | "OPENAI"
                          | "AZURE_OPENAI"
                          | "ANTHROPIC"
                          | "GOOGLE"
                          | "DEEPSEEK"
                          | "XAI"
                          | "OLLAMA"
                          | "AWS";
                          response_format?: | {
                              json_schema: {
                                  description?: (...)
                                  | (...);
                                  name: string;
                                  schema?: (...) | (...);
                                  strict?: (...) | (...) | (...);
                              };
                              type: "json_schema";
                          }
                          | null;
                          template: | { messages: { content: ...; role: ... }[]; type: "chat" }
                          | { template: string; type: "string" };
                          template_format: "NONE" | "MUSTACHE" | "F_STRING";
                          template_type: "STR" | "CHAT";
                          tools?:
                              | {
                                  disable_parallel_tool_calls?: boolean;
                                  tool_choice?: | { type: ... }
                                  | { type: ... }
                                  | { function_name: ...; type: ... }
                                  | { type: ... };
                                  tools: { function: ...; type: ... }[];
                                  type: "tools";
                              }
                              | null;
                      };
                  };
              };
              headers: { [name: string]: unknown };
          }

          The requested prompt version

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Not Found

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/prompt_versions/{prompt_version_id}/tags": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { prompt_version_id: string };
                query?: { cursor?: string | null; limit?: number };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: { description?: string
                            | null; id: string; name: string }[];
                            next_cursor: string | null;
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { prompt_version_id: string };
                query?: undefined;
            };
            requestBody: {
                content: {
                    "application/json": { description?: string
                    | null; name: string };
                };
            };
            responses: {
                "204": { content?: undefined; headers: { [name: string]: unknown } };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { prompt_version_id: string };
              query?: { cursor?: string | null; limit?: number };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: { description?: string
                          | null; id: string; name: string }[];
                          next_cursor: string | null;
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      List prompt version tags

      Retrieve all tags associated with a specific prompt version. Tags are used to identify and categorize different versions of a prompt.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { prompt_version_id: string };
            query?: { cursor?: string | null; limit?: number };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { prompt_version_id: string }
          • prompt_version_id: string

            The ID of the prompt version.

        • Optionalquery?: { cursor?: string | null; limit?: number }
          • Optionalcursor?: string | null

            Cursor for pagination (base64-encoded promptVersionTag ID)

          • Optionallimit?: number

            The max number of tags to return at a time.

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: { description?: string | null; id: string; name: string }[];
                        next_cursor: string | null;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: { description?: string | null; id: string; name: string }[];
                      next_cursor: string | null;
                  };
              };
              headers: { [name: string]: unknown };
          }

          A list of tags associated with the prompt version

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Not Found

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • post: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { prompt_version_id: string };
              query?: undefined;
          };
          requestBody: {
              content: {
                  "application/json": { description?: string
                  | null; name: string };
              };
          };
          responses: {
              "204": { content?: undefined; headers: { [name: string]: unknown } };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Add tag to prompt version

      Add a new tag to a specific prompt version. Tags help identify and categorize different versions of a prompt.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { prompt_version_id: string };
            query?: undefined;
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { prompt_version_id: string }
          • prompt_version_id: string

            The ID of the prompt version.

        • Optionalquery?: undefined
      • requestBody: {
            content: {
                "application/json": { description?: string | null; name: string };
            };
        }
      • responses: {
            "204": { content?: undefined; headers: { [name: string]: unknown } };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 204: { content?: undefined; headers: { [name: string]: unknown } }

          No content returned on successful tag creation

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Not Found

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/prompts": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: { cursor?: string | null; limit?: number };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                description?: string
                                | null;
                                id: string;
                                metadata?: { [key: string]: unknown } | null;
                                name: string;
                                source_prompt_id?: string | null;
                            }[];
                            next_cursor: string
                            | null;
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            requestBody: {
                content: {
                    "application/json": {
                        prompt: {
                            description?: string
                            | null;
                            metadata?: { [key: string]: unknown } | null;
                            name: string;
                            source_prompt_id?: string | null;
                        };
                        version: {
                            description?: string
                            | null;
                            invocation_parameters:
                                | {
                                    anthropic: {
                                        max_tokens: number;
                                        stop_sequences?: (...)[];
                                        temperature?: number;
                                        thinking?: { type: ... } | { budget_tokens: ...; type: ... };
                                        top_p?: number;
                                    };
                                    type: "anthropic";
                                }
                                | {
                                    aws: {
                                        max_tokens?: number;
                                        temperature?: number;
                                        top_p?: number;
                                    };
                                    type: "aws";
                                }
                                | {
                                    azure_openai: {
                                        frequency_penalty?: number;
                                        max_completion_tokens?: number;
                                        max_tokens?: number;
                                        presence_penalty?: number;
                                        reasoning_effort?: | "none"
                                        | "minimal"
                                        | "low"
                                        | "medium"
                                        | "high"
                                        | "xhigh";
                                        seed?: number;
                                        temperature?: number;
                                        top_p?: number;
                                    };
                                    type: "azure_openai";
                                }
                                | {
                                    deepseek: {
                                        frequency_penalty?: number;
                                        max_completion_tokens?: number;
                                        max_tokens?: number;
                                        presence_penalty?: number;
                                        reasoning_effort?: | "none"
                                        | "minimal"
                                        | "low"
                                        | "medium"
                                        | "high"
                                        | "xhigh";
                                        seed?: number;
                                        temperature?: number;
                                        top_p?: number;
                                    };
                                    type: "deepseek";
                                }
                                | {
                                    google: {
                                        frequency_penalty?: number;
                                        max_output_tokens?: number;
                                        presence_penalty?: number;
                                        stop_sequences?: (...)[];
                                        temperature?: number;
                                        top_k?: number;
                                        top_p?: number;
                                    };
                                    type: "google";
                                }
                                | {
                                    ollama: {
                                        frequency_penalty?: number;
                                        max_completion_tokens?: number;
                                        max_tokens?: number;
                                        presence_penalty?: number;
                                        reasoning_effort?: | "none"
                                        | "minimal"
                                        | "low"
                                        | "medium"
                                        | "high"
                                        | "xhigh";
                                        seed?: number;
                                        temperature?: number;
                                        top_p?: number;
                                    };
                                    type: "ollama";
                                }
                                | {
                                    openai: {
                                        frequency_penalty?: number;
                                        max_completion_tokens?: number;
                                        max_tokens?: number;
                                        presence_penalty?: number;
                                        reasoning_effort?: | "none"
                                        | "minimal"
                                        | "low"
                                        | "medium"
                                        | "high"
                                        | "xhigh";
                                        seed?: number;
                                        temperature?: number;
                                        top_p?: number;
                                    };
                                    type: "openai";
                                }
                                | {
                                    type: "xai";
                                    xai: {
                                        frequency_penalty?: number;
                                        max_completion_tokens?: number;
                                        max_tokens?: number;
                                        presence_penalty?: number;
                                        reasoning_effort?: | "none"
                                        | "minimal"
                                        | "low"
                                        | "medium"
                                        | "high"
                                        | "xhigh";
                                        seed?: number;
                                        temperature?: number;
                                        top_p?: number;
                                    };
                                };
                            model_name: string;
                            model_provider: | "OPENAI"
                            | "AZURE_OPENAI"
                            | "ANTHROPIC"
                            | "GOOGLE"
                            | "DEEPSEEK"
                            | "XAI"
                            | "OLLAMA"
                            | "AWS";
                            response_format?: | {
                                json_schema: {
                                    description?: string;
                                    name: string;
                                    schema?: { [key: ...]: ... };
                                    strict?: boolean;
                                };
                                type: "json_schema";
                            }
                            | null;
                            template: | {
                                messages: {
                                    content: (...)
                                    | (...);
                                    role: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                }[];
                                type: "chat";
                            }
                            | { template: string; type: "string" };
                            template_format: "NONE" | "MUSTACHE" | "F_STRING";
                            template_type: "STR" | "CHAT";
                            tools?:
                                | {
                                    disable_parallel_tool_calls?: boolean;
                                    tool_choice?: | { type: "none" }
                                    | { type: "one_or_more" }
                                    | { function_name: string; type: "specific_function" }
                                    | { type: "zero_or_more" };
                                    tools: {
                                        function: {
                                            description?: ...;
                                            name: ...;
                                            parameters?: ...;
                                            strict?: ...;
                                        };
                                        type: "function";
                                    }[];
                                    type: "tools";
                                }
                                | null;
                        };
                    };
                };
            };
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                description?: string
                                | null;
                                id: string;
                                invocation_parameters:
                                    | {
                                        anthropic: {
                                            max_tokens: number;
                                            stop_sequences?: (...)
                                            | (...);
                                            temperature?: (...) | (...);
                                            thinking?: (...) | (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "anthropic";
                                    }
                                    | {
                                        aws: {
                                            max_tokens?: (...)
                                            | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "aws";
                                    }
                                    | {
                                        azure_openai: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_completion_tokens?: (...) | (...);
                                            max_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            reasoning_effort?:
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...);
                                            seed?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "azure_openai";
                                    }
                                    | {
                                        deepseek: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_completion_tokens?: (...) | (...);
                                            max_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            reasoning_effort?:
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...);
                                            seed?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "deepseek";
                                    }
                                    | {
                                        google: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_output_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            stop_sequences?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_k?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "google";
                                    }
                                    | {
                                        ollama: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_completion_tokens?: (...) | (...);
                                            max_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            reasoning_effort?:
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...);
                                            seed?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "ollama";
                                    }
                                    | {
                                        openai: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_completion_tokens?: (...) | (...);
                                            max_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            reasoning_effort?:
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...);
                                            seed?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "openai";
                                    }
                                    | {
                                        type: "xai";
                                        xai: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_completion_tokens?: (...) | (...);
                                            max_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            reasoning_effort?:
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...);
                                            seed?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                    };
                                model_name: string;
                                model_provider: | "OPENAI"
                                | "AZURE_OPENAI"
                                | "ANTHROPIC"
                                | "GOOGLE"
                                | "DEEPSEEK"
                                | "XAI"
                                | "OLLAMA"
                                | "AWS";
                                response_format?: | {
                                    json_schema: {
                                        description?: (...)
                                        | (...);
                                        name: string;
                                        schema?: (...) | (...);
                                        strict?: (...) | (...) | (...);
                                    };
                                    type: "json_schema";
                                }
                                | null;
                                template: | { messages: { content: ...; role: ... }[]; type: "chat" }
                                | { template: string; type: "string" };
                                template_format: "NONE" | "MUSTACHE" | "F_STRING";
                                template_type: "STR" | "CHAT";
                                tools?:
                                    | {
                                        disable_parallel_tool_calls?: boolean;
                                        tool_choice?: | { type: ... }
                                        | { type: ... }
                                        | { function_name: ...; type: ... }
                                        | { type: ... };
                                        tools: { function: ...; type: ... }[];
                                        type: "tools";
                                    }
                                    | null;
                            };
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path?: undefined;
              query?: { cursor?: string | null; limit?: number };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              description?: string
                              | null;
                              id: string;
                              metadata?: { [key: string]: unknown } | null;
                              name: string;
                              source_prompt_id?: string | null;
                          }[];
                          next_cursor: string
                          | null;
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      List all prompts

      Retrieve a paginated list of all prompts in the system. A prompt can have multiple versions.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: { cursor?: string | null; limit?: number };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • Optionalpath?: undefined
        • Optionalquery?: { cursor?: string | null; limit?: number }
          • Optionalcursor?: string | null

            Cursor for pagination (base64-encoded prompt ID)

          • Optionallimit?: number

            The max number of prompts to return at a time.

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            description?: string | null;
                            id: string;
                            metadata?: { [key: string]: unknown } | null;
                            name: string;
                            source_prompt_id?: string | null;
                        }[];
                        next_cursor: string
                        | null;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          description?: string | null;
                          id: string;
                          metadata?: { [key: string]: unknown } | null;
                          name: string;
                          source_prompt_id?: string | null;
                      }[];
                      next_cursor: string
                      | null;
                  };
              };
              headers: { [name: string]: unknown };
          }

          A list of prompts with pagination information

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • post: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path?: undefined;
              query?: undefined;
          };
          requestBody: {
              content: {
                  "application/json": {
                      prompt: {
                          description?: string
                          | null;
                          metadata?: { [key: string]: unknown } | null;
                          name: string;
                          source_prompt_id?: string | null;
                      };
                      version: {
                          description?: string
                          | null;
                          invocation_parameters:
                              | {
                                  anthropic: {
                                      max_tokens: number;
                                      stop_sequences?: (...)[];
                                      temperature?: number;
                                      thinking?: { type: ... } | { budget_tokens: ...; type: ... };
                                      top_p?: number;
                                  };
                                  type: "anthropic";
                              }
                              | {
                                  aws: { max_tokens?: number; temperature?: number; top_p?: number };
                                  type: "aws";
                              }
                              | {
                                  azure_openai: {
                                      frequency_penalty?: number;
                                      max_completion_tokens?: number;
                                      max_tokens?: number;
                                      presence_penalty?: number;
                                      reasoning_effort?: | "none"
                                      | "minimal"
                                      | "low"
                                      | "medium"
                                      | "high"
                                      | "xhigh";
                                      seed?: number;
                                      temperature?: number;
                                      top_p?: number;
                                  };
                                  type: "azure_openai";
                              }
                              | {
                                  deepseek: {
                                      frequency_penalty?: number;
                                      max_completion_tokens?: number;
                                      max_tokens?: number;
                                      presence_penalty?: number;
                                      reasoning_effort?: | "none"
                                      | "minimal"
                                      | "low"
                                      | "medium"
                                      | "high"
                                      | "xhigh";
                                      seed?: number;
                                      temperature?: number;
                                      top_p?: number;
                                  };
                                  type: "deepseek";
                              }
                              | {
                                  google: {
                                      frequency_penalty?: number;
                                      max_output_tokens?: number;
                                      presence_penalty?: number;
                                      stop_sequences?: (...)[];
                                      temperature?: number;
                                      top_k?: number;
                                      top_p?: number;
                                  };
                                  type: "google";
                              }
                              | {
                                  ollama: {
                                      frequency_penalty?: number;
                                      max_completion_tokens?: number;
                                      max_tokens?: number;
                                      presence_penalty?: number;
                                      reasoning_effort?: | "none"
                                      | "minimal"
                                      | "low"
                                      | "medium"
                                      | "high"
                                      | "xhigh";
                                      seed?: number;
                                      temperature?: number;
                                      top_p?: number;
                                  };
                                  type: "ollama";
                              }
                              | {
                                  openai: {
                                      frequency_penalty?: number;
                                      max_completion_tokens?: number;
                                      max_tokens?: number;
                                      presence_penalty?: number;
                                      reasoning_effort?: | "none"
                                      | "minimal"
                                      | "low"
                                      | "medium"
                                      | "high"
                                      | "xhigh";
                                      seed?: number;
                                      temperature?: number;
                                      top_p?: number;
                                  };
                                  type: "openai";
                              }
                              | {
                                  type: "xai";
                                  xai: {
                                      frequency_penalty?: number;
                                      max_completion_tokens?: number;
                                      max_tokens?: number;
                                      presence_penalty?: number;
                                      reasoning_effort?: | "none"
                                      | "minimal"
                                      | "low"
                                      | "medium"
                                      | "high"
                                      | "xhigh";
                                      seed?: number;
                                      temperature?: number;
                                      top_p?: number;
                                  };
                              };
                          model_name: string;
                          model_provider: | "OPENAI"
                          | "AZURE_OPENAI"
                          | "ANTHROPIC"
                          | "GOOGLE"
                          | "DEEPSEEK"
                          | "XAI"
                          | "OLLAMA"
                          | "AWS";
                          response_format?: | {
                              json_schema: {
                                  description?: string;
                                  name: string;
                                  schema?: { [key: ...]: ... };
                                  strict?: boolean;
                              };
                              type: "json_schema";
                          }
                          | null;
                          template: | {
                              messages: {
                                  content: (...)
                                  | (...);
                                  role: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                              }[];
                              type: "chat";
                          }
                          | { template: string; type: "string" };
                          template_format: "NONE" | "MUSTACHE" | "F_STRING";
                          template_type: "STR" | "CHAT";
                          tools?:
                              | {
                                  disable_parallel_tool_calls?: boolean;
                                  tool_choice?: | { type: "none" }
                                  | { type: "one_or_more" }
                                  | { function_name: string; type: "specific_function" }
                                  | { type: "zero_or_more" };
                                  tools: {
                                      function: {
                                          description?: ...;
                                          name: ...;
                                          parameters?: ...;
                                          strict?: ...;
                                      };
                                      type: "function";
                                  }[];
                                  type: "tools";
                              }
                              | null;
                      };
                  };
              };
          };
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              description?: string
                              | null;
                              id: string;
                              invocation_parameters:
                                  | {
                                      anthropic: {
                                          max_tokens: number;
                                          stop_sequences?: (...)
                                          | (...);
                                          temperature?: (...) | (...);
                                          thinking?: (...) | (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "anthropic";
                                  }
                                  | {
                                      aws: {
                                          max_tokens?: (...)
                                          | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "aws";
                                  }
                                  | {
                                      azure_openai: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_completion_tokens?: (...) | (...);
                                          max_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          reasoning_effort?:
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...);
                                          seed?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "azure_openai";
                                  }
                                  | {
                                      deepseek: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_completion_tokens?: (...) | (...);
                                          max_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          reasoning_effort?:
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...);
                                          seed?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "deepseek";
                                  }
                                  | {
                                      google: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_output_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          stop_sequences?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_k?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "google";
                                  }
                                  | {
                                      ollama: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_completion_tokens?: (...) | (...);
                                          max_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          reasoning_effort?:
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...);
                                          seed?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "ollama";
                                  }
                                  | {
                                      openai: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_completion_tokens?: (...) | (...);
                                          max_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          reasoning_effort?:
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...);
                                          seed?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "openai";
                                  }
                                  | {
                                      type: "xai";
                                      xai: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_completion_tokens?: (...) | (...);
                                          max_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          reasoning_effort?:
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...);
                                          seed?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                  };
                              model_name: string;
                              model_provider: | "OPENAI"
                              | "AZURE_OPENAI"
                              | "ANTHROPIC"
                              | "GOOGLE"
                              | "DEEPSEEK"
                              | "XAI"
                              | "OLLAMA"
                              | "AWS";
                              response_format?: | {
                                  json_schema: {
                                      description?: (...)
                                      | (...);
                                      name: string;
                                      schema?: (...) | (...);
                                      strict?: (...) | (...) | (...);
                                  };
                                  type: "json_schema";
                              }
                              | null;
                              template: | { messages: { content: ...; role: ... }[]; type: "chat" }
                              | { template: string; type: "string" };
                              template_format: "NONE" | "MUSTACHE" | "F_STRING";
                              template_type: "STR" | "CHAT";
                              tools?:
                                  | {
                                      disable_parallel_tool_calls?: boolean;
                                      tool_choice?: | { type: ... }
                                      | { type: ... }
                                      | { function_name: ...; type: ... }
                                      | { type: ... };
                                      tools: { function: ...; type: ... }[];
                                      type: "tools";
                                  }
                                  | null;
                          };
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Create a new prompt

      Create a new prompt and its initial version. A prompt can have multiple versions.

      • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
      • requestBody: {
            content: {
                "application/json": {
                    prompt: {
                        description?: string | null;
                        metadata?: { [key: string]: unknown } | null;
                        name: string;
                        source_prompt_id?: string | null;
                    };
                    version: {
                        description?: string
                        | null;
                        invocation_parameters:
                            | {
                                anthropic: {
                                    max_tokens: number;
                                    stop_sequences?: (...)[];
                                    temperature?: number;
                                    thinking?: { type: ... } | { budget_tokens: ...; type: ... };
                                    top_p?: number;
                                };
                                type: "anthropic";
                            }
                            | {
                                aws: { max_tokens?: number; temperature?: number; top_p?: number };
                                type: "aws";
                            }
                            | {
                                azure_openai: {
                                    frequency_penalty?: number;
                                    max_completion_tokens?: number;
                                    max_tokens?: number;
                                    presence_penalty?: number;
                                    reasoning_effort?: | "none"
                                    | "minimal"
                                    | "low"
                                    | "medium"
                                    | "high"
                                    | "xhigh";
                                    seed?: number;
                                    temperature?: number;
                                    top_p?: number;
                                };
                                type: "azure_openai";
                            }
                            | {
                                deepseek: {
                                    frequency_penalty?: number;
                                    max_completion_tokens?: number;
                                    max_tokens?: number;
                                    presence_penalty?: number;
                                    reasoning_effort?: | "none"
                                    | "minimal"
                                    | "low"
                                    | "medium"
                                    | "high"
                                    | "xhigh";
                                    seed?: number;
                                    temperature?: number;
                                    top_p?: number;
                                };
                                type: "deepseek";
                            }
                            | {
                                google: {
                                    frequency_penalty?: number;
                                    max_output_tokens?: number;
                                    presence_penalty?: number;
                                    stop_sequences?: (...)[];
                                    temperature?: number;
                                    top_k?: number;
                                    top_p?: number;
                                };
                                type: "google";
                            }
                            | {
                                ollama: {
                                    frequency_penalty?: number;
                                    max_completion_tokens?: number;
                                    max_tokens?: number;
                                    presence_penalty?: number;
                                    reasoning_effort?: | "none"
                                    | "minimal"
                                    | "low"
                                    | "medium"
                                    | "high"
                                    | "xhigh";
                                    seed?: number;
                                    temperature?: number;
                                    top_p?: number;
                                };
                                type: "ollama";
                            }
                            | {
                                openai: {
                                    frequency_penalty?: number;
                                    max_completion_tokens?: number;
                                    max_tokens?: number;
                                    presence_penalty?: number;
                                    reasoning_effort?: | "none"
                                    | "minimal"
                                    | "low"
                                    | "medium"
                                    | "high"
                                    | "xhigh";
                                    seed?: number;
                                    temperature?: number;
                                    top_p?: number;
                                };
                                type: "openai";
                            }
                            | {
                                type: "xai";
                                xai: {
                                    frequency_penalty?: number;
                                    max_completion_tokens?: number;
                                    max_tokens?: number;
                                    presence_penalty?: number;
                                    reasoning_effort?: | "none"
                                    | "minimal"
                                    | "low"
                                    | "medium"
                                    | "high"
                                    | "xhigh";
                                    seed?: number;
                                    temperature?: number;
                                    top_p?: number;
                                };
                            };
                        model_name: string;
                        model_provider: | "OPENAI"
                        | "AZURE_OPENAI"
                        | "ANTHROPIC"
                        | "GOOGLE"
                        | "DEEPSEEK"
                        | "XAI"
                        | "OLLAMA"
                        | "AWS";
                        response_format?: | {
                            json_schema: {
                                description?: string;
                                name: string;
                                schema?: { [key: ...]: ... };
                                strict?: boolean;
                            };
                            type: "json_schema";
                        }
                        | null;
                        template: | {
                            messages: {
                                content: (...)
                                | (...);
                                role: (...) | (...) | (...) | (...) | (...) | (...) | (...);
                            }[];
                            type: "chat";
                        }
                        | { template: string; type: "string" };
                        template_format: "NONE" | "MUSTACHE" | "F_STRING";
                        template_type: "STR" | "CHAT";
                        tools?:
                            | {
                                disable_parallel_tool_calls?: boolean;
                                tool_choice?: | { type: "none" }
                                | { type: "one_or_more" }
                                | { function_name: string; type: "specific_function" }
                                | { type: "zero_or_more" };
                                tools: {
                                    function: {
                                        description?: ...;
                                        name: ...;
                                        parameters?: ...;
                                        strict?: ...;
                                    };
                                    type: "function";
                                }[];
                                type: "tools";
                            }
                            | null;
                    };
                };
            };
        }
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            description?: string | null;
                            id: string;
                            invocation_parameters:
                                | {
                                    anthropic: {
                                        max_tokens: number;
                                        stop_sequences?: (...)
                                        | (...);
                                        temperature?: (...) | (...);
                                        thinking?: (...) | (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "anthropic";
                                }
                                | {
                                    aws: {
                                        max_tokens?: (...)
                                        | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "aws";
                                }
                                | {
                                    azure_openai: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_completion_tokens?: (...) | (...);
                                        max_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        reasoning_effort?:
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...);
                                        seed?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "azure_openai";
                                }
                                | {
                                    deepseek: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_completion_tokens?: (...) | (...);
                                        max_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        reasoning_effort?:
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...);
                                        seed?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "deepseek";
                                }
                                | {
                                    google: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_output_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        stop_sequences?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_k?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "google";
                                }
                                | {
                                    ollama: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_completion_tokens?: (...) | (...);
                                        max_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        reasoning_effort?:
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...);
                                        seed?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "ollama";
                                }
                                | {
                                    openai: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_completion_tokens?: (...) | (...);
                                        max_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        reasoning_effort?:
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...);
                                        seed?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "openai";
                                }
                                | {
                                    type: "xai";
                                    xai: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_completion_tokens?: (...) | (...);
                                        max_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        reasoning_effort?:
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...);
                                        seed?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                };
                            model_name: string;
                            model_provider: | "OPENAI"
                            | "AZURE_OPENAI"
                            | "ANTHROPIC"
                            | "GOOGLE"
                            | "DEEPSEEK"
                            | "XAI"
                            | "OLLAMA"
                            | "AWS";
                            response_format?: | {
                                json_schema: {
                                    description?: (...)
                                    | (...);
                                    name: string;
                                    schema?: (...) | (...);
                                    strict?: (...) | (...) | (...);
                                };
                                type: "json_schema";
                            }
                            | null;
                            template: | { messages: { content: ...; role: ... }[]; type: "chat" }
                            | { template: string; type: "string" };
                            template_format: "NONE" | "MUSTACHE" | "F_STRING";
                            template_type: "STR" | "CHAT";
                            tools?:
                                | {
                                    disable_parallel_tool_calls?: boolean;
                                    tool_choice?: | { type: ... }
                                    | { type: ... }
                                    | { function_name: ...; type: ... }
                                    | { type: ... };
                                    tools: { function: ...; type: ... }[];
                                    type: "tools";
                                }
                                | null;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          description?: string | null;
                          id: string;
                          invocation_parameters:
                              | {
                                  anthropic: {
                                      max_tokens: number;
                                      stop_sequences?: (...)
                                      | (...);
                                      temperature?: (...) | (...);
                                      thinking?: (...) | (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "anthropic";
                              }
                              | {
                                  aws: {
                                      max_tokens?: (...)
                                      | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "aws";
                              }
                              | {
                                  azure_openai: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_completion_tokens?: (...) | (...);
                                      max_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      reasoning_effort?:
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...);
                                      seed?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "azure_openai";
                              }
                              | {
                                  deepseek: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_completion_tokens?: (...) | (...);
                                      max_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      reasoning_effort?:
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...);
                                      seed?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "deepseek";
                              }
                              | {
                                  google: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_output_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      stop_sequences?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_k?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "google";
                              }
                              | {
                                  ollama: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_completion_tokens?: (...) | (...);
                                      max_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      reasoning_effort?:
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...);
                                      seed?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "ollama";
                              }
                              | {
                                  openai: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_completion_tokens?: (...) | (...);
                                      max_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      reasoning_effort?:
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...);
                                      seed?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "openai";
                              }
                              | {
                                  type: "xai";
                                  xai: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_completion_tokens?: (...) | (...);
                                      max_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      reasoning_effort?:
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...);
                                      seed?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                              };
                          model_name: string;
                          model_provider: | "OPENAI"
                          | "AZURE_OPENAI"
                          | "ANTHROPIC"
                          | "GOOGLE"
                          | "DEEPSEEK"
                          | "XAI"
                          | "OLLAMA"
                          | "AWS";
                          response_format?: | {
                              json_schema: {
                                  description?: (...)
                                  | (...);
                                  name: string;
                                  schema?: (...) | (...);
                                  strict?: (...) | (...) | (...);
                              };
                              type: "json_schema";
                          }
                          | null;
                          template: | { messages: { content: ...; role: ... }[]; type: "chat" }
                          | { template: string; type: "string" };
                          template_format: "NONE" | "MUSTACHE" | "F_STRING";
                          template_type: "STR" | "CHAT";
                          tools?:
                              | {
                                  disable_parallel_tool_calls?: boolean;
                                  tool_choice?: | { type: ... }
                                  | { type: ... }
                                  | { function_name: ...; type: ... }
                                  | { type: ... };
                                  tools: { function: ...; type: ... }[];
                                  type: "tools";
                              }
                              | null;
                      };
                  };
              };
              headers: { [name: string]: unknown };
          }

          The newly created prompt version

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/prompts/{prompt_identifier}/latest": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { prompt_identifier: string };
                query?: undefined;
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                description?: string
                                | null;
                                id: string;
                                invocation_parameters:
                                    | {
                                        anthropic: {
                                            max_tokens: number;
                                            stop_sequences?: (...)
                                            | (...);
                                            temperature?: (...) | (...);
                                            thinking?: (...) | (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "anthropic";
                                    }
                                    | {
                                        aws: {
                                            max_tokens?: (...)
                                            | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "aws";
                                    }
                                    | {
                                        azure_openai: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_completion_tokens?: (...) | (...);
                                            max_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            reasoning_effort?:
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...);
                                            seed?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "azure_openai";
                                    }
                                    | {
                                        deepseek: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_completion_tokens?: (...) | (...);
                                            max_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            reasoning_effort?:
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...);
                                            seed?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "deepseek";
                                    }
                                    | {
                                        google: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_output_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            stop_sequences?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_k?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "google";
                                    }
                                    | {
                                        ollama: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_completion_tokens?: (...) | (...);
                                            max_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            reasoning_effort?:
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...);
                                            seed?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "ollama";
                                    }
                                    | {
                                        openai: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_completion_tokens?: (...) | (...);
                                            max_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            reasoning_effort?:
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...);
                                            seed?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "openai";
                                    }
                                    | {
                                        type: "xai";
                                        xai: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_completion_tokens?: (...) | (...);
                                            max_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            reasoning_effort?:
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...);
                                            seed?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                    };
                                model_name: string;
                                model_provider: | "OPENAI"
                                | "AZURE_OPENAI"
                                | "ANTHROPIC"
                                | "GOOGLE"
                                | "DEEPSEEK"
                                | "XAI"
                                | "OLLAMA"
                                | "AWS";
                                response_format?: | {
                                    json_schema: {
                                        description?: (...)
                                        | (...);
                                        name: string;
                                        schema?: (...) | (...);
                                        strict?: (...) | (...) | (...);
                                    };
                                    type: "json_schema";
                                }
                                | null;
                                template: | { messages: { content: ...; role: ... }[]; type: "chat" }
                                | { template: string; type: "string" };
                                template_format: "NONE" | "MUSTACHE" | "F_STRING";
                                template_type: "STR" | "CHAT";
                                tools?:
                                    | {
                                        disable_parallel_tool_calls?: boolean;
                                        tool_choice?: | { type: ... }
                                        | { type: ... }
                                        | { function_name: ...; type: ... }
                                        | { type: ... };
                                        tools: { function: ...; type: ... }[];
                                        type: "tools";
                                    }
                                    | null;
                            };
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { prompt_identifier: string };
              query?: undefined;
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              description?: string
                              | null;
                              id: string;
                              invocation_parameters:
                                  | {
                                      anthropic: {
                                          max_tokens: number;
                                          stop_sequences?: (...)
                                          | (...);
                                          temperature?: (...) | (...);
                                          thinking?: (...) | (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "anthropic";
                                  }
                                  | {
                                      aws: {
                                          max_tokens?: (...)
                                          | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "aws";
                                  }
                                  | {
                                      azure_openai: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_completion_tokens?: (...) | (...);
                                          max_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          reasoning_effort?:
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...);
                                          seed?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "azure_openai";
                                  }
                                  | {
                                      deepseek: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_completion_tokens?: (...) | (...);
                                          max_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          reasoning_effort?:
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...);
                                          seed?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "deepseek";
                                  }
                                  | {
                                      google: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_output_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          stop_sequences?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_k?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "google";
                                  }
                                  | {
                                      ollama: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_completion_tokens?: (...) | (...);
                                          max_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          reasoning_effort?:
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...);
                                          seed?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "ollama";
                                  }
                                  | {
                                      openai: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_completion_tokens?: (...) | (...);
                                          max_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          reasoning_effort?:
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...);
                                          seed?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "openai";
                                  }
                                  | {
                                      type: "xai";
                                      xai: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_completion_tokens?: (...) | (...);
                                          max_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          reasoning_effort?:
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...);
                                          seed?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                  };
                              model_name: string;
                              model_provider: | "OPENAI"
                              | "AZURE_OPENAI"
                              | "ANTHROPIC"
                              | "GOOGLE"
                              | "DEEPSEEK"
                              | "XAI"
                              | "OLLAMA"
                              | "AWS";
                              response_format?: | {
                                  json_schema: {
                                      description?: (...)
                                      | (...);
                                      name: string;
                                      schema?: (...) | (...);
                                      strict?: (...) | (...) | (...);
                                  };
                                  type: "json_schema";
                              }
                              | null;
                              template: | { messages: { content: ...; role: ... }[]; type: "chat" }
                              | { template: string; type: "string" };
                              template_format: "NONE" | "MUSTACHE" | "F_STRING";
                              template_type: "STR" | "CHAT";
                              tools?:
                                  | {
                                      disable_parallel_tool_calls?: boolean;
                                      tool_choice?: | { type: ... }
                                      | { type: ... }
                                      | { function_name: ...; type: ... }
                                      | { type: ... };
                                      tools: { function: ...; type: ... }[];
                                      type: "tools";
                                  }
                                  | null;
                          };
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Get latest prompt version

      Retrieve the most recent version of a specific prompt.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { prompt_identifier: string };
            query?: undefined;
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { prompt_identifier: string }
          • prompt_identifier: string

            The identifier of the prompt, i.e. name or ID.

        • Optionalquery?: undefined
      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            description?: string | null;
                            id: string;
                            invocation_parameters:
                                | {
                                    anthropic: {
                                        max_tokens: number;
                                        stop_sequences?: (...)
                                        | (...);
                                        temperature?: (...) | (...);
                                        thinking?: (...) | (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "anthropic";
                                }
                                | {
                                    aws: {
                                        max_tokens?: (...)
                                        | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "aws";
                                }
                                | {
                                    azure_openai: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_completion_tokens?: (...) | (...);
                                        max_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        reasoning_effort?:
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...);
                                        seed?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "azure_openai";
                                }
                                | {
                                    deepseek: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_completion_tokens?: (...) | (...);
                                        max_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        reasoning_effort?:
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...);
                                        seed?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "deepseek";
                                }
                                | {
                                    google: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_output_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        stop_sequences?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_k?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "google";
                                }
                                | {
                                    ollama: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_completion_tokens?: (...) | (...);
                                        max_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        reasoning_effort?:
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...);
                                        seed?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "ollama";
                                }
                                | {
                                    openai: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_completion_tokens?: (...) | (...);
                                        max_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        reasoning_effort?:
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...);
                                        seed?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "openai";
                                }
                                | {
                                    type: "xai";
                                    xai: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_completion_tokens?: (...) | (...);
                                        max_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        reasoning_effort?:
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...);
                                        seed?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                };
                            model_name: string;
                            model_provider: | "OPENAI"
                            | "AZURE_OPENAI"
                            | "ANTHROPIC"
                            | "GOOGLE"
                            | "DEEPSEEK"
                            | "XAI"
                            | "OLLAMA"
                            | "AWS";
                            response_format?: | {
                                json_schema: {
                                    description?: (...)
                                    | (...);
                                    name: string;
                                    schema?: (...) | (...);
                                    strict?: (...) | (...) | (...);
                                };
                                type: "json_schema";
                            }
                            | null;
                            template: | { messages: { content: ...; role: ... }[]; type: "chat" }
                            | { template: string; type: "string" };
                            template_format: "NONE" | "MUSTACHE" | "F_STRING";
                            template_type: "STR" | "CHAT";
                            tools?:
                                | {
                                    disable_parallel_tool_calls?: boolean;
                                    tool_choice?: | { type: ... }
                                    | { type: ... }
                                    | { function_name: ...; type: ... }
                                    | { type: ... };
                                    tools: { function: ...; type: ... }[];
                                    type: "tools";
                                }
                                | null;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          description?: string | null;
                          id: string;
                          invocation_parameters:
                              | {
                                  anthropic: {
                                      max_tokens: number;
                                      stop_sequences?: (...)
                                      | (...);
                                      temperature?: (...) | (...);
                                      thinking?: (...) | (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "anthropic";
                              }
                              | {
                                  aws: {
                                      max_tokens?: (...)
                                      | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "aws";
                              }
                              | {
                                  azure_openai: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_completion_tokens?: (...) | (...);
                                      max_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      reasoning_effort?:
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...);
                                      seed?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "azure_openai";
                              }
                              | {
                                  deepseek: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_completion_tokens?: (...) | (...);
                                      max_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      reasoning_effort?:
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...);
                                      seed?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "deepseek";
                              }
                              | {
                                  google: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_output_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      stop_sequences?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_k?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "google";
                              }
                              | {
                                  ollama: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_completion_tokens?: (...) | (...);
                                      max_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      reasoning_effort?:
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...);
                                      seed?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "ollama";
                              }
                              | {
                                  openai: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_completion_tokens?: (...) | (...);
                                      max_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      reasoning_effort?:
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...);
                                      seed?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "openai";
                              }
                              | {
                                  type: "xai";
                                  xai: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_completion_tokens?: (...) | (...);
                                      max_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      reasoning_effort?:
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...);
                                      seed?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                              };
                          model_name: string;
                          model_provider: | "OPENAI"
                          | "AZURE_OPENAI"
                          | "ANTHROPIC"
                          | "GOOGLE"
                          | "DEEPSEEK"
                          | "XAI"
                          | "OLLAMA"
                          | "AWS";
                          response_format?: | {
                              json_schema: {
                                  description?: (...)
                                  | (...);
                                  name: string;
                                  schema?: (...) | (...);
                                  strict?: (...) | (...) | (...);
                              };
                              type: "json_schema";
                          }
                          | null;
                          template: | { messages: { content: ...; role: ... }[]; type: "chat" }
                          | { template: string; type: "string" };
                          template_format: "NONE" | "MUSTACHE" | "F_STRING";
                          template_type: "STR" | "CHAT";
                          tools?:
                              | {
                                  disable_parallel_tool_calls?: boolean;
                                  tool_choice?: | { type: ... }
                                  | { type: ... }
                                  | { function_name: ...; type: ... }
                                  | { type: ... };
                                  tools: { function: ...; type: ... }[];
                                  type: "tools";
                              }
                              | null;
                      };
                  };
              };
              headers: { [name: string]: unknown };
          }

          The latest version of the specified prompt

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Not Found

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/prompts/{prompt_identifier}/tags/{tag_name}": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { prompt_identifier: string; tag_name: string };
                query?: undefined;
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                description?: string
                                | null;
                                id: string;
                                invocation_parameters:
                                    | {
                                        anthropic: {
                                            max_tokens: number;
                                            stop_sequences?: (...)
                                            | (...);
                                            temperature?: (...) | (...);
                                            thinking?: (...) | (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "anthropic";
                                    }
                                    | {
                                        aws: {
                                            max_tokens?: (...)
                                            | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "aws";
                                    }
                                    | {
                                        azure_openai: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_completion_tokens?: (...) | (...);
                                            max_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            reasoning_effort?:
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...);
                                            seed?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "azure_openai";
                                    }
                                    | {
                                        deepseek: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_completion_tokens?: (...) | (...);
                                            max_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            reasoning_effort?:
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...);
                                            seed?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "deepseek";
                                    }
                                    | {
                                        google: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_output_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            stop_sequences?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_k?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "google";
                                    }
                                    | {
                                        ollama: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_completion_tokens?: (...) | (...);
                                            max_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            reasoning_effort?:
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...);
                                            seed?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "ollama";
                                    }
                                    | {
                                        openai: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_completion_tokens?: (...) | (...);
                                            max_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            reasoning_effort?:
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...);
                                            seed?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                        type: "openai";
                                    }
                                    | {
                                        type: "xai";
                                        xai: {
                                            frequency_penalty?: (...)
                                            | (...);
                                            max_completion_tokens?: (...) | (...);
                                            max_tokens?: (...) | (...);
                                            presence_penalty?: (...) | (...);
                                            reasoning_effort?:
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...)
                                                | (...);
                                            seed?: (...) | (...);
                                            temperature?: (...) | (...);
                                            top_p?: (...) | (...);
                                        };
                                    };
                                model_name: string;
                                model_provider: | "OPENAI"
                                | "AZURE_OPENAI"
                                | "ANTHROPIC"
                                | "GOOGLE"
                                | "DEEPSEEK"
                                | "XAI"
                                | "OLLAMA"
                                | "AWS";
                                response_format?: | {
                                    json_schema: {
                                        description?: (...)
                                        | (...);
                                        name: string;
                                        schema?: (...) | (...);
                                        strict?: (...) | (...) | (...);
                                    };
                                    type: "json_schema";
                                }
                                | null;
                                template: | { messages: { content: ...; role: ... }[]; type: "chat" }
                                | { template: string; type: "string" };
                                template_format: "NONE" | "MUSTACHE" | "F_STRING";
                                template_type: "STR" | "CHAT";
                                tools?:
                                    | {
                                        disable_parallel_tool_calls?: boolean;
                                        tool_choice?: | { type: ... }
                                        | { type: ... }
                                        | { function_name: ...; type: ... }
                                        | { type: ... };
                                        tools: { function: ...; type: ... }[];
                                        type: "tools";
                                    }
                                    | null;
                            };
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { prompt_identifier: string; tag_name: string };
              query?: undefined;
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              description?: string
                              | null;
                              id: string;
                              invocation_parameters:
                                  | {
                                      anthropic: {
                                          max_tokens: number;
                                          stop_sequences?: (...)
                                          | (...);
                                          temperature?: (...) | (...);
                                          thinking?: (...) | (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "anthropic";
                                  }
                                  | {
                                      aws: {
                                          max_tokens?: (...)
                                          | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "aws";
                                  }
                                  | {
                                      azure_openai: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_completion_tokens?: (...) | (...);
                                          max_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          reasoning_effort?:
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...);
                                          seed?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "azure_openai";
                                  }
                                  | {
                                      deepseek: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_completion_tokens?: (...) | (...);
                                          max_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          reasoning_effort?:
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...);
                                          seed?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "deepseek";
                                  }
                                  | {
                                      google: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_output_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          stop_sequences?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_k?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "google";
                                  }
                                  | {
                                      ollama: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_completion_tokens?: (...) | (...);
                                          max_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          reasoning_effort?:
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...);
                                          seed?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "ollama";
                                  }
                                  | {
                                      openai: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_completion_tokens?: (...) | (...);
                                          max_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          reasoning_effort?:
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...);
                                          seed?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                      type: "openai";
                                  }
                                  | {
                                      type: "xai";
                                      xai: {
                                          frequency_penalty?: (...)
                                          | (...);
                                          max_completion_tokens?: (...) | (...);
                                          max_tokens?: (...) | (...);
                                          presence_penalty?: (...) | (...);
                                          reasoning_effort?:
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...)
                                              | (...);
                                          seed?: (...) | (...);
                                          temperature?: (...) | (...);
                                          top_p?: (...) | (...);
                                      };
                                  };
                              model_name: string;
                              model_provider: | "OPENAI"
                              | "AZURE_OPENAI"
                              | "ANTHROPIC"
                              | "GOOGLE"
                              | "DEEPSEEK"
                              | "XAI"
                              | "OLLAMA"
                              | "AWS";
                              response_format?: | {
                                  json_schema: {
                                      description?: (...)
                                      | (...);
                                      name: string;
                                      schema?: (...) | (...);
                                      strict?: (...) | (...) | (...);
                                  };
                                  type: "json_schema";
                              }
                              | null;
                              template: | { messages: { content: ...; role: ... }[]; type: "chat" }
                              | { template: string; type: "string" };
                              template_format: "NONE" | "MUSTACHE" | "F_STRING";
                              template_type: "STR" | "CHAT";
                              tools?:
                                  | {
                                      disable_parallel_tool_calls?: boolean;
                                      tool_choice?: | { type: ... }
                                      | { type: ... }
                                      | { function_name: ...; type: ... }
                                      | { type: ... };
                                      tools: { function: ...; type: ... }[];
                                      type: "tools";
                                  }
                                  | null;
                          };
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Get prompt version by tag

      Retrieve a specific prompt version using its tag name. Tags are used to identify specific versions of a prompt.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { prompt_identifier: string; tag_name: string };
            query?: undefined;
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { prompt_identifier: string; tag_name: string }
          • prompt_identifier: string

            The identifier of the prompt, i.e. name or ID.

          • tag_name: string

            The tag of the prompt version

        • Optionalquery?: undefined
      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            description?: string | null;
                            id: string;
                            invocation_parameters:
                                | {
                                    anthropic: {
                                        max_tokens: number;
                                        stop_sequences?: (...)
                                        | (...);
                                        temperature?: (...) | (...);
                                        thinking?: (...) | (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "anthropic";
                                }
                                | {
                                    aws: {
                                        max_tokens?: (...)
                                        | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "aws";
                                }
                                | {
                                    azure_openai: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_completion_tokens?: (...) | (...);
                                        max_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        reasoning_effort?:
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...);
                                        seed?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "azure_openai";
                                }
                                | {
                                    deepseek: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_completion_tokens?: (...) | (...);
                                        max_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        reasoning_effort?:
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...);
                                        seed?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "deepseek";
                                }
                                | {
                                    google: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_output_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        stop_sequences?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_k?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "google";
                                }
                                | {
                                    ollama: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_completion_tokens?: (...) | (...);
                                        max_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        reasoning_effort?:
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...);
                                        seed?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "ollama";
                                }
                                | {
                                    openai: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_completion_tokens?: (...) | (...);
                                        max_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        reasoning_effort?:
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...);
                                        seed?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                    type: "openai";
                                }
                                | {
                                    type: "xai";
                                    xai: {
                                        frequency_penalty?: (...)
                                        | (...);
                                        max_completion_tokens?: (...) | (...);
                                        max_tokens?: (...) | (...);
                                        presence_penalty?: (...) | (...);
                                        reasoning_effort?:
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...)
                                            | (...);
                                        seed?: (...) | (...);
                                        temperature?: (...) | (...);
                                        top_p?: (...) | (...);
                                    };
                                };
                            model_name: string;
                            model_provider: | "OPENAI"
                            | "AZURE_OPENAI"
                            | "ANTHROPIC"
                            | "GOOGLE"
                            | "DEEPSEEK"
                            | "XAI"
                            | "OLLAMA"
                            | "AWS";
                            response_format?: | {
                                json_schema: {
                                    description?: (...)
                                    | (...);
                                    name: string;
                                    schema?: (...) | (...);
                                    strict?: (...) | (...) | (...);
                                };
                                type: "json_schema";
                            }
                            | null;
                            template: | { messages: { content: ...; role: ... }[]; type: "chat" }
                            | { template: string; type: "string" };
                            template_format: "NONE" | "MUSTACHE" | "F_STRING";
                            template_type: "STR" | "CHAT";
                            tools?:
                                | {
                                    disable_parallel_tool_calls?: boolean;
                                    tool_choice?: | { type: ... }
                                    | { type: ... }
                                    | { function_name: ...; type: ... }
                                    | { type: ... };
                                    tools: { function: ...; type: ... }[];
                                    type: "tools";
                                }
                                | null;
                        };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          description?: string | null;
                          id: string;
                          invocation_parameters:
                              | {
                                  anthropic: {
                                      max_tokens: number;
                                      stop_sequences?: (...)
                                      | (...);
                                      temperature?: (...) | (...);
                                      thinking?: (...) | (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "anthropic";
                              }
                              | {
                                  aws: {
                                      max_tokens?: (...)
                                      | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "aws";
                              }
                              | {
                                  azure_openai: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_completion_tokens?: (...) | (...);
                                      max_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      reasoning_effort?:
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...);
                                      seed?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "azure_openai";
                              }
                              | {
                                  deepseek: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_completion_tokens?: (...) | (...);
                                      max_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      reasoning_effort?:
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...);
                                      seed?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "deepseek";
                              }
                              | {
                                  google: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_output_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      stop_sequences?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_k?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "google";
                              }
                              | {
                                  ollama: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_completion_tokens?: (...) | (...);
                                      max_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      reasoning_effort?:
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...);
                                      seed?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "ollama";
                              }
                              | {
                                  openai: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_completion_tokens?: (...) | (...);
                                      max_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      reasoning_effort?:
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...);
                                      seed?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                                  type: "openai";
                              }
                              | {
                                  type: "xai";
                                  xai: {
                                      frequency_penalty?: (...)
                                      | (...);
                                      max_completion_tokens?: (...) | (...);
                                      max_tokens?: (...) | (...);
                                      presence_penalty?: (...) | (...);
                                      reasoning_effort?:
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...)
                                          | (...);
                                      seed?: (...) | (...);
                                      temperature?: (...) | (...);
                                      top_p?: (...) | (...);
                                  };
                              };
                          model_name: string;
                          model_provider: | "OPENAI"
                          | "AZURE_OPENAI"
                          | "ANTHROPIC"
                          | "GOOGLE"
                          | "DEEPSEEK"
                          | "XAI"
                          | "OLLAMA"
                          | "AWS";
                          response_format?: | {
                              json_schema: {
                                  description?: (...)
                                  | (...);
                                  name: string;
                                  schema?: (...) | (...);
                                  strict?: (...) | (...) | (...);
                              };
                              type: "json_schema";
                          }
                          | null;
                          template: | { messages: { content: ...; role: ... }[]; type: "chat" }
                          | { template: string; type: "string" };
                          template_format: "NONE" | "MUSTACHE" | "F_STRING";
                          template_type: "STR" | "CHAT";
                          tools?:
                              | {
                                  disable_parallel_tool_calls?: boolean;
                                  tool_choice?: | { type: ... }
                                  | { type: ... }
                                  | { function_name: ...; type: ... }
                                  | { type: ... };
                                  tools: { function: ...; type: ... }[];
                                  type: "tools";
                              }
                              | null;
                      };
                  };
              };
              headers: { [name: string]: unknown };
          }

          The prompt version with the specified tag

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Not Found

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/prompts/{prompt_identifier}/versions": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { prompt_identifier: string };
                query?: { cursor?: string | null; limit?: number };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: {
                                description?: string
                                | null;
                                id: string;
                                invocation_parameters:
                                    | {
                                        anthropic: {
                                            max_tokens: ...;
                                            stop_sequences?: ...;
                                            temperature?: ...;
                                            thinking?: ...;
                                            top_p?: ...;
                                        };
                                        type: "anthropic";
                                    }
                                    | {
                                        aws: { max_tokens?: ...; temperature?: ...; top_p?: ... };
                                        type: "aws";
                                    }
                                    | {
                                        azure_openai: {
                                            frequency_penalty?: ...;
                                            max_completion_tokens?: ...;
                                            max_tokens?: ...;
                                            presence_penalty?: ...;
                                            reasoning_effort?: ...;
                                            seed?: ...;
                                            temperature?: ...;
                                            top_p?: ...;
                                        };
                                        type: "azure_openai";
                                    }
                                    | {
                                        deepseek: {
                                            frequency_penalty?: ...;
                                            max_completion_tokens?: ...;
                                            max_tokens?: ...;
                                            presence_penalty?: ...;
                                            reasoning_effort?: ...;
                                            seed?: ...;
                                            temperature?: ...;
                                            top_p?: ...;
                                        };
                                        type: "deepseek";
                                    }
                                    | {
                                        google: {
                                            frequency_penalty?: ...;
                                            max_output_tokens?: ...;
                                            presence_penalty?: ...;
                                            stop_sequences?: ...;
                                            temperature?: ...;
                                            top_k?: ...;
                                            top_p?: ...;
                                        };
                                        type: "google";
                                    }
                                    | {
                                        ollama: {
                                            frequency_penalty?: ...;
                                            max_completion_tokens?: ...;
                                            max_tokens?: ...;
                                            presence_penalty?: ...;
                                            reasoning_effort?: ...;
                                            seed?: ...;
                                            temperature?: ...;
                                            top_p?: ...;
                                        };
                                        type: "ollama";
                                    }
                                    | {
                                        openai: {
                                            frequency_penalty?: ...;
                                            max_completion_tokens?: ...;
                                            max_tokens?: ...;
                                            presence_penalty?: ...;
                                            reasoning_effort?: ...;
                                            seed?: ...;
                                            temperature?: ...;
                                            top_p?: ...;
                                        };
                                        type: "openai";
                                    }
                                    | {
                                        type: "xai";
                                        xai: {
                                            frequency_penalty?: ...;
                                            max_completion_tokens?: ...;
                                            max_tokens?: ...;
                                            presence_penalty?: ...;
                                            reasoning_effort?: ...;
                                            seed?: ...;
                                            temperature?: ...;
                                            top_p?: ...;
                                        };
                                    };
                                model_name: string;
                                model_provider: | "OPENAI"
                                | "AZURE_OPENAI"
                                | "ANTHROPIC"
                                | "GOOGLE"
                                | "DEEPSEEK"
                                | "XAI"
                                | "OLLAMA"
                                | "AWS";
                                response_format?: | {
                                    json_schema: {
                                        description?: ...;
                                        name: ...;
                                        schema?: ...;
                                        strict?: ...;
                                    };
                                    type: "json_schema";
                                }
                                | null;
                                template: | { messages: (...)[]; type: "chat" }
                                | { template: string; type: "string" };
                                template_format: "NONE" | "MUSTACHE" | "F_STRING";
                                template_type: "STR" | "CHAT";
                                tools?:
                                    | {
                                        disable_parallel_tool_calls?: (...)
                                        | (...)
                                        | (...);
                                        tool_choice?: (...) | (...) | (...) | (...) | (...);
                                        tools: (...)[];
                                        type: "tools";
                                    }
                                    | null;
                            }[];
                            next_cursor: string
                            | null;
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { prompt_identifier: string };
              query?: { cursor?: string | null; limit?: number };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: {
                              description?: string
                              | null;
                              id: string;
                              invocation_parameters:
                                  | {
                                      anthropic: {
                                          max_tokens: ...;
                                          stop_sequences?: ...;
                                          temperature?: ...;
                                          thinking?: ...;
                                          top_p?: ...;
                                      };
                                      type: "anthropic";
                                  }
                                  | {
                                      aws: { max_tokens?: ...; temperature?: ...; top_p?: ... };
                                      type: "aws";
                                  }
                                  | {
                                      azure_openai: {
                                          frequency_penalty?: ...;
                                          max_completion_tokens?: ...;
                                          max_tokens?: ...;
                                          presence_penalty?: ...;
                                          reasoning_effort?: ...;
                                          seed?: ...;
                                          temperature?: ...;
                                          top_p?: ...;
                                      };
                                      type: "azure_openai";
                                  }
                                  | {
                                      deepseek: {
                                          frequency_penalty?: ...;
                                          max_completion_tokens?: ...;
                                          max_tokens?: ...;
                                          presence_penalty?: ...;
                                          reasoning_effort?: ...;
                                          seed?: ...;
                                          temperature?: ...;
                                          top_p?: ...;
                                      };
                                      type: "deepseek";
                                  }
                                  | {
                                      google: {
                                          frequency_penalty?: ...;
                                          max_output_tokens?: ...;
                                          presence_penalty?: ...;
                                          stop_sequences?: ...;
                                          temperature?: ...;
                                          top_k?: ...;
                                          top_p?: ...;
                                      };
                                      type: "google";
                                  }
                                  | {
                                      ollama: {
                                          frequency_penalty?: ...;
                                          max_completion_tokens?: ...;
                                          max_tokens?: ...;
                                          presence_penalty?: ...;
                                          reasoning_effort?: ...;
                                          seed?: ...;
                                          temperature?: ...;
                                          top_p?: ...;
                                      };
                                      type: "ollama";
                                  }
                                  | {
                                      openai: {
                                          frequency_penalty?: ...;
                                          max_completion_tokens?: ...;
                                          max_tokens?: ...;
                                          presence_penalty?: ...;
                                          reasoning_effort?: ...;
                                          seed?: ...;
                                          temperature?: ...;
                                          top_p?: ...;
                                      };
                                      type: "openai";
                                  }
                                  | {
                                      type: "xai";
                                      xai: {
                                          frequency_penalty?: ...;
                                          max_completion_tokens?: ...;
                                          max_tokens?: ...;
                                          presence_penalty?: ...;
                                          reasoning_effort?: ...;
                                          seed?: ...;
                                          temperature?: ...;
                                          top_p?: ...;
                                      };
                                  };
                              model_name: string;
                              model_provider: | "OPENAI"
                              | "AZURE_OPENAI"
                              | "ANTHROPIC"
                              | "GOOGLE"
                              | "DEEPSEEK"
                              | "XAI"
                              | "OLLAMA"
                              | "AWS";
                              response_format?: | {
                                  json_schema: {
                                      description?: ...;
                                      name: ...;
                                      schema?: ...;
                                      strict?: ...;
                                  };
                                  type: "json_schema";
                              }
                              | null;
                              template: | { messages: (...)[]; type: "chat" }
                              | { template: string; type: "string" };
                              template_format: "NONE" | "MUSTACHE" | "F_STRING";
                              template_type: "STR" | "CHAT";
                              tools?:
                                  | {
                                      disable_parallel_tool_calls?: (...)
                                      | (...)
                                      | (...);
                                      tool_choice?: (...) | (...) | (...) | (...) | (...);
                                      tools: (...)[];
                                      type: "tools";
                                  }
                                  | null;
                          }[];
                          next_cursor: string
                          | null;
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      List prompt versions

      Retrieve all versions of a specific prompt with pagination support. Each prompt can have multiple versions with different configurations.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { prompt_identifier: string };
            query?: { cursor?: string | null; limit?: number };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { prompt_identifier: string }
          • prompt_identifier: string

            The identifier of the prompt, i.e. name or ID.

        • Optionalquery?: { cursor?: string | null; limit?: number }
          • Optionalcursor?: string | null

            Cursor for pagination (base64-encoded promptVersion ID)

          • Optionallimit?: number

            The max number of prompt versions to return at a time.

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: {
                            description?: string | null;
                            id: string;
                            invocation_parameters:
                                | {
                                    anthropic: {
                                        max_tokens: ...;
                                        stop_sequences?: ...;
                                        temperature?: ...;
                                        thinking?: ...;
                                        top_p?: ...;
                                    };
                                    type: "anthropic";
                                }
                                | {
                                    aws: { max_tokens?: ...; temperature?: ...; top_p?: ... };
                                    type: "aws";
                                }
                                | {
                                    azure_openai: {
                                        frequency_penalty?: ...;
                                        max_completion_tokens?: ...;
                                        max_tokens?: ...;
                                        presence_penalty?: ...;
                                        reasoning_effort?: ...;
                                        seed?: ...;
                                        temperature?: ...;
                                        top_p?: ...;
                                    };
                                    type: "azure_openai";
                                }
                                | {
                                    deepseek: {
                                        frequency_penalty?: ...;
                                        max_completion_tokens?: ...;
                                        max_tokens?: ...;
                                        presence_penalty?: ...;
                                        reasoning_effort?: ...;
                                        seed?: ...;
                                        temperature?: ...;
                                        top_p?: ...;
                                    };
                                    type: "deepseek";
                                }
                                | {
                                    google: {
                                        frequency_penalty?: ...;
                                        max_output_tokens?: ...;
                                        presence_penalty?: ...;
                                        stop_sequences?: ...;
                                        temperature?: ...;
                                        top_k?: ...;
                                        top_p?: ...;
                                    };
                                    type: "google";
                                }
                                | {
                                    ollama: {
                                        frequency_penalty?: ...;
                                        max_completion_tokens?: ...;
                                        max_tokens?: ...;
                                        presence_penalty?: ...;
                                        reasoning_effort?: ...;
                                        seed?: ...;
                                        temperature?: ...;
                                        top_p?: ...;
                                    };
                                    type: "ollama";
                                }
                                | {
                                    openai: {
                                        frequency_penalty?: ...;
                                        max_completion_tokens?: ...;
                                        max_tokens?: ...;
                                        presence_penalty?: ...;
                                        reasoning_effort?: ...;
                                        seed?: ...;
                                        temperature?: ...;
                                        top_p?: ...;
                                    };
                                    type: "openai";
                                }
                                | {
                                    type: "xai";
                                    xai: {
                                        frequency_penalty?: ...;
                                        max_completion_tokens?: ...;
                                        max_tokens?: ...;
                                        presence_penalty?: ...;
                                        reasoning_effort?: ...;
                                        seed?: ...;
                                        temperature?: ...;
                                        top_p?: ...;
                                    };
                                };
                            model_name: string;
                            model_provider: | "OPENAI"
                            | "AZURE_OPENAI"
                            | "ANTHROPIC"
                            | "GOOGLE"
                            | "DEEPSEEK"
                            | "XAI"
                            | "OLLAMA"
                            | "AWS";
                            response_format?: | {
                                json_schema: {
                                    description?: ...;
                                    name: ...;
                                    schema?: ...;
                                    strict?: ...;
                                };
                                type: "json_schema";
                            }
                            | null;
                            template: | { messages: (...)[]; type: "chat" }
                            | { template: string; type: "string" };
                            template_format: "NONE" | "MUSTACHE" | "F_STRING";
                            template_type: "STR" | "CHAT";
                            tools?:
                                | {
                                    disable_parallel_tool_calls?: (...)
                                    | (...)
                                    | (...);
                                    tool_choice?: (...) | (...) | (...) | (...) | (...);
                                    tools: (...)[];
                                    type: "tools";
                                }
                                | null;
                        }[];
                        next_cursor: string
                        | null;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: {
                          description?: string | null;
                          id: string;
                          invocation_parameters:
                              | {
                                  anthropic: {
                                      max_tokens: ...;
                                      stop_sequences?: ...;
                                      temperature?: ...;
                                      thinking?: ...;
                                      top_p?: ...;
                                  };
                                  type: "anthropic";
                              }
                              | {
                                  aws: { max_tokens?: ...; temperature?: ...; top_p?: ... };
                                  type: "aws";
                              }
                              | {
                                  azure_openai: {
                                      frequency_penalty?: ...;
                                      max_completion_tokens?: ...;
                                      max_tokens?: ...;
                                      presence_penalty?: ...;
                                      reasoning_effort?: ...;
                                      seed?: ...;
                                      temperature?: ...;
                                      top_p?: ...;
                                  };
                                  type: "azure_openai";
                              }
                              | {
                                  deepseek: {
                                      frequency_penalty?: ...;
                                      max_completion_tokens?: ...;
                                      max_tokens?: ...;
                                      presence_penalty?: ...;
                                      reasoning_effort?: ...;
                                      seed?: ...;
                                      temperature?: ...;
                                      top_p?: ...;
                                  };
                                  type: "deepseek";
                              }
                              | {
                                  google: {
                                      frequency_penalty?: ...;
                                      max_output_tokens?: ...;
                                      presence_penalty?: ...;
                                      stop_sequences?: ...;
                                      temperature?: ...;
                                      top_k?: ...;
                                      top_p?: ...;
                                  };
                                  type: "google";
                              }
                              | {
                                  ollama: {
                                      frequency_penalty?: ...;
                                      max_completion_tokens?: ...;
                                      max_tokens?: ...;
                                      presence_penalty?: ...;
                                      reasoning_effort?: ...;
                                      seed?: ...;
                                      temperature?: ...;
                                      top_p?: ...;
                                  };
                                  type: "ollama";
                              }
                              | {
                                  openai: {
                                      frequency_penalty?: ...;
                                      max_completion_tokens?: ...;
                                      max_tokens?: ...;
                                      presence_penalty?: ...;
                                      reasoning_effort?: ...;
                                      seed?: ...;
                                      temperature?: ...;
                                      top_p?: ...;
                                  };
                                  type: "openai";
                              }
                              | {
                                  type: "xai";
                                  xai: {
                                      frequency_penalty?: ...;
                                      max_completion_tokens?: ...;
                                      max_tokens?: ...;
                                      presence_penalty?: ...;
                                      reasoning_effort?: ...;
                                      seed?: ...;
                                      temperature?: ...;
                                      top_p?: ...;
                                  };
                              };
                          model_name: string;
                          model_provider: | "OPENAI"
                          | "AZURE_OPENAI"
                          | "ANTHROPIC"
                          | "GOOGLE"
                          | "DEEPSEEK"
                          | "XAI"
                          | "OLLAMA"
                          | "AWS";
                          response_format?: | {
                              json_schema: {
                                  description?: ...;
                                  name: ...;
                                  schema?: ...;
                                  strict?: ...;
                              };
                              type: "json_schema";
                          }
                          | null;
                          template: | { messages: (...)[]; type: "chat" }
                          | { template: string; type: "string" };
                          template_format: "NONE" | "MUSTACHE" | "F_STRING";
                          template_type: "STR" | "CHAT";
                          tools?:
                              | {
                                  disable_parallel_tool_calls?: (...)
                                  | (...)
                                  | (...);
                                  tool_choice?: (...) | (...) | (...) | (...) | (...);
                                  tools: (...)[];
                                  type: "tools";
                              }
                              | null;
                      }[];
                      next_cursor: string
                      | null;
                  };
              };
              headers: { [name: string]: unknown };
          }

          A list of prompt versions with pagination information

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Not Found

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/session_annotations": {
        delete?: undefined;
        get?: undefined;
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: { sync?: boolean };
            };
            requestBody: {
                content: {
                    "application/json": {
                        data: {
                            annotator_kind: "LLM"
                            | "CODE"
                            | "HUMAN";
                            identifier?: string;
                            metadata?: { [key: string]: unknown } | null;
                            name: string;
                            result?:
                                | {
                                    explanation?: string
                                    | null;
                                    label?: string | null;
                                    score?: number | null;
                                }
                                | null;
                            session_id: string;
                        }[];
                    };
                };
            };
            responses: {
                "200": {
                    content: { "application/json": { data: { id: string }[] } };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • Optionalget?: undefined
    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • post: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path?: undefined;
              query?: { sync?: boolean };
          };
          requestBody: {
              content: {
                  "application/json": {
                      data: {
                          annotator_kind: "LLM"
                          | "CODE"
                          | "HUMAN";
                          identifier?: string;
                          metadata?: { [key: string]: unknown } | null;
                          name: string;
                          result?:
                              | {
                                  explanation?: string
                                  | null;
                                  label?: string | null;
                                  score?: number | null;
                              }
                              | null;
                          session_id: string;
                      }[];
                  };
              };
          };
          responses: {
              "200": {
                  content: { "application/json": { data: { id: string }[] } };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Create session annotations

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: { sync?: boolean };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • Optionalpath?: undefined
        • Optionalquery?: { sync?: boolean }
          • Optionalsync?: boolean

            If true, fulfill request synchronously.

      • requestBody: {
            content: {
                "application/json": {
                    data: {
                        annotator_kind: "LLM" | "CODE" | "HUMAN";
                        identifier?: string;
                        metadata?: { [key: string]: unknown } | null;
                        name: string;
                        result?:
                            | {
                                explanation?: string
                                | null;
                                label?: string | null;
                                score?: number | null;
                            }
                            | null;
                        session_id: string;
                    }[];
                };
            };
        }
      • responses: {
            "200": {
                content: { "application/json": { data: { id: string }[] } };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: { "application/json": { data: { id: string }[] } };
              headers: { [name: string]: unknown };
          }

          Session annotations inserted successfully

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Session not found

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/span_annotations": {
        delete?: undefined;
        get?: undefined;
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: { sync?: boolean };
            };
            requestBody: {
                content: {
                    "application/json": {
                        data: {
                            annotator_kind: "LLM"
                            | "CODE"
                            | "HUMAN";
                            identifier?: string;
                            metadata?: { [key: string]: unknown } | null;
                            name: string;
                            result?:
                                | {
                                    explanation?: string
                                    | null;
                                    label?: string | null;
                                    score?: number | null;
                                }
                                | null;
                            span_id: string;
                        }[];
                    };
                };
            };
            responses: {
                "200": {
                    content: { "application/json": { data: { id: string }[] } };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • Optionalget?: undefined
    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • post: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path?: undefined;
              query?: { sync?: boolean };
          };
          requestBody: {
              content: {
                  "application/json": {
                      data: {
                          annotator_kind: "LLM"
                          | "CODE"
                          | "HUMAN";
                          identifier?: string;
                          metadata?: { [key: string]: unknown } | null;
                          name: string;
                          result?:
                              | {
                                  explanation?: string
                                  | null;
                                  label?: string | null;
                                  score?: number | null;
                              }
                              | null;
                          span_id: string;
                      }[];
                  };
              };
          };
          responses: {
              "200": {
                  content: { "application/json": { data: { id: string }[] } };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Create span annotations

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: { sync?: boolean };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • Optionalpath?: undefined
        • Optionalquery?: { sync?: boolean }
          • Optionalsync?: boolean

            If true, fulfill request synchronously.

      • requestBody: {
            content: {
                "application/json": {
                    data: {
                        annotator_kind: "LLM" | "CODE" | "HUMAN";
                        identifier?: string;
                        metadata?: { [key: string]: unknown } | null;
                        name: string;
                        result?:
                            | {
                                explanation?: string
                                | null;
                                label?: string | null;
                                score?: number | null;
                            }
                            | null;
                        span_id: string;
                    }[];
                };
            };
        }
      • responses: {
            "200": {
                content: { "application/json": { data: { id: string }[] } };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: { "application/json": { data: { id: string }[] } };
              headers: { [name: string]: unknown };
          }

          Span annotations inserted successfully

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Span not found

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/span_notes": {
        delete?: undefined;
        get?: undefined;
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            requestBody: {
                content: {
                    "application/json": { data: { note: string; span_id: string } };
                };
            };
            responses: {
                "200": {
                    content: { "application/json": { data: { id: string } } };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • Optionalget?: undefined
    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • post: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path?: undefined;
              query?: undefined;
          };
          requestBody: {
              content: {
                  "application/json": { data: { note: string; span_id: string } };
              };
          };
          responses: {
              "200": {
                  content: { "application/json": { data: { id: string } } };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Create a span note

      Add a note annotation to a span. Notes are special annotations that allow multiple entries per span (unlike regular annotations which are unique by name and identifier). Each note gets a unique timestamp-based identifier.

      • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
      • requestBody: { content: { "application/json": { data: { note: string; span_id: string } } } }
      • responses: {
            "200": {
                content: { "application/json": { data: { id: string } } };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: { "application/json": { data: { id: string } } };
              headers: { [name: string]: unknown };
          }

          Span note created successfully

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Span not found

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/spans/{span_identifier}": {
        delete: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { span_identifier: string };
                query?: undefined;
            };
            requestBody?: undefined;
            responses: {
                "204": { content?: undefined; headers: { [name: string]: unknown } };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        get?: undefined;
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • delete: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { span_identifier: string };
              query?: undefined;
          };
          requestBody?: undefined;
          responses: {
              "204": { content?: undefined; headers: { [name: string]: unknown } };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Delete a span by span_identifier

      Delete a single span by identifier.

              **Important**: This operation deletes ONLY the specified span itself and does NOT
              delete its descendants/children. All child spans will remain in the trace and
              become orphaned (their parent_id will point to a non-existent span).
      
              Behavior:
              - Deletes only the target span (preserves all descendant spans)
              - If this was the last span in the trace, the trace record is also deleted
              - If the deleted span had a parent, its cumulative metrics (error count, token counts)
                are subtracted from all ancestor spans in the chain
      
              **Note**: This operation is irreversible and may create orphaned spans.
      
      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { span_identifier: string };
            query?: undefined;
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { span_identifier: string }
          • span_identifier: string

            The span identifier: either a relay GlobalID or OpenTelemetry span_id

        • Optionalquery?: undefined
      • OptionalrequestBody?: undefined
      • responses: {
            "204": { content?: undefined; headers: { [name: string]: unknown } };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 204: { content?: undefined; headers: { [name: string]: unknown } }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Not Found

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionalget?: undefined
    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/trace_annotations": {
        delete?: undefined;
        get?: undefined;
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: { sync?: boolean };
            };
            requestBody: {
                content: {
                    "application/json": {
                        data: {
                            annotator_kind: "LLM"
                            | "CODE"
                            | "HUMAN";
                            identifier?: string;
                            metadata?: { [key: string]: unknown } | null;
                            name: string;
                            result?:
                                | {
                                    explanation?: string
                                    | null;
                                    label?: string | null;
                                    score?: number | null;
                                }
                                | null;
                            trace_id: string;
                        }[];
                    };
                };
            };
            responses: {
                "200": {
                    content: { "application/json": { data: { id: string }[] } };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • Optionalget?: undefined
    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • post: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path?: undefined;
              query?: { sync?: boolean };
          };
          requestBody: {
              content: {
                  "application/json": {
                      data: {
                          annotator_kind: "LLM"
                          | "CODE"
                          | "HUMAN";
                          identifier?: string;
                          metadata?: { [key: string]: unknown } | null;
                          name: string;
                          result?:
                              | {
                                  explanation?: string
                                  | null;
                                  label?: string | null;
                                  score?: number | null;
                              }
                              | null;
                          trace_id: string;
                      }[];
                  };
              };
          };
          responses: {
              "200": {
                  content: { "application/json": { data: { id: string }[] } };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Create trace annotations

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: { sync?: boolean };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • Optionalpath?: undefined
        • Optionalquery?: { sync?: boolean }
          • Optionalsync?: boolean

            If true, fulfill request synchronously.

      • requestBody: {
            content: {
                "application/json": {
                    data: {
                        annotator_kind: "LLM" | "CODE" | "HUMAN";
                        identifier?: string;
                        metadata?: { [key: string]: unknown } | null;
                        name: string;
                        result?:
                            | {
                                explanation?: string
                                | null;
                                label?: string | null;
                                score?: number | null;
                            }
                            | null;
                        trace_id: string;
                    }[];
                };
            };
        }
      • responses: {
            "200": {
                content: { "application/json": { data: { id: string }[] } };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: { "application/json": { data: { id: string }[] } };
              headers: { [name: string]: unknown };
          }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Trace not found

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/traces/{trace_identifier}": {
        delete: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { trace_identifier: string };
                query?: undefined;
            };
            requestBody?: undefined;
            responses: {
                "204": { content?: undefined; headers: { [name: string]: unknown } };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: {
                        "application/json": {
                            detail?: {
                                ctx?: Record<(...), (...)>;
                                input?: unknown;
                                loc: ((...) | (...))[];
                                msg: string;
                                type: string;
                            }[];
                        };
                    };
                    headers: { [name: string]: unknown };
                };
            };
        };
        get?: undefined;
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • delete: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { trace_identifier: string };
              query?: undefined;
          };
          requestBody?: undefined;
          responses: {
              "204": { content?: undefined; headers: { [name: string]: unknown } };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: {
                      "application/json": {
                          detail?: {
                              ctx?: Record<(...), (...)>;
                              input?: unknown;
                              loc: ((...) | (...))[];
                              msg: string;
                              type: string;
                          }[];
                      };
                  };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Delete a trace by identifier

      Delete an entire trace by its identifier. The identifier can be either: 1. A Relay node ID (base64-encoded) 2. An OpenTelemetry trace_id (hex string)

      This will permanently remove all spans in the trace and their associated data.
      
      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { trace_identifier: string };
            query?: undefined;
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { trace_identifier: string }
          • trace_identifier: string

            The trace identifier: either a relay GlobalID or OpenTelemetry trace_id

        • Optionalquery?: undefined
      • OptionalrequestBody?: undefined
      • responses: {
            "204": { content?: undefined; headers: { [name: string]: unknown } };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: {
                    "application/json": {
                        detail?: {
                            ctx?: Record<(...), (...)>;
                            input?: unknown;
                            loc: ((...) | (...))[];
                            msg: string;
                            type: string;
                        }[];
                    };
                };
                headers: { [name: string]: unknown };
            };
        }
        • 204: { content?: undefined; headers: { [name: string]: unknown } }

          Successful Response

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Not Found

        • 422: {
              content: {
                  "application/json": {
                      detail?: {
                          ctx?: Record<(...), (...)>;
                          input?: unknown;
                          loc: ((...) | (...))[];
                          msg: string;
                          type: string;
                      }[];
                  };
              };
              headers: { [name: string]: unknown };
          }

          Validation Error

    • Optionalget?: undefined
    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/users": {
        delete?: undefined;
        get: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: { cursor?: string; limit?: number };
            };
            requestBody?: undefined;
            responses: {
                "200": {
                    content: {
                        "application/json": {
                            data: (
                                | {
                                    auth_method: "LOCAL";
                                    created_at: string;
                                    email: string;
                                    id: string;
                                    password?: string;
                                    password_needs_reset: boolean;
                                    role: "SYSTEM"
                                    | "ADMIN"
                                    | "MEMBER"
                                    | "VIEWER";
                                    updated_at: string;
                                    username: string;
                                }
                                | {
                                    auth_method: "OAUTH2";
                                    created_at: string;
                                    email: string;
                                    id: string;
                                    oauth2_client_id?: string;
                                    oauth2_user_id?: string;
                                    profile_picture_url?: string;
                                    role: "SYSTEM"
                                    | "ADMIN"
                                    | "MEMBER"
                                    | "VIEWER";
                                    updated_at: string;
                                    username: string;
                                }
                                | {
                                    auth_method: "LDAP";
                                    created_at: string;
                                    email: string;
                                    id: string;
                                    role: "SYSTEM"
                                    | "ADMIN"
                                    | "MEMBER"
                                    | "VIEWER";
                                    updated_at: string;
                                    username: string;
                                }
                            )[];
                            next_cursor: string
                            | null;
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path?: undefined;
                query?: undefined;
            };
            requestBody: {
                content: {
                    "application/json": {
                        send_welcome_email?: boolean;
                        user: | {
                            auth_method: "LOCAL";
                            email: string;
                            password?: string;
                            role: "SYSTEM"
                            | "ADMIN"
                            | "MEMBER"
                            | "VIEWER";
                            username: string;
                        }
                        | {
                            auth_method: "OAUTH2";
                            email: string;
                            oauth2_client_id?: string;
                            oauth2_user_id?: string;
                            role: "SYSTEM"
                            | "ADMIN"
                            | "MEMBER"
                            | "VIEWER";
                            username: string;
                        }
                        | {
                            auth_method: "LDAP";
                            email: string;
                            role: "SYSTEM"
                            | "ADMIN"
                            | "MEMBER"
                            | "VIEWER";
                            username: string;
                        };
                    };
                };
            };
            responses: {
                "201": {
                    content: {
                        "application/json": {
                            data: | {
                                auth_method: "LOCAL";
                                created_at: string;
                                email: string;
                                id: string;
                                password?: string;
                                password_needs_reset: boolean;
                                role: "SYSTEM"
                                | "ADMIN"
                                | "MEMBER"
                                | "VIEWER";
                                updated_at: string;
                                username: string;
                            }
                            | {
                                auth_method: "OAUTH2";
                                created_at: string;
                                email: string;
                                id: string;
                                oauth2_client_id?: string;
                                oauth2_user_id?: string;
                                profile_picture_url?: string;
                                role: "SYSTEM"
                                | "ADMIN"
                                | "MEMBER"
                                | "VIEWER";
                                updated_at: string;
                                username: string;
                            }
                            | {
                                auth_method: "LDAP";
                                created_at: string;
                                email: string;
                                id: string;
                                role: "SYSTEM"
                                | "ADMIN"
                                | "MEMBER"
                                | "VIEWER";
                                updated_at: string;
                                username: string;
                            };
                        };
                    };
                    headers: { [name: string]: unknown };
                };
                "400": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "409": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • Optionaldelete?: undefined
    • get: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path?: undefined;
              query?: { cursor?: string; limit?: number };
          };
          requestBody?: undefined;
          responses: {
              "200": {
                  content: {
                      "application/json": {
                          data: (
                              | {
                                  auth_method: "LOCAL";
                                  created_at: string;
                                  email: string;
                                  id: string;
                                  password?: string;
                                  password_needs_reset: boolean;
                                  role: "SYSTEM"
                                  | "ADMIN"
                                  | "MEMBER"
                                  | "VIEWER";
                                  updated_at: string;
                                  username: string;
                              }
                              | {
                                  auth_method: "OAUTH2";
                                  created_at: string;
                                  email: string;
                                  id: string;
                                  oauth2_client_id?: string;
                                  oauth2_user_id?: string;
                                  profile_picture_url?: string;
                                  role: "SYSTEM"
                                  | "ADMIN"
                                  | "MEMBER"
                                  | "VIEWER";
                                  updated_at: string;
                                  username: string;
                              }
                              | {
                                  auth_method: "LDAP";
                                  created_at: string;
                                  email: string;
                                  id: string;
                                  role: "SYSTEM"
                                  | "ADMIN"
                                  | "MEMBER"
                                  | "VIEWER";
                                  updated_at: string;
                                  username: string;
                              }
                          )[];
                          next_cursor: string
                          | null;
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      List all users

      Retrieve a paginated list of all users in the system.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: { cursor?: string; limit?: number };
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • Optionalpath?: undefined
        • Optionalquery?: { cursor?: string; limit?: number }
          • Optionalcursor?: string

            Cursor for pagination (base64-encoded user ID)

          • Optionallimit?: number

            The max number of users to return at a time.

      • OptionalrequestBody?: undefined
      • responses: {
            "200": {
                content: {
                    "application/json": {
                        data: (
                            | {
                                auth_method: "LOCAL";
                                created_at: string;
                                email: string;
                                id: string;
                                password?: string;
                                password_needs_reset: boolean;
                                role: "SYSTEM"
                                | "ADMIN"
                                | "MEMBER"
                                | "VIEWER";
                                updated_at: string;
                                username: string;
                            }
                            | {
                                auth_method: "OAUTH2";
                                created_at: string;
                                email: string;
                                id: string;
                                oauth2_client_id?: string;
                                oauth2_user_id?: string;
                                profile_picture_url?: string;
                                role: "SYSTEM"
                                | "ADMIN"
                                | "MEMBER"
                                | "VIEWER";
                                updated_at: string;
                                username: string;
                            }
                            | {
                                auth_method: "LDAP";
                                created_at: string;
                                email: string;
                                id: string;
                                role: "SYSTEM"
                                | "ADMIN"
                                | "MEMBER"
                                | "VIEWER";
                                updated_at: string;
                                username: string;
                            }
                        )[];
                        next_cursor: string
                        | null;
                    };
                };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 200: {
              content: {
                  "application/json": {
                      data: (
                          | {
                              auth_method: "LOCAL";
                              created_at: string;
                              email: string;
                              id: string;
                              password?: string;
                              password_needs_reset: boolean;
                              role: "SYSTEM"
                              | "ADMIN"
                              | "MEMBER"
                              | "VIEWER";
                              updated_at: string;
                              username: string;
                          }
                          | {
                              auth_method: "OAUTH2";
                              created_at: string;
                              email: string;
                              id: string;
                              oauth2_client_id?: string;
                              oauth2_user_id?: string;
                              profile_picture_url?: string;
                              role: "SYSTEM"
                              | "ADMIN"
                              | "MEMBER"
                              | "VIEWER";
                              updated_at: string;
                              username: string;
                          }
                          | {
                              auth_method: "LDAP";
                              created_at: string;
                              email: string;
                              id: string;
                              role: "SYSTEM"
                              | "ADMIN"
                              | "MEMBER"
                              | "VIEWER";
                              updated_at: string;
                              username: string;
                          }
                      )[];
                      next_cursor: string
                      | null;
                  };
              };
              headers: { [name: string]: unknown };
          }

          A list of users.

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • post: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path?: undefined;
              query?: undefined;
          };
          requestBody: {
              content: {
                  "application/json": {
                      send_welcome_email?: boolean;
                      user: | {
                          auth_method: "LOCAL";
                          email: string;
                          password?: string;
                          role: "SYSTEM"
                          | "ADMIN"
                          | "MEMBER"
                          | "VIEWER";
                          username: string;
                      }
                      | {
                          auth_method: "OAUTH2";
                          email: string;
                          oauth2_client_id?: string;
                          oauth2_user_id?: string;
                          role: "SYSTEM"
                          | "ADMIN"
                          | "MEMBER"
                          | "VIEWER";
                          username: string;
                      }
                      | {
                          auth_method: "LDAP";
                          email: string;
                          role: "SYSTEM"
                          | "ADMIN"
                          | "MEMBER"
                          | "VIEWER";
                          username: string;
                      };
                  };
              };
          };
          responses: {
              "201": {
                  content: {
                      "application/json": {
                          data: | {
                              auth_method: "LOCAL";
                              created_at: string;
                              email: string;
                              id: string;
                              password?: string;
                              password_needs_reset: boolean;
                              role: "SYSTEM"
                              | "ADMIN"
                              | "MEMBER"
                              | "VIEWER";
                              updated_at: string;
                              username: string;
                          }
                          | {
                              auth_method: "OAUTH2";
                              created_at: string;
                              email: string;
                              id: string;
                              oauth2_client_id?: string;
                              oauth2_user_id?: string;
                              profile_picture_url?: string;
                              role: "SYSTEM"
                              | "ADMIN"
                              | "MEMBER"
                              | "VIEWER";
                              updated_at: string;
                              username: string;
                          }
                          | {
                              auth_method: "LDAP";
                              created_at: string;
                              email: string;
                              id: string;
                              role: "SYSTEM"
                              | "ADMIN"
                              | "MEMBER"
                              | "VIEWER";
                              updated_at: string;
                              username: string;
                          };
                      };
                  };
                  headers: { [name: string]: unknown };
              };
              "400": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "409": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Create a new user

      Create a new user with the specified configuration.

      • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
      • requestBody: {
            content: {
                "application/json": {
                    send_welcome_email?: boolean;
                    user:
                        | {
                            auth_method: "LOCAL";
                            email: string;
                            password?: string;
                            role: "SYSTEM"
                            | "ADMIN"
                            | "MEMBER"
                            | "VIEWER";
                            username: string;
                        }
                        | {
                            auth_method: "OAUTH2";
                            email: string;
                            oauth2_client_id?: string;
                            oauth2_user_id?: string;
                            role: "SYSTEM"
                            | "ADMIN"
                            | "MEMBER"
                            | "VIEWER";
                            username: string;
                        }
                        | {
                            auth_method: "LDAP";
                            email: string;
                            role: "SYSTEM"
                            | "ADMIN"
                            | "MEMBER"
                            | "VIEWER";
                            username: string;
                        };
                };
            };
        }
      • responses: {
            "201": {
                content: {
                    "application/json": {
                        data:
                            | {
                                auth_method: "LOCAL";
                                created_at: string;
                                email: string;
                                id: string;
                                password?: string;
                                password_needs_reset: boolean;
                                role: "SYSTEM"
                                | "ADMIN"
                                | "MEMBER"
                                | "VIEWER";
                                updated_at: string;
                                username: string;
                            }
                            | {
                                auth_method: "OAUTH2";
                                created_at: string;
                                email: string;
                                id: string;
                                oauth2_client_id?: string;
                                oauth2_user_id?: string;
                                profile_picture_url?: string;
                                role: "SYSTEM"
                                | "ADMIN"
                                | "MEMBER"
                                | "VIEWER";
                                updated_at: string;
                                username: string;
                            }
                            | {
                                auth_method: "LDAP";
                                created_at: string;
                                email: string;
                                id: string;
                                role: "SYSTEM"
                                | "ADMIN"
                                | "MEMBER"
                                | "VIEWER";
                                updated_at: string;
                                username: string;
                            };
                    };
                };
                headers: { [name: string]: unknown };
            };
            "400": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "409": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 201: {
              content: {
                  "application/json": {
                      data:
                          | {
                              auth_method: "LOCAL";
                              created_at: string;
                              email: string;
                              id: string;
                              password?: string;
                              password_needs_reset: boolean;
                              role: "SYSTEM"
                              | "ADMIN"
                              | "MEMBER"
                              | "VIEWER";
                              updated_at: string;
                              username: string;
                          }
                          | {
                              auth_method: "OAUTH2";
                              created_at: string;
                              email: string;
                              id: string;
                              oauth2_client_id?: string;
                              oauth2_user_id?: string;
                              profile_picture_url?: string;
                              role: "SYSTEM"
                              | "ADMIN"
                              | "MEMBER"
                              | "VIEWER";
                              updated_at: string;
                              username: string;
                          }
                          | {
                              auth_method: "LDAP";
                              created_at: string;
                              email: string;
                              id: string;
                              role: "SYSTEM"
                              | "ADMIN"
                              | "MEMBER"
                              | "VIEWER";
                              updated_at: string;
                              username: string;
                          };
                  };
              };
              headers: { [name: string]: unknown };
          }

          The newly created user.

        • 400: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Role not found.

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Forbidden

        • 409: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Username or email already exists.

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalput?: undefined
    • Optionaltrace?: undefined
    "/v1/users/{user_id}": {
        delete: {
            parameters: {
                cookie?: undefined;
                header?: undefined;
                path: { user_id: string };
                query?: undefined;
            };
            requestBody?: undefined;
            responses: {
                "204": { content?: undefined; headers: { [name: string]: unknown } };
                "403": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "404": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
                "422": {
                    content: { "text/plain": string };
                    headers: { [name: string]: unknown };
                };
            };
        };
        get?: undefined;
        head?: undefined;
        options?: undefined;
        parameters: {
            cookie?: undefined;
            header?: undefined;
            path?: undefined;
            query?: undefined;
        };
        patch?: undefined;
        post?: undefined;
        put?: undefined;
        trace?: undefined;
    }

    Type Declaration

    • delete: {
          parameters: {
              cookie?: undefined;
              header?: undefined;
              path: { user_id: string };
              query?: undefined;
          };
          requestBody?: undefined;
          responses: {
              "204": { content?: undefined; headers: { [name: string]: unknown } };
              "403": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "404": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
              "422": {
                  content: { "text/plain": string };
                  headers: { [name: string]: unknown };
              };
          };
      }

      Delete a user by ID

      Delete an existing user by their unique GlobalID.

      • parameters: {
            cookie?: undefined;
            header?: undefined;
            path: { user_id: string };
            query?: undefined;
        }
        • Optionalcookie?: undefined
        • Optionalheader?: undefined
        • path: { user_id: string }
          • user_id: string

            The GlobalID of the user (e.g. 'VXNlcjox').

        • Optionalquery?: undefined
      • OptionalrequestBody?: undefined
      • responses: {
            "204": { content?: undefined; headers: { [name: string]: unknown } };
            "403": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "404": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
            "422": {
                content: { "text/plain": string };
                headers: { [name: string]: unknown };
            };
        }
        • 204: { content?: undefined; headers: { [name: string]: unknown } }

          No content returned on successful deletion.

        • 403: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Cannot delete the default admin or system user

        • 404: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          User not found.

        • 422: { content: { "text/plain": string }; headers: { [name: string]: unknown } }

          Unprocessable Entity

    • Optionalget?: undefined
    • Optionalhead?: undefined
    • Optionaloptions?: undefined
    • parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined }
    • Optionalpatch?: undefined
    • Optionalpost?: undefined
    • Optionalput?: undefined
    • Optionaltrace?: undefined