komga-sdk 1.0 and use flat parameters.
Replacement map
No deprecated SDK function imports are needed. Import the current operation instead.
The migration is more than a path change:
The generated functions serialize the nested search/update value for you. Do not pass a legacy
{ path, query, body } object or put pagination inside the search document. For the list operations, bookSearch and seriesSearch are required even when the search is empty ({}).
Replace the books list call
getBooks takes pagination at the top level and the search document as bookSearch:
Replace the series list call
getSeries uses the same flat pagination shape with a seriesSearch document:
seriesSearch parameter:
Replace the authors list call
getAuthors is the current v2 operation. Its filters are flat query keys:
The v2 operation preserves the useful filters that callers often encoded in the old route, but makes their types explicit. For example, library_id accepts an array and the current operation also supports role, readlist_id, unpaged, and size:
content page as a valid “no matches” result. A 400 usually means a filter or pagination value is invalid; inspect result.error and the native response before retrying.
Replace a library update
The current operation usesPATCH and names the body parameter libraryUpdateDto:
Migration checklist
- Replace each legacy route with the current operation in the table.
- Move path, query, and body values into the operation’s flat parameter object.
- Pass
{ client }as the second argument when the operation has parameters. - Check
result.erroror callunwrapfor a typedKomgaApiError. - Treat
204responses as successful operations with nodatapayload.
Next steps
Direct API
Explore generated operations and response fields.
Library maintenance
Scan and update libraries with current operations.
Migration
Review SDK 1.0 migration changes.