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

// src/langwatch-api-scenarios.ts
async function listScenarios() {
  return makeRequest("GET", "/api/scenarios");
}
async function getScenario(id) {
  return makeRequest(
    "GET",
    `/api/scenarios/${encodeURIComponent(id)}`
  );
}
async function createScenario(data) {
  return makeRequest("POST", "/api/scenarios", data);
}
async function updateScenario(params) {
  const { id, ...data } = params;
  return makeRequest(
    "PUT",
    `/api/scenarios/${encodeURIComponent(id)}`,
    data
  );
}
async function archiveScenario(id) {
  return makeRequest(
    "DELETE",
    `/api/scenarios/${encodeURIComponent(id)}`
  );
}

export {
  listScenarios,
  getScenario,
  createScenario,
  updateScenario,
  archiveScenario
};
//# sourceMappingURL=chunk-LTEJDL4V.js.map