Initialize the Request Factory.
Initialization options for the factory.
ReadonlyassignmentsTypes of Assignment Requests available in the WaniKani API.
Get an Assignment or Assignment Collection from the WaniKani API.
A valibot!ValiError if ID or parameters are invalid.
Start an Assignment (i.e. move from Lessons to Reviews) via the WaniKani API.
A valibot!ValiError if ID or payload is invalid.
ReadonlybaseThe base URL of the WaniKani API
ReadonlylevelTypes of Level Progression Requests available in the WaniKani API.
Get a Level Progression or Level Progression Collection from the WaniKani API.
A valibot!ValiError if ID or parameters are invalid.
ReadonlyresetsTypes of Reset Requests available in the WaniKani API.
Get a Reset or Reset Collection from the WaniKani API.
A valibot!ValiError if ID or parameters are invalid.
ReadonlyreviewsTypes of Review Requests available in the WaniKani API.
Create a new Review via the WaniKani API.
A valibot!ValiError if payload is invalid.
Get a Review or Review Collection from the WaniKani API.
A valibot!ValiError if ID or parameters are invalid.
ReadonlyreviewTypes of Review Statistic Requests available in the WaniKani API.
Get a Review Statistic or Review Statistic Collection from the WaniKani API.
A valibot!ValiError if ID or parameters are invalid.
ReadonlyspacedTypes of Spaced Repetition System (SRS) Requests available in the WaniKani API.
Get a Spaced Repetition System (SRS) or Spaced Repetition System (SRS) Collection from the WaniKani API.
A valibot!ValiError if ID or parameters are invalid.
ReadonlysrsAn alias for Spaced Repetition System requests.
Get a Spaced Repetition System (SRS) or Spaced Repetition System (SRS) Collection from the WaniKani API.
A valibot!ValiError if ID or parameters are invalid.
ReadonlystudyTypes of Study Material Requests available in the WaniKani API.
Create a new Study Material for a given Subject via the WaniKani API.
A valibot!ValiError if payload is invalid.
Get a Study Material or Study Material Collection from the WaniKani API.
A valibot!ValiError if ID or parameters are invalid.
Update a Study Material for a given Subject.
A valibot!ValiError if ID or payload is invalid.
ReadonlysubjectsTypes of Subject Requests available in the WaniKani API.
Get a Subject or Subject Collection from the WaniKani API.
A valibot!ValiError if ID or parameters are invalid.
ReadonlysummaryTypes of Summary Requests available in the WaniKani API.
Get a summary of a user's available and upcoming lessons/reviews from the WaniKani API.
ReadonlyuserTypes of User Requests available in the WaniKani API.
Get a user's information from the WaniKani API.
Update a User's Preferences via the WaniKani API.
A valibot!ValiError if payload is invalid.
ReadonlyvoiceTypes of Voice Actor Requests available in the WaniKani API.
Get a Voice Actor or Voice Actor Collection from the WaniKani API.
A valibot!ValiError if ID or parameters are invalid.
Sets a new WaniKani API Revision to use in requests returned by the factory.
The WaniKani API Revision to use.
The factory, with the newly set WaniKani API Revision.
A valibot!ValiError if the WaniKani API Revision is invalid.
Sets a new WaniKani API Token to use in requests returned by the factory.
The new WaniKani API Token to use.
The factory, with the newly set WaniKani API Token.
Sets the custom headers for all requests gerated by the factory to those passed to this function, removing any previously set custom headers, and keeping API Revision and Token settings.
An object containing HTTP headers and their values.
The factory, with the only custom headers being those passed to this function.
A factory for preparing requests to the WaniKani API, with methods that return an ApiRequest that can be used in any HTTP library/package to make the request.