chore: [frontend] Update API client generated code

This commit is contained in:
wilson 2026-05-03 21:34:07 +01:00
parent 8b687e9737
commit a5f2f630fe
4 changed files with 565 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -192,6 +192,68 @@ export type AddWordRequest = {
source_article_id?: string | null; source_article_id?: string | null;
}; };
/**
* AdventureResponse
*/
export type AdventureResponse = {
/**
* Id
*/
id: string;
/**
* User Id
*/
user_id: string;
/**
* Status
*/
status: string;
/**
* Language
*/
language: string;
/**
* Source Language
*/
source_language: string;
/**
* Competencies
*/
competencies: Array<string>;
/**
* Max Entry Count
*/
max_entry_count: number;
/**
* Title
*/
title: string;
/**
* Description
*/
description: string | null;
/**
* Genres
*/
genres: Array<string>;
/**
* Setting
*/
setting: Array<string>;
/**
* Vibes
*/
vibes: Array<string>;
/**
* Protagonist
*/
protagonist: Array<string>;
/**
* Created At
*/
created_at: string;
};
/** /**
* ArticleDetail * ArticleDetail
*/ */
@ -300,6 +362,76 @@ export type ArticleListResponse = {
articles: Array<ArticleItem>; articles: Array<ArticleItem>;
}; };
/**
* ChoiceResponse
*/
export type ChoiceResponse = {
/**
* Id
*/
id: string;
/**
* Index
*/
index: number;
/**
* Label
*/
label: string;
/**
* Text
*/
text: string;
};
/**
* CreateAdventureRequest
*/
export type CreateAdventureRequest = {
/**
* Language
*/
language: string;
/**
* Source Language
*/
source_language: string;
/**
* Competencies
*/
competencies: Array<string>;
/**
* Genres
*/
genres: Array<string>;
/**
* Setting
*/
setting: Array<string>;
/**
* Vibes
*/
vibes: Array<string>;
/**
* Protagonist
*/
protagonist: Array<string>;
/**
* Max Entry Count
*/
max_entry_count?: number;
};
/**
* CreateDecisionRequest
*/
export type CreateDecisionRequest = {
/**
* Choice Id
*/
choice_id: string;
};
/** /**
* CreatePackRequest * CreatePackRequest
*/ */
@ -334,6 +466,108 @@ export type CreatePackRequest = {
proficiencies?: Array<string>; proficiencies?: Array<string>;
}; };
/**
* DecisionResponse
*/
export type DecisionResponse = {
/**
* Id
*/
id: string;
/**
* Choice Id
*/
choice_id: string;
/**
* User Id
*/
user_id: string;
/**
* Created At
*/
created_at: string;
};
/**
* EntryDetailResponse
*/
export type EntryDetailResponse = {
/**
* Id
*/
id: string;
/**
* Adventure Id
*/
adventure_id: string;
/**
* Generated From Choice Id
*/
generated_from_choice_id: string | null;
/**
* Status
*/
status: string;
/**
* Entry Index
*/
entry_index: number;
/**
* Story Text
*/
story_text: string | null;
/**
* Created At
*/
created_at: string;
/**
* Choices
*/
choices: Array<ChoiceResponse>;
/**
* Translation
*/
translation: string | null;
/**
* Audio File Name
*/
audio_file_name: string | null;
};
/**
* EntryResponse
*/
export type EntryResponse = {
/**
* Id
*/
id: string;
/**
* Adventure Id
*/
adventure_id: string;
/**
* Generated From Choice Id
*/
generated_from_choice_id: string | null;
/**
* Status
*/
status: string;
/**
* Entry Index
*/
entry_index: number;
/**
* Story Text
*/
story_text: string | null;
/**
* Created At
*/
created_at: string;
};
/** /**
* FlashcardEventResponse * FlashcardEventResponse
*/ */
@ -1019,6 +1253,14 @@ export type SenseCandidateResponse = {
tags: Array<string>; tags: Array<string>;
}; };
/**
* SenseMatch
*/
export type SenseMatch = {
sense: SenseResponse;
lemma: LemmaResponse;
};
/** /**
* SenseResponse * SenseResponse
*/ */
@ -1558,6 +1800,42 @@ export type SearchWordformsPrefixApiDictionarySearchGetResponses = {
export type SearchWordformsPrefixApiDictionarySearchGetResponse = SearchWordformsPrefixApiDictionarySearchGetResponses[keyof SearchWordformsPrefixApiDictionarySearchGetResponses]; export type SearchWordformsPrefixApiDictionarySearchGetResponse = SearchWordformsPrefixApiDictionarySearchGetResponses[keyof SearchWordformsPrefixApiDictionarySearchGetResponses];
export type SearchSensesApiDictionarySensesGetData = {
body?: never;
path?: never;
query: {
/**
* Lang Code
*/
lang_code: string;
/**
* Text
*/
text: string;
};
url: '/api/dictionary/senses';
};
export type SearchSensesApiDictionarySensesGetErrors = {
/**
* Validation Error
*/
422: HttpValidationError;
};
export type SearchSensesApiDictionarySensesGetError = SearchSensesApiDictionarySensesGetErrors[keyof SearchSensesApiDictionarySensesGetErrors];
export type SearchSensesApiDictionarySensesGetResponses = {
/**
* Response Search Senses Api Dictionary Senses Get
*
* Successful Response
*/
200: Array<SenseMatch>;
};
export type SearchSensesApiDictionarySensesGetResponse = SearchSensesApiDictionarySensesGetResponses[keyof SearchSensesApiDictionarySensesGetResponses];
export type SearchWordformsApiDictionaryWordformsGetData = { export type SearchWordformsApiDictionaryWordformsGetData = {
body?: never; body?: never;
path?: never; path?: never;
@ -2380,6 +2658,205 @@ export type RemoveFlashcardTemplateApiAdminPacksPackIdEntriesEntryIdFlashcardsTe
export type RemoveFlashcardTemplateApiAdminPacksPackIdEntriesEntryIdFlashcardsTemplateIdDeleteResponse = RemoveFlashcardTemplateApiAdminPacksPackIdEntriesEntryIdFlashcardsTemplateIdDeleteResponses[keyof RemoveFlashcardTemplateApiAdminPacksPackIdEntriesEntryIdFlashcardsTemplateIdDeleteResponses]; export type RemoveFlashcardTemplateApiAdminPacksPackIdEntriesEntryIdFlashcardsTemplateIdDeleteResponse = RemoveFlashcardTemplateApiAdminPacksPackIdEntriesEntryIdFlashcardsTemplateIdDeleteResponses[keyof RemoveFlashcardTemplateApiAdminPacksPackIdEntriesEntryIdFlashcardsTemplateIdDeleteResponses];
export type ListAdventuresApiAdventuresGetData = {
body?: never;
path?: never;
query?: never;
url: '/api/adventures';
};
export type ListAdventuresApiAdventuresGetResponses = {
/**
* Response List Adventures Api Adventures Get
*
* Successful Response
*/
200: Array<AdventureResponse>;
};
export type ListAdventuresApiAdventuresGetResponse = ListAdventuresApiAdventuresGetResponses[keyof ListAdventuresApiAdventuresGetResponses];
export type CreateAdventureApiAdventuresPostData = {
body: CreateAdventureRequest;
path?: never;
query?: never;
url: '/api/adventures';
};
export type CreateAdventureApiAdventuresPostErrors = {
/**
* Validation Error
*/
422: HttpValidationError;
};
export type CreateAdventureApiAdventuresPostError = CreateAdventureApiAdventuresPostErrors[keyof CreateAdventureApiAdventuresPostErrors];
export type CreateAdventureApiAdventuresPostResponses = {
/**
* Successful Response
*/
201: AdventureResponse;
};
export type CreateAdventureApiAdventuresPostResponse = CreateAdventureApiAdventuresPostResponses[keyof CreateAdventureApiAdventuresPostResponses];
export type DeleteAdventureApiAdventuresAdventureIdDeleteData = {
body?: never;
path: {
/**
* Adventure Id
*/
adventure_id: string;
};
query?: never;
url: '/api/adventures/{adventure_id}';
};
export type DeleteAdventureApiAdventuresAdventureIdDeleteErrors = {
/**
* Validation Error
*/
422: HttpValidationError;
};
export type DeleteAdventureApiAdventuresAdventureIdDeleteError = DeleteAdventureApiAdventuresAdventureIdDeleteErrors[keyof DeleteAdventureApiAdventuresAdventureIdDeleteErrors];
export type DeleteAdventureApiAdventuresAdventureIdDeleteResponses = {
/**
* Successful Response
*/
204: void;
};
export type DeleteAdventureApiAdventuresAdventureIdDeleteResponse = DeleteAdventureApiAdventuresAdventureIdDeleteResponses[keyof DeleteAdventureApiAdventuresAdventureIdDeleteResponses];
export type GetAdventureApiAdventuresAdventureIdGetData = {
body?: never;
path: {
/**
* Adventure Id
*/
adventure_id: string;
};
query?: never;
url: '/api/adventures/{adventure_id}';
};
export type GetAdventureApiAdventuresAdventureIdGetErrors = {
/**
* Validation Error
*/
422: HttpValidationError;
};
export type GetAdventureApiAdventuresAdventureIdGetError = GetAdventureApiAdventuresAdventureIdGetErrors[keyof GetAdventureApiAdventuresAdventureIdGetErrors];
export type GetAdventureApiAdventuresAdventureIdGetResponses = {
/**
* Successful Response
*/
200: AdventureResponse;
};
export type GetAdventureApiAdventuresAdventureIdGetResponse = GetAdventureApiAdventuresAdventureIdGetResponses[keyof GetAdventureApiAdventuresAdventureIdGetResponses];
export type RecordDecisionApiAdventuresAdventureIdDecisionsPostData = {
body: CreateDecisionRequest;
path: {
/**
* Adventure Id
*/
adventure_id: string;
};
query?: never;
url: '/api/adventures/{adventure_id}/decisions';
};
export type RecordDecisionApiAdventuresAdventureIdDecisionsPostErrors = {
/**
* Validation Error
*/
422: HttpValidationError;
};
export type RecordDecisionApiAdventuresAdventureIdDecisionsPostError = RecordDecisionApiAdventuresAdventureIdDecisionsPostErrors[keyof RecordDecisionApiAdventuresAdventureIdDecisionsPostErrors];
export type RecordDecisionApiAdventuresAdventureIdDecisionsPostResponses = {
/**
* Successful Response
*/
201: DecisionResponse;
};
export type RecordDecisionApiAdventuresAdventureIdDecisionsPostResponse = RecordDecisionApiAdventuresAdventureIdDecisionsPostResponses[keyof RecordDecisionApiAdventuresAdventureIdDecisionsPostResponses];
export type ListEntriesApiAdventuresAdventureIdEntriesGetData = {
body?: never;
path: {
/**
* Adventure Id
*/
adventure_id: string;
};
query?: never;
url: '/api/adventures/{adventure_id}/entries';
};
export type ListEntriesApiAdventuresAdventureIdEntriesGetErrors = {
/**
* Validation Error
*/
422: HttpValidationError;
};
export type ListEntriesApiAdventuresAdventureIdEntriesGetError = ListEntriesApiAdventuresAdventureIdEntriesGetErrors[keyof ListEntriesApiAdventuresAdventureIdEntriesGetErrors];
export type ListEntriesApiAdventuresAdventureIdEntriesGetResponses = {
/**
* Response List Entries Api Adventures Adventure Id Entries Get
*
* Successful Response
*/
200: Array<EntryResponse>;
};
export type ListEntriesApiAdventuresAdventureIdEntriesGetResponse = ListEntriesApiAdventuresAdventureIdEntriesGetResponses[keyof ListEntriesApiAdventuresAdventureIdEntriesGetResponses];
export type GetEntryApiAdventuresAdventureIdEntriesEntryIdGetData = {
body?: never;
path: {
/**
* Adventure Id
*/
adventure_id: string;
/**
* Entry Id
*/
entry_id: string;
};
query?: never;
url: '/api/adventures/{adventure_id}/entries/{entry_id}';
};
export type GetEntryApiAdventuresAdventureIdEntriesEntryIdGetErrors = {
/**
* Validation Error
*/
422: HttpValidationError;
};
export type GetEntryApiAdventuresAdventureIdEntriesEntryIdGetError = GetEntryApiAdventuresAdventureIdEntriesEntryIdGetErrors[keyof GetEntryApiAdventuresAdventureIdEntriesEntryIdGetErrors];
export type GetEntryApiAdventuresAdventureIdEntriesEntryIdGetResponses = {
/**
* Successful Response
*/
200: EntryDetailResponse;
};
export type GetEntryApiAdventuresAdventureIdEntriesEntryIdGetResponse = GetEntryApiAdventuresAdventureIdEntriesEntryIdGetResponses[keyof GetEntryApiAdventuresAdventureIdEntriesEntryIdGetResponses];
export type GetAccountBffAccountGetData = { export type GetAccountBffAccountGetData = {
body?: never; body?: never;
path?: never; path?: never;