import{a2 as a}from"./index-Co9nPWLO.js";const o="/book-generator";async function t(t){return(await a(`${o}/books`,{method:"POST",data:{...t}})).book}async function n(){return(await a(`${o}/books`)).books||[]}async function r(t){return(await a(`${o}/books/${t}`)).book}async function e(t){return(await a(`${o}/books/${t}/outline`,{method:"POST"})).outline}async function s(t,n){return(await a(`${o}/books/${t}/chapters`,{method:"POST",data:{chapterNumber:n}})).chapter}async function c(t){return(await a(`${o}/books/${t}/foreword`,{method:"POST"})).foreword}async function i(t){return(await a(`${o}/books/${t}/afterword`,{method:"POST"})).afterword}async function u(t){return await a(`${o}/books/${t}/progress`)}async function $(t,n){return await a(`${o}/books/${t}/generate`,{method:"POST",data:n||{}})}const d=`${o}/langgraph`;async function b(o){return await a(`${d}/books/${o}/generate`,{method:"POST"})}async function f(t,n,r="cherry"){return await a(`${o}/books/${t}/chapters/${n}/audio`,{method:"POST",data:{voiceId:r}})}async function h(t,n="cherry"){return await a(`${o}/books/${t}/audio`,{method:"POST",data:{voiceId:n}})}async function k(t,n){return await a(`${o}/books/${t}/chapters/${n}/video`,{method:"POST"})}async function w(t){return await a(`${o}/books/${t}/videos`,{method:"POST"})}export{n as a,e as b,t as c,$ as d,u as e,b as f,r as g,s as h,c as i,i as j,f as k,h as l,k as m,w as n};
