import {
  makeRequest
} from "./chunk-CAY57CKF.js";

// src/langwatch-api-annotations.ts
async function listAnnotations() {
  return makeRequest("GET", "/api/annotations");
}
async function getAnnotation(id) {
  return makeRequest(
    "GET",
    `/api/annotations/${encodeURIComponent(id)}`
  );
}
async function getAnnotationsByTrace(traceId) {
  return makeRequest(
    "GET",
    `/api/annotations/trace/${encodeURIComponent(traceId)}`
  );
}
async function createAnnotation(traceId, data) {
  return makeRequest(
    "POST",
    `/api/annotations/trace/${encodeURIComponent(traceId)}`,
    data
  );
}
async function deleteAnnotation(id) {
  return makeRequest(
    "DELETE",
    `/api/annotations/${encodeURIComponent(id)}`
  );
}

export {
  listAnnotations,
  getAnnotation,
  getAnnotationsByTrace,
  createAnnotation,
  deleteAnnotation
};
//# sourceMappingURL=chunk-RDUXCCFR.js.map