-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
87 lines (79 loc) · 1.9 KB
/
Copy pathtypes.ts
File metadata and controls
87 lines (79 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
export enum Language {
FR_CA = 'FR-CA',
EN_CA = 'EN-CA',
FR_FR = 'FR-FR'
}
export enum SignSystem {
LSQ = 'LSQ', // Langue des signes québécoise
ASL = 'ASL', // American Sign Language
LSF = 'LSF' // Langue des signes française
}
export type ModuleCategory = 'ALPHABET' | 'GRAMMAIRE' | 'STRUCTURE' | 'CONVERSATION' | 'QUOTIDIEN' | 'EMOTIONS' | 'TEMPS' | 'TRAVAIL' | 'SANTE' | 'METEO' | 'LIEUX' | 'SPORTS_LOISIRS' | 'ALIMENTATION' | 'ANIMAUX' | 'TRANSPORTS' | 'VETEMENTS' | 'MAISON' | 'COULEURS' | 'CHIFFRES';
export type IntentType =
| 'SALUER'
| 'SE_PRESENTAER'
| 'ATTIRER_ATTENTION'
| 'COMPRENDRE'
| 'CONFIRMER_INFIRMER'
| 'QUESTION_GENERALE'
| 'DEMANDER_INFO'
| 'DONNER_INFO'
| 'DEMANDER_CLARIFICATION'
| 'REMERCIER'
| 'S_EXCUSER'
| 'SOUHAIT_POSITIF'
| 'EXPRIMER_SENTIMENT'
| 'EXPRIMER_BESOIN'
| 'DEMANDER_DIRECTION'
| 'TEMPS_MOMENT'
| 'PRIX_QUANTITE'
| 'SANTE'
| 'URGENCE'
| 'STOP'
| 'METEO'
| 'LIEUX'
| 'SPORTS_LOISIRS'
| 'ALIMENTATION'
| 'ANIMAUX'
| 'TRANSPORTS'
| 'VETEMENTS'
| 'MAISON'
| 'COULEURS'
| 'CHIFFRES'
// Added TRAVAIL to fix compilation errors in data/lsqData.ts
| 'TRAVAIL'
| 'UNKNOWN';
export interface Message {
id: string;
sender: 'user' | 'ai' | 'interlocutor';
text: string;
gloss?: string[];
intent?: IntentType;
slots?: Record<string, string>;
signDescription?: string;
timestamp: Date;
}
export interface InterpretationResult {
gloss: string[];
translation: string;
intent: IntentType;
slots: Record<string, string>;
confidence: number;
}
export interface SignEntry {
id: string;
name: string;
category: string;
instruction: string;
system: SignSystem;
}
export interface LearningModule {
title: string;
category: ModuleCategory;
source: string;
id: string;
status: 'Appris' | 'En cours' | 'Recommandé';
date: string;
learned: string[];
system?: SignSystem;
}