2026-03-23 07:17:46 +00:00
|
|
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
|
|
|
|
|
|
import type { Client, Options as Options2, TDataShape } from './client';
|
|
|
|
|
import { client } from './client.gen';
|
2026-05-04 10:45:41 +00:00
|
|
|
import type { AddEntryApiAdminPacksPackIdEntriesPostData, AddEntryApiAdminPacksPackIdEntriesPostErrors, AddEntryApiAdminPacksPackIdEntriesPostResponses, AddFlashcardTemplateApiAdminPacksPackIdEntriesEntryIdFlashcardsPostData, AddFlashcardTemplateApiAdminPacksPackIdEntriesEntryIdFlashcardsPostErrors, AddFlashcardTemplateApiAdminPacksPackIdEntriesEntryIdFlashcardsPostResponses, AddFromTokenApiVocabFromTokenPostData, AddFromTokenApiVocabFromTokenPostErrors, AddFromTokenApiVocabFromTokenPostResponses, AddLearnableLanguageApiAccountLearnableLanguagesPostData, AddLearnableLanguageApiAccountLearnableLanguagesPostErrors, AddLearnableLanguageApiAccountLearnableLanguagesPostResponses, AddPackToBankApiPacksPackIdAddToBankPostData, AddPackToBankApiPacksPackIdAddToBankPostErrors, AddPackToBankApiPacksPackIdAddToBankPostResponses, AddWordApiVocabPostData, AddWordApiVocabPostErrors, AddWordApiVocabPostResponses, AnalyzePosApiPosPostData, AnalyzePosApiPosPostErrors, AnalyzePosApiPosPostResponses, CompleteOnboardingApiAccountOnboardingPostData, CompleteOnboardingApiAccountOnboardingPostErrors, CompleteOnboardingApiAccountOnboardingPostResponses, CreateAdventureApiAdventuresPostData, CreateAdventureApiAdventuresPostErrors, CreateAdventureApiAdventuresPostResponses, CreateGenerationJobApiGeneratePostData, CreateGenerationJobApiGeneratePostErrors, CreateGenerationJobApiGeneratePostResponses, CreatePackApiAdminPacksPostData, CreatePackApiAdminPacksPostErrors, CreatePackApiAdminPacksPostResponses, DeleteAdventureApiAdventuresAdventureIdDeleteData, DeleteAdventureApiAdventuresAdventureIdDeleteErrors, DeleteAdventureApiAdventuresAdventureIdDeleteResponses, GenerateFlashcardsApiVocabEntryIdFlashcardsPostData, GenerateFlashcardsApiVocabEntryIdFlashcardsPostErrors, GenerateFlashcardsApiVocabEntryIdFlashcardsPostResponses, GetAccountBffAccountGetData, GetAccountBffAccountGetResponses, GetAccountStatusApiAccountStatusGetData, GetAccountStatusApiAccountStatusGetResponses, GetAdventureApiAdventuresAdventureIdGetData, GetAdventureApiAdventuresAdventureIdGetErrors, GetAdventureApiAdventuresAdventureIdGetResponses, GetAdventureBffAdventureAdventureIdGetData, GetAdventureBffAdventureAdventureIdGetErrors, GetAdventureBffAdventureAdventureIdGetResponses, GetArticleBffArticlesArticleIdGetData, GetArticleBffArticlesArticleIdGetErrors, GetArticleBffArticlesArticleIdGetResponses, GetEntryApiAdventuresAdventureIdEntriesEntryIdGetData, GetEntryApiAdventuresAdventureIdEntriesEntryIdGetErrors, GetEntryApiAdventuresAdventureIdEntriesEntryIdGetResponses, GetJobApiJobsJobIdGetData, GetJobApiJobsJobIdGetErrors, GetJobApiJobsJobIdGetResponses, GetJobsApiJobsGetData, GetJobsApiJobsGetResponses, GetMediaFileMediaFilenameGetData, GetMediaFileMediaFilenameGetErrors, GetMediaFileMediaFilenameGetResponses, GetOnboardingBffAccountOnboardingGetData, GetOnboardingBffAccountOnboardingGetResponses, GetPackApiAdminPacksPackIdGetData, GetPackApiAdminPacksPackIdGetErrors, GetPackApiAdminPacksPackIdGetResponses, GetPackApiPacksPackIdGetData, GetPackApiPacksPackIdGetErrors, GetPackApiPacksPackIdGetResponses, GetUserProfileBffUserProfileGetData, GetUserProfileBffUserProfileGetResponses, HealthHealthGetData, HealthHealthGetResponses, ListAdventuresApiAdventuresGetData, ListAdventuresApiAdventuresGetResponses, ListArticlesBffArticlesGetData, ListArticlesBffArticlesGetErrors, ListArticlesBffArticlesGetResponses, ListEntriesApiAdventuresAdventureIdEntriesGetData, ListEntriesApiAdventuresAdventureIdEntriesGetErrors, ListEntriesApiAdventuresAdventureIdEntriesGetResponses, ListEntriesApiVocabGetData, ListEntriesApiVocabGetErrors, ListEntriesApiVocabGetResponses, ListFlashcardsApiFlashcardsGetData, ListFlashcardsApiFlashcardsGetResponses, ListPacksApiAdminPacksGetData, ListPacksApiAdminPacksGetErrors, ListPacksApiAdminPacksGetResponses, ListPacksApiPacksGetData, ListPacksApiPacksGetErrors, ListPacksApiPacksGetResponses, ListPacksForSelectionBffPacksGetData, ListPacksForSelectionBffPacksGetErrors, ListPacksForSelectionBffPacksGetResponses, LoginApiAuthLoginPostData, LoginApiAuthLoginPostErrors,
|
2026-03-23 07:17:46 +00:00
|
|
|
|
|
|
|
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
|
|
|
/**
|
|
|
|
|
* You can provide a client instance returned by `createClient()` instead of
|
|
|
|
|
* individual options. This might be also useful if you want to implement a
|
|
|
|
|
* custom client.
|
|
|
|
|
*/
|
|
|
|
|
client?: Client;
|
|
|
|
|
/**
|
|
|
|
|
* You can pass arbitrary values through the `meta` object. This can be
|
|
|
|
|
* used to access values that aren't defined as part of the SDK function.
|
|
|
|
|
*/
|
|
|
|
|
meta?: Record<string, unknown>;
|
|
|
|
|
};
|
|
|
|
|
|
2026-04-11 07:14:32 +00:00
|
|
|
/**
|
|
|
|
|
* Register
|
|
|
|
|
*/
|
|
|
|
|
export const registerApiAuthRegisterPost = <ThrowOnError extends boolean = false>(options: Options<RegisterApiAuthRegisterPostData, ThrowOnError>) => (options.client ?? client).post<RegisterApiAuthRegisterPostResponses, RegisterApiAuthRegisterPostErrors, ThrowOnError>({
|
|
|
|
|
url: '/api/auth/register',
|
|
|
|
|
...options,
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
...options.headers
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Login
|
|
|
|
|
*/
|
|
|
|
|
export const loginApiAuthLoginPost = <ThrowOnError extends boolean = false>(options: Options<LoginApiAuthLoginPostData, ThrowOnError>) => (options.client ?? client).post<LoginApiAuthLoginPostResponses, LoginApiAuthLoginPostErrors, ThrowOnError>({
|
|
|
|
|
url: '/api/auth/login',
|
|
|
|
|
...options,
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
...options.headers
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Verify Email
|
|
|
|
|
*/
|
|
|
|
|
export const verifyEmailApiAuthVerifyEmailGet = <ThrowOnError extends boolean = false>(options: Options<VerifyEmailApiAuthVerifyEmailGetData, ThrowOnError>) => (options.client ?? client).get<VerifyEmailApiAuthVerifyEmailGetResponses, VerifyEmailApiAuthVerifyEmailGetErrors, ThrowOnError>({ url: '/api/auth/verify-email', ...options });
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Add Learnable Language
|
|
|
|
|
*/
|
|
|
|
|
export const addLearnableLanguageApiAccountLearnableLanguagesPost = <ThrowOnError extends boolean = false>(options: Options<AddLearnableLanguageApiAccountLearnableLanguagesPostData, ThrowOnError>) => (options.client ?? client).post<AddLearnableLanguageApiAccountLearnableLanguagesPostResponses, AddLearnableLanguageApiAccountLearnableLanguagesPostErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/account/learnable-languages',
|
|
|
|
|
...options,
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
...options.headers
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Complete Onboarding
|
|
|
|
|
*/
|
|
|
|
|
export const completeOnboardingApiAccountOnboardingPost = <ThrowOnError extends boolean = false>(options: Options<CompleteOnboardingApiAccountOnboardingPostData, ThrowOnError>) => (options.client ?? client).post<CompleteOnboardingApiAccountOnboardingPostResponses, CompleteOnboardingApiAccountOnboardingPostErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/account/onboarding',
|
|
|
|
|
...options,
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
...options.headers
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get Account Status
|
|
|
|
|
*/
|
|
|
|
|
export const getAccountStatusApiAccountStatusGet = <ThrowOnError extends boolean = false>(options?: Options<GetAccountStatusApiAccountStatusGetData, ThrowOnError>) => (options?.client ?? client).get<GetAccountStatusApiAccountStatusGetResponses, unknown, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/account/status',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Remove Learnable Language
|
|
|
|
|
*/
|
|
|
|
|
export const removeLearnableLanguageApiAccountLearnableLanguagesLanguageIdDelete = <ThrowOnError extends boolean = false>(options: Options<RemoveLearnableLanguageApiAccountLearnableLanguagesLanguageIdDeleteData, ThrowOnError>) => (options.client ?? client).delete<RemoveLearnableLanguageApiAccountLearnableLanguagesLanguageIdDeleteResponses, RemoveLearnableLanguageApiAccountLearnableLanguagesLanguageIdDeleteErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/account/learnable-languages/{language_id}',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
2026-04-18 16:25:31 +00:00
|
|
|
/**
|
|
|
|
|
* Search Wordforms Prefix
|
|
|
|
|
*
|
|
|
|
|
* Search for wordforms whose surface text starts with the given prefix.
|
|
|
|
|
*
|
|
|
|
|
* Uses accent-insensitive, case-insensitive prefix matching so that e.g.
|
|
|
|
|
* "chatea" returns both "château" and "châteaux", and "lent" returns all
|
|
|
|
|
* four forms of the adjective. Returns one entry per matching lemma.
|
|
|
|
|
*/
|
|
|
|
|
export const searchWordformsPrefixApiDictionarySearchGet = <ThrowOnError extends boolean = false>(options: Options<SearchWordformsPrefixApiDictionarySearchGetData, ThrowOnError>) => (options.client ?? client).get<SearchWordformsPrefixApiDictionarySearchGetResponses, SearchWordformsPrefixApiDictionarySearchGetErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/dictionary/search',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
2026-05-03 20:34:07 +00:00
|
|
|
/**
|
|
|
|
|
* Search Senses
|
|
|
|
|
*
|
|
|
|
|
* Search for a Sense by (English) definition
|
|
|
|
|
*
|
|
|
|
|
* Returns one entry per matching senses,each with its Sense.
|
|
|
|
|
*/
|
|
|
|
|
export const searchSensesApiDictionarySensesGet = <ThrowOnError extends boolean = false>(options: Options<SearchSensesApiDictionarySensesGetData, ThrowOnError>) => (options.client ?? client).get<SearchSensesApiDictionarySensesGetResponses, SearchSensesApiDictionarySensesGetErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/dictionary/senses',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
2026-04-15 20:02:11 +00:00
|
|
|
/**
|
|
|
|
|
* Search Wordforms
|
|
|
|
|
*
|
|
|
|
|
* Search for a wordform by surface text within a language.
|
|
|
|
|
*
|
|
|
|
|
* Returns one entry per matching lemma, each with the lemma's senses. A single
|
|
|
|
|
* form (e.g. "allons") may resolve to more than one lemma when homographs exist.
|
|
|
|
|
*/
|
|
|
|
|
export const searchWordformsApiDictionaryWordformsGet = <ThrowOnError extends boolean = false>(options: Options<SearchWordformsApiDictionaryWordformsGetData, ThrowOnError>) => (options.client ?? client).get<SearchWordformsApiDictionaryWordformsGetResponses, SearchWordformsApiDictionaryWordformsGetErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/dictionary/wordforms',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
2026-04-11 07:14:32 +00:00
|
|
|
/**
|
|
|
|
|
* Generate Flashcards
|
|
|
|
|
*/
|
|
|
|
|
export const generateFlashcardsApiVocabEntryIdFlashcardsPost = <ThrowOnError extends boolean = false>(options: Options<GenerateFlashcardsApiVocabEntryIdFlashcardsPostData, ThrowOnError>) => (options.client ?? client).post<GenerateFlashcardsApiVocabEntryIdFlashcardsPostResponses, GenerateFlashcardsApiVocabEntryIdFlashcardsPostErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/vocab/{entry_id}/flashcards',
|
|
|
|
|
...options,
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
...options.headers
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* List Flashcards
|
|
|
|
|
*/
|
|
|
|
|
export const listFlashcardsApiFlashcardsGet = <ThrowOnError extends boolean = false>(options?: Options<ListFlashcardsApiFlashcardsGetData, ThrowOnError>) => (options?.client ?? client).get<ListFlashcardsApiFlashcardsGetResponses, unknown, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/flashcards',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Record Event
|
|
|
|
|
*/
|
|
|
|
|
export const recordEventApiFlashcardsFlashcardIdEventsPost = <ThrowOnError extends boolean = false>(options: Options<RecordEventApiFlashcardsFlashcardIdEventsPostData, ThrowOnError>) => (options.client ?? client).post<RecordEventApiFlashcardsFlashcardIdEventsPostResponses, RecordEventApiFlashcardsFlashcardIdEventsPostErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/flashcards/{flashcard_id}/events',
|
|
|
|
|
...options,
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
...options.headers
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
2026-03-23 07:17:46 +00:00
|
|
|
/**
|
|
|
|
|
* Analyze Pos
|
|
|
|
|
*/
|
|
|
|
|
export const analyzePosApiPosPost = <ThrowOnError extends boolean = false>(options: Options<AnalyzePosApiPosPostData, ThrowOnError>) => (options.client ?? client).post<AnalyzePosApiPosPostResponses, AnalyzePosApiPosPostErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/pos/',
|
|
|
|
|
...options,
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
...options.headers
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Translate text to a target language
|
|
|
|
|
*/
|
|
|
|
|
export const translateTextApiTranslateGet = <ThrowOnError extends boolean = false>(options: Options<TranslateTextApiTranslateGetData, ThrowOnError>) => (options.client ?? client).get<TranslateTextApiTranslateGetResponses, TranslateTextApiTranslateGetErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/translate',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create Generation Job
|
|
|
|
|
*/
|
|
|
|
|
export const createGenerationJobApiGeneratePost = <ThrowOnError extends boolean = false>(options: Options<CreateGenerationJobApiGeneratePostData, ThrowOnError>) => (options.client ?? client).post<CreateGenerationJobApiGeneratePostResponses, CreateGenerationJobApiGeneratePostErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/generate',
|
|
|
|
|
...options,
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
...options.headers
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get Jobs
|
|
|
|
|
*/
|
|
|
|
|
export const getJobsApiJobsGet = <ThrowOnError extends boolean = false>(options?: Options<GetJobsApiJobsGetData, ThrowOnError>) => (options?.client ?? client).get<GetJobsApiJobsGetResponses, unknown, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/jobs/',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get Job
|
|
|
|
|
*/
|
|
|
|
|
export const getJobApiJobsJobIdGet = <ThrowOnError extends boolean = false>(options: Options<GetJobApiJobsJobIdGetData, ThrowOnError>) => (options.client ?? client).get<GetJobApiJobsJobIdGetResponses, GetJobApiJobsJobIdGetErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/jobs/{job_id}',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Regenerate Audio
|
|
|
|
|
*/
|
|
|
|
|
export const regenerateAudioApiJobsJobIdRegenerateAudioPost = <ThrowOnError extends boolean = false>(options: Options<RegenerateAudioApiJobsJobIdRegenerateAudioPostData, ThrowOnError>) => (options.client ?? client).post<RegenerateAudioApiJobsJobIdRegenerateAudioPostResponses, RegenerateAudioApiJobsJobIdRegenerateAudioPostErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/jobs/{job_id}/regenerate-audio',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
2026-03-27 09:46:26 +00:00
|
|
|
/**
|
2026-03-29 07:54:27 +00:00
|
|
|
* Upsert Learnable Language
|
2026-03-27 09:46:26 +00:00
|
|
|
*/
|
2026-03-29 07:54:27 +00:00
|
|
|
export const upsertLearnableLanguageApiLearnableLanguagesPost = <ThrowOnError extends boolean = false>(options: Options<UpsertLearnableLanguageApiLearnableLanguagesPostData, ThrowOnError>) => (options.client ?? client).post<UpsertLearnableLanguageApiLearnableLanguagesPostResponses, UpsertLearnableLanguageApiLearnableLanguagesPostErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/learnable_languages',
|
|
|
|
|
...options,
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
...options.headers
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
2026-04-11 07:14:32 +00:00
|
|
|
* List Entries
|
2026-03-29 07:54:27 +00:00
|
|
|
*/
|
2026-04-11 07:14:32 +00:00
|
|
|
export const listEntriesApiVocabGet = <ThrowOnError extends boolean = false>(options: Options<ListEntriesApiVocabGetData, ThrowOnError>) => (options.client ?? client).get<ListEntriesApiVocabGetResponses, ListEntriesApiVocabGetErrors, ThrowOnError>({
|
2026-03-29 07:54:27 +00:00
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
2026-04-11 07:14:32 +00:00
|
|
|
url: '/api/vocab',
|
2026-03-29 07:54:27 +00:00
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
2026-04-11 07:14:32 +00:00
|
|
|
* Add Word
|
2026-03-29 07:54:27 +00:00
|
|
|
*/
|
2026-04-11 07:14:32 +00:00
|
|
|
export const addWordApiVocabPost = <ThrowOnError extends boolean = false>(options: Options<AddWordApiVocabPostData, ThrowOnError>) => (options.client ?? client).post<AddWordApiVocabPostResponses, AddWordApiVocabPostErrors, ThrowOnError>({
|
2026-03-29 07:54:27 +00:00
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
2026-04-11 07:14:32 +00:00
|
|
|
url: '/api/vocab',
|
|
|
|
|
...options,
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
...options.headers
|
|
|
|
|
}
|
2026-03-29 07:54:27 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
2026-04-11 07:14:32 +00:00
|
|
|
* Add From Token
|
2026-03-29 07:54:27 +00:00
|
|
|
*/
|
2026-04-11 07:14:32 +00:00
|
|
|
export const addFromTokenApiVocabFromTokenPost = <ThrowOnError extends boolean = false>(options: Options<AddFromTokenApiVocabFromTokenPostData, ThrowOnError>) => (options.client ?? client).post<AddFromTokenApiVocabFromTokenPostResponses, AddFromTokenApiVocabFromTokenPostErrors, ThrowOnError>({
|
2026-03-29 07:54:27 +00:00
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
2026-04-11 07:14:32 +00:00
|
|
|
url: '/api/vocab/from-token',
|
2026-03-23 07:17:46 +00:00
|
|
|
...options,
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
...options.headers
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
2026-04-11 07:14:32 +00:00
|
|
|
* Pending Disambiguation
|
2026-03-23 07:17:46 +00:00
|
|
|
*/
|
2026-04-11 07:14:32 +00:00
|
|
|
export const pendingDisambiguationApiVocabPendingDisambiguationGet = <ThrowOnError extends boolean = false>(options?: Options<PendingDisambiguationApiVocabPendingDisambiguationGetData, ThrowOnError>) => (options?.client ?? client).get<PendingDisambiguationApiVocabPendingDisambiguationGetResponses, unknown, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/vocab/pending-disambiguation',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Resolve Sense
|
|
|
|
|
*/
|
|
|
|
|
export const resolveSenseApiVocabEntryIdSensePatch = <ThrowOnError extends boolean = false>(options: Options<ResolveSenseApiVocabEntryIdSensePatchData, ThrowOnError>) => (options.client ?? client).patch<ResolveSenseApiVocabEntryIdSensePatchResponses, ResolveSenseApiVocabEntryIdSensePatchErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/vocab/{entry_id}/sense',
|
2026-03-23 07:17:46 +00:00
|
|
|
...options,
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
...options.headers
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
2026-04-15 20:02:11 +00:00
|
|
|
/**
|
|
|
|
|
* List Packs
|
|
|
|
|
*/
|
|
|
|
|
export const listPacksApiPacksGet = <ThrowOnError extends boolean = false>(options?: Options<ListPacksApiPacksGetData, ThrowOnError>) => (options?.client ?? client).get<ListPacksApiPacksGetResponses, ListPacksApiPacksGetErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/packs',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get Pack
|
|
|
|
|
*/
|
|
|
|
|
export const getPackApiPacksPackIdGet = <ThrowOnError extends boolean = false>(options: Options<GetPackApiPacksPackIdGetData, ThrowOnError>) => (options.client ?? client).get<GetPackApiPacksPackIdGetResponses, GetPackApiPacksPackIdGetErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/packs/{pack_id}',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Add Pack To Bank
|
|
|
|
|
*/
|
|
|
|
|
export const addPackToBankApiPacksPackIdAddToBankPost = <ThrowOnError extends boolean = false>(options: Options<AddPackToBankApiPacksPackIdAddToBankPostData, ThrowOnError>) => (options.client ?? client).post<AddPackToBankApiPacksPackIdAddToBankPostResponses, AddPackToBankApiPacksPackIdAddToBankPostErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/packs/{pack_id}/add-to-bank',
|
|
|
|
|
...options,
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
...options.headers
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* List Packs
|
|
|
|
|
*/
|
|
|
|
|
export const listPacksApiAdminPacksGet = <ThrowOnError extends boolean = false>(options?: Options<ListPacksApiAdminPacksGetData, ThrowOnError>) => (options?.client ?? client).get<ListPacksApiAdminPacksGetResponses, ListPacksApiAdminPacksGetErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/admin/packs',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create Pack
|
|
|
|
|
*/
|
|
|
|
|
export const createPackApiAdminPacksPost = <ThrowOnError extends boolean = false>(options: Options<CreatePackApiAdminPacksPostData, ThrowOnError>) => (options.client ?? client).post<CreatePackApiAdminPacksPostResponses, CreatePackApiAdminPacksPostErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/admin/packs',
|
|
|
|
|
...options,
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
...options.headers
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get Pack
|
|
|
|
|
*/
|
|
|
|
|
export const getPackApiAdminPacksPackIdGet = <ThrowOnError extends boolean = false>(options: Options<GetPackApiAdminPacksPackIdGetData, ThrowOnError>) => (options.client ?? client).get<GetPackApiAdminPacksPackIdGetResponses, GetPackApiAdminPacksPackIdGetErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/admin/packs/{pack_id}',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Update Pack
|
|
|
|
|
*/
|
|
|
|
|
export const updatePackApiAdminPacksPackIdPatch = <ThrowOnError extends boolean = false>(options: Options<UpdatePackApiAdminPacksPackIdPatchData, ThrowOnError>) => (options.client ?? client).patch<UpdatePackApiAdminPacksPackIdPatchResponses, UpdatePackApiAdminPacksPackIdPatchErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/admin/packs/{pack_id}',
|
|
|
|
|
...options,
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
...options.headers
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Publish Pack
|
|
|
|
|
*/
|
|
|
|
|
export const publishPackApiAdminPacksPackIdPublishPost = <ThrowOnError extends boolean = false>(options: Options<PublishPackApiAdminPacksPackIdPublishPostData, ThrowOnError>) => (options.client ?? client).post<PublishPackApiAdminPacksPackIdPublishPostResponses, PublishPackApiAdminPacksPackIdPublishPostErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/admin/packs/{pack_id}/publish',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Add Entry
|
|
|
|
|
*/
|
|
|
|
|
export const addEntryApiAdminPacksPackIdEntriesPost = <ThrowOnError extends boolean = false>(options: Options<AddEntryApiAdminPacksPackIdEntriesPostData, ThrowOnError>) => (options.client ?? client).post<AddEntryApiAdminPacksPackIdEntriesPostResponses, AddEntryApiAdminPacksPackIdEntriesPostErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/admin/packs/{pack_id}/entries',
|
|
|
|
|
...options,
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
...options.headers
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Remove Entry
|
|
|
|
|
*/
|
|
|
|
|
export const removeEntryApiAdminPacksPackIdEntriesEntryIdDelete = <ThrowOnError extends boolean = false>(options: Options<RemoveEntryApiAdminPacksPackIdEntriesEntryIdDeleteData, ThrowOnError>) => (options.client ?? client).delete<RemoveEntryApiAdminPacksPackIdEntriesEntryIdDeleteResponses, RemoveEntryApiAdminPacksPackIdEntriesEntryIdDeleteErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/admin/packs/{pack_id}/entries/{entry_id}',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Add Flashcard Template
|
|
|
|
|
*/
|
|
|
|
|
export const addFlashcardTemplateApiAdminPacksPackIdEntriesEntryIdFlashcardsPost = <ThrowOnError extends boolean = false>(options: Options<AddFlashcardTemplateApiAdminPacksPackIdEntriesEntryIdFlashcardsPostData, ThrowOnError>) => (options.client ?? client).post<AddFlashcardTemplateApiAdminPacksPackIdEntriesEntryIdFlashcardsPostResponses, AddFlashcardTemplateApiAdminPacksPackIdEntriesEntryIdFlashcardsPostErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/admin/packs/{pack_id}/entries/{entry_id}/flashcards',
|
|
|
|
|
...options,
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
...options.headers
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Remove Flashcard Template
|
|
|
|
|
*/
|
|
|
|
|
export const removeFlashcardTemplateApiAdminPacksPackIdEntriesEntryIdFlashcardsTemplateIdDelete = <ThrowOnError extends boolean = false>(options: Options<RemoveFlashcardTemplateApiAdminPacksPackIdEntriesEntryIdFlashcardsTemplateIdDeleteData, ThrowOnError>) => (options.client ?? client).delete<RemoveFlashcardTemplateApiAdminPacksPackIdEntriesEntryIdFlashcardsTemplateIdDeleteResponses, RemoveFlashcardTemplateApiAdminPacksPackIdEntriesEntryIdFlashcardsTemplateIdDeleteErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/admin/packs/{pack_id}/entries/{entry_id}/flashcards/{template_id}',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
2026-05-03 20:34:07 +00:00
|
|
|
/**
|
|
|
|
|
* List Adventures
|
|
|
|
|
*/
|
|
|
|
|
export const listAdventuresApiAdventuresGet = <ThrowOnError extends boolean = false>(options?: Options<ListAdventuresApiAdventuresGetData, ThrowOnError>) => (options?.client ?? client).get<ListAdventuresApiAdventuresGetResponses, unknown, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/adventures',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create Adventure
|
|
|
|
|
*/
|
|
|
|
|
export const createAdventureApiAdventuresPost = <ThrowOnError extends boolean = false>(options: Options<CreateAdventureApiAdventuresPostData, ThrowOnError>) => (options.client ?? client).post<CreateAdventureApiAdventuresPostResponses, CreateAdventureApiAdventuresPostErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/adventures',
|
|
|
|
|
...options,
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
...options.headers
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Delete Adventure
|
|
|
|
|
*/
|
|
|
|
|
export const deleteAdventureApiAdventuresAdventureIdDelete = <ThrowOnError extends boolean = false>(options: Options<DeleteAdventureApiAdventuresAdventureIdDeleteData, ThrowOnError>) => (options.client ?? client).delete<DeleteAdventureApiAdventuresAdventureIdDeleteResponses, DeleteAdventureApiAdventuresAdventureIdDeleteErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/adventures/{adventure_id}',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get Adventure
|
|
|
|
|
*/
|
|
|
|
|
export const getAdventureApiAdventuresAdventureIdGet = <ThrowOnError extends boolean = false>(options: Options<GetAdventureApiAdventuresAdventureIdGetData, ThrowOnError>) => (options.client ?? client).get<GetAdventureApiAdventuresAdventureIdGetResponses, GetAdventureApiAdventuresAdventureIdGetErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/adventures/{adventure_id}',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Record Decision
|
|
|
|
|
*/
|
|
|
|
|
export const recordDecisionApiAdventuresAdventureIdDecisionsPost = <ThrowOnError extends boolean = false>(options: Options<RecordDecisionApiAdventuresAdventureIdDecisionsPostData, ThrowOnError>) => (options.client ?? client).post<RecordDecisionApiAdventuresAdventureIdDecisionsPostResponses, RecordDecisionApiAdventuresAdventureIdDecisionsPostErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/adventures/{adventure_id}/decisions',
|
|
|
|
|
...options,
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
...options.headers
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* List Entries
|
|
|
|
|
*/
|
|
|
|
|
export const listEntriesApiAdventuresAdventureIdEntriesGet = <ThrowOnError extends boolean = false>(options: Options<ListEntriesApiAdventuresAdventureIdEntriesGetData, ThrowOnError>) => (options.client ?? client).get<ListEntriesApiAdventuresAdventureIdEntriesGetResponses, ListEntriesApiAdventuresAdventureIdEntriesGetErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/adventures/{adventure_id}/entries',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get Entry
|
|
|
|
|
*/
|
|
|
|
|
export const getEntryApiAdventuresAdventureIdEntriesEntryIdGet = <ThrowOnError extends boolean = false>(options: Options<GetEntryApiAdventuresAdventureIdEntriesEntryIdGetData, ThrowOnError>) => (options.client ?? client).get<GetEntryApiAdventuresAdventureIdEntriesEntryIdGetResponses, GetEntryApiAdventuresAdventureIdEntriesEntryIdGetErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/api/adventures/{adventure_id}/entries/{entry_id}',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
2026-04-11 07:14:32 +00:00
|
|
|
/**
|
|
|
|
|
* Get Account
|
|
|
|
|
*/
|
|
|
|
|
export const getAccountBffAccountGet = <ThrowOnError extends boolean = false>(options?: Options<GetAccountBffAccountGetData, ThrowOnError>) => (options?.client ?? client).get<GetAccountBffAccountGetResponses, unknown, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/bff/account',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get Onboarding
|
|
|
|
|
*/
|
|
|
|
|
export const getOnboardingBffAccountOnboardingGet = <ThrowOnError extends boolean = false>(options?: Options<GetOnboardingBffAccountOnboardingGetData, ThrowOnError>) => (options?.client ?? client).get<GetOnboardingBffAccountOnboardingGetResponses, unknown, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/bff/account/onboarding',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
2026-05-04 10:45:41 +00:00
|
|
|
/**
|
|
|
|
|
* Get Adventure
|
|
|
|
|
*/
|
|
|
|
|
export const getAdventureBffAdventureAdventureIdGet = <ThrowOnError extends boolean = false>(options: Options<GetAdventureBffAdventureAdventureIdGetData, ThrowOnError>) => (options.client ?? client).get<GetAdventureBffAdventureAdventureIdGetResponses, GetAdventureBffAdventureAdventureIdGetErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/bff/adventure/{adventure_id}',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
2026-04-11 07:14:32 +00:00
|
|
|
/**
|
|
|
|
|
* List Articles
|
|
|
|
|
*/
|
|
|
|
|
export const listArticlesBffArticlesGet = <ThrowOnError extends boolean = false>(options?: Options<ListArticlesBffArticlesGetData, ThrowOnError>) => (options?.client ?? client).get<ListArticlesBffArticlesGetResponses, ListArticlesBffArticlesGetErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/bff/articles',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get Article
|
|
|
|
|
*/
|
|
|
|
|
export const getArticleBffArticlesArticleIdGet = <ThrowOnError extends boolean = false>(options: Options<GetArticleBffArticlesArticleIdGetData, ThrowOnError>) => (options.client ?? client).get<GetArticleBffArticlesArticleIdGetResponses, GetArticleBffArticlesArticleIdGetErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/bff/articles/{article_id}',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get User Profile
|
|
|
|
|
*/
|
|
|
|
|
export const getUserProfileBffUserProfileGet = <ThrowOnError extends boolean = false>(options?: Options<GetUserProfileBffUserProfileGetData, ThrowOnError>) => (options?.client ?? client).get<GetUserProfileBffUserProfileGetResponses, unknown, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/bff/user_profile',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
2026-04-15 20:02:11 +00:00
|
|
|
/**
|
|
|
|
|
* List Packs For Selection
|
|
|
|
|
*/
|
|
|
|
|
export const listPacksForSelectionBffPacksGet = <ThrowOnError extends boolean = false>(options: Options<ListPacksForSelectionBffPacksGetData, ThrowOnError>) => (options.client ?? client).get<ListPacksForSelectionBffPacksGetResponses, ListPacksForSelectionBffPacksGetErrors, ThrowOnError>({
|
|
|
|
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
|
|
|
url: '/bff/packs',
|
|
|
|
|
...options
|
|
|
|
|
});
|
|
|
|
|
|
2026-03-23 07:17:46 +00:00
|
|
|
/**
|
|
|
|
|
* Get Media File
|
|
|
|
|
*/
|
2026-03-27 09:46:26 +00:00
|
|
|
export const getMediaFileMediaFilenameGet = <ThrowOnError extends boolean = false>(options: Options<GetMediaFileMediaFilenameGetData, ThrowOnError>) => (options.client ?? client).get<GetMediaFileMediaFilenameGetResponses, GetMediaFileMediaFilenameGetErrors, ThrowOnError>({ url: '/media/{filename}', ...options });
|
2026-03-23 07:17:46 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Health
|
|
|
|
|
*/
|
|
|
|
|
export const healthHealthGet = <ThrowOnError extends boolean = false>(options?: Options<HealthHealthGetData, ThrowOnError>) => (options?.client ?? client).get<HealthHealthGetResponses, unknown, ThrowOnError>({ url: '/health', ...options });
|