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

// src/langwatch-api-secrets.ts
async function listSecrets() {
  return makeRequest("GET", "/api/secrets");
}
async function getSecret(id) {
  return makeRequest(
    "GET",
    `/api/secrets/${encodeURIComponent(id)}`
  );
}
async function createSecret(data) {
  return makeRequest("POST", "/api/secrets", data);
}
async function updateSecret(params) {
  const { id, value } = params;
  return makeRequest(
    "PUT",
    `/api/secrets/${encodeURIComponent(id)}`,
    { value }
  );
}
async function deleteSecret(id) {
  return makeRequest(
    "DELETE",
    `/api/secrets/${encodeURIComponent(id)}`
  );
}
export {
  createSecret,
  deleteSecret,
  getSecret,
  listSecrets,
  updateSecret
};
//# sourceMappingURL=langwatch-api-secrets-ZFURUA62.js.map