import{z as o}from"./main.js";const i={listPrompts:e=>o.get("v3/console/ai/prompt/list",{params:e}),getPromptMetadata:e=>o.get("v3/console/ai/prompt/metadata",{params:e}),getPromptDetail:e=>o.get("v3/console/ai/prompt/detail",{params:e}),listVersions:e=>o.get("v3/console/ai/prompt/versions",{params:e}),publishVersion:e=>{const p=new URLSearchParams;return p.append("promptKey",e.promptKey),p.append("version",e.version),p.append("template",e.template),e.commitMsg&&p.append("commitMsg",e.commitMsg),e.description&&p.append("description",e.description),e.bizTags&&p.append("bizTags",e.bizTags),e.variables&&p.append("variables",e.variables),e.namespaceId&&p.append("namespaceId",e.namespaceId),o.post("v3/console/ai/prompt",p,{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},updateMetadata:e=>{const p=new URLSearchParams;return p.append("promptKey",e.promptKey),e.description!==void 0&&p.append("description",e.description),e.bizTags!==void 0&&p.append("bizTags",e.bizTags),e.namespaceId&&p.append("namespaceId",e.namespaceId),o.put("v3/console/ai/prompt/metadata",p,{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},bindLabel:e=>{const p=new URLSearchParams;return p.append("promptKey",e.promptKey),p.append("label",e.label),p.append("version",e.version),e.namespaceId&&p.append("namespaceId",e.namespaceId),o.put("v3/console/ai/prompt/label",p,{headers:{"Content-Type":"application/x-www-form-urlencoded"}})},unbindLabel:e=>o.delete("v3/console/ai/prompt/label",{params:e}),deletePrompt:e=>o.delete("v3/console/ai/prompt",{params:e})};export{i as p};
