@ord-api/ord-api-types 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types.ts +247 -69
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -148,6 +148,26 @@ export interface paths {
|
|
|
148
148
|
patch?: never;
|
|
149
149
|
trace?: never;
|
|
150
150
|
};
|
|
151
|
+
"/api/v1/words/ai/suggest-vocabulary": {
|
|
152
|
+
parameters: {
|
|
153
|
+
query?: never;
|
|
154
|
+
header?: never;
|
|
155
|
+
path?: never;
|
|
156
|
+
cookie?: never;
|
|
157
|
+
};
|
|
158
|
+
get?: never;
|
|
159
|
+
put?: never;
|
|
160
|
+
/**
|
|
161
|
+
* Suggest vocabulary for learning
|
|
162
|
+
* @description Generate personalized AI-powered vocabulary suggestions based on user's proficiency level and existing vocabulary (streaming response). Optionally accepts context to tailor suggestions to specific scenarios (e.g., 'business meetings', 'grocery shopping').
|
|
163
|
+
*/
|
|
164
|
+
post: operations["suggestVocabulary"];
|
|
165
|
+
delete?: never;
|
|
166
|
+
options?: never;
|
|
167
|
+
head?: never;
|
|
168
|
+
patch?: never;
|
|
169
|
+
trace?: never;
|
|
170
|
+
};
|
|
151
171
|
"/api/v1/words/ai/generate-manual": {
|
|
152
172
|
parameters: {
|
|
153
173
|
query?: never;
|
|
@@ -604,6 +624,26 @@ export interface paths {
|
|
|
604
624
|
patch?: never;
|
|
605
625
|
trace?: never;
|
|
606
626
|
};
|
|
627
|
+
"/api/v1/ai-explainer/explain-phrase": {
|
|
628
|
+
parameters: {
|
|
629
|
+
query?: never;
|
|
630
|
+
header?: never;
|
|
631
|
+
path?: never;
|
|
632
|
+
cookie?: never;
|
|
633
|
+
};
|
|
634
|
+
get?: never;
|
|
635
|
+
put?: never;
|
|
636
|
+
/**
|
|
637
|
+
* Get AI explanation of a word or phrase
|
|
638
|
+
* @description Stream a clear, educational explanation of a word or phrase in plain text, including translation, definition, examples, and usage notes tailored to the user's proficiency level.
|
|
639
|
+
*/
|
|
640
|
+
post: operations["explainPhrase"];
|
|
641
|
+
delete?: never;
|
|
642
|
+
options?: never;
|
|
643
|
+
head?: never;
|
|
644
|
+
patch?: never;
|
|
645
|
+
trace?: never;
|
|
646
|
+
};
|
|
607
647
|
"/api/v1/words/{id}": {
|
|
608
648
|
parameters: {
|
|
609
649
|
query?: never;
|
|
@@ -866,7 +906,7 @@ export interface components {
|
|
|
866
906
|
* @enum {string}
|
|
867
907
|
*/
|
|
868
908
|
type: "NOUN" | "VERB" | "ADJECTIVE" | "ADVERB" | "IDIOM" | "PHRASE";
|
|
869
|
-
|
|
909
|
+
sourceWord: string;
|
|
870
910
|
translation: string;
|
|
871
911
|
definition: string;
|
|
872
912
|
/**
|
|
@@ -878,12 +918,7 @@ export interface components {
|
|
|
878
918
|
* @description Supported languages in the platform
|
|
879
919
|
* @enum {string}
|
|
880
920
|
*/
|
|
881
|
-
|
|
882
|
-
/**
|
|
883
|
-
* @description Supported languages in the platform
|
|
884
|
-
* @enum {string}
|
|
885
|
-
*/
|
|
886
|
-
translatedTo?: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
921
|
+
language: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
887
922
|
/** Format: uuid */
|
|
888
923
|
bankId?: string;
|
|
889
924
|
bankToCreate?: components["schemas"]["CreateBankRequest"];
|
|
@@ -923,7 +958,7 @@ export interface components {
|
|
|
923
958
|
* @enum {string}
|
|
924
959
|
*/
|
|
925
960
|
type: "NOUN" | "VERB" | "ADJECTIVE" | "ADVERB" | "IDIOM" | "PHRASE";
|
|
926
|
-
|
|
961
|
+
sourceWord: string;
|
|
927
962
|
translation: string;
|
|
928
963
|
definition: string;
|
|
929
964
|
/**
|
|
@@ -935,12 +970,7 @@ export interface components {
|
|
|
935
970
|
* @description Supported languages in the platform
|
|
936
971
|
* @enum {string}
|
|
937
972
|
*/
|
|
938
|
-
|
|
939
|
-
/**
|
|
940
|
-
* @description Supported languages in the platform
|
|
941
|
-
* @enum {string}
|
|
942
|
-
*/
|
|
943
|
-
translatedTo: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
973
|
+
language: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
944
974
|
isCompleted: boolean;
|
|
945
975
|
isBookmarked: boolean;
|
|
946
976
|
/** Format: int32 */
|
|
@@ -1055,7 +1085,7 @@ export interface components {
|
|
|
1055
1085
|
/** @enum {string} */
|
|
1056
1086
|
sortDirection?: "ASC" | "DESC";
|
|
1057
1087
|
/** @enum {string} */
|
|
1058
|
-
sortBy?: "CREATED_AT" | "
|
|
1088
|
+
sortBy?: "CREATED_AT" | "SOURCE_WORD";
|
|
1059
1089
|
};
|
|
1060
1090
|
BankCompact: {
|
|
1061
1091
|
name: string;
|
|
@@ -1110,7 +1140,7 @@ export interface components {
|
|
|
1110
1140
|
id: string;
|
|
1111
1141
|
/** Format: int32 */
|
|
1112
1142
|
points: number;
|
|
1113
|
-
|
|
1143
|
+
sourceWord: string;
|
|
1114
1144
|
translation: string;
|
|
1115
1145
|
isCompleted: boolean;
|
|
1116
1146
|
isBookmarked: boolean;
|
|
@@ -1128,12 +1158,7 @@ export interface components {
|
|
|
1128
1158
|
* @description Supported languages in the platform
|
|
1129
1159
|
* @enum {string}
|
|
1130
1160
|
*/
|
|
1131
|
-
|
|
1132
|
-
/**
|
|
1133
|
-
* @description Supported languages in the platform
|
|
1134
|
-
* @enum {string}
|
|
1135
|
-
*/
|
|
1136
|
-
translatedTo: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
1161
|
+
language: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
1137
1162
|
bank?: components["schemas"]["BankCompact"];
|
|
1138
1163
|
};
|
|
1139
1164
|
ChangeBankForMultipleWordsRequest: {
|
|
@@ -1142,6 +1167,29 @@ export interface components {
|
|
|
1142
1167
|
wordIds: string[];
|
|
1143
1168
|
bankToCreate?: components["schemas"]["CreateBankRequest"];
|
|
1144
1169
|
};
|
|
1170
|
+
/** @description Request to generate AI-powered vocabulary suggestions */
|
|
1171
|
+
SuggestVocabularyRequest: {
|
|
1172
|
+
/**
|
|
1173
|
+
* @description Supported languages in the platform
|
|
1174
|
+
* @example SPANISH
|
|
1175
|
+
* @enum {string}
|
|
1176
|
+
*/
|
|
1177
|
+
language: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
1178
|
+
/**
|
|
1179
|
+
* @description Optional context or scenario for vocabulary suggestions (e.g., 'for daily conversation in a grocery store')
|
|
1180
|
+
* @example for business meetings and professional emails
|
|
1181
|
+
*/
|
|
1182
|
+
context?: string | null;
|
|
1183
|
+
/**
|
|
1184
|
+
* @description Optional list of words to exclude from suggestions (e.g., already suggested words in previous requests)
|
|
1185
|
+
* @example [
|
|
1186
|
+
* "hola",
|
|
1187
|
+
* "adiós",
|
|
1188
|
+
* "gracias"
|
|
1189
|
+
* ]
|
|
1190
|
+
*/
|
|
1191
|
+
excludedWords?: (string | null)[] | null;
|
|
1192
|
+
};
|
|
1145
1193
|
GenerateWordManualRequest: {
|
|
1146
1194
|
word: string;
|
|
1147
1195
|
/**
|
|
@@ -1159,6 +1207,7 @@ export interface components {
|
|
|
1159
1207
|
};
|
|
1160
1208
|
AIGeneratedWordManual: {
|
|
1161
1209
|
originalWord: string;
|
|
1210
|
+
suggestedCorrection?: string;
|
|
1162
1211
|
translation: string;
|
|
1163
1212
|
definition: string;
|
|
1164
1213
|
/**
|
|
@@ -1204,6 +1253,11 @@ export interface components {
|
|
|
1204
1253
|
language: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
1205
1254
|
/** @enum {string} */
|
|
1206
1255
|
level: "A1" | "A2" | "B1" | "B2" | "C1" | "C2";
|
|
1256
|
+
/**
|
|
1257
|
+
* @description Supported languages in the platform
|
|
1258
|
+
* @enum {string}
|
|
1259
|
+
*/
|
|
1260
|
+
translateTo: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
1207
1261
|
/**
|
|
1208
1262
|
* @description Supported languages in the platform
|
|
1209
1263
|
* @enum {string}
|
|
@@ -1271,6 +1325,11 @@ export interface components {
|
|
|
1271
1325
|
* @enum {string}
|
|
1272
1326
|
*/
|
|
1273
1327
|
language: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
1328
|
+
/**
|
|
1329
|
+
* @description Optional translation of the word
|
|
1330
|
+
* @example comprensivo
|
|
1331
|
+
*/
|
|
1332
|
+
translation?: string | null;
|
|
1274
1333
|
/**
|
|
1275
1334
|
* @description Optional definition or notes about the word
|
|
1276
1335
|
* @example Complete; including all or nearly all elements or aspects
|
|
@@ -1308,6 +1367,11 @@ export interface components {
|
|
|
1308
1367
|
* @enum {string}
|
|
1309
1368
|
*/
|
|
1310
1369
|
language: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
1370
|
+
/**
|
|
1371
|
+
* @description Translation of the word
|
|
1372
|
+
* @example comprensivo
|
|
1373
|
+
*/
|
|
1374
|
+
translation?: string | null;
|
|
1311
1375
|
/**
|
|
1312
1376
|
* @description Definition or notes about the word
|
|
1313
1377
|
* @example Complete; including all elements
|
|
@@ -1354,6 +1418,7 @@ export interface components {
|
|
|
1354
1418
|
};
|
|
1355
1419
|
PublicQAWWordItem: {
|
|
1356
1420
|
word: string;
|
|
1421
|
+
translation?: string;
|
|
1357
1422
|
definition?: string;
|
|
1358
1423
|
/**
|
|
1359
1424
|
* @description Extra marks or tags for word classification by register or domain
|
|
@@ -1366,40 +1431,19 @@ export interface components {
|
|
|
1366
1431
|
*/
|
|
1367
1432
|
type?: "NOUN" | "VERB" | "ADJECTIVE" | "ADVERB" | "IDIOM" | "PHRASE";
|
|
1368
1433
|
};
|
|
1369
|
-
|
|
1370
|
-
/** Format: uuid */
|
|
1371
|
-
id?: string;
|
|
1372
|
-
word: string;
|
|
1434
|
+
CreateLanguageProficiencyRequest: {
|
|
1373
1435
|
/**
|
|
1374
1436
|
* @description Supported languages in the platform
|
|
1375
1437
|
* @enum {string}
|
|
1376
1438
|
*/
|
|
1377
1439
|
language: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
* @description Extra marks or tags for word classification by register or domain
|
|
1381
|
-
* @enum {string}
|
|
1382
|
-
*/
|
|
1383
|
-
extraMark?: "OFFENSIVE" | "SLANG" | "FORMAL" | "INFORMAL" | "SCIENTIFIC" | "TECHNICAL" | "LEGAL" | "MEDICAL" | "COLLOQUIAL" | "POETIC";
|
|
1384
|
-
/**
|
|
1385
|
-
* @description Type of word or expression
|
|
1386
|
-
* @enum {string}
|
|
1387
|
-
*/
|
|
1388
|
-
type?: "NOUN" | "VERB" | "ADJECTIVE" | "ADVERB" | "IDIOM" | "PHRASE";
|
|
1389
|
-
isApproved: boolean;
|
|
1390
|
-
/** Format: date-time */
|
|
1391
|
-
createdAt: string;
|
|
1392
|
-
/** Format: uuid */
|
|
1393
|
-
userId: string;
|
|
1394
|
-
};
|
|
1395
|
-
CreateLanguageProficiencyRequest: {
|
|
1440
|
+
/** @enum {string} */
|
|
1441
|
+
level: "A1" | "A2" | "B1" | "B2" | "C1" | "C2";
|
|
1396
1442
|
/**
|
|
1397
1443
|
* @description Supported languages in the platform
|
|
1398
1444
|
* @enum {string}
|
|
1399
1445
|
*/
|
|
1400
|
-
|
|
1401
|
-
/** @enum {string} */
|
|
1402
|
-
level: "A1" | "A2" | "B1" | "B2" | "C1" | "C2";
|
|
1446
|
+
translateTo: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
1403
1447
|
/**
|
|
1404
1448
|
* @description Supported languages in the platform
|
|
1405
1449
|
* @enum {string}
|
|
@@ -1416,6 +1460,11 @@ export interface components {
|
|
|
1416
1460
|
language: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
1417
1461
|
/** @enum {string} */
|
|
1418
1462
|
level: "A1" | "A2" | "B1" | "B2" | "C1" | "C2";
|
|
1463
|
+
/**
|
|
1464
|
+
* @description Supported languages in the platform
|
|
1465
|
+
* @enum {string}
|
|
1466
|
+
*/
|
|
1467
|
+
translateTo: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
1419
1468
|
/**
|
|
1420
1469
|
* @description Supported languages in the platform
|
|
1421
1470
|
* @enum {string}
|
|
@@ -1632,6 +1681,11 @@ export interface components {
|
|
|
1632
1681
|
aiInterlocutorName?: string;
|
|
1633
1682
|
aiInterlocutorAvatarId?: string;
|
|
1634
1683
|
};
|
|
1684
|
+
AlternativeExpression: {
|
|
1685
|
+
context: string;
|
|
1686
|
+
alternatives: string[];
|
|
1687
|
+
note?: string;
|
|
1688
|
+
};
|
|
1635
1689
|
ConversationDTO: {
|
|
1636
1690
|
/** Format: uuid */
|
|
1637
1691
|
id: string;
|
|
@@ -1677,11 +1731,33 @@ export interface components {
|
|
|
1677
1731
|
vocabulary: number;
|
|
1678
1732
|
/** Format: int32 */
|
|
1679
1733
|
answerLength: number;
|
|
1680
|
-
|
|
1681
|
-
|
|
1734
|
+
/** Format: int32 */
|
|
1735
|
+
naturalness: number;
|
|
1736
|
+
/** Format: int32 */
|
|
1737
|
+
coherenceWithContext: number;
|
|
1738
|
+
registerAppropriate: boolean;
|
|
1739
|
+
mistakes: components["schemas"]["Mistake"][];
|
|
1740
|
+
strengthsIdentified: string[];
|
|
1741
|
+
vocabularyEnrichment: components["schemas"]["VocabularyEnrichment"][];
|
|
1742
|
+
alternativeExpressions: components["schemas"]["AlternativeExpression"][];
|
|
1743
|
+
culturalNote?: string;
|
|
1682
1744
|
/** Format: uuid */
|
|
1683
1745
|
messageId: string;
|
|
1684
1746
|
};
|
|
1747
|
+
Mistake: {
|
|
1748
|
+
phrase: string;
|
|
1749
|
+
/** Format: int32 */
|
|
1750
|
+
severity: number;
|
|
1751
|
+
/** @enum {string} */
|
|
1752
|
+
errorType: "GRAMMAR_TENSE" | "GRAMMAR_AGREEMENT" | "GRAMMAR_WORD_ORDER" | "VOCABULARY_WRONG_WORD" | "VOCABULARY_UNNATURAL_COLLOCATION" | "SPELLING" | "PUNCTUATION" | "MISSING_WORD" | "UNNECESSARY_WORD" | "REGISTER_MISMATCH" | "COHERENCE_ISSUE";
|
|
1753
|
+
explanation: string;
|
|
1754
|
+
correctForm: string;
|
|
1755
|
+
};
|
|
1756
|
+
VocabularyEnrichment: {
|
|
1757
|
+
original: string;
|
|
1758
|
+
suggestion: string;
|
|
1759
|
+
explanation: string;
|
|
1760
|
+
};
|
|
1685
1761
|
SuggestConversationTopicRequest: {
|
|
1686
1762
|
clueFromUser?: string;
|
|
1687
1763
|
/** @enum {string} */
|
|
@@ -1731,8 +1807,16 @@ export interface components {
|
|
|
1731
1807
|
vocabulary: number;
|
|
1732
1808
|
/** Format: int32 */
|
|
1733
1809
|
answerLength: number;
|
|
1734
|
-
|
|
1735
|
-
|
|
1810
|
+
/** Format: int32 */
|
|
1811
|
+
naturalness: number;
|
|
1812
|
+
/** Format: int32 */
|
|
1813
|
+
coherenceWithContext: number;
|
|
1814
|
+
registerAppropriate: boolean;
|
|
1815
|
+
mistakes: components["schemas"]["Mistake"][];
|
|
1816
|
+
strengthsIdentified: string[];
|
|
1817
|
+
vocabularyEnrichment: components["schemas"]["VocabularyEnrichment"][];
|
|
1818
|
+
alternativeExpressions: components["schemas"]["AlternativeExpression"][];
|
|
1819
|
+
culturalNote?: string;
|
|
1736
1820
|
};
|
|
1737
1821
|
/** @description Request to verify OTP code and authenticate user */
|
|
1738
1822
|
OtpVerifyDto: {
|
|
@@ -1755,6 +1839,30 @@ export interface components {
|
|
|
1755
1839
|
*/
|
|
1756
1840
|
email: string;
|
|
1757
1841
|
};
|
|
1842
|
+
/** @description Request to get an AI-powered explanation of a word or phrase */
|
|
1843
|
+
ExplainPhraseRequest: {
|
|
1844
|
+
/**
|
|
1845
|
+
* @description The word or phrase to explain
|
|
1846
|
+
* @example hund
|
|
1847
|
+
*/
|
|
1848
|
+
phrase: string;
|
|
1849
|
+
/**
|
|
1850
|
+
* @description Supported languages in the platform
|
|
1851
|
+
* @example NORWEGIAN
|
|
1852
|
+
* @enum {string}
|
|
1853
|
+
*/
|
|
1854
|
+
language: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
1855
|
+
/**
|
|
1856
|
+
* @description Optional context where the phrase is used (e.g., a paragraph or sentence containing the phrase)
|
|
1857
|
+
* @example I was reading a book and came across this phrase: 'break the ice'. The context was about meeting new people at a party.
|
|
1858
|
+
*/
|
|
1859
|
+
context?: string | null;
|
|
1860
|
+
/**
|
|
1861
|
+
* @description Optional custom instruction in any language to guide the explanation (e.g., 'Focus on informal usage', 'Explain like I'm 5', 'Include etymology')
|
|
1862
|
+
* @example Please focus on how this is used in everyday conversation
|
|
1863
|
+
*/
|
|
1864
|
+
customInstruction?: string | null;
|
|
1865
|
+
};
|
|
1758
1866
|
JsonNullableSetExampleSentence: {
|
|
1759
1867
|
present?: boolean;
|
|
1760
1868
|
};
|
|
@@ -1791,7 +1899,7 @@ export interface components {
|
|
|
1791
1899
|
* @enum {string}
|
|
1792
1900
|
*/
|
|
1793
1901
|
type?: "NOUN" | "VERB" | "ADJECTIVE" | "ADVERB" | "IDIOM" | "PHRASE";
|
|
1794
|
-
|
|
1902
|
+
sourceWord?: string;
|
|
1795
1903
|
translation?: string;
|
|
1796
1904
|
definition?: string;
|
|
1797
1905
|
/**
|
|
@@ -1803,18 +1911,14 @@ export interface components {
|
|
|
1803
1911
|
* @description Supported languages in the platform
|
|
1804
1912
|
* @enum {string}
|
|
1805
1913
|
*/
|
|
1806
|
-
|
|
1807
|
-
/**
|
|
1808
|
-
* @description Supported languages in the platform
|
|
1809
|
-
* @enum {string}
|
|
1810
|
-
*/
|
|
1811
|
-
translatedTo?: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
1914
|
+
language?: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
1812
1915
|
/** Format: uuid */
|
|
1813
1916
|
bankId?: string;
|
|
1814
1917
|
bankToCreate?: components["schemas"]["CreateBankRequest"];
|
|
1815
1918
|
};
|
|
1816
1919
|
UpdateQAWRequest: {
|
|
1817
1920
|
updatedWord?: string;
|
|
1921
|
+
translation?: string;
|
|
1818
1922
|
definition?: string;
|
|
1819
1923
|
/**
|
|
1820
1924
|
* @description Extra marks or tags for word classification by register or domain
|
|
@@ -1838,6 +1942,11 @@ export interface components {
|
|
|
1838
1942
|
language: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
1839
1943
|
/** @enum {string} */
|
|
1840
1944
|
level?: "A1" | "A2" | "B1" | "B2" | "C1" | "C2";
|
|
1945
|
+
/**
|
|
1946
|
+
* @description Supported languages in the platform
|
|
1947
|
+
* @enum {string}
|
|
1948
|
+
*/
|
|
1949
|
+
translateTo?: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
1841
1950
|
/**
|
|
1842
1951
|
* @description Supported languages in the platform
|
|
1843
1952
|
* @enum {string}
|
|
@@ -1852,7 +1961,7 @@ export interface components {
|
|
|
1852
1961
|
* @enum {string}
|
|
1853
1962
|
*/
|
|
1854
1963
|
type: "NOUN" | "VERB" | "ADJECTIVE" | "ADVERB" | "IDIOM" | "PHRASE";
|
|
1855
|
-
|
|
1964
|
+
sourceWord: string;
|
|
1856
1965
|
translation: string;
|
|
1857
1966
|
definition: string;
|
|
1858
1967
|
/**
|
|
@@ -1864,12 +1973,7 @@ export interface components {
|
|
|
1864
1973
|
* @description Supported languages in the platform
|
|
1865
1974
|
* @enum {string}
|
|
1866
1975
|
*/
|
|
1867
|
-
|
|
1868
|
-
/**
|
|
1869
|
-
* @description Supported languages in the platform
|
|
1870
|
-
* @enum {string}
|
|
1871
|
-
*/
|
|
1872
|
-
translatedTo: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
1976
|
+
language: "POLISH" | "ENGLISH" | "GERMAN" | "FRENCH" | "SPANISH" | "ITALIAN" | "NORWEGIAN" | "RUSSIAN" | "SLOVENIAN";
|
|
1873
1977
|
isCompleted: boolean;
|
|
1874
1978
|
isBookmarked: boolean;
|
|
1875
1979
|
/** Format: int32 */
|
|
@@ -2264,6 +2368,44 @@ export interface operations {
|
|
|
2264
2368
|
};
|
|
2265
2369
|
};
|
|
2266
2370
|
};
|
|
2371
|
+
suggestVocabulary: {
|
|
2372
|
+
parameters: {
|
|
2373
|
+
query?: never;
|
|
2374
|
+
header?: never;
|
|
2375
|
+
path?: never;
|
|
2376
|
+
cookie?: never;
|
|
2377
|
+
};
|
|
2378
|
+
requestBody: {
|
|
2379
|
+
content: {
|
|
2380
|
+
"application/json": components["schemas"]["SuggestVocabularyRequest"];
|
|
2381
|
+
};
|
|
2382
|
+
};
|
|
2383
|
+
responses: {
|
|
2384
|
+
/** @description Vocabulary suggestions stream started successfully */
|
|
2385
|
+
200: {
|
|
2386
|
+
headers: {
|
|
2387
|
+
[name: string]: unknown;
|
|
2388
|
+
};
|
|
2389
|
+
content: {
|
|
2390
|
+
"text/event-stream": string[];
|
|
2391
|
+
};
|
|
2392
|
+
};
|
|
2393
|
+
/** @description Invalid request data or user does not have proficiency in the requested language */
|
|
2394
|
+
400: {
|
|
2395
|
+
headers: {
|
|
2396
|
+
[name: string]: unknown;
|
|
2397
|
+
};
|
|
2398
|
+
content?: never;
|
|
2399
|
+
};
|
|
2400
|
+
/** @description Unauthorized */
|
|
2401
|
+
401: {
|
|
2402
|
+
headers: {
|
|
2403
|
+
[name: string]: unknown;
|
|
2404
|
+
};
|
|
2405
|
+
content?: never;
|
|
2406
|
+
};
|
|
2407
|
+
};
|
|
2408
|
+
};
|
|
2267
2409
|
generateAIManual: {
|
|
2268
2410
|
parameters: {
|
|
2269
2411
|
query?: never;
|
|
@@ -2515,13 +2657,11 @@ export interface operations {
|
|
|
2515
2657
|
};
|
|
2516
2658
|
responses: {
|
|
2517
2659
|
/** @description Words created successfully */
|
|
2518
|
-
|
|
2660
|
+
204: {
|
|
2519
2661
|
headers: {
|
|
2520
2662
|
[name: string]: unknown;
|
|
2521
2663
|
};
|
|
2522
|
-
content
|
|
2523
|
-
"*/*": components["schemas"]["QuicklyAddedWordEntity"][];
|
|
2524
|
-
};
|
|
2664
|
+
content?: never;
|
|
2525
2665
|
};
|
|
2526
2666
|
/** @description Invalid request data or authentication failed */
|
|
2527
2667
|
400: {
|
|
@@ -3316,6 +3456,44 @@ export interface operations {
|
|
|
3316
3456
|
};
|
|
3317
3457
|
};
|
|
3318
3458
|
};
|
|
3459
|
+
explainPhrase: {
|
|
3460
|
+
parameters: {
|
|
3461
|
+
query?: never;
|
|
3462
|
+
header?: never;
|
|
3463
|
+
path?: never;
|
|
3464
|
+
cookie?: never;
|
|
3465
|
+
};
|
|
3466
|
+
requestBody: {
|
|
3467
|
+
content: {
|
|
3468
|
+
"application/json": components["schemas"]["ExplainPhraseRequest"];
|
|
3469
|
+
};
|
|
3470
|
+
};
|
|
3471
|
+
responses: {
|
|
3472
|
+
/** @description Word/phrase explanation stream started successfully */
|
|
3473
|
+
200: {
|
|
3474
|
+
headers: {
|
|
3475
|
+
[name: string]: unknown;
|
|
3476
|
+
};
|
|
3477
|
+
content: {
|
|
3478
|
+
"text/event-stream": string[];
|
|
3479
|
+
};
|
|
3480
|
+
};
|
|
3481
|
+
/** @description Invalid request data or user does not have proficiency in the requested language */
|
|
3482
|
+
400: {
|
|
3483
|
+
headers: {
|
|
3484
|
+
[name: string]: unknown;
|
|
3485
|
+
};
|
|
3486
|
+
content?: never;
|
|
3487
|
+
};
|
|
3488
|
+
/** @description Unauthorized */
|
|
3489
|
+
401: {
|
|
3490
|
+
headers: {
|
|
3491
|
+
[name: string]: unknown;
|
|
3492
|
+
};
|
|
3493
|
+
content?: never;
|
|
3494
|
+
};
|
|
3495
|
+
};
|
|
3496
|
+
};
|
|
3319
3497
|
getWord: {
|
|
3320
3498
|
parameters: {
|
|
3321
3499
|
query?: never;
|