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

// src/langwatch-api-suites.ts
async function listSuites() {
  return makeRequest("GET", "/api/suites");
}
async function getSuite(id) {
  return makeRequest(
    "GET",
    `/api/suites/${encodeURIComponent(id)}`
  );
}
async function createSuite(data) {
  return makeRequest("POST", "/api/suites", data);
}
async function updateSuite(params) {
  const { id, ...data } = params;
  return makeRequest(
    "PATCH",
    `/api/suites/${encodeURIComponent(id)}`,
    data
  );
}
async function runSuite(id, idempotencyKey) {
  return makeRequest(
    "POST",
    `/api/suites/${encodeURIComponent(id)}/run`,
    { idempotencyKey: idempotencyKey ?? `mcp-${Date.now()}-${Math.random().toString(36).slice(2)}` }
  );
}
async function archiveSuite(id) {
  return makeRequest(
    "DELETE",
    `/api/suites/${encodeURIComponent(id)}`
  );
}

export {
  listSuites,
  getSuite,
  createSuite,
  updateSuite,
  runSuite,
  archiveSuite
};
//# sourceMappingURL=chunk-UKRCZJJC.js.map