feat: add scratchpad to frontend types and API client

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Michael Chihlas
2026-02-04 02:49:50 -05:00
parent 7824cddd71
commit a92671157f
2 changed files with 7 additions and 0 deletions

View File

@@ -46,6 +46,11 @@ export const sessionsApi = {
const response = await apiClient.post<string>(`/sessions/${id}/export`, options)
return response.data
},
async updateScratchpad(id: string, content: string): Promise<Session> {
const response = await apiClient.patch<Session>(`/sessions/${id}/scratchpad`, { scratchpad: content })
return response.data
},
}
export default sessionsApi