qwksearch-api-client 1.0.232 → 1.0.233

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -58,11 +58,11 @@ bun i qwksearch-api-client
58
58
 
59
59
  ## Overview
60
60
 
61
- The typed client for the QwkSearch API — 85 functions generated from
61
+ The typed client for the QwkSearch API — 135 functions generated from
62
62
  [`qwksearch-openapi.json`](./qwksearch-openapi.json) with
63
63
  [Hey API](https://heyapi.dev), covering research chat and search, article Q&A,
64
64
  URL/PDF/YouTube scraping, the REASON document store, voice, provider and model
65
- config, MCP servers, NotebookLM and accounts.
65
+ config, MCP servers, Google Drive, NotebookLM, news, learning playlists and accounts.
66
66
 
67
67
 
68
68
 
@@ -166,7 +166,7 @@ throw** by default — read `error`, or pass `throwOnError: true`.
166
166
 
167
167
  ## API Endpoints
168
168
 
169
- The full, current surface is the generated SDK itself — 85 typed functions, one
169
+ The full, current surface is the generated SDK itself — 135 typed functions, one
170
170
  per operation in [`qwksearch-openapi.json`](./qwksearch-openapi.json), which
171
171
  this package also exports:
172
172
 
@@ -226,7 +226,7 @@ npm install qwksearch-api-client
226
226
  - **Documentation**: [airesearch.js.org](https://airesearch.js.org/)
227
227
  - **Demo**: [qwksearch.com](https://qwksearch.com/)
228
228
  - **GitHub**: [github.com/vtempest/ai-research-agent](https://github.com/vtempest/ai-research-agent)
229
- - **OpenAPI Spec**: [View Full Specification](./qwksearch-openapi.yml)
229
+ - **OpenAPI Spec**: [View Full Specification](./qwksearch-openapi.json) · rendered at [qwksearch.com/api](https://qwksearch.com/api)
230
230
 
231
231
  - [LLM Training Example](https://github.com/vtempest/ai-research-agent/blob/master/packages/neural-net/src/train/predict-next-word.js)
232
232
  - [LangChain ReactAgent Tools](https://medium.com/@terrycho/how-langchain-agent-works-internally-trace-by-using-langsmith-df23766e7fb4)
@@ -1 +1 @@
1
- import{createClient as e}from"api2client";var t,r=(e,t,r)=>{"string"==typeof r||r instanceof Blob?e.append(t,r):r instanceof Date?e.append(t,r.toISOString()):e.append(t,JSON.stringify(r))},s={bodySerializer:e=>{const t=new FormData;return Object.entries(e).forEach(([e,s])=>{null!=s&&(Array.isArray(s)?s.forEach(s=>r(t,e,s)):r(t,e,s))}),t}},n={bodySerializer:e=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t)},o=(Object.entries({$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"}),({allowReserved:e,explode:t,name:r,style:s,value:n})=>{if(!t){const t=(e?n:n.map(e=>encodeURIComponent(e))).join((e=>{switch(e){case"form":default:return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20"}})(s));switch(s){case"label":return`.${t}`;case"matrix":return`;${r}=${t}`;case"simple":return t;default:return`${r}=${t}`}}const o=(e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}})(s),l=n.map(t=>"label"===s||"simple"===s?e?t:encodeURIComponent(t):a({allowReserved:e,name:r,value:t})).join(o);return"label"===s||"matrix"===s?o+l:l}),a=({allowReserved:e,name:t,value:r})=>{if(null==r)return"";if("object"==typeof r)throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?r:encodeURIComponent(r)}`},l=({allowReserved:e,explode:t,name:r,style:s,value:n,valueOnly:o})=>{if(n instanceof Date)return o?n.toISOString():`${r}=${n.toISOString()}`;if("deepObject"!==s&&!t){let t=[];Object.entries(n).forEach(([r,s])=>{t=[...t,r,e?s:encodeURIComponent(s)]});const o=t.join(",");switch(s){case"form":return`${r}=${o}`;case"label":return`.${o}`;case"matrix":return`;${r}=${o}`;default:return o}}const l=(e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}})(s),c=Object.entries(n).map(([t,n])=>a({allowReserved:e,name:"deepObject"===s?`${r}[${t}]`:t,value:n})).join(l);return"label"===s||"matrix"===s?l+c:c},c=(({parameters:e={},...t}={})=>r=>{const s=[];if(r&&"object"==typeof r)for(const n in r){const c=r[n];if(null==c)continue;const i=e[n]||t;if(Array.isArray(c)){const e=o({allowReserved:i.allowReserved,explode:!0,name:n,style:"form",value:c,...i.array});e&&s.push(e)}else if("object"==typeof c){const e=l({allowReserved:i.allowReserved,explode:!0,name:n,style:"deepObject",value:c,...i.object});e&&s.push(e)}else{const e=a({allowReserved:i.allowReserved,name:n,value:c});e&&s.push(e)}}return s.join("&")})({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),i={"Content-Type":"application/json"},p="undefined"!=typeof window?`${"undefined"!=typeof window&&window.NEXT_PUBLIC_BASE_URL||`${window.location.protocol}//${window.location.host}`}/api`:`${process.env.NEXT_PUBLIC_BASE_URL||"https://qwksearch.com"}/api`,d=((t={})=>e(t))((t=((e={})=>({...n,headers:i,parseAs:"auto",querySerializer:c,...e}))({baseUrl:"https://qwksearch.com/api"}),{...t,baseUrl:p})),u=e=>(e.client??d).post({url:"/agent/article-followups",...e,headers:{"Content-Type":"application/json",...e.headers}}),h=e=>(e.client??d).post({url:"/agent/article-qa",...e,headers:{"Content-Type":"application/json",...e.headers}}),y=e=>(e.client??d).get({url:"/agent/autocomplete",...e}),g=e=>(e.client??d).sse.post({url:"/agent/chat",...e,headers:{"Content-Type":"application/json",...e.headers}}),m=e=>(e?.client??d).delete({security:[{scheme:"bearer",type:"http"}],url:"/agent/chats",...e}),b=e=>(e?.client??d).get({security:[{scheme:"bearer",type:"http"}],url:"/agent/chats",...e}),j=e=>(e.client??d).get({security:[{scheme:"bearer",type:"http"}],url:"/agent/chats/search",...e}),C=e=>(e.client??d).post({security:[{scheme:"bearer",type:"http"}],url:"/agent/chats/share",...e,headers:{"Content-Type":"application/json",...e.headers}}),f=e=>(e.client??d).delete({security:[{scheme:"bearer",type:"http"}],url:"/agent/chats/{id}",...e}),T=e=>(e.client??d).get({url:"/agent/chats/{id}",...e}),v=e=>(e?.client??d).get({url:"/agent/discover",...e}),w=e=>(e.client??d).post({security:[{scheme:"bearer",type:"http"}],url:"/agent/messages",...e,headers:{"Content-Type":"application/json",...e.headers}}),$=e=>(e.client??d).post({url:"/agent/rewrite",...e,headers:{"Content-Type":"application/json",...e.headers}}),k=e=>(e.client??d).get({url:"/agent/search",...e}),R=e=>(e.client??d).post({url:"/agent/suggestions",...e,headers:{"Content-Type":"application/json",...e.headers}}),S=e=>(e.client??d).post({url:"/agent/test-models",...e,headers:{"Content-Type":"application/json",...e.headers}}),x=e=>(e.client??d).post({...s,url:"/agent/transcript",...e,headers:{"Content-Type":null,...e.headers}}),O=e=>(e.client??d).post({url:"/agent/voice",...e,headers:{"Content-Type":"application/json",...e.headers}}),q=e=>(e?.client??d).get({url:"/config",...e}),U=e=>(e.client??d).post({url:"/config",...e,headers:{"Content-Type":"application/json",...e.headers}}),_=e=>(e.client??d).get({url:"/doc/article",...e}),I=e=>(e.client??d).post({url:"/doc/article",...e,headers:{"Content-Type":"application/json",...e.headers}}),E=e=>(e?.client??d).get({url:"/doc/documents",...e}),A=e=>(e.client??d).post({url:"/doc/documents",...e,headers:{"Content-Type":"application/json",...e.headers}}),D=e=>(e.client??d).delete({url:"/doc/documents/{id}",...e}),B=e=>(e.client??d).get({url:"/doc/documents/{id}",...e}),z=e=>(e.client??d).put({url:"/doc/documents/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),L=e=>(e.client??d).delete({security:[{scheme:"bearer",type:"http"}],url:"/doc/favorites",...e}),N=e=>(e?.client??d).get({security:[{scheme:"bearer",type:"http"}],url:"/doc/favorites",...e}),P=e=>(e.client??d).post({security:[{scheme:"bearer",type:"http"}],url:"/doc/favorites",...e,headers:{"Content-Type":"application/json",...e.headers}}),J=e=>(e?.client??d).get({url:"/doc/google-docs/auth",...e}),X=e=>(e?.client??d).get({url:"/doc/google-docs/auth/status",...e}),F=e=>(e.client??d).get({url:"/doc/google-docs/callback",...e}),G=e=>(e.client??d).post({url:"/doc/google-docs/export",...e,headers:{"Content-Type":"application/json",...e.headers}}),H=e=>(e.client??d).get({url:"/doc/google-docs/files",...e}),K=e=>(e.client??d).post({url:"/doc/google-docs/import",...e,headers:{"Content-Type":"application/json",...e.headers}}),M=e=>(e?.client??d).post({url:"/doc/google-docs/refresh-token",...e}),Q=e=>(e.client??d).post({url:"/doc/google-docs/share",...e,headers:{"Content-Type":"application/json",...e.headers}}),V=e=>(e?.client??d).get({url:"/doc/google-docs/token",...e}),W=e=>(e.client??d).get({url:"/doc/quotes",...e}),Y=e=>(e.client??d).post({url:"/doc/quotes",...e,headers:{"Content-Type":"application/json",...e.headers}}),Z=e=>(e.client??d).delete({url:"/doc/quotes/{id}",...e}),ee=e=>(e.client??d).put({url:"/doc/quotes/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),te=e=>(e.client??d).post({url:"/doc/share",...e,headers:{"Content-Type":"application/json",...e.headers}}),re=e=>(e.client??d).get({url:"/doc/share/{id}",...e}),se=e=>(e.client??d).delete({url:"/doc/uploads",...e}),ne=e=>(e.client??d).get({url:"/doc/uploads",...e}),oe=e=>(e.client??d).post({...s,url:"/doc/uploads",...e,headers:{"Content-Type":null,...e.headers}}),ae=e=>(e?.client??d).get({url:"/agent/mcpservers",...e}),le=e=>(e.client??d).post({url:"/agent/mcpservers",...e,headers:{"Content-Type":"application/json",...e.headers}}),ce=e=>(e.client??d).delete({url:"/agent/mcpservers/{id}",...e}),ie=e=>(e.client??d).patch({url:"/agent/mcpservers/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),pe=e=>(e.client??d).post({url:"/agent/mcpservers/{id}/toggle",...e,headers:{"Content-Type":"application/json",...e.headers}}),de=e=>(e.client??d).post({security:[{scheme:"bearer",type:"http"}],url:"/notebooklm/login",...e,headers:{"Content-Type":"application/json",...e.headers}}),ue=e=>(e?.client??d).delete({security:[{scheme:"bearer",type:"http"}],url:"/notebooklm/status",...e}),he=e=>(e?.client??d).get({security:[{scheme:"bearer",type:"http"}],url:"/notebooklm/status",...e}),ye=e=>(e?.client??d).get({security:[{scheme:"bearer",type:"http"}],url:"/notebooklm/notebooks",...e}),ge=e=>(e.client??d).post({security:[{scheme:"bearer",type:"http"}],url:"/notebooklm/notebooks",...e,headers:{"Content-Type":"application/json",...e.headers}}),me=e=>(e.client??d).delete({security:[{scheme:"bearer",type:"http"}],url:"/notebooklm/notebooks/{id}",...e}),be=e=>(e.client??d).post({security:[{scheme:"bearer",type:"http"}],url:"/notebooklm/notebooks/{id}/ask",...e,headers:{"Content-Type":"application/json",...e.headers}}),je=e=>(e.client??d).post({security:[{scheme:"bearer",type:"http"}],url:"/notebooklm/notebooks/{id}/audio",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ce=e=>(e.client??d).get({security:[{scheme:"bearer",type:"http"}],url:"/notebooklm/notebooks/{id}/sources",...e}),fe=e=>(e.client??d).post({security:[{scheme:"bearer",type:"http"}],url:"/notebooklm/notebooks/{id}/sources",...e,headers:{"Content-Type":"application/json",...e.headers}}),Te=e=>(e?.client??d).get({url:"/agent/providers",...e}),ve=e=>(e.client??d).post({url:"/agent/providers",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??d).delete({url:"/agent/providers/{id}",...e}),$e=e=>(e.client??d).patch({url:"/agent/providers/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ke=e=>(e.client??d).delete({url:"/agent/providers/{id}/models",...e,headers:{"Content-Type":"application/json",...e.headers}}),Re=e=>(e.client??d).post({url:"/agent/providers/{id}/models",...e,headers:{"Content-Type":"application/json",...e.headers}}),Se=e=>(e.client??d).get({url:"/scraper",...e}),xe=e=>(e.client??d).post({url:"/scraper",...e,headers:{"Content-Type":"application/json",...e.headers}}),Oe=e=>(e?.client??d).get({url:"/search/engines",...e}),qe=e=>(e?.client??d).get({url:"/search/engines/status",...e}),Ue=e=>(e.client??d).post({url:"/search/engines/status",...e,headers:{"Content-Type":"application/json",...e.headers}}),_e=e=>(e.client??d).post({url:"/search/engines/test",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ie=e=>(e?.client??d).delete({security:[{scheme:"bearer",type:"http"}],url:"/user",...e}),Ee=e=>(e?.client??d).get({security:[{scheme:"bearer",type:"http"}],url:"/user",...e}),Ae=e=>(e.client??d).patch({security:[{scheme:"bearer",type:"http"}],url:"/user",...e,headers:{"Content-Type":"application/json",...e.headers}}),De=e=>(e.client??d).delete({security:[{scheme:"bearer",type:"http"}],url:"/user/accounts",...e,headers:{"Content-Type":"application/json",...e.headers}}),Be=e=>(e?.client??d).get({security:[{scheme:"bearer",type:"http"}],url:"/user/accounts",...e}),ze=e=>(e.client??d).post({security:[{scheme:"bearer",type:"http"}],url:"/user/password",...e,headers:{"Content-Type":"application/json",...e.headers}}),Le=e=>(e?.client??d).delete({security:[{scheme:"bearer",type:"http"}],url:"/user/sessions",...e}),Ne=e=>(e?.client??d).get({security:[{scheme:"bearer",type:"http"}],url:"/user/sessions",...e}),Pe=e=>(e.client??d).delete({security:[{scheme:"bearer",type:"http"}],url:"/user/sessions/{id}",...e}),Je=e=>(e?.client??d).get({security:[{scheme:"bearer",type:"http"}],url:"/user/storage",...e});export{P as addFavorite,le as addMcpServer,fe as addNotebookSource,ve as addProvider,Re as addProviderModel,g as agentChat,k as agentSearch,u as articleFollowups,h as articleQa,be as askNotebook,y as autocomplete,ze as changePassword,A as createDocument,ge as createNotebook,Y as createQuote,m as deleteAllChats,f as deleteChatById,D as deleteDocument,ce as deleteMcpServer,me as deleteNotebook,we as deleteProvider,ke as deleteProviderModel,Z as deleteQuote,se as deleteUploadedFile,Ie as deleteUser,De as deleteUserAccount,ue as disconnectNotebooklm,v as discoverContent,G as exportToGoogleDocs,je as generateNotebookAudio,R as generateSuggestions,_ as getArticle,T as getChatById,q as getConfig,B as getDocumentById,qe as getEngineStatus,H as getGoogleDriveFile,V as getGoogleToken,he as getNotebooklmStatus,re as getSharedDocument,ne as getUploadedFile,Ee as getUser,Je as getUserStorage,J as googleDocsAuth,X as googleDocsAuthStatus,F as googleDocsCallback,K as importFromGoogleDocs,b as listChats,E as listDocuments,N as listFavorites,ae as listMcpServers,Ce as listNotebookSources,ye as listNotebooks,Te as listProviders,W as listQuotes,Oe as listSearchEngines,Ne as listSessions,Be as listUserAccounts,de as notebooklmLogin,M as refreshGoogleToken,L as removeFavorite,Le as revokeOtherSessions,Pe as revokeSession,$ as rewriteText,U as saveConfig,w as saveMessage,Se as scrapeGet,xe as scrapePost,j as searchChats,C as shareChat,te as shareDocument,Q as shareGoogleDoc,S as testModels,_e as testSearchEngines,O as textToSpeech,pe as toggleMcpServer,x as transcribeAudio,I as updateArticle,z as updateDocument,Ue as updateEngineStatus,ie as updateMcpServer,$e as updateProvider,ee as updateQuote,Ae as updateUser,oe as uploadFiles};
1
+ import{createClient as e}from"api2client";var t,n=(e,t,n)=>{"string"==typeof n||n instanceof Blob?e.append(t,n):n instanceof Date?e.append(t,n.toISOString()):e.append(t,JSON.stringify(n))},i=(e,t,n)=>{"string"==typeof n?e.append(t,n):e.append(t,JSON.stringify(n))},s={bodySerializer:e=>{const t=new FormData;return Object.entries(e).forEach(([e,i])=>{null!=i&&(Array.isArray(i)?i.forEach(i=>n(t,e,i)):n(t,e,i))}),t}},o={bodySerializer:e=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t)},a={bodySerializer:e=>{const t=new URLSearchParams;return Object.entries(e).forEach(([e,n])=>{null!=n&&(Array.isArray(n)?n.forEach(n=>i(t,e,n)):i(t,e,n))}),t.toString()}},r=(Object.entries({$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"}),({allowReserved:e,explode:t,name:n,style:i,value:s})=>{if(!t){const t=(e?s:s.map(e=>encodeURIComponent(e))).join((e=>{switch(e){case"form":default:return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20"}})(i));switch(i){case"label":return`.${t}`;case"matrix":return`;${n}=${t}`;case"simple":return t;default:return`${n}=${t}`}}const o=(e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}})(i),a=s.map(t=>"label"===i||"simple"===i?e?t:encodeURIComponent(t):p({allowReserved:e,name:n,value:t})).join(o);return"label"===i||"matrix"===i?o+a:a}),p=({allowReserved:e,name:t,value:n})=>{if(null==n)return"";if("object"==typeof n)throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?n:encodeURIComponent(n)}`},c=({allowReserved:e,explode:t,name:n,style:i,value:s,valueOnly:o})=>{if(s instanceof Date)return o?s.toISOString():`${n}=${s.toISOString()}`;if("deepObject"!==i&&!t){let t=[];Object.entries(s).forEach(([n,i])=>{t=[...t,n,e?i:encodeURIComponent(i)]});const o=t.join(",");switch(i){case"form":return`${n}=${o}`;case"label":return`.${o}`;case"matrix":return`;${n}=${o}`;default:return o}}const a=(e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}})(i),r=Object.entries(s).map(([t,s])=>p({allowReserved:e,name:"deepObject"===i?`${n}[${t}]`:t,value:s})).join(a);return"label"===i||"matrix"===i?a+r:r},l=(({parameters:e={},...t}={})=>n=>{const i=[];if(n&&"object"==typeof n)for(const s in n){const o=n[s];if(null==o)continue;const a=e[s]||t;if(Array.isArray(o)){const e=r({allowReserved:a.allowReserved,explode:!0,name:s,style:"form",value:o,...a.array});e&&i.push(e)}else if("object"==typeof o){const e=c({allowReserved:a.allowReserved,explode:!0,name:s,style:"deepObject",value:o,...a.object});e&&i.push(e)}else{const e=p({allowReserved:a.allowReserved,name:s,value:o});e&&i.push(e)}}return i.join("&")})({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),y={"Content-Type":"application/json"},u="undefined"!=typeof window?`${"undefined"!=typeof window&&window.NEXT_PUBLIC_BASE_URL||`${window.location.protocol}//${window.location.host}`}/api`:`${process.env.NEXT_PUBLIC_BASE_URL||"https://qwksearch.com"}/api`,h=((t={})=>e(t))((t=((e={})=>({...o,headers:y,parseAs:"auto",querySerializer:l,...e}))({baseUrl:"https://qwksearch.com/api"}),{...t,baseUrl:u})),d=e=>(e.client??h).get({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/autocomplete",...e}),m=e=>(e?.client??h).get({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/discover",...e}),k=e=>(e.client??h).get({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/search",...e}),b=e=>(e?.client??h).get({url:"/search/engines",...e}),K=e=>(e?.client??h).get({url:"/search/engines/status",...e}),g=e=>(e.client??h).post({url:"/search/engines/status",...e,headers:{"Content-Type":"application/json",...e.headers}}),_=e=>(e.client??h).post({url:"/search/engines/test",...e,headers:{"Content-Type":"application/json",...e.headers}}),j=e=>(e.client??h).get({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/doc/article",...e}),C=e=>(e.client??h).post({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/doc/article",...e,headers:{"Content-Type":"application/json",...e.headers}}),T=e=>(e.client??h).get({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/scraper",...e}),f=e=>(e.client??h).post({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/scraper",...e,headers:{"Content-Type":"application/json",...e.headers}}),v=e=>(e.client??h).sse.post({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/chat",...e,headers:{"Content-Type":"application/json",...e.headers}}),w=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/chat-title",...e,headers:{"Content-Type":"application/json",...e.headers}}),A=e=>(e?.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/chats",...e}),I=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/chats",...e}),P=e=>(e.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/chats/search",...e}),X=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/chats/share",...e,headers:{"Content-Type":"application/json",...e.headers}}),$=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/chats/{id}",...e}),R=e=>(e.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/chats/{id}",...e}),S=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/messages",...e,headers:{"Content-Type":"application/json",...e.headers}}),O=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/article-followups",...e,headers:{"Content-Type":"application/json",...e.headers}}),x=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/article-qa",...e,headers:{"Content-Type":"application/json",...e.headers}}),q=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/page-tips",...e,headers:{"Content-Type":"application/json",...e.headers}}),U=e=>(e.client??h).post({url:"/agent/rewrite",...e,headers:{"Content-Type":"application/json",...e.headers}}),E=e=>(e.client??h).post({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/suggestions",...e,headers:{"Content-Type":"application/json",...e.headers}}),z=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/topic-searches",...e,headers:{"Content-Type":"application/json",...e.headers}}),D=e=>(e.client??h).post({...s,url:"/agent/transcript",...e,headers:{"Content-Type":null,...e.headers}}),B=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/voice",...e,headers:{"Content-Type":"application/json",...e.headers}}),L=e=>(e.client??h).post({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/speech/tts",...e,headers:{"Content-Type":"application/json",...e.headers}}),N=e=>(e.client??h).post({...s,security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/v1/audio/transcriptions",...e,headers:{"Content-Type":null,...e.headers}}),J=e=>(e?.client??h).get({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/news/settings",...e}),F=e=>(e?.client??h).get({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/news/trending",...e}),G=e=>(e.client??h).post({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/learn",...e,headers:{"Content-Type":"application/json",...e.headers}}),H=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/learn/playlists",...e}),M=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/learn/playlists/accept-invite",...e,headers:{"Content-Type":"application/json",...e.headers}}),Q=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/learn/playlists/{id}",...e}),V=e=>(e.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/learn/playlists/{id}",...e}),W=e=>(e.client??h).put({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/learn/playlists/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Y=e=>(e.client??h).post({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/learn/questions",...e,headers:{"Content-Type":"application/json",...e.headers}}),Z=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/providers",...e}),ee=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/providers",...e,headers:{"Content-Type":"application/json",...e.headers}}),te=e=>(e.client??h).delete({url:"/agent/providers/{id}",...e}),ne=e=>(e.client??h).patch({url:"/agent/providers/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ie=e=>(e.client??h).delete({url:"/agent/providers/{id}/models",...e,headers:{"Content-Type":"application/json",...e.headers}}),se=e=>(e.client??h).post({url:"/agent/providers/{id}/models",...e,headers:{"Content-Type":"application/json",...e.headers}}),oe=e=>(e.client??h).post({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/test-models",...e,headers:{"Content-Type":"application/json",...e.headers}}),ae=e=>(e?.client??h).get({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/v1/models",...e}),re=e=>(e?.client??h).get({url:"/agent/mcpservers",...e}),pe=e=>(e.client??h).post({url:"/agent/mcpservers",...e,headers:{"Content-Type":"application/json",...e.headers}}),ce=e=>(e.client??h).delete({url:"/agent/mcpservers/{id}",...e}),le=e=>(e.client??h).patch({url:"/agent/mcpservers/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),ye=e=>(e.client??h).post({url:"/agent/mcpservers/{id}/toggle",...e,headers:{"Content-Type":"application/json",...e.headers}}),ue=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/documents",...e}),he=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/documents",...e,headers:{"Content-Type":"application/json",...e.headers}}),de=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/documents/{id}",...e}),me=e=>(e.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/documents/{id}",...e}),ke=e=>(e.client??h).put({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/documents/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),be=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/documents/{id}/access-request",...e}),Ke=e=>(e.client??h).post({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/doc/share",...e,headers:{"Content-Type":"application/json",...e.headers}}),ge=e=>(e.client??h).get({url:"/doc/share/{id}",...e}),_e=e=>(e.client??h).get({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/doc/quotes",...e}),je=e=>(e.client??h).post({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/doc/quotes",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ce=e=>(e.client??h).delete({url:"/doc/quotes/{id}",...e}),Te=e=>(e.client??h).put({url:"/doc/quotes/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),fe=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/favorites",...e}),ve=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/favorites",...e}),we=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/favorites",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ae=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/uploads",...e}),Ie=e=>(e.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/uploads",...e}),Pe=e=>(e.client??h).post({...s,security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/uploads",...e,headers:{"Content-Type":null,...e.headers}}),Xe=e=>(e?.client??h).get({url:"/doc/google-docs/auth",...e}),$e=e=>(e?.client??h).get({url:"/doc/google-docs/auth/status",...e}),Re=e=>(e.client??h).get({url:"/doc/google-docs/callback",...e}),Se=e=>(e.client??h).get({security:[{in:"cookie",name:"google_access_token",type:"apiKey"}],url:"/doc/google-docs/content",...e}),Oe=e=>(e.client??h).post({security:[{in:"cookie",name:"google_access_token",type:"apiKey"}],url:"/doc/google-docs/export",...e,headers:{"Content-Type":"application/json",...e.headers}}),xe=e=>(e.client??h).get({security:[{in:"cookie",name:"google_access_token",type:"apiKey"}],url:"/doc/google-docs/files",...e}),qe=e=>(e.client??h).get({security:[{in:"cookie",name:"google_access_token",type:"apiKey"}],url:"/doc/google-docs/folder-tree",...e}),Ue=e=>(e?.client??h).get({security:[{in:"cookie",name:"google_access_token",type:"apiKey"}],url:"/doc/google-docs/folders",...e}),Ee=e=>(e.client??h).post({security:[{in:"cookie",name:"google_access_token",type:"apiKey"}],url:"/doc/google-docs/import",...e,headers:{"Content-Type":"application/json",...e.headers}}),ze=e=>(e?.client??h).post({security:[{in:"cookie",name:"google_access_token",type:"apiKey"}],url:"/doc/google-docs/refresh-token",...e}),De=e=>(e.client??h).post({security:[{in:"cookie",name:"google_access_token",type:"apiKey"}],url:"/doc/google-docs/share",...e,headers:{"Content-Type":"application/json",...e.headers}}),Be=e=>(e?.client??h).get({security:[{in:"cookie",name:"google_access_token",type:"apiKey"}],url:"/doc/google-docs/token",...e}),Le=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/notebooklm/login",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ne=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/notebooklm/notebooks",...e}),Je=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/notebooklm/notebooks",...e,headers:{"Content-Type":"application/json",...e.headers}}),Fe=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/notebooklm/notebooks/{id}",...e}),Ge=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/notebooklm/notebooks/{id}/ask",...e,headers:{"Content-Type":"application/json",...e.headers}}),He=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/notebooklm/notebooks/{id}/audio",...e,headers:{"Content-Type":"application/json",...e.headers}}),Me=e=>(e.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/notebooklm/notebooks/{id}/sources",...e}),Qe=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/notebooklm/notebooks/{id}/sources",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ve=e=>(e?.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/notebooklm/status",...e}),We=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/notebooklm/status",...e}),Ye=e=>(e?.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user",...e}),Ze=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user",...e}),et=e=>(e.client??h).patch({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user",...e,headers:{"Content-Type":"application/json",...e.headers}}),tt=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/accounts",...e,headers:{"Content-Type":"application/json",...e.headers}}),nt=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/accounts",...e}),it=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/password",...e,headers:{"Content-Type":"application/json",...e.headers}}),st=e=>(e?.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/sessions",...e}),ot=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/sessions",...e}),at=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/sessions/{id}",...e}),rt=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/storage",...e}),pt=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/agent-skills",...e}),ct=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/agent-skills",...e,headers:{"Content-Type":"application/json",...e.headers}}),lt=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/enabled-skills",...e}),yt=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/enabled-skills",...e,headers:{"Content-Type":"application/json",...e.headers}}),ut=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/enabled-skills/batch",...e,headers:{"Content-Type":"application/json",...e.headers}}),ht=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/memories",...e}),dt=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/memories",...e,headers:{"Content-Type":"application/json",...e.headers}}),mt=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/memories/{id}",...e}),kt=e=>(e.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/memories/{id}",...e}),bt=e=>(e.client??h).put({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/memories/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),Kt=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/memories/{id}/usage",...e}),gt=e=>(e?.client??h).get({url:"/auth/providers",...e}),_t=e=>(e.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/connect/authorize",...e}),jt=e=>(e.client??h).post({...a,security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/connect/authorize",...e,headers:{"Content-Type":"application/x-www-form-urlencoded",...e.headers}}),Ct=e=>(e?.client??h).get({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/connect/me",...e}),Tt=e=>(e.client??h).post({url:"/connect/token",...e,headers:{"Content-Type":"application/json",...e.headers}}),ft=e=>(e?.client??h).get({url:"/config",...e}),vt=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/config",...e,headers:{"Content-Type":"application/json",...e.headers}}),wt=e=>(e.client??h).post({url:"/enterprise-request",...e,headers:{"Content-Type":"application/json",...e.headers}}),At=e=>(e?.client??h).get({url:"/geolocation",...e}),It=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/database",...e}),Pt=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/database/maintenance",...e,headers:{"Content-Type":"application/json",...e.headers}}),Xt=e=>(e.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/database/{table}",...e}),$t=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/database/{table}/{id}",...e}),Rt=e=>(e.client??h).patch({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/database/{table}/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),St=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/freekeys",...e}),Ot=e=>(e?.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/news",...e}),xt=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/news",...e}),qt=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/news",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ut=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/overview",...e}),Et=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/users",...e}),zt=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/users/{id}",...e}),Dt=e=>(e.client??h).patch({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/users/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}});export{M as acceptPlaylistInvite,we as addFavorite,pe as addMcpServer,Qe as addNotebookSource,ee as addProvider,se as addProviderModel,v as agentChat,k as agentSearch,jt as approveConnectRequest,O as articleFollowups,x as articleQa,Ge as askNotebook,d as autocomplete,it as changePassword,Ot as clearAdminNews,he as createDocument,dt as createMemory,Je as createNotebook,je as createQuote,N as createTranscription,$t as deleteAdminTableRow,zt as deleteAdminUser,A as deleteAllChats,$ as deleteChatById,de as deleteDocument,ce as deleteMcpServer,mt as deleteMemory,Fe as deleteNotebook,Q as deletePlaylist,te as deleteProvider,ie as deleteProviderModel,Ce as deleteQuote,Ae as deleteUploadedFile,Ye as deleteUser,tt as deleteUserAccount,_t as describeConnectRequest,St as diagnoseFreeModels,Ve as disconnectNotebooklm,m as discoverContent,Tt as exchangeConnectCode,Oe as exportToGoogleDocs,w as generateChatTitle,He as generateNotebookAudio,q as generatePageTips,E as generateSuggestions,z as generateTopicSearches,It as getAdminDatabase,xt as getAdminNews,Ut as getAdminOverview,j as getArticle,R as getChatById,At as getClientLocation,ft as getConfig,Ct as getConnectedAccount,me as getDocumentById,K as getEngineStatus,Se as getGoogleDriveContent,xe as getGoogleDriveFile,qe as getGoogleDriveFolderTree,Be as getGoogleToken,kt as getMemory,J as getNewsSettings,We as getNotebooklmStatus,V as getPlaylist,ge as getSharedDocument,F as getTrendingNews,Ie as getUploadedFile,Ze as getUser,rt as getUserStorage,Xe as googleDocsAuth,$e as googleDocsAuthStatus,Re as googleDocsCallback,Ee as importFromGoogleDocs,Xt as listAdminTableRows,Et as listAdminUsers,pt as listAgentSkills,gt as listAuthProviders,I as listChats,ue as listDocuments,lt as listEnabledSkills,ve as listFavorites,Ue as listGoogleDriveFolders,re as listMcpServers,ht as listMemories,Me as listNotebookSources,Ne as listNotebooks,H as listPlaylists,Z as listProviders,_e as listQuotes,b as listSearchEngines,ot as listSessions,ae as listTranscriptionModels,nt as listUserAccounts,Le as notebooklmLogin,G as planPlaylist,Kt as recordMemoryUsage,ze as refreshGoogleToken,fe as removeFavorite,be as requestDocumentAccess,st as revokeOtherSessions,at as revokeSession,U as rewriteText,Pt as runAdminMaintenance,vt as saveConfig,S as saveMessage,W as savePlaylist,T as scrapeGet,f as scrapePost,P as searchChats,ct as setAgentSkill,X as shareChat,Ke as shareDocument,De as shareGoogleDoc,wt as submitEnterpriseRequest,Y as suggestLearningQuestions,L as synthesizeSpeech,oe as testModels,_ as testSearchEngines,B as textToSpeech,ye as toggleMcpServer,yt as toggleSkill,ut as toggleSkills,D as transcribeAudio,qt as updateAdminNews,Rt as updateAdminTableRow,Dt as updateAdminUser,C as updateArticle,ke as updateDocument,g as updateEngineStatus,le as updateMcpServer,bt as updateMemory,ne as updateProvider,Te as updateQuote,et as updateUser,Pe as uploadFiles};
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("api2client")):"function"==typeof define&&define.amd?define(["exports","api2client"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["api-client"]={},e.api2client)}(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var o,r=(e,t,o)=>{"string"==typeof o||o instanceof Blob?e.append(t,o):o instanceof Date?e.append(t,o.toISOString()):e.append(t,JSON.stringify(o))},s={bodySerializer:e=>{const t=new FormData;return Object.entries(e).forEach(([e,o])=>{null!=o&&(Array.isArray(o)?o.forEach(o=>r(t,e,o)):r(t,e,o))}),t}},n={bodySerializer:e=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t)},a=(Object.entries({$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"}),({allowReserved:e,explode:t,name:o,style:r,value:s})=>{if(!t){const t=(e?s:s.map(e=>encodeURIComponent(e))).join((e=>{switch(e){case"form":default:return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20"}})(r));switch(r){case"label":return`.${t}`;case"matrix":return`;${o}=${t}`;case"simple":return t;default:return`${o}=${t}`}}const n=(e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}})(r),a=s.map(t=>"label"===r||"simple"===r?e?t:encodeURIComponent(t):l({allowReserved:e,name:o,value:t})).join(n);return"label"===r||"matrix"===r?n+a:a}),l=({allowReserved:e,name:t,value:o})=>{if(null==o)return"";if("object"==typeof o)throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?o:encodeURIComponent(o)}`},i=({allowReserved:e,explode:t,name:o,style:r,value:s,valueOnly:n})=>{if(s instanceof Date)return n?s.toISOString():`${o}=${s.toISOString()}`;if("deepObject"!==r&&!t){let t=[];Object.entries(s).forEach(([o,r])=>{t=[...t,o,e?r:encodeURIComponent(r)]});const n=t.join(",");switch(r){case"form":return`${o}=${n}`;case"label":return`.${n}`;case"matrix":return`;${o}=${n}`;default:return n}}const a=(e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}})(r),i=Object.entries(s).map(([t,s])=>l({allowReserved:e,name:"deepObject"===r?`${o}[${t}]`:t,value:s})).join(a);return"label"===r||"matrix"===r?a+i:i},c=(({parameters:e={},...t}={})=>o=>{const r=[];if(o&&"object"==typeof o)for(const s in o){const n=o[s];if(null==n)continue;const c=e[s]||t;if(Array.isArray(n)){const e=a({allowReserved:c.allowReserved,explode:!0,name:s,style:"form",value:n,...c.array});e&&r.push(e)}else if("object"==typeof n){const e=i({allowReserved:c.allowReserved,explode:!0,name:s,style:"deepObject",value:n,...c.object});e&&r.push(e)}else{const e=l({allowReserved:c.allowReserved,name:s,value:n});e&&r.push(e)}}return r.join("&")})({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),p={"Content-Type":"application/json"},d="undefined"!=typeof window?`${"undefined"!=typeof window&&window.NEXT_PUBLIC_BASE_URL||`${window.location.protocol}//${window.location.host}`}/api`:`${process.env.NEXT_PUBLIC_BASE_URL||"https://qwksearch.com"}/api`,u=((e={})=>(0,t.createClient)(e))((o=((e={})=>({...n,headers:p,parseAs:"auto",querySerializer:c,...e}))({baseUrl:"https://qwksearch.com/api"}),{...o,baseUrl:d}));e.addFavorite=e=>(e.client??u).post({security:[{scheme:"bearer",type:"http"}],url:"/doc/favorites",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.addMcpServer=e=>(e.client??u).post({url:"/agent/mcpservers",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.addNotebookSource=e=>(e.client??u).post({security:[{scheme:"bearer",type:"http"}],url:"/notebooklm/notebooks/{id}/sources",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.addProvider=e=>(e.client??u).post({url:"/agent/providers",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.addProviderModel=e=>(e.client??u).post({url:"/agent/providers/{id}/models",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.agentChat=e=>(e.client??u).sse.post({url:"/agent/chat",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.agentSearch=e=>(e.client??u).get({url:"/agent/search",...e}),e.articleFollowups=e=>(e.client??u).post({url:"/agent/article-followups",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.articleQa=e=>(e.client??u).post({url:"/agent/article-qa",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.askNotebook=e=>(e.client??u).post({security:[{scheme:"bearer",type:"http"}],url:"/notebooklm/notebooks/{id}/ask",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.autocomplete=e=>(e.client??u).get({url:"/agent/autocomplete",...e}),e.changePassword=e=>(e.client??u).post({security:[{scheme:"bearer",type:"http"}],url:"/user/password",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.createDocument=e=>(e.client??u).post({url:"/doc/documents",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.createNotebook=e=>(e.client??u).post({security:[{scheme:"bearer",type:"http"}],url:"/notebooklm/notebooks",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.createQuote=e=>(e.client??u).post({url:"/doc/quotes",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.deleteAllChats=e=>(e?.client??u).delete({security:[{scheme:"bearer",type:"http"}],url:"/agent/chats",...e}),e.deleteChatById=e=>(e.client??u).delete({security:[{scheme:"bearer",type:"http"}],url:"/agent/chats/{id}",...e}),e.deleteDocument=e=>(e.client??u).delete({url:"/doc/documents/{id}",...e}),e.deleteMcpServer=e=>(e.client??u).delete({url:"/agent/mcpservers/{id}",...e}),e.deleteNotebook=e=>(e.client??u).delete({security:[{scheme:"bearer",type:"http"}],url:"/notebooklm/notebooks/{id}",...e}),e.deleteProvider=e=>(e.client??u).delete({url:"/agent/providers/{id}",...e}),e.deleteProviderModel=e=>(e.client??u).delete({url:"/agent/providers/{id}/models",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.deleteQuote=e=>(e.client??u).delete({url:"/doc/quotes/{id}",...e}),e.deleteUploadedFile=e=>(e.client??u).delete({url:"/doc/uploads",...e}),e.deleteUser=e=>(e?.client??u).delete({security:[{scheme:"bearer",type:"http"}],url:"/user",...e}),e.deleteUserAccount=e=>(e.client??u).delete({security:[{scheme:"bearer",type:"http"}],url:"/user/accounts",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.disconnectNotebooklm=e=>(e?.client??u).delete({security:[{scheme:"bearer",type:"http"}],url:"/notebooklm/status",...e}),e.discoverContent=e=>(e?.client??u).get({url:"/agent/discover",...e}),e.exportToGoogleDocs=e=>(e.client??u).post({url:"/doc/google-docs/export",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.generateNotebookAudio=e=>(e.client??u).post({security:[{scheme:"bearer",type:"http"}],url:"/notebooklm/notebooks/{id}/audio",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.generateSuggestions=e=>(e.client??u).post({url:"/agent/suggestions",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.getArticle=e=>(e.client??u).get({url:"/doc/article",...e}),e.getChatById=e=>(e.client??u).get({url:"/agent/chats/{id}",...e}),e.getConfig=e=>(e?.client??u).get({url:"/config",...e}),e.getDocumentById=e=>(e.client??u).get({url:"/doc/documents/{id}",...e}),e.getEngineStatus=e=>(e?.client??u).get({url:"/search/engines/status",...e}),e.getGoogleDriveFile=e=>(e.client??u).get({url:"/doc/google-docs/files",...e}),e.getGoogleToken=e=>(e?.client??u).get({url:"/doc/google-docs/token",...e}),e.getNotebooklmStatus=e=>(e?.client??u).get({security:[{scheme:"bearer",type:"http"}],url:"/notebooklm/status",...e}),e.getSharedDocument=e=>(e.client??u).get({url:"/doc/share/{id}",...e}),e.getUploadedFile=e=>(e.client??u).get({url:"/doc/uploads",...e}),e.getUser=e=>(e?.client??u).get({security:[{scheme:"bearer",type:"http"}],url:"/user",...e}),e.getUserStorage=e=>(e?.client??u).get({security:[{scheme:"bearer",type:"http"}],url:"/user/storage",...e}),e.googleDocsAuth=e=>(e?.client??u).get({url:"/doc/google-docs/auth",...e}),e.googleDocsAuthStatus=e=>(e?.client??u).get({url:"/doc/google-docs/auth/status",...e}),e.googleDocsCallback=e=>(e.client??u).get({url:"/doc/google-docs/callback",...e}),e.importFromGoogleDocs=e=>(e.client??u).post({url:"/doc/google-docs/import",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.listChats=e=>(e?.client??u).get({security:[{scheme:"bearer",type:"http"}],url:"/agent/chats",...e}),e.listDocuments=e=>(e?.client??u).get({url:"/doc/documents",...e}),e.listFavorites=e=>(e?.client??u).get({security:[{scheme:"bearer",type:"http"}],url:"/doc/favorites",...e}),e.listMcpServers=e=>(e?.client??u).get({url:"/agent/mcpservers",...e}),e.listNotebookSources=e=>(e.client??u).get({security:[{scheme:"bearer",type:"http"}],url:"/notebooklm/notebooks/{id}/sources",...e}),e.listNotebooks=e=>(e?.client??u).get({security:[{scheme:"bearer",type:"http"}],url:"/notebooklm/notebooks",...e}),e.listProviders=e=>(e?.client??u).get({url:"/agent/providers",...e}),e.listQuotes=e=>(e.client??u).get({url:"/doc/quotes",...e}),e.listSearchEngines=e=>(e?.client??u).get({url:"/search/engines",...e}),e.listSessions=e=>(e?.client??u).get({security:[{scheme:"bearer",type:"http"}],url:"/user/sessions",...e}),e.listUserAccounts=e=>(e?.client??u).get({security:[{scheme:"bearer",type:"http"}],url:"/user/accounts",...e}),e.notebooklmLogin=e=>(e.client??u).post({security:[{scheme:"bearer",type:"http"}],url:"/notebooklm/login",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.refreshGoogleToken=e=>(e?.client??u).post({url:"/doc/google-docs/refresh-token",...e}),e.removeFavorite=e=>(e.client??u).delete({security:[{scheme:"bearer",type:"http"}],url:"/doc/favorites",...e}),e.revokeOtherSessions=e=>(e?.client??u).delete({security:[{scheme:"bearer",type:"http"}],url:"/user/sessions",...e}),e.revokeSession=e=>(e.client??u).delete({security:[{scheme:"bearer",type:"http"}],url:"/user/sessions/{id}",...e}),e.rewriteText=e=>(e.client??u).post({url:"/agent/rewrite",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.saveConfig=e=>(e.client??u).post({url:"/config",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.saveMessage=e=>(e.client??u).post({security:[{scheme:"bearer",type:"http"}],url:"/agent/messages",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.scrapeGet=e=>(e.client??u).get({url:"/scraper",...e}),e.scrapePost=e=>(e.client??u).post({url:"/scraper",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.searchChats=e=>(e.client??u).get({security:[{scheme:"bearer",type:"http"}],url:"/agent/chats/search",...e}),e.shareChat=e=>(e.client??u).post({security:[{scheme:"bearer",type:"http"}],url:"/agent/chats/share",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.shareDocument=e=>(e.client??u).post({url:"/doc/share",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.shareGoogleDoc=e=>(e.client??u).post({url:"/doc/google-docs/share",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.testModels=e=>(e.client??u).post({url:"/agent/test-models",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.testSearchEngines=e=>(e.client??u).post({url:"/search/engines/test",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.textToSpeech=e=>(e.client??u).post({url:"/agent/voice",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.toggleMcpServer=e=>(e.client??u).post({url:"/agent/mcpservers/{id}/toggle",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.transcribeAudio=e=>(e.client??u).post({...s,url:"/agent/transcript",...e,headers:{"Content-Type":null,...e.headers}}),e.updateArticle=e=>(e.client??u).post({url:"/doc/article",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.updateDocument=e=>(e.client??u).put({url:"/doc/documents/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.updateEngineStatus=e=>(e.client??u).post({url:"/search/engines/status",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.updateMcpServer=e=>(e.client??u).patch({url:"/agent/mcpservers/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.updateProvider=e=>(e.client??u).patch({url:"/agent/providers/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.updateQuote=e=>(e.client??u).put({url:"/doc/quotes/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.updateUser=e=>(e.client??u).patch({security:[{scheme:"bearer",type:"http"}],url:"/user",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.uploadFiles=e=>(e.client??u).post({...s,url:"/doc/uploads",...e,headers:{"Content-Type":null,...e.headers}})});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("api2client")):"function"==typeof define&&define.amd?define(["exports","api2client"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["api-client"]={},e.api2client)}(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var n,s=(e,t,n)=>{"string"==typeof n||n instanceof Blob?e.append(t,n):n instanceof Date?e.append(t,n.toISOString()):e.append(t,JSON.stringify(n))},o=(e,t,n)=>{"string"==typeof n?e.append(t,n):e.append(t,JSON.stringify(n))},i={bodySerializer:e=>{const t=new FormData;return Object.entries(e).forEach(([e,n])=>{null!=n&&(Array.isArray(n)?n.forEach(n=>s(t,e,n)):s(t,e,n))}),t}},a={bodySerializer:e=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t)},r={bodySerializer:e=>{const t=new URLSearchParams;return Object.entries(e).forEach(([e,n])=>{null!=n&&(Array.isArray(n)?n.forEach(n=>o(t,e,n)):o(t,e,n))}),t.toString()}},c=(Object.entries({$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"}),({allowReserved:e,explode:t,name:n,style:s,value:o})=>{if(!t){const t=(e?o:o.map(e=>encodeURIComponent(e))).join((e=>{switch(e){case"form":default:return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20"}})(s));switch(s){case"label":return`.${t}`;case"matrix":return`;${n}=${t}`;case"simple":return t;default:return`${n}=${t}`}}const i=(e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}})(s),a=o.map(t=>"label"===s||"simple"===s?e?t:encodeURIComponent(t):p({allowReserved:e,name:n,value:t})).join(i);return"label"===s||"matrix"===s?i+a:a}),p=({allowReserved:e,name:t,value:n})=>{if(null==n)return"";if("object"==typeof n)throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?n:encodeURIComponent(n)}`},l=({allowReserved:e,explode:t,name:n,style:s,value:o,valueOnly:i})=>{if(o instanceof Date)return i?o.toISOString():`${n}=${o.toISOString()}`;if("deepObject"!==s&&!t){let t=[];Object.entries(o).forEach(([n,s])=>{t=[...t,n,e?s:encodeURIComponent(s)]});const i=t.join(",");switch(s){case"form":return`${n}=${i}`;case"label":return`.${i}`;case"matrix":return`;${n}=${i}`;default:return i}}const a=(e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}})(s),r=Object.entries(o).map(([t,o])=>p({allowReserved:e,name:"deepObject"===s?`${n}[${t}]`:t,value:o})).join(a);return"label"===s||"matrix"===s?a+r:r},y=(({parameters:e={},...t}={})=>n=>{const s=[];if(n&&"object"==typeof n)for(const o in n){const i=n[o];if(null==i)continue;const a=e[o]||t;if(Array.isArray(i)){const e=c({allowReserved:a.allowReserved,explode:!0,name:o,style:"form",value:i,...a.array});e&&s.push(e)}else if("object"==typeof i){const e=l({allowReserved:a.allowReserved,explode:!0,name:o,style:"deepObject",value:i,...a.object});e&&s.push(e)}else{const e=p({allowReserved:a.allowReserved,name:o,value:i});e&&s.push(e)}}return s.join("&")})({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),u={"Content-Type":"application/json"},d="undefined"!=typeof window?`${"undefined"!=typeof window&&window.NEXT_PUBLIC_BASE_URL||`${window.location.protocol}//${window.location.host}`}/api`:`${process.env.NEXT_PUBLIC_BASE_URL||"https://qwksearch.com"}/api`,h=((e={})=>(0,t.createClient)(e))((n=((e={})=>({...a,headers:u,parseAs:"auto",querySerializer:y,...e}))({baseUrl:"https://qwksearch.com/api"}),{...n,baseUrl:d}));e.acceptPlaylistInvite=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/learn/playlists/accept-invite",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.addFavorite=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/favorites",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.addMcpServer=e=>(e.client??h).post({url:"/agent/mcpservers",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.addNotebookSource=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/notebooklm/notebooks/{id}/sources",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.addProvider=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/providers",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.addProviderModel=e=>(e.client??h).post({url:"/agent/providers/{id}/models",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.agentChat=e=>(e.client??h).sse.post({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/chat",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.agentSearch=e=>(e.client??h).get({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/search",...e}),e.approveConnectRequest=e=>(e.client??h).post({...r,security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/connect/authorize",...e,headers:{"Content-Type":"application/x-www-form-urlencoded",...e.headers}}),e.articleFollowups=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/article-followups",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.articleQa=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/article-qa",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.askNotebook=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/notebooklm/notebooks/{id}/ask",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.autocomplete=e=>(e.client??h).get({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/autocomplete",...e}),e.changePassword=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/password",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.clearAdminNews=e=>(e?.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/news",...e}),e.createDocument=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/documents",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.createMemory=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/memories",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.createNotebook=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/notebooklm/notebooks",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.createQuote=e=>(e.client??h).post({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/doc/quotes",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.createTranscription=e=>(e.client??h).post({...i,security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/v1/audio/transcriptions",...e,headers:{"Content-Type":null,...e.headers}}),e.deleteAdminTableRow=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/database/{table}/{id}",...e}),e.deleteAdminUser=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/users/{id}",...e}),e.deleteAllChats=e=>(e?.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/chats",...e}),e.deleteChatById=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/chats/{id}",...e}),e.deleteDocument=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/documents/{id}",...e}),e.deleteMcpServer=e=>(e.client??h).delete({url:"/agent/mcpservers/{id}",...e}),e.deleteMemory=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/memories/{id}",...e}),e.deleteNotebook=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/notebooklm/notebooks/{id}",...e}),e.deletePlaylist=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/learn/playlists/{id}",...e}),e.deleteProvider=e=>(e.client??h).delete({url:"/agent/providers/{id}",...e}),e.deleteProviderModel=e=>(e.client??h).delete({url:"/agent/providers/{id}/models",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.deleteQuote=e=>(e.client??h).delete({url:"/doc/quotes/{id}",...e}),e.deleteUploadedFile=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/uploads",...e}),e.deleteUser=e=>(e?.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user",...e}),e.deleteUserAccount=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/accounts",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.describeConnectRequest=e=>(e.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/connect/authorize",...e}),e.diagnoseFreeModels=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/freekeys",...e}),e.disconnectNotebooklm=e=>(e?.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/notebooklm/status",...e}),e.discoverContent=e=>(e?.client??h).get({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/discover",...e}),e.exchangeConnectCode=e=>(e.client??h).post({url:"/connect/token",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.exportToGoogleDocs=e=>(e.client??h).post({security:[{in:"cookie",name:"google_access_token",type:"apiKey"}],url:"/doc/google-docs/export",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.generateChatTitle=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/chat-title",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.generateNotebookAudio=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/notebooklm/notebooks/{id}/audio",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.generatePageTips=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/page-tips",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.generateSuggestions=e=>(e.client??h).post({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/suggestions",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.generateTopicSearches=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/topic-searches",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.getAdminDatabase=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/database",...e}),e.getAdminNews=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/news",...e}),e.getAdminOverview=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/overview",...e}),e.getArticle=e=>(e.client??h).get({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/doc/article",...e}),e.getChatById=e=>(e.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/chats/{id}",...e}),e.getClientLocation=e=>(e?.client??h).get({url:"/geolocation",...e}),e.getConfig=e=>(e?.client??h).get({url:"/config",...e}),e.getConnectedAccount=e=>(e?.client??h).get({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/connect/me",...e}),e.getDocumentById=e=>(e.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/documents/{id}",...e}),e.getEngineStatus=e=>(e?.client??h).get({url:"/search/engines/status",...e}),e.getGoogleDriveContent=e=>(e.client??h).get({security:[{in:"cookie",name:"google_access_token",type:"apiKey"}],url:"/doc/google-docs/content",...e}),e.getGoogleDriveFile=e=>(e.client??h).get({security:[{in:"cookie",name:"google_access_token",type:"apiKey"}],url:"/doc/google-docs/files",...e}),e.getGoogleDriveFolderTree=e=>(e.client??h).get({security:[{in:"cookie",name:"google_access_token",type:"apiKey"}],url:"/doc/google-docs/folder-tree",...e}),e.getGoogleToken=e=>(e?.client??h).get({security:[{in:"cookie",name:"google_access_token",type:"apiKey"}],url:"/doc/google-docs/token",...e}),e.getMemory=e=>(e.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/memories/{id}",...e}),e.getNewsSettings=e=>(e?.client??h).get({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/news/settings",...e}),e.getNotebooklmStatus=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/notebooklm/status",...e}),e.getPlaylist=e=>(e.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/learn/playlists/{id}",...e}),e.getSharedDocument=e=>(e.client??h).get({url:"/doc/share/{id}",...e}),e.getTrendingNews=e=>(e?.client??h).get({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/news/trending",...e}),e.getUploadedFile=e=>(e.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/uploads",...e}),e.getUser=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user",...e}),e.getUserStorage=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/storage",...e}),e.googleDocsAuth=e=>(e?.client??h).get({url:"/doc/google-docs/auth",...e}),e.googleDocsAuthStatus=e=>(e?.client??h).get({url:"/doc/google-docs/auth/status",...e}),e.googleDocsCallback=e=>(e.client??h).get({url:"/doc/google-docs/callback",...e}),e.importFromGoogleDocs=e=>(e.client??h).post({security:[{in:"cookie",name:"google_access_token",type:"apiKey"}],url:"/doc/google-docs/import",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.listAdminTableRows=e=>(e.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/database/{table}",...e}),e.listAdminUsers=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/users",...e}),e.listAgentSkills=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/agent-skills",...e}),e.listAuthProviders=e=>(e?.client??h).get({url:"/auth/providers",...e}),e.listChats=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/chats",...e}),e.listDocuments=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/documents",...e}),e.listEnabledSkills=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/enabled-skills",...e}),e.listFavorites=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/favorites",...e}),e.listGoogleDriveFolders=e=>(e?.client??h).get({security:[{in:"cookie",name:"google_access_token",type:"apiKey"}],url:"/doc/google-docs/folders",...e}),e.listMcpServers=e=>(e?.client??h).get({url:"/agent/mcpservers",...e}),e.listMemories=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/memories",...e}),e.listNotebookSources=e=>(e.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/notebooklm/notebooks/{id}/sources",...e}),e.listNotebooks=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/notebooklm/notebooks",...e}),e.listPlaylists=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/learn/playlists",...e}),e.listProviders=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/providers",...e}),e.listQuotes=e=>(e.client??h).get({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/doc/quotes",...e}),e.listSearchEngines=e=>(e?.client??h).get({url:"/search/engines",...e}),e.listSessions=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/sessions",...e}),e.listTranscriptionModels=e=>(e?.client??h).get({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/v1/models",...e}),e.listUserAccounts=e=>(e?.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/accounts",...e}),e.notebooklmLogin=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/notebooklm/login",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.planPlaylist=e=>(e.client??h).post({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/learn",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.recordMemoryUsage=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/memories/{id}/usage",...e}),e.refreshGoogleToken=e=>(e?.client??h).post({security:[{in:"cookie",name:"google_access_token",type:"apiKey"}],url:"/doc/google-docs/refresh-token",...e}),e.removeFavorite=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/favorites",...e}),e.requestDocumentAccess=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/documents/{id}/access-request",...e}),e.revokeOtherSessions=e=>(e?.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/sessions",...e}),e.revokeSession=e=>(e.client??h).delete({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/sessions/{id}",...e}),e.rewriteText=e=>(e.client??h).post({url:"/agent/rewrite",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.runAdminMaintenance=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/database/maintenance",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.saveConfig=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/config",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.saveMessage=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/messages",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.savePlaylist=e=>(e.client??h).put({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/learn/playlists/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.scrapeGet=e=>(e.client??h).get({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/scraper",...e}),e.scrapePost=e=>(e.client??h).post({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/scraper",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.searchChats=e=>(e.client??h).get({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/chats/search",...e}),e.setAgentSkill=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/agent-skills",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.shareChat=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/chats/share",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.shareDocument=e=>(e.client??h).post({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/doc/share",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.shareGoogleDoc=e=>(e.client??h).post({security:[{in:"cookie",name:"google_access_token",type:"apiKey"}],url:"/doc/google-docs/share",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.submitEnterpriseRequest=e=>(e.client??h).post({url:"/enterprise-request",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.suggestLearningQuestions=e=>(e.client??h).post({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/learn/questions",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.synthesizeSpeech=e=>(e.client??h).post({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/speech/tts",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.testModels=e=>(e.client??h).post({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/test-models",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.testSearchEngines=e=>(e.client??h).post({url:"/search/engines/test",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.textToSpeech=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"},{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/agent/voice",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.toggleMcpServer=e=>(e.client??h).post({url:"/agent/mcpservers/{id}/toggle",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.toggleSkill=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/enabled-skills",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.toggleSkills=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/enabled-skills/batch",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.transcribeAudio=e=>(e.client??h).post({...i,url:"/agent/transcript",...e,headers:{"Content-Type":null,...e.headers}}),e.updateAdminNews=e=>(e.client??h).post({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/news",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.updateAdminTableRow=e=>(e.client??h).patch({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/database/{table}/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.updateAdminUser=e=>(e.client??h).patch({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/admin/users/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.updateArticle=e=>(e.client??h).post({security:[{scheme:"bearer",type:"http"},{name:"X-API-Key",type:"apiKey"}],url:"/doc/article",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.updateDocument=e=>(e.client??h).put({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/documents/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.updateEngineStatus=e=>(e.client??h).post({url:"/search/engines/status",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.updateMcpServer=e=>(e.client??h).patch({url:"/agent/mcpservers/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.updateMemory=e=>(e.client??h).put({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user/memories/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.updateProvider=e=>(e.client??h).patch({url:"/agent/providers/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.updateQuote=e=>(e.client??h).put({url:"/doc/quotes/{id}",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.updateUser=e=>(e.client??h).patch({security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/user",...e,headers:{"Content-Type":"application/json",...e.headers}}),e.uploadFiles=e=>(e.client??h).post({...i,security:[{in:"cookie",name:"better-auth.session_token",type:"apiKey"}],url:"/doc/uploads",...e,headers:{"Content-Type":null,...e.headers}})});