Add document AI gen support
This commit is contained in:
parent
16007cc3aa
commit
028bab23fd
11 changed files with 1270 additions and 170 deletions
12
types.ts
12
types.ts
|
|
@ -51,6 +51,18 @@ export interface QuizListItem {
|
|||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface ProcessedDocument {
|
||||
type: 'native' | 'text';
|
||||
content: string | Buffer;
|
||||
mimeType?: string;
|
||||
}
|
||||
|
||||
export interface GenerateQuizOptions {
|
||||
topic?: string;
|
||||
questionCount?: number;
|
||||
documents?: ProcessedDocument[];
|
||||
}
|
||||
|
||||
export interface Player {
|
||||
id: string;
|
||||
name: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue