Constructs a new BaseOperation instance.
OptionalauthToken: RequestAuthInput
The authentication material used for API requests. A string is treated as a bearer token for backwards compatibility.
Optionaloptions: RequestOptions
Transport settings scoped to this instance (timeout, cancellation, retry policy, lifecycle hooks).
OptionalstateOwner: object
Stable object keying cross-request transport state (circuit breaker, retry budget, pacing deadlines). Provider wirings pass one shared owner to every operation they construct so that state spans the whole client; when omitted, a fresh per-instance object is used and the state stays scoped to this operation.
MalMangaOperation.deleteFromList removes a manga from the authenticated user's list.
It calls DELETE /manga/{id}/my_list_status through RestOperation.execute with requiresAuth and resolves with no body. The facade alias is MyAnimeListMangaApi.deleteFromList and it requires MalCredentials.accessToken.
The delete inputs; a MalMangaDeleteParams carrying the MyAnimeList manga ID.
Optional transport settings; a MalRequestOptions merged over the instance defaults.
Resolves once the entry is deleted; the response carries no body.
MalMangaOperation.get gets one manga by its MyAnimeList ID.
It calls GET /manga/{id} through RestOperation.execute and returns a MalManga shaped by MalRequestOptions.fields. The facade alias is MyAnimeListMangaApi.get.
The manga lookup inputs; a MalMangaGetParams carrying the MyAnimeList manga ID.
Optional field selection and transport settings; a MalRequestOptions merged over the instance defaults.
The requested MalManga.
MalMangaOperation.ranking gets one of MyAnimeList's manga ranking lists.
It calls GET /manga/ranking through RestOperation.execute with the
ranking_type query parameter and returns a MalMangaRankingResponse
page of MalMangaRankingEntry entries shaped by
MalRequestOptions.fields. The facade exposes this method as
MyAnimeListMangaApi.ranking. It does not require an access token.
The ranking read inputs; a MalMangaRankingParams carrying the ranking list to fetch.
Optional field selection and transport settings; a MalRequestOptions merged over the instance defaults.
The ranking page, a MalMangaRankingResponse.
MalMangaOperation.search searches MyAnimeList manga by keyword.
It calls GET /manga through RestOperation.execute with the q keyword
plus the limit/offset paging filters and returns a
MalMangaSearchResponse page of MalMangaSearchEntry entries
shaped by MalRequestOptions.fields. The facade exposes this
method as MyAnimeListMangaApi.search. It does not require an access
token.
The search inputs; a MalMangaSearchParams carrying the keyword plus the optional paging filters.
Optional field selection and transport settings; a MalRequestOptions merged over the instance defaults.
The search results page, a MalMangaSearchResponse.
An AniLinkValidationError when q is empty or only whitespace.
MalMangaOperation.updateMyListStatus updates the authenticated user's manga list status.
It calls PATCH /manga/{id}/my_list_status through RestOperation.execute with requiresAuth and a form-urlencoded MalMangaListStatusUpdate body (the endpoint's documented request format), returning the updated MalMangaListStatus. The facade alias is MyAnimeListMangaApi.updateMyListStatus and it requires MalCredentials.accessToken.
The list-status write inputs; a MalMangaListStatusUpdateParams carrying the manga ID plus only the fields to change.
Optional field selection and transport settings; a MalRequestOptions merged over the instance defaults.
The updated MalMangaListStatus.
An AniLinkAuthError without an access token, an AniLinkValidationError when params carries no list-status field to change, or a normalized request error.
MalMangaOperation is the REST operation adapter for MyAnimeList manga endpoints.
It extends RestOperation and is composed into
MyAnimeListApibybuildMyAnimeListApi. Itsgetmethod returns MalManga and is exposed asMyAnimeListMangaApi.get.See
https://myanimelist.net/apiconfig/references/api/v2#tag/manga/operation/manga_manga_id_get