Initialize the Request Factory.
Initialization options for the factory.
Readonly
assignmentsTypes 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.
Readonly
baseThe base URL of the WaniKani API
Readonly
levelTypes 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.
Readonly
resetsTypes 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.
Readonly
reviewsTypes 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.
Readonly
reviewTypes 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.
Readonly
spacedTypes 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.
Readonly
srsAn 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.
Readonly
studyTypes 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.
Readonly
subjectsTypes 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.
Readonly
summaryTypes of Summary Requests available in the WaniKani API.
Get a summary of a user's available and upcoming lessons/reviews from the WaniKani API.
Readonly
userTypes 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.
Readonly
voiceTypes 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.