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.
MalAnimeOperation.deleteFromList removes an anime from the authenticated user's list.
It calls DELETE /anime/{id}/my_list_status through RestOperation.execute with requiresAuth and resolves with no body. The facade alias is MyAnimeListAnimeApi.deleteFromList and it requires MalCredentials.accessToken.
The delete inputs; a MalAnimeDeleteParams carrying the MyAnimeList anime ID.
Optional transport settings; a MalRequestOptions merged over the instance defaults.
Resolves once the entry is deleted; the response carries no body.
MalAnimeOperation.get gets one anime by its MyAnimeList ID.
It calls GET /anime/{id} through RestOperation.execute and returns a MalAnime shaped by MalRequestOptions.fields; when fields is omitted it falls back to DEFAULT_MAL_ANIME_FIELDS. The facade alias is MyAnimeListAnimeApi.get.
The anime lookup inputs; a MalAnimeGetParams carrying the MyAnimeList anime ID.
Optional field selection and transport settings; a MalRequestOptions merged over the instance defaults.
The requested MalAnime.
MalAnimeOperation.ranking gets one of MyAnimeList's anime ranking lists.
It calls GET /anime/ranking through RestOperation.execute with the
ranking_type query parameter and returns a MalAnimeRankingResponse
page of MalRankingEntry entries shaped by MalRequestOptions.fields.
The facade exposes this method as MyAnimeListAnimeApi.ranking. It does
not require an access token.
The ranking read inputs; a MalRankingParams carrying the ranking list to fetch.
Optional field selection and transport settings; a MalRequestOptions merged over the instance defaults.
The ranking page, a MalAnimeRankingResponse.
MalAnimeOperation.search searches MyAnimeList anime by keyword.
It calls GET /anime through RestOperation.execute with the q keyword
plus the limit/offset paging filters and returns a
MalAnimeSearchResponse page of MalAnimeSearchEntry entries
shaped by MalRequestOptions.fields. The facade exposes this
method as MyAnimeListAnimeApi.search. It does not require an access
token.
The search inputs; a MalAnimeSearchParams 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 MalAnimeSearchResponse.
An AniLinkValidationError when q is empty or only whitespace.
MalAnimeOperation.seasonal gets the anime of one broadcast season.
It calls GET /anime/season/{year}/{season} through
RestOperation.execute and returns a MalSeasonalAnimeResponse page
of MalSeasonalAnime entries shaped by MalRequestOptions.fields.
The facade exposes this method as MyAnimeListAnimeApi.seasonal. It does
not require an access token.
The seasonal read inputs; a MalSeasonalParams carrying the year and broadcast window.
Optional field selection and transport settings; a MalRequestOptions merged over the instance defaults.
The seasonal anime page, a MalSeasonalAnimeResponse.
MalAnimeOperation.suggestions gets MyAnimeList's anime suggestions for the authenticated user.
It calls GET /anime/suggestions through RestOperation.execute with requiresAuth and returns a MalAnimeSuggestionsResponse page of MalSuggestion entries shaped by MalRequestOptions.fields. The facade alias is MyAnimeListAnimeApi.suggestions and it requires MalCredentials.accessToken.
Optional field selection and transport settings; a MalRequestOptions merged over the instance defaults.
The suggestions page, a MalAnimeSuggestionsResponse.
MalAnimeOperation.updateMyListStatus updates the authenticated user's anime list status.
It calls PATCH /anime/{id}/my_list_status through RestOperation.execute with requiresAuth and a form-urlencoded MalAnimeListStatusUpdate body (the endpoint's documented request format), returning the updated MalAnimeListStatus. The facade alias is MyAnimeListAnimeApi.updateMyListStatus and it requires MalCredentials.accessToken.
The list-status write inputs; a MalAnimeListStatusUpdateParams carrying the anime ID plus only the fields to change.
Optional field selection and transport settings; a MalRequestOptions merged over the instance defaults.
The updated MalAnimeListStatus.
An AniLinkAuthError without an access token, an AniLinkValidationError when params carries no list-status field to change, or a normalized request error.
MalAnimeOperation is the REST operation adapter for MyAnimeList anime endpoints.
It extends RestOperation and is composed into
MyAnimeListApiviabuildMyAnimeListApi, exposing MalAnime through MalRequestOptions andMyAnimeListAnimeApi.get. The discovery readsseasonal,ranking, andsuggestionscover the seasonal, ranking, and suggestion endpoints.See