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

// src/langwatch-api-triggers.ts
async function listTriggers() {
  return makeRequest("GET", "/api/triggers");
}
async function getTrigger(id) {
  return makeRequest("GET", `/api/triggers/${encodeURIComponent(id)}`);
}
async function createTrigger(data) {
  return makeRequest("POST", "/api/triggers", data);
}
async function updateTrigger(params) {
  const { id, ...data } = params;
  return makeRequest("PATCH", `/api/triggers/${encodeURIComponent(id)}`, data);
}
async function deleteTrigger(id) {
  return makeRequest("DELETE", `/api/triggers/${encodeURIComponent(id)}`);
}
export {
  createTrigger,
  deleteTrigger,
  getTrigger,
  listTriggers,
  updateTrigger
};
//# sourceMappingURL=langwatch-api-triggers-XGXXT7DD.js.map