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

// src/langwatch-api-workflows.ts
async function listWorkflows() {
  return makeRequest("GET", "/api/workflows");
}
async function getWorkflow(id) {
  return makeRequest(
    "GET",
    `/api/workflows/${encodeURIComponent(id)}`
  );
}
async function runWorkflow(id, input) {
  return makeRequest(
    "POST",
    `/api/workflows/${encodeURIComponent(id)}/run`,
    input ?? {}
  );
}
async function deleteWorkflow(id) {
  return makeRequest(
    "DELETE",
    `/api/workflows/${encodeURIComponent(id)}`
  );
}

export {
  listWorkflows,
  getWorkflow,
  runWorkflow,
  deleteWorkflow
};
//# sourceMappingURL=chunk-XRQNXN2Z.js.map