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

// src/langwatch-api-dashboards.ts
async function listDashboards() {
  return makeRequest("GET", "/api/dashboards");
}
async function getDashboard(id) {
  return makeRequest(
    "GET",
    `/api/dashboards/${encodeURIComponent(id)}`
  );
}
async function createDashboard(data) {
  return makeRequest("POST", "/api/dashboards", data);
}
async function renameDashboard(id, data) {
  return makeRequest(
    "PATCH",
    `/api/dashboards/${encodeURIComponent(id)}`,
    data
  );
}
async function deleteDashboard(id) {
  return makeRequest(
    "DELETE",
    `/api/dashboards/${encodeURIComponent(id)}`
  );
}

export {
  listDashboards,
  getDashboard,
  createDashboard,
  renameDashboard,
  deleteDashboard
};
//# sourceMappingURL=chunk-U2QIW2SW.js.map