@memori.ai/memori-api-client 0.2.1 → 0.3.1
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/README.md +1 -1
- package/dist/apiFetcher.d.ts +1 -0
- package/dist/backend/consumptionLogs.d.ts +40 -0
- package/dist/backend/memori.d.ts +11 -0
- package/dist/backend/notifications.d.ts +20 -0
- package/dist/backend.d.ts +42 -0
- package/dist/engine/chatLogs.d.ts +31 -0
- package/dist/engine/customDictionary.d.ts +47 -0
- package/dist/engine/dialog.d.ts +3 -9
- package/dist/engine/importExport.d.ts +39 -14
- package/dist/engine/intents.d.ts +36 -11
- package/dist/engine/nlp.d.ts +42 -1
- package/dist/engine/stats.d.ts +68 -1
- package/dist/engine.d.ts +174 -38
- package/dist/index.d.ts +216 -38
- package/dist/memori-api-client.cjs.development.js +702 -67
- package/dist/memori-api-client.cjs.development.js.map +1 -1
- package/dist/memori-api-client.cjs.production.min.js +1 -1
- package/dist/memori-api-client.cjs.production.min.js.map +1 -1
- package/dist/memori-api-client.esm.js +702 -67
- package/dist/memori-api-client.esm.js.map +1 -1
- package/dist/types.d.ts +318 -1
- package/package.json +1 -1
- package/src/apiFetcher.ts +2 -1
- package/src/backend/consumptionLogs.ts +79 -0
- package/src/backend/memori.ts +20 -0
- package/src/backend/notifications.ts +24 -0
- package/src/backend.ts +6 -0
- package/src/engine/chatLogs.ts +63 -0
- package/src/engine/customDictionary.ts +85 -0
- package/src/engine/dialog.ts +3 -3
- package/src/engine/importExport.ts +56 -16
- package/src/engine/intents.ts +58 -21
- package/src/engine/nlp.ts +78 -1
- package/src/engine/stats.ts +117 -1
- package/src/engine.ts +6 -0
- package/src/types.ts +327 -1
package/dist/engine.d.ts
CHANGED
|
@@ -1,4 +1,44 @@
|
|
|
1
1
|
declare const _default: (apiUrl: string) => {
|
|
2
|
+
getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
3
|
+
chatLogs: import("./types").ChatLog[];
|
|
4
|
+
}>;
|
|
5
|
+
deleteChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec>;
|
|
6
|
+
deleteChatLog: (sessionId: string, chatLogId: string) => Promise<import("./types").ResponseSpec>;
|
|
7
|
+
chatLogs: {
|
|
8
|
+
getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
9
|
+
chatLogs: import("./types").ChatLog[];
|
|
10
|
+
}>;
|
|
11
|
+
deleteChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec>;
|
|
12
|
+
deleteChatLog: (sessionId: string, chatLogId: string) => Promise<import("./types").ResponseSpec>;
|
|
13
|
+
};
|
|
14
|
+
getCustomWords: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
15
|
+
customWords: import("./types").CustomWord[];
|
|
16
|
+
}>;
|
|
17
|
+
getCustomWord: (sessionId: string, customWordID: string) => Promise<import("./types").ResponseSpec & {
|
|
18
|
+
customWord: import("./types").CustomWord;
|
|
19
|
+
}>;
|
|
20
|
+
deleteCustomWord: (sessionId: string, key: string) => Promise<import("./types").ResponseSpec>;
|
|
21
|
+
postCustomWord: (sessionId: string, customWord: Pick<import("./types").CustomWord, "word"> & Pick<import("./types").CustomWord, "definition">) => Promise<import("./types").ResponseSpec & {
|
|
22
|
+
customWord: import("./types").CustomWord;
|
|
23
|
+
}>;
|
|
24
|
+
patchCustomWord: (sessionId: string, customWord: Partial<import("./types").CustomWord> & {
|
|
25
|
+
customWordID: string;
|
|
26
|
+
}) => Promise<import("./types").ResponseSpec>;
|
|
27
|
+
customDictionary: {
|
|
28
|
+
getCustomWords: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
29
|
+
customWords: import("./types").CustomWord[];
|
|
30
|
+
}>;
|
|
31
|
+
getCustomWord: (sessionId: string, customWordID: string) => Promise<import("./types").ResponseSpec & {
|
|
32
|
+
customWord: import("./types").CustomWord;
|
|
33
|
+
}>;
|
|
34
|
+
deleteCustomWord: (sessionId: string, key: string) => Promise<import("./types").ResponseSpec>;
|
|
35
|
+
postCustomWord: (sessionId: string, customWord: Pick<import("./types").CustomWord, "word"> & Pick<import("./types").CustomWord, "definition">) => Promise<import("./types").ResponseSpec & {
|
|
36
|
+
customWord: import("./types").CustomWord;
|
|
37
|
+
}>;
|
|
38
|
+
patchCustomWord: (sessionId: string, customWord: Partial<import("./types").CustomWord> & {
|
|
39
|
+
customWordID: string;
|
|
40
|
+
}) => Promise<import("./types").ResponseSpec>;
|
|
41
|
+
};
|
|
2
42
|
getContextVars: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
3
43
|
[variable: string]: string[];
|
|
4
44
|
}>;
|
|
@@ -34,16 +74,50 @@ declare const _default: (apiUrl: string) => {
|
|
|
34
74
|
getStatistics: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
35
75
|
statistics: import("./types").Stats;
|
|
36
76
|
}>;
|
|
77
|
+
getContentQualityIndexes: (memoriID: string) => Promise<import("./types").ResponseSpec & {
|
|
78
|
+
contentQualityIndex: number;
|
|
79
|
+
answerQualityIndex: number;
|
|
80
|
+
unansweredQuestions: number;
|
|
81
|
+
}>;
|
|
82
|
+
getTextQualityIndexes: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
83
|
+
textQualityIndex: number;
|
|
84
|
+
undefinedWords: string[];
|
|
85
|
+
contentTextQualityIndex: number;
|
|
86
|
+
faultyMemories?: import("./types").Memory[] | undefined;
|
|
87
|
+
}>;
|
|
37
88
|
getEventLogs: (sessionId: string, strDateFrom: string, strDateTo: string) => Promise<import("./types").ResponseSpec & {
|
|
38
89
|
eventLogs: import("./types").EventLog[];
|
|
39
90
|
}>;
|
|
91
|
+
getMemoryEventLogs: (sessionId: string, memoryId: string, strDateFrom: string, strDateTo: string) => Promise<import("./types").ResponseSpec & {
|
|
92
|
+
eventLogs: import("./types").EventLog[];
|
|
93
|
+
}>;
|
|
94
|
+
getIntentEventLogs: (sessionId: string, intentId: string, strDateFrom: string, strDateTo: string) => Promise<import("./types").ResponseSpec & {
|
|
95
|
+
eventLogs: import("./types").EventLog[];
|
|
96
|
+
}>;
|
|
40
97
|
stats: {
|
|
41
98
|
getStatistics: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
42
99
|
statistics: import("./types").Stats;
|
|
43
100
|
}>;
|
|
101
|
+
getContentQualityIndexes: (memoriID: string) => Promise<import("./types").ResponseSpec & {
|
|
102
|
+
contentQualityIndex: number;
|
|
103
|
+
answerQualityIndex: number;
|
|
104
|
+
unansweredQuestions: number;
|
|
105
|
+
}>;
|
|
106
|
+
getTextQualityIndexes: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
107
|
+
textQualityIndex: number;
|
|
108
|
+
undefinedWords: string[];
|
|
109
|
+
contentTextQualityIndex: number;
|
|
110
|
+
faultyMemories?: import("./types").Memory[] | undefined;
|
|
111
|
+
}>;
|
|
44
112
|
getEventLogs: (sessionId: string, strDateFrom: string, strDateTo: string) => Promise<import("./types").ResponseSpec & {
|
|
45
113
|
eventLogs: import("./types").EventLog[];
|
|
46
114
|
}>;
|
|
115
|
+
getMemoryEventLogs: (sessionId: string, memoryId: string, strDateFrom: string, strDateTo: string) => Promise<import("./types").ResponseSpec & {
|
|
116
|
+
eventLogs: import("./types").EventLog[];
|
|
117
|
+
}>;
|
|
118
|
+
getIntentEventLogs: (sessionId: string, intentId: string, strDateFrom: string, strDateTo: string) => Promise<import("./types").ResponseSpec & {
|
|
119
|
+
eventLogs: import("./types").EventLog[];
|
|
120
|
+
}>;
|
|
47
121
|
};
|
|
48
122
|
initSession: (params: import("./types").OpenSession) => Promise<import("./types").ResponseSpec & {
|
|
49
123
|
sessionID: string;
|
|
@@ -115,19 +189,43 @@ declare const _default: (apiUrl: string) => {
|
|
|
115
189
|
person: import("./types").Person;
|
|
116
190
|
}>;
|
|
117
191
|
};
|
|
118
|
-
getWordVector: (sessionId: string, word: string) => Promise<import("./types").ResponseSpec
|
|
192
|
+
getWordVector: (sessionId: string, word: string) => Promise<import("./types").ResponseSpec & {
|
|
193
|
+
vector: number[];
|
|
194
|
+
}>;
|
|
195
|
+
getSimilarWords: (sessionId: string, word: string) => Promise<import("./types").ResponseSpec & {
|
|
196
|
+
similarWords: string[];
|
|
197
|
+
}>;
|
|
119
198
|
guessLanguage: (sessionId: string, text: string) => Promise<import("./types").ResponseSpec & {
|
|
120
199
|
languageGuesses: {
|
|
121
200
|
[lang: string]: number;
|
|
122
201
|
};
|
|
123
202
|
}>;
|
|
203
|
+
computeSimilarity: (sessionId: string, referenceText: string, referenceTextType: "QUESTION" | "ANSWER", comparisonText: string, comparisonTextType: "QUESTION" | "ANSWER") => Promise<import("./types").ResponseSpec & {
|
|
204
|
+
similarity: number;
|
|
205
|
+
similarityLevel: "NONE" | "LOW" | "MEDIUM" | "HIGH";
|
|
206
|
+
}>;
|
|
207
|
+
checkWords: (sessionId: string, text: string) => Promise<import("./types").ResponseSpec & {
|
|
208
|
+
undefinedWords: string[];
|
|
209
|
+
}>;
|
|
124
210
|
nlp: {
|
|
125
|
-
getWordVector: (sessionId: string, word: string) => Promise<import("./types").ResponseSpec
|
|
211
|
+
getWordVector: (sessionId: string, word: string) => Promise<import("./types").ResponseSpec & {
|
|
212
|
+
vector: number[];
|
|
213
|
+
}>;
|
|
214
|
+
getSimilarWords: (sessionId: string, word: string) => Promise<import("./types").ResponseSpec & {
|
|
215
|
+
similarWords: string[];
|
|
216
|
+
}>;
|
|
126
217
|
guessLanguage: (sessionId: string, text: string) => Promise<import("./types").ResponseSpec & {
|
|
127
218
|
languageGuesses: {
|
|
128
219
|
[lang: string]: number;
|
|
129
220
|
};
|
|
130
221
|
}>;
|
|
222
|
+
computeSimilarity: (sessionId: string, referenceText: string, referenceTextType: "QUESTION" | "ANSWER", comparisonText: string, comparisonTextType: "QUESTION" | "ANSWER") => Promise<import("./types").ResponseSpec & {
|
|
223
|
+
similarity: number;
|
|
224
|
+
similarityLevel: "NONE" | "LOW" | "MEDIUM" | "HIGH";
|
|
225
|
+
}>;
|
|
226
|
+
checkWords: (sessionId: string, text: string) => Promise<import("./types").ResponseSpec & {
|
|
227
|
+
undefinedWords: string[];
|
|
228
|
+
}>;
|
|
131
229
|
};
|
|
132
230
|
getMemories: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
133
231
|
memories: import("./types").Memory[];
|
|
@@ -193,31 +291,81 @@ declare const _default: (apiUrl: string) => {
|
|
|
193
291
|
}>;
|
|
194
292
|
patchLocalizationKey: (sessionId: string, localizationKey: import("./types").LocalizationKey) => Promise<import("./types").ResponseSpec>;
|
|
195
293
|
};
|
|
196
|
-
getIntents: (sessionId: string) => Promise<import("./types").ResponseSpec
|
|
197
|
-
|
|
198
|
-
|
|
294
|
+
getIntents: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
295
|
+
intents: (import("./types").Intent & {
|
|
296
|
+
intentID: string;
|
|
297
|
+
})[];
|
|
298
|
+
}>;
|
|
299
|
+
getIntent: (sessionId: string, intentId: string) => Promise<import("./types").ResponseSpec & {
|
|
300
|
+
intent: import("./types").Intent & {
|
|
301
|
+
intentID: string;
|
|
302
|
+
};
|
|
303
|
+
}>;
|
|
304
|
+
patchIntent: (sessionId: string, intent: Partial<import("./types").Intent> & {
|
|
305
|
+
intentID: string;
|
|
306
|
+
}) => Promise<import("./types").ResponseSpec>;
|
|
199
307
|
deleteIntent: (sessionId: string, intentId: string) => Promise<import("./types").ResponseSpec>;
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
308
|
+
createIntent: (sessionId: string, intent: import("./types").Intent) => Promise<import("./types").ResponseSpec & {
|
|
309
|
+
intentID: string;
|
|
310
|
+
}>;
|
|
311
|
+
getIntentSlots: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
312
|
+
intentSlots: (import("./types").IntentSlot & {
|
|
313
|
+
intentSlotID: string;
|
|
314
|
+
})[];
|
|
315
|
+
}>;
|
|
316
|
+
getIntentSlot: (sessionId: string, slotId: string) => Promise<import("./types").ResponseSpec & {
|
|
317
|
+
intentSlot: import("./types").IntentSlot & {
|
|
318
|
+
intentSlotID: string;
|
|
319
|
+
};
|
|
320
|
+
}>;
|
|
321
|
+
patchIntentSlot: (sessionId: string, intentSlot: Partial<import("./types").IntentSlot> & {
|
|
322
|
+
intentSlotID: string;
|
|
323
|
+
}) => Promise<import("./types").ResponseSpec>;
|
|
204
324
|
deleteIntentSlot: (sessionId: string, slotId: string) => Promise<import("./types").ResponseSpec>;
|
|
205
|
-
|
|
325
|
+
createIntentSlot: (sessionId: string, intentSlot: import("./types").IntentSlot) => Promise<import("./types").ResponseSpec & {
|
|
326
|
+
intentSlotID: string;
|
|
327
|
+
}>;
|
|
206
328
|
intents: {
|
|
207
|
-
getIntents: (sessionId: string) => Promise<import("./types").ResponseSpec
|
|
208
|
-
|
|
209
|
-
|
|
329
|
+
getIntents: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
330
|
+
intents: (import("./types").Intent & {
|
|
331
|
+
intentID: string;
|
|
332
|
+
})[];
|
|
333
|
+
}>;
|
|
334
|
+
getIntent: (sessionId: string, intentId: string) => Promise<import("./types").ResponseSpec & {
|
|
335
|
+
intent: import("./types").Intent & {
|
|
336
|
+
intentID: string;
|
|
337
|
+
};
|
|
338
|
+
}>;
|
|
339
|
+
patchIntent: (sessionId: string, intent: Partial<import("./types").Intent> & {
|
|
340
|
+
intentID: string;
|
|
341
|
+
}) => Promise<import("./types").ResponseSpec>;
|
|
210
342
|
deleteIntent: (sessionId: string, intentId: string) => Promise<import("./types").ResponseSpec>;
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
343
|
+
createIntent: (sessionId: string, intent: import("./types").Intent) => Promise<import("./types").ResponseSpec & {
|
|
344
|
+
intentID: string;
|
|
345
|
+
}>;
|
|
346
|
+
getIntentSlots: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
347
|
+
intentSlots: (import("./types").IntentSlot & {
|
|
348
|
+
intentSlotID: string;
|
|
349
|
+
})[];
|
|
350
|
+
}>;
|
|
351
|
+
getIntentSlot: (sessionId: string, slotId: string) => Promise<import("./types").ResponseSpec & {
|
|
352
|
+
intentSlot: import("./types").IntentSlot & {
|
|
353
|
+
intentSlotID: string;
|
|
354
|
+
};
|
|
355
|
+
}>;
|
|
356
|
+
patchIntentSlot: (sessionId: string, intentSlot: Partial<import("./types").IntentSlot> & {
|
|
357
|
+
intentSlotID: string;
|
|
358
|
+
}) => Promise<import("./types").ResponseSpec>;
|
|
215
359
|
deleteIntentSlot: (sessionId: string, slotId: string) => Promise<import("./types").ResponseSpec>;
|
|
216
|
-
|
|
360
|
+
createIntentSlot: (sessionId: string, intentSlot: import("./types").IntentSlot) => Promise<import("./types").ResponseSpec & {
|
|
361
|
+
intentSlotID: string;
|
|
362
|
+
}>;
|
|
217
363
|
};
|
|
218
|
-
|
|
364
|
+
importCSV: (sessionId: string, csvRows: string[], params: import("./engine/importExport").ImportCSVParams) => Promise<import("./types").ResponseSpec & import("./engine/importExport").ImportReponse>;
|
|
365
|
+
exportCSV: (sessionID: string, params: import("./engine/importExport").ExportCSVParams) => Promise<string>;
|
|
219
366
|
importExport: {
|
|
220
|
-
|
|
367
|
+
importCSV: (sessionId: string, csvRows: string[], params: import("./engine/importExport").ImportCSVParams) => Promise<import("./types").ResponseSpec & import("./engine/importExport").ImportReponse>;
|
|
368
|
+
exportCSV: (sessionID: string, params: import("./engine/importExport").ExportCSVParams) => Promise<string>;
|
|
221
369
|
};
|
|
222
370
|
postTextEnteredEvent: ({ sessionId, text, }: {
|
|
223
371
|
sessionId: string;
|
|
@@ -244,15 +392,9 @@ declare const _default: (apiUrl: string) => {
|
|
|
244
392
|
postMediumSelectedEvent: (sessionId: string, medium: import("./types").Medium) => Promise<import("./types").ResponseSpec & {
|
|
245
393
|
currentState: import("./types").DialogState;
|
|
246
394
|
}>;
|
|
247
|
-
postDateSelectedEvent: (
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
postPlaceSelectedEvent: ({ sessionId }: {
|
|
251
|
-
sessionId: string;
|
|
252
|
-
}) => Promise<import("./types").ResponseSpec>;
|
|
253
|
-
postTagSelectedEvent: ({ sessionId }: {
|
|
254
|
-
sessionId: string;
|
|
255
|
-
}) => Promise<import("./types").ResponseSpec>;
|
|
395
|
+
postDateSelectedEvent: (sessionId: string) => Promise<import("./types").ResponseSpec>;
|
|
396
|
+
postPlaceSelectedEvent: (sessionId: string) => Promise<import("./types").ResponseSpec>;
|
|
397
|
+
postTagSelectedEvent: (sessionId: string) => Promise<import("./types").ResponseSpec>;
|
|
256
398
|
dialog: {
|
|
257
399
|
postTextEnteredEvent: ({ sessionId, text, }: {
|
|
258
400
|
sessionId: string;
|
|
@@ -279,15 +421,9 @@ declare const _default: (apiUrl: string) => {
|
|
|
279
421
|
postMediumSelectedEvent: (sessionId: string, medium: import("./types").Medium) => Promise<import("./types").ResponseSpec & {
|
|
280
422
|
currentState: import("./types").DialogState;
|
|
281
423
|
}>;
|
|
282
|
-
postDateSelectedEvent: (
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
postPlaceSelectedEvent: ({ sessionId }: {
|
|
286
|
-
sessionId: string;
|
|
287
|
-
}) => Promise<import("./types").ResponseSpec>;
|
|
288
|
-
postTagSelectedEvent: ({ sessionId }: {
|
|
289
|
-
sessionId: string;
|
|
290
|
-
}) => Promise<import("./types").ResponseSpec>;
|
|
424
|
+
postDateSelectedEvent: (sessionId: string) => Promise<import("./types").ResponseSpec>;
|
|
425
|
+
postPlaceSelectedEvent: (sessionId: string) => Promise<import("./types").ResponseSpec>;
|
|
426
|
+
postTagSelectedEvent: (sessionId: string) => Promise<import("./types").ResponseSpec>;
|
|
291
427
|
};
|
|
292
428
|
getCorrelationPairs: (sessionId: string) => Promise<import("./types").ResponseSpec>;
|
|
293
429
|
deleteCorrelationPair: (sessionId: string, pairId: string) => Promise<import("./types").ResponseSpec>;
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,46 @@ declare const api: (hostname?: string | undefined) => {
|
|
|
12
12
|
asset: {
|
|
13
13
|
getResourceUrl: ({ type, resourceURI, sessionID, baseURL, }: import("./helpers/asset").ResourceURLParams) => string;
|
|
14
14
|
};
|
|
15
|
+
getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
16
|
+
chatLogs: import("./types").ChatLog[];
|
|
17
|
+
}>;
|
|
18
|
+
deleteChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec>;
|
|
19
|
+
deleteChatLog: (sessionId: string, chatLogId: string) => Promise<import("./types").ResponseSpec>;
|
|
20
|
+
chatLogs: {
|
|
21
|
+
getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
22
|
+
chatLogs: import("./types").ChatLog[];
|
|
23
|
+
}>;
|
|
24
|
+
deleteChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec>;
|
|
25
|
+
deleteChatLog: (sessionId: string, chatLogId: string) => Promise<import("./types").ResponseSpec>;
|
|
26
|
+
};
|
|
27
|
+
getCustomWords: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
28
|
+
customWords: import("./types").CustomWord[];
|
|
29
|
+
}>;
|
|
30
|
+
getCustomWord: (sessionId: string, customWordID: string) => Promise<import("./types").ResponseSpec & {
|
|
31
|
+
customWord: import("./types").CustomWord;
|
|
32
|
+
}>;
|
|
33
|
+
deleteCustomWord: (sessionId: string, key: string) => Promise<import("./types").ResponseSpec>;
|
|
34
|
+
postCustomWord: (sessionId: string, customWord: Pick<import("./types").CustomWord, "word"> & Pick<import("./types").CustomWord, "definition">) => Promise<import("./types").ResponseSpec & {
|
|
35
|
+
customWord: import("./types").CustomWord;
|
|
36
|
+
}>;
|
|
37
|
+
patchCustomWord: (sessionId: string, customWord: Partial<import("./types").CustomWord> & {
|
|
38
|
+
customWordID: string;
|
|
39
|
+
}) => Promise<import("./types").ResponseSpec>;
|
|
40
|
+
customDictionary: {
|
|
41
|
+
getCustomWords: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
42
|
+
customWords: import("./types").CustomWord[];
|
|
43
|
+
}>;
|
|
44
|
+
getCustomWord: (sessionId: string, customWordID: string) => Promise<import("./types").ResponseSpec & {
|
|
45
|
+
customWord: import("./types").CustomWord;
|
|
46
|
+
}>;
|
|
47
|
+
deleteCustomWord: (sessionId: string, key: string) => Promise<import("./types").ResponseSpec>;
|
|
48
|
+
postCustomWord: (sessionId: string, customWord: Pick<import("./types").CustomWord, "word"> & Pick<import("./types").CustomWord, "definition">) => Promise<import("./types").ResponseSpec & {
|
|
49
|
+
customWord: import("./types").CustomWord;
|
|
50
|
+
}>;
|
|
51
|
+
patchCustomWord: (sessionId: string, customWord: Partial<import("./types").CustomWord> & {
|
|
52
|
+
customWordID: string;
|
|
53
|
+
}) => Promise<import("./types").ResponseSpec>;
|
|
54
|
+
};
|
|
15
55
|
getContextVars: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
16
56
|
[variable: string]: string[];
|
|
17
57
|
}>;
|
|
@@ -47,16 +87,50 @@ declare const api: (hostname?: string | undefined) => {
|
|
|
47
87
|
getStatistics: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
48
88
|
statistics: import("./types").Stats;
|
|
49
89
|
}>;
|
|
90
|
+
getContentQualityIndexes: (memoriID: string) => Promise<import("./types").ResponseSpec & {
|
|
91
|
+
contentQualityIndex: number;
|
|
92
|
+
answerQualityIndex: number;
|
|
93
|
+
unansweredQuestions: number;
|
|
94
|
+
}>;
|
|
95
|
+
getTextQualityIndexes: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
96
|
+
textQualityIndex: number;
|
|
97
|
+
undefinedWords: string[];
|
|
98
|
+
contentTextQualityIndex: number;
|
|
99
|
+
faultyMemories?: import("./types").Memory[] | undefined;
|
|
100
|
+
}>;
|
|
50
101
|
getEventLogs: (sessionId: string, strDateFrom: string, strDateTo: string) => Promise<import("./types").ResponseSpec & {
|
|
51
102
|
eventLogs: import("./types").EventLog[];
|
|
52
103
|
}>;
|
|
104
|
+
getMemoryEventLogs: (sessionId: string, memoryId: string, strDateFrom: string, strDateTo: string) => Promise<import("./types").ResponseSpec & {
|
|
105
|
+
eventLogs: import("./types").EventLog[];
|
|
106
|
+
}>;
|
|
107
|
+
getIntentEventLogs: (sessionId: string, intentId: string, strDateFrom: string, strDateTo: string) => Promise<import("./types").ResponseSpec & {
|
|
108
|
+
eventLogs: import("./types").EventLog[];
|
|
109
|
+
}>;
|
|
53
110
|
stats: {
|
|
54
111
|
getStatistics: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
55
112
|
statistics: import("./types").Stats;
|
|
56
113
|
}>;
|
|
114
|
+
getContentQualityIndexes: (memoriID: string) => Promise<import("./types").ResponseSpec & {
|
|
115
|
+
contentQualityIndex: number;
|
|
116
|
+
answerQualityIndex: number;
|
|
117
|
+
unansweredQuestions: number;
|
|
118
|
+
}>;
|
|
119
|
+
getTextQualityIndexes: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
120
|
+
textQualityIndex: number;
|
|
121
|
+
undefinedWords: string[];
|
|
122
|
+
contentTextQualityIndex: number;
|
|
123
|
+
faultyMemories?: import("./types").Memory[] | undefined;
|
|
124
|
+
}>;
|
|
57
125
|
getEventLogs: (sessionId: string, strDateFrom: string, strDateTo: string) => Promise<import("./types").ResponseSpec & {
|
|
58
126
|
eventLogs: import("./types").EventLog[];
|
|
59
127
|
}>;
|
|
128
|
+
getMemoryEventLogs: (sessionId: string, memoryId: string, strDateFrom: string, strDateTo: string) => Promise<import("./types").ResponseSpec & {
|
|
129
|
+
eventLogs: import("./types").EventLog[];
|
|
130
|
+
}>;
|
|
131
|
+
getIntentEventLogs: (sessionId: string, intentId: string, strDateFrom: string, strDateTo: string) => Promise<import("./types").ResponseSpec & {
|
|
132
|
+
eventLogs: import("./types").EventLog[];
|
|
133
|
+
}>;
|
|
60
134
|
};
|
|
61
135
|
initSession: (params: import("./types").OpenSession) => Promise<import("./types").ResponseSpec & {
|
|
62
136
|
sessionID: string;
|
|
@@ -128,19 +202,43 @@ declare const api: (hostname?: string | undefined) => {
|
|
|
128
202
|
person: import("./types").Person;
|
|
129
203
|
}>;
|
|
130
204
|
};
|
|
131
|
-
getWordVector: (sessionId: string, word: string) => Promise<import("./types").ResponseSpec
|
|
205
|
+
getWordVector: (sessionId: string, word: string) => Promise<import("./types").ResponseSpec & {
|
|
206
|
+
vector: number[];
|
|
207
|
+
}>;
|
|
208
|
+
getSimilarWords: (sessionId: string, word: string) => Promise<import("./types").ResponseSpec & {
|
|
209
|
+
similarWords: string[];
|
|
210
|
+
}>;
|
|
132
211
|
guessLanguage: (sessionId: string, text: string) => Promise<import("./types").ResponseSpec & {
|
|
133
212
|
languageGuesses: {
|
|
134
213
|
[lang: string]: number;
|
|
135
214
|
};
|
|
136
215
|
}>;
|
|
216
|
+
computeSimilarity: (sessionId: string, referenceText: string, referenceTextType: "QUESTION" | "ANSWER", comparisonText: string, comparisonTextType: "QUESTION" | "ANSWER") => Promise<import("./types").ResponseSpec & {
|
|
217
|
+
similarity: number;
|
|
218
|
+
similarityLevel: "NONE" | "LOW" | "MEDIUM" | "HIGH";
|
|
219
|
+
}>;
|
|
220
|
+
checkWords: (sessionId: string, text: string) => Promise<import("./types").ResponseSpec & {
|
|
221
|
+
undefinedWords: string[];
|
|
222
|
+
}>;
|
|
137
223
|
nlp: {
|
|
138
|
-
getWordVector: (sessionId: string, word: string) => Promise<import("./types").ResponseSpec
|
|
224
|
+
getWordVector: (sessionId: string, word: string) => Promise<import("./types").ResponseSpec & {
|
|
225
|
+
vector: number[];
|
|
226
|
+
}>;
|
|
227
|
+
getSimilarWords: (sessionId: string, word: string) => Promise<import("./types").ResponseSpec & {
|
|
228
|
+
similarWords: string[];
|
|
229
|
+
}>;
|
|
139
230
|
guessLanguage: (sessionId: string, text: string) => Promise<import("./types").ResponseSpec & {
|
|
140
231
|
languageGuesses: {
|
|
141
232
|
[lang: string]: number;
|
|
142
233
|
};
|
|
143
234
|
}>;
|
|
235
|
+
computeSimilarity: (sessionId: string, referenceText: string, referenceTextType: "QUESTION" | "ANSWER", comparisonText: string, comparisonTextType: "QUESTION" | "ANSWER") => Promise<import("./types").ResponseSpec & {
|
|
236
|
+
similarity: number;
|
|
237
|
+
similarityLevel: "NONE" | "LOW" | "MEDIUM" | "HIGH";
|
|
238
|
+
}>;
|
|
239
|
+
checkWords: (sessionId: string, text: string) => Promise<import("./types").ResponseSpec & {
|
|
240
|
+
undefinedWords: string[];
|
|
241
|
+
}>;
|
|
144
242
|
};
|
|
145
243
|
getMemories: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
146
244
|
memories: import("./types").Memory[];
|
|
@@ -206,31 +304,81 @@ declare const api: (hostname?: string | undefined) => {
|
|
|
206
304
|
}>;
|
|
207
305
|
patchLocalizationKey: (sessionId: string, localizationKey: import("./types").LocalizationKey) => Promise<import("./types").ResponseSpec>;
|
|
208
306
|
};
|
|
209
|
-
getIntents: (sessionId: string) => Promise<import("./types").ResponseSpec
|
|
210
|
-
|
|
211
|
-
|
|
307
|
+
getIntents: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
308
|
+
intents: (import("./types").Intent & {
|
|
309
|
+
intentID: string;
|
|
310
|
+
})[];
|
|
311
|
+
}>;
|
|
312
|
+
getIntent: (sessionId: string, intentId: string) => Promise<import("./types").ResponseSpec & {
|
|
313
|
+
intent: import("./types").Intent & {
|
|
314
|
+
intentID: string;
|
|
315
|
+
};
|
|
316
|
+
}>;
|
|
317
|
+
patchIntent: (sessionId: string, intent: Partial<import("./types").Intent> & {
|
|
318
|
+
intentID: string;
|
|
319
|
+
}) => Promise<import("./types").ResponseSpec>;
|
|
212
320
|
deleteIntent: (sessionId: string, intentId: string) => Promise<import("./types").ResponseSpec>;
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
321
|
+
createIntent: (sessionId: string, intent: import("./types").Intent) => Promise<import("./types").ResponseSpec & {
|
|
322
|
+
intentID: string;
|
|
323
|
+
}>;
|
|
324
|
+
getIntentSlots: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
325
|
+
intentSlots: (import("./types").IntentSlot & {
|
|
326
|
+
intentSlotID: string;
|
|
327
|
+
})[];
|
|
328
|
+
}>;
|
|
329
|
+
getIntentSlot: (sessionId: string, slotId: string) => Promise<import("./types").ResponseSpec & {
|
|
330
|
+
intentSlot: import("./types").IntentSlot & {
|
|
331
|
+
intentSlotID: string;
|
|
332
|
+
};
|
|
333
|
+
}>;
|
|
334
|
+
patchIntentSlot: (sessionId: string, intentSlot: Partial<import("./types").IntentSlot> & {
|
|
335
|
+
intentSlotID: string;
|
|
336
|
+
}) => Promise<import("./types").ResponseSpec>;
|
|
217
337
|
deleteIntentSlot: (sessionId: string, slotId: string) => Promise<import("./types").ResponseSpec>;
|
|
218
|
-
|
|
338
|
+
createIntentSlot: (sessionId: string, intentSlot: import("./types").IntentSlot) => Promise<import("./types").ResponseSpec & {
|
|
339
|
+
intentSlotID: string;
|
|
340
|
+
}>;
|
|
219
341
|
intents: {
|
|
220
|
-
getIntents: (sessionId: string) => Promise<import("./types").ResponseSpec
|
|
221
|
-
|
|
222
|
-
|
|
342
|
+
getIntents: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
343
|
+
intents: (import("./types").Intent & {
|
|
344
|
+
intentID: string;
|
|
345
|
+
})[];
|
|
346
|
+
}>;
|
|
347
|
+
getIntent: (sessionId: string, intentId: string) => Promise<import("./types").ResponseSpec & {
|
|
348
|
+
intent: import("./types").Intent & {
|
|
349
|
+
intentID: string;
|
|
350
|
+
};
|
|
351
|
+
}>;
|
|
352
|
+
patchIntent: (sessionId: string, intent: Partial<import("./types").Intent> & {
|
|
353
|
+
intentID: string;
|
|
354
|
+
}) => Promise<import("./types").ResponseSpec>;
|
|
223
355
|
deleteIntent: (sessionId: string, intentId: string) => Promise<import("./types").ResponseSpec>;
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
356
|
+
createIntent: (sessionId: string, intent: import("./types").Intent) => Promise<import("./types").ResponseSpec & {
|
|
357
|
+
intentID: string;
|
|
358
|
+
}>;
|
|
359
|
+
getIntentSlots: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
360
|
+
intentSlots: (import("./types").IntentSlot & {
|
|
361
|
+
intentSlotID: string;
|
|
362
|
+
})[];
|
|
363
|
+
}>;
|
|
364
|
+
getIntentSlot: (sessionId: string, slotId: string) => Promise<import("./types").ResponseSpec & {
|
|
365
|
+
intentSlot: import("./types").IntentSlot & {
|
|
366
|
+
intentSlotID: string;
|
|
367
|
+
};
|
|
368
|
+
}>;
|
|
369
|
+
patchIntentSlot: (sessionId: string, intentSlot: Partial<import("./types").IntentSlot> & {
|
|
370
|
+
intentSlotID: string;
|
|
371
|
+
}) => Promise<import("./types").ResponseSpec>;
|
|
228
372
|
deleteIntentSlot: (sessionId: string, slotId: string) => Promise<import("./types").ResponseSpec>;
|
|
229
|
-
|
|
373
|
+
createIntentSlot: (sessionId: string, intentSlot: import("./types").IntentSlot) => Promise<import("./types").ResponseSpec & {
|
|
374
|
+
intentSlotID: string;
|
|
375
|
+
}>;
|
|
230
376
|
};
|
|
231
|
-
|
|
377
|
+
importCSV: (sessionId: string, csvRows: string[], params: import("./engine/importExport").ImportCSVParams) => Promise<import("./types").ResponseSpec & import("./engine/importExport").ImportReponse>;
|
|
378
|
+
exportCSV: (sessionID: string, params: import("./engine/importExport").ExportCSVParams) => Promise<string>;
|
|
232
379
|
importExport: {
|
|
233
|
-
|
|
380
|
+
importCSV: (sessionId: string, csvRows: string[], params: import("./engine/importExport").ImportCSVParams) => Promise<import("./types").ResponseSpec & import("./engine/importExport").ImportReponse>;
|
|
381
|
+
exportCSV: (sessionID: string, params: import("./engine/importExport").ExportCSVParams) => Promise<string>;
|
|
234
382
|
};
|
|
235
383
|
postTextEnteredEvent: ({ sessionId, text, }: {
|
|
236
384
|
sessionId: string;
|
|
@@ -257,15 +405,9 @@ declare const api: (hostname?: string | undefined) => {
|
|
|
257
405
|
postMediumSelectedEvent: (sessionId: string, medium: import("./types").Medium) => Promise<import("./types").ResponseSpec & {
|
|
258
406
|
currentState: import("./types").DialogState;
|
|
259
407
|
}>;
|
|
260
|
-
postDateSelectedEvent: (
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
postPlaceSelectedEvent: ({ sessionId }: {
|
|
264
|
-
sessionId: string;
|
|
265
|
-
}) => Promise<import("./types").ResponseSpec>;
|
|
266
|
-
postTagSelectedEvent: ({ sessionId }: {
|
|
267
|
-
sessionId: string;
|
|
268
|
-
}) => Promise<import("./types").ResponseSpec>;
|
|
408
|
+
postDateSelectedEvent: (sessionId: string) => Promise<import("./types").ResponseSpec>;
|
|
409
|
+
postPlaceSelectedEvent: (sessionId: string) => Promise<import("./types").ResponseSpec>;
|
|
410
|
+
postTagSelectedEvent: (sessionId: string) => Promise<import("./types").ResponseSpec>;
|
|
269
411
|
dialog: {
|
|
270
412
|
postTextEnteredEvent: ({ sessionId, text, }: {
|
|
271
413
|
sessionId: string;
|
|
@@ -292,15 +434,9 @@ declare const api: (hostname?: string | undefined) => {
|
|
|
292
434
|
postMediumSelectedEvent: (sessionId: string, medium: import("./types").Medium) => Promise<import("./types").ResponseSpec & {
|
|
293
435
|
currentState: import("./types").DialogState;
|
|
294
436
|
}>;
|
|
295
|
-
postDateSelectedEvent: (
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
postPlaceSelectedEvent: ({ sessionId }: {
|
|
299
|
-
sessionId: string;
|
|
300
|
-
}) => Promise<import("./types").ResponseSpec>;
|
|
301
|
-
postTagSelectedEvent: ({ sessionId }: {
|
|
302
|
-
sessionId: string;
|
|
303
|
-
}) => Promise<import("./types").ResponseSpec>;
|
|
437
|
+
postDateSelectedEvent: (sessionId: string) => Promise<import("./types").ResponseSpec>;
|
|
438
|
+
postPlaceSelectedEvent: (sessionId: string) => Promise<import("./types").ResponseSpec>;
|
|
439
|
+
postTagSelectedEvent: (sessionId: string) => Promise<import("./types").ResponseSpec>;
|
|
304
440
|
};
|
|
305
441
|
getCorrelationPairs: (sessionId: string) => Promise<import("./types").ResponseSpec>;
|
|
306
442
|
deleteCorrelationPair: (sessionId: string, pairId: string) => Promise<import("./types").ResponseSpec>;
|
|
@@ -309,6 +445,21 @@ declare const api: (hostname?: string | undefined) => {
|
|
|
309
445
|
deleteCorrelationPair: (sessionId: string, pairId: string) => Promise<import("./types").ResponseSpec>;
|
|
310
446
|
};
|
|
311
447
|
backend: {
|
|
448
|
+
getTenantNotifications: (tenantID: string) => Promise<import("./types").ResponseSpec & {
|
|
449
|
+
notifications: import("./types").Notification[];
|
|
450
|
+
}>;
|
|
451
|
+
getUserNotifications: (authToken: string) => Promise<import("./types").ResponseSpec & {
|
|
452
|
+
notifications: import("./types").Notification[];
|
|
453
|
+
}>;
|
|
454
|
+
getTenantConsumptionLogs: (authToken: string, tenantID: string, type: "Daily" | "Monthly", dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
455
|
+
consumptionLogs: import("./types").ConsumptionLog[];
|
|
456
|
+
}>;
|
|
457
|
+
getUserConsumptionLogs: (authToken: string, userID: string, type: "Daily" | "Monthly", dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
458
|
+
consumptionLogs: import("./types").ConsumptionLog[];
|
|
459
|
+
}>;
|
|
460
|
+
getMemoriConsumptionLogs: (authToken: string, memoriID: string, type: "Daily" | "Monthly", dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
461
|
+
consumptionLogs: import("./types").ConsumptionLog[];
|
|
462
|
+
}>;
|
|
312
463
|
getSentInvitations: (authToken: string) => Promise<import("./types").ResponseSpec & {
|
|
313
464
|
invitations: import("./types").Invitation[];
|
|
314
465
|
}>;
|
|
@@ -432,6 +583,10 @@ declare const api: (hostname?: string | undefined) => {
|
|
|
432
583
|
totalSessions: number;
|
|
433
584
|
validSessions: number;
|
|
434
585
|
}>;
|
|
586
|
+
transferMemori: (authToken: string, memori: import("./types").Memori & {
|
|
587
|
+
ownerTenantName: string;
|
|
588
|
+
ownerUserName: string;
|
|
589
|
+
}) => Promise<import("./types").ResponseSpec>;
|
|
435
590
|
getUploadAssetURL: (authToken: string, memoriID: string, memoryID?: string | undefined) => string;
|
|
436
591
|
uploadAsset: (fileName: string, fileUrl: string, authToken: string, memoriID: string, memoryID?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
437
592
|
asset: import("./types").Asset;
|
|
@@ -496,6 +651,10 @@ declare const api: (hostname?: string | undefined) => {
|
|
|
496
651
|
totalSessions: number;
|
|
497
652
|
validSessions: number;
|
|
498
653
|
}>;
|
|
654
|
+
transferMemori: (authToken: string, memori: import("./types").Memori & {
|
|
655
|
+
ownerTenantName: string;
|
|
656
|
+
ownerUserName: string;
|
|
657
|
+
}) => Promise<import("./types").ResponseSpec>;
|
|
499
658
|
};
|
|
500
659
|
user: {
|
|
501
660
|
userSignIn: (user: import("./types").User) => Promise<import("./types").ResponseSpec & {
|
|
@@ -583,6 +742,25 @@ declare const api: (hostname?: string | undefined) => {
|
|
|
583
742
|
invitation: import("./types").Invitation;
|
|
584
743
|
}>;
|
|
585
744
|
};
|
|
745
|
+
consumptionLogs: {
|
|
746
|
+
getTenantConsumptionLogs: (authToken: string, tenantID: string, type: "Daily" | "Monthly", dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
747
|
+
consumptionLogs: import("./types").ConsumptionLog[];
|
|
748
|
+
}>;
|
|
749
|
+
getUserConsumptionLogs: (authToken: string, userID: string, type: "Daily" | "Monthly", dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
750
|
+
consumptionLogs: import("./types").ConsumptionLog[];
|
|
751
|
+
}>;
|
|
752
|
+
getMemoriConsumptionLogs: (authToken: string, memoriID: string, type: "Daily" | "Monthly", dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
753
|
+
consumptionLogs: import("./types").ConsumptionLog[];
|
|
754
|
+
}>;
|
|
755
|
+
};
|
|
756
|
+
notifications: {
|
|
757
|
+
getTenantNotifications: (tenantID: string) => Promise<import("./types").ResponseSpec & {
|
|
758
|
+
notifications: import("./types").Notification[];
|
|
759
|
+
}>;
|
|
760
|
+
getUserNotifications: (authToken: string) => Promise<import("./types").ResponseSpec & {
|
|
761
|
+
notifications: import("./types").Notification[];
|
|
762
|
+
}>;
|
|
763
|
+
};
|
|
586
764
|
};
|
|
587
765
|
};
|
|
588
766
|
export default api;
|