@memori.ai/memori-api-client 1.2.0 → 2.0.0
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/CHANGELOG.md +21 -0
- package/README.md +17 -89
- package/dist/apiFetcher.d.ts +7 -7
- package/dist/apiFetcher.js +17 -0
- package/dist/apiFetcher.js.map +1 -0
- package/dist/backend/asset.d.ts +13 -44
- package/dist/backend/asset.js +31 -0
- package/dist/backend/asset.js.map +1 -0
- package/dist/backend/asset.test.d.ts +1 -0
- package/dist/backend/asset.test.js +14 -0
- package/dist/backend/asset.test.js.map +1 -0
- package/dist/backend/consumptionLogs.d.ts +13 -40
- package/dist/backend/consumptionLogs.js +15 -0
- package/dist/backend/consumptionLogs.js.map +1 -0
- package/dist/backend/consumptionLogs.test.d.ts +1 -0
- package/dist/backend/consumptionLogs.test.js +14 -0
- package/dist/backend/consumptionLogs.test.js.map +1 -0
- package/dist/backend/integration.d.ts +20 -55
- package/dist/backend/integration.js +29 -0
- package/dist/backend/integration.js.map +1 -0
- package/dist/backend/integration.test.d.ts +1 -0
- package/dist/backend/integration.test.js +14 -0
- package/dist/backend/integration.test.js.map +1 -0
- package/dist/backend/invitation.d.ts +34 -91
- package/dist/backend/invitation.js +43 -0
- package/dist/backend/invitation.js.map +1 -0
- package/dist/backend/invitation.test.d.ts +1 -0
- package/dist/backend/invitation.test.js +14 -0
- package/dist/backend/invitation.test.js.map +1 -0
- package/dist/backend/memori.d.ts +61 -173
- package/dist/backend/memori.js +72 -0
- package/dist/backend/memori.js.map +1 -0
- package/dist/backend/memori.test.d.ts +1 -0
- package/dist/backend/memori.test.js +14 -0
- package/dist/backend/memori.test.js.map +1 -0
- package/dist/backend/notifications.d.ts +10 -20
- package/dist/backend/notifications.js +12 -0
- package/dist/backend/notifications.js.map +1 -0
- package/dist/backend/notifications.test.d.ts +1 -0
- package/dist/backend/notifications.test.js +14 -0
- package/dist/backend/notifications.test.js.map +1 -0
- package/dist/backend/user.d.ts +41 -109
- package/dist/backend/user.js +68 -0
- package/dist/backend/user.js.map +1 -0
- package/dist/backend/user.test.d.ts +1 -0
- package/dist/backend/user.test.js +14 -0
- package/dist/backend/user.test.js.map +1 -0
- package/dist/backend.d.ts +345 -333
- package/dist/backend.js +28 -0
- package/dist/backend.js.map +1 -0
- package/dist/client.test.d.ts +1 -0
- package/dist/client.test.js +32 -0
- package/dist/client.test.js.map +1 -0
- package/dist/constants.d.ts +2 -2
- package/dist/constants.js +24 -0
- package/dist/constants.js.map +1 -0
- package/dist/constants.test.d.ts +1 -0
- package/dist/constants.test.js +14 -0
- package/dist/constants.test.js.map +1 -0
- package/dist/engine/chatLogs.d.ts +12 -39
- package/dist/engine/chatLogs.js +22 -0
- package/dist/engine/chatLogs.js.map +1 -0
- package/dist/engine/chatLogs.test.d.ts +1 -0
- package/dist/engine/chatLogs.test.js +14 -0
- package/dist/engine/chatLogs.test.js.map +1 -0
- package/dist/engine/contextVars.d.ts +14 -32
- package/dist/engine/contextVars.js +18 -0
- package/dist/engine/contextVars.js.map +1 -0
- package/dist/engine/contextVars.test.d.ts +1 -0
- package/dist/engine/contextVars.test.js +14 -0
- package/dist/engine/contextVars.test.js.map +1 -0
- package/dist/engine/correlationPairs.d.ts +11 -32
- package/dist/engine/correlationPairs.js +19 -0
- package/dist/engine/correlationPairs.js.map +1 -0
- package/dist/engine/correlationPairs.test.d.ts +1 -0
- package/dist/engine/correlationPairs.test.js +14 -0
- package/dist/engine/correlationPairs.test.js.map +1 -0
- package/dist/engine/customDictionary.d.ts +17 -47
- package/dist/engine/customDictionary.js +28 -0
- package/dist/engine/customDictionary.js.map +1 -0
- package/dist/engine/customDictionary.test.d.ts +1 -0
- package/dist/engine/customDictionary.test.js +14 -0
- package/dist/engine/customDictionary.test.js.map +1 -0
- package/dist/engine/dialog.d.ts +32 -82
- package/dist/engine/dialog.js +53 -0
- package/dist/engine/dialog.js.map +1 -0
- package/dist/engine/dialog.test.d.ts +1 -0
- package/dist/engine/dialog.test.js +20 -0
- package/dist/engine/dialog.test.js.map +1 -0
- package/dist/engine/importExport.d.ts +20 -40
- package/dist/engine/importExport.js +40 -0
- package/dist/engine/importExport.js.map +1 -0
- package/dist/engine/importExport.test.d.ts +1 -0
- package/dist/engine/importExport.test.js +25 -0
- package/dist/engine/importExport.test.js.map +1 -0
- package/dist/engine/intents.d.ts +38 -90
- package/dist/engine/intents.js +50 -0
- package/dist/engine/intents.js.map +1 -0
- package/dist/engine/intents.test.d.ts +1 -0
- package/dist/engine/intents.test.js +14 -0
- package/dist/engine/intents.test.js.map +1 -0
- package/dist/engine/localizationKeys.d.ts +15 -50
- package/dist/engine/localizationKeys.js +28 -0
- package/dist/engine/localizationKeys.js.map +1 -0
- package/dist/engine/localizationKeys.test.d.ts +1 -0
- package/dist/engine/localizationKeys.test.js +14 -0
- package/dist/engine/localizationKeys.test.js.map +1 -0
- package/dist/engine/media.d.ts +10 -48
- package/dist/engine/media.js +30 -0
- package/dist/engine/media.js.map +1 -0
- package/dist/engine/media.test.d.ts +1 -0
- package/dist/engine/media.test.js +14 -0
- package/dist/engine/media.test.js.map +1 -0
- package/dist/engine/memories.d.ts +20 -62
- package/dist/engine/memories.js +36 -0
- package/dist/engine/memories.js.map +1 -0
- package/dist/engine/memories.test.d.ts +1 -0
- package/dist/engine/memories.test.js +14 -0
- package/dist/engine/memories.test.js.map +1 -0
- package/dist/engine/nlp.d.ts +22 -66
- package/dist/engine/nlp.js +34 -0
- package/dist/engine/nlp.js.map +1 -0
- package/dist/engine/nlp.test.d.ts +1 -0
- package/dist/engine/nlp.test.js +14 -0
- package/dist/engine/nlp.test.js.map +1 -0
- package/dist/engine/people.d.ts +17 -46
- package/dist/engine/people.js +28 -0
- package/dist/engine/people.js.map +1 -0
- package/dist/engine/people.test.d.ts +1 -0
- package/dist/engine/people.test.js +14 -0
- package/dist/engine/people.test.js.map +1 -0
- package/dist/engine/promptedQuestions.d.ts +9 -37
- package/dist/engine/promptedQuestions.js +26 -0
- package/dist/engine/promptedQuestions.js.map +1 -0
- package/dist/engine/promptedQuestions.test.d.ts +1 -0
- package/dist/engine/promptedQuestions.test.js +14 -0
- package/dist/engine/promptedQuestions.test.js.map +1 -0
- package/dist/engine/search.d.ts +9 -30
- package/dist/engine/search.js +19 -0
- package/dist/engine/search.js.map +1 -0
- package/dist/engine/search.test.d.ts +1 -0
- package/dist/engine/search.test.js +14 -0
- package/dist/engine/search.test.js.map +1 -0
- package/dist/engine/session.d.ts +12 -28
- package/dist/engine/session.js +19 -0
- package/dist/engine/session.js.map +1 -0
- package/dist/engine/session.test.d.ts +1 -0
- package/dist/engine/session.test.js +14 -0
- package/dist/engine/session.test.js.map +1 -0
- package/dist/engine/stats.d.ts +27 -92
- package/dist/engine/stats.js +30 -0
- package/dist/engine/stats.js.map +1 -0
- package/dist/engine/stats.test.d.ts +1 -0
- package/dist/engine/stats.test.js +14 -0
- package/dist/engine/stats.test.js.map +1 -0
- package/dist/engine/unansweredQuestions.d.ts +15 -38
- package/dist/engine/unansweredQuestions.js +23 -0
- package/dist/engine/unansweredQuestions.js.map +1 -0
- package/dist/engine/unansweredQuestions.test.d.ts +1 -0
- package/dist/engine/unansweredQuestions.test.js +14 -0
- package/dist/engine/unansweredQuestions.test.js.map +1 -0
- package/dist/engine.d.ts +501 -473
- package/dist/engine.js +57 -0
- package/dist/engine.js.map +1 -0
- package/dist/helpers/asset.d.ts +10 -20
- package/dist/helpers/asset.js +29 -0
- package/dist/helpers/asset.js.map +1 -0
- package/dist/helpers/asset.test.d.ts +1 -0
- package/dist/helpers/asset.test.js +68 -0
- package/dist/helpers/asset.test.js.map +1 -0
- package/dist/helpers/getApiUrl.d.ts +1 -1
- package/dist/helpers/getApiUrl.js +9 -0
- package/dist/helpers/getApiUrl.js.map +1 -0
- package/dist/helpers/getApiUrl.test.d.ts +1 -0
- package/dist/helpers/getApiUrl.test.js +15 -0
- package/dist/helpers/getApiUrl.test.js.map +1 -0
- package/dist/index.d.ts +850 -810
- package/dist/index.js +19 -8
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +627 -897
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/esm/apiFetcher.d.ts +7 -0
- package/esm/apiFetcher.js +12 -0
- package/esm/apiFetcher.js.map +1 -0
- package/esm/backend/asset.d.ts +13 -0
- package/esm/backend/asset.js +29 -0
- package/esm/backend/asset.js.map +1 -0
- package/esm/backend/asset.test.d.ts +1 -0
- package/esm/backend/asset.test.js +11 -0
- package/esm/backend/asset.test.js.map +1 -0
- package/esm/backend/consumptionLogs.d.ts +13 -0
- package/esm/backend/consumptionLogs.js +13 -0
- package/esm/backend/consumptionLogs.js.map +1 -0
- package/esm/backend/consumptionLogs.test.d.ts +1 -0
- package/esm/backend/consumptionLogs.test.js +11 -0
- package/esm/backend/consumptionLogs.test.js.map +1 -0
- package/esm/backend/integration.d.ts +20 -0
- package/esm/backend/integration.js +27 -0
- package/esm/backend/integration.js.map +1 -0
- package/esm/backend/integration.test.d.ts +1 -0
- package/esm/backend/integration.test.js +11 -0
- package/esm/backend/integration.test.js.map +1 -0
- package/esm/backend/invitation.d.ts +34 -0
- package/esm/backend/invitation.js +41 -0
- package/esm/backend/invitation.js.map +1 -0
- package/esm/backend/invitation.test.d.ts +1 -0
- package/esm/backend/invitation.test.js +11 -0
- package/esm/backend/invitation.test.js.map +1 -0
- package/esm/backend/memori.d.ts +61 -0
- package/esm/backend/memori.js +70 -0
- package/esm/backend/memori.js.map +1 -0
- package/esm/backend/memori.test.d.ts +1 -0
- package/esm/backend/memori.test.js +11 -0
- package/esm/backend/memori.test.js.map +1 -0
- package/esm/backend/notifications.d.ts +10 -0
- package/esm/backend/notifications.js +10 -0
- package/esm/backend/notifications.js.map +1 -0
- package/esm/backend/notifications.test.d.ts +1 -0
- package/esm/backend/notifications.test.js +11 -0
- package/esm/backend/notifications.test.js.map +1 -0
- package/esm/backend/user.d.ts +41 -0
- package/esm/backend/user.js +66 -0
- package/esm/backend/user.js.map +1 -0
- package/esm/backend/user.test.d.ts +1 -0
- package/esm/backend/user.test.js +11 -0
- package/esm/backend/user.test.js.map +1 -0
- package/esm/backend.d.ts +345 -0
- package/esm/backend.js +25 -0
- package/esm/backend.js.map +1 -0
- package/esm/client.test.d.ts +1 -0
- package/esm/client.test.js +29 -0
- package/esm/client.test.js.map +1 -0
- package/esm/constants.d.ts +2 -0
- package/esm/constants.js +21 -0
- package/esm/constants.js.map +1 -0
- package/esm/constants.test.d.ts +1 -0
- package/esm/constants.test.js +11 -0
- package/esm/constants.test.js.map +1 -0
- package/esm/engine/chatLogs.d.ts +12 -0
- package/esm/engine/chatLogs.js +20 -0
- package/esm/engine/chatLogs.js.map +1 -0
- package/esm/engine/chatLogs.test.d.ts +1 -0
- package/esm/engine/chatLogs.test.js +11 -0
- package/esm/engine/chatLogs.test.js.map +1 -0
- package/esm/engine/contextVars.d.ts +14 -0
- package/esm/engine/contextVars.js +16 -0
- package/esm/engine/contextVars.js.map +1 -0
- package/esm/engine/contextVars.test.d.ts +1 -0
- package/esm/engine/contextVars.test.js +11 -0
- package/esm/engine/contextVars.test.js.map +1 -0
- package/esm/engine/correlationPairs.d.ts +11 -0
- package/esm/engine/correlationPairs.js +17 -0
- package/esm/engine/correlationPairs.js.map +1 -0
- package/esm/engine/correlationPairs.test.d.ts +1 -0
- package/esm/engine/correlationPairs.test.js +11 -0
- package/esm/engine/correlationPairs.test.js.map +1 -0
- package/esm/engine/customDictionary.d.ts +17 -0
- package/esm/engine/customDictionary.js +26 -0
- package/esm/engine/customDictionary.js.map +1 -0
- package/esm/engine/customDictionary.test.d.ts +1 -0
- package/esm/engine/customDictionary.test.js +11 -0
- package/esm/engine/customDictionary.test.js.map +1 -0
- package/esm/engine/dialog.d.ts +32 -0
- package/esm/engine/dialog.js +51 -0
- package/esm/engine/dialog.js.map +1 -0
- package/esm/engine/dialog.test.d.ts +1 -0
- package/esm/engine/dialog.test.js +17 -0
- package/esm/engine/dialog.test.js.map +1 -0
- package/esm/engine/importExport.d.ts +20 -0
- package/esm/engine/importExport.js +38 -0
- package/esm/engine/importExport.js.map +1 -0
- package/esm/engine/importExport.test.d.ts +1 -0
- package/esm/engine/importExport.test.js +22 -0
- package/esm/engine/importExport.test.js.map +1 -0
- package/esm/engine/intents.d.ts +38 -0
- package/esm/engine/intents.js +48 -0
- package/esm/engine/intents.js.map +1 -0
- package/esm/engine/intents.test.d.ts +1 -0
- package/esm/engine/intents.test.js +11 -0
- package/esm/engine/intents.test.js.map +1 -0
- package/esm/engine/localizationKeys.d.ts +15 -0
- package/esm/engine/localizationKeys.js +26 -0
- package/esm/engine/localizationKeys.js.map +1 -0
- package/esm/engine/localizationKeys.test.d.ts +1 -0
- package/esm/engine/localizationKeys.test.js +11 -0
- package/esm/engine/localizationKeys.test.js.map +1 -0
- package/esm/engine/media.d.ts +10 -0
- package/esm/engine/media.js +28 -0
- package/esm/engine/media.js.map +1 -0
- package/esm/engine/media.test.d.ts +1 -0
- package/esm/engine/media.test.js +11 -0
- package/esm/engine/media.test.js.map +1 -0
- package/esm/engine/memories.d.ts +20 -0
- package/esm/engine/memories.js +34 -0
- package/esm/engine/memories.js.map +1 -0
- package/esm/engine/memories.test.d.ts +1 -0
- package/esm/engine/memories.test.js +11 -0
- package/esm/engine/memories.test.js.map +1 -0
- package/esm/engine/nlp.d.ts +22 -0
- package/esm/engine/nlp.js +32 -0
- package/esm/engine/nlp.js.map +1 -0
- package/esm/engine/nlp.test.d.ts +1 -0
- package/esm/engine/nlp.test.js +11 -0
- package/esm/engine/nlp.test.js.map +1 -0
- package/esm/engine/people.d.ts +17 -0
- package/esm/engine/people.js +26 -0
- package/esm/engine/people.js.map +1 -0
- package/esm/engine/people.test.d.ts +1 -0
- package/esm/engine/people.test.js +11 -0
- package/esm/engine/people.test.js.map +1 -0
- package/esm/engine/promptedQuestions.d.ts +9 -0
- package/esm/engine/promptedQuestions.js +24 -0
- package/esm/engine/promptedQuestions.js.map +1 -0
- package/esm/engine/promptedQuestions.test.d.ts +1 -0
- package/esm/engine/promptedQuestions.test.js +11 -0
- package/esm/engine/promptedQuestions.test.js.map +1 -0
- package/esm/engine/search.d.ts +9 -0
- package/esm/engine/search.js +17 -0
- package/esm/engine/search.js.map +1 -0
- package/esm/engine/search.test.d.ts +1 -0
- package/esm/engine/search.test.js +11 -0
- package/esm/engine/search.test.js.map +1 -0
- package/esm/engine/session.d.ts +12 -0
- package/esm/engine/session.js +17 -0
- package/esm/engine/session.js.map +1 -0
- package/esm/engine/session.test.d.ts +1 -0
- package/esm/engine/session.test.js +11 -0
- package/esm/engine/session.test.js.map +1 -0
- package/esm/engine/stats.d.ts +27 -0
- package/esm/engine/stats.js +28 -0
- package/esm/engine/stats.js.map +1 -0
- package/esm/engine/stats.test.d.ts +1 -0
- package/esm/engine/stats.test.js +11 -0
- package/esm/engine/stats.test.js.map +1 -0
- package/esm/engine/unansweredQuestions.d.ts +15 -0
- package/esm/engine/unansweredQuestions.js +21 -0
- package/esm/engine/unansweredQuestions.js.map +1 -0
- package/esm/engine/unansweredQuestions.test.d.ts +1 -0
- package/esm/engine/unansweredQuestions.test.js +11 -0
- package/esm/engine/unansweredQuestions.test.js.map +1 -0
- package/esm/engine.d.ts +501 -0
- package/esm/engine.js +54 -0
- package/esm/engine.js.map +1 -0
- package/esm/helpers/asset.d.ts +10 -0
- package/esm/helpers/asset.js +27 -0
- package/esm/helpers/asset.js.map +1 -0
- package/esm/helpers/asset.test.d.ts +1 -0
- package/esm/helpers/asset.test.js +65 -0
- package/esm/helpers/asset.test.js.map +1 -0
- package/esm/helpers/getApiUrl.d.ts +1 -0
- package/esm/helpers/getApiUrl.js +5 -0
- package/esm/helpers/getApiUrl.js.map +1 -0
- package/esm/helpers/getApiUrl.test.d.ts +1 -0
- package/esm/helpers/getApiUrl.test.js +13 -0
- package/esm/helpers/getApiUrl.test.js.map +1 -0
- package/esm/index.d.ts +850 -0
- package/esm/index.js +16 -0
- package/esm/index.js.map +1 -0
- package/esm/types.d.ts +627 -0
- package/esm/types.js +2 -0
- package/esm/types.js.map +1 -0
- package/package.json +112 -46
- package/src/backend/asset.test.ts +23 -0
- package/src/backend/consumptionLogs.test.ts +25 -0
- package/src/backend/integration.test.ts +23 -0
- package/src/backend/invitation.test.ts +23 -0
- package/src/backend/memori.test.ts +23 -0
- package/src/backend/notifications.test.ts +21 -0
- package/src/backend/user.test.ts +23 -0
- package/src/client.test.ts +48 -0
- package/src/constants.test.ts +12 -0
- package/src/engine/chatLogs.test.ts +17 -0
- package/src/engine/contextVars.test.ts +19 -0
- package/src/engine/correlationPairs.test.ts +19 -0
- package/src/engine/customDictionary.test.ts +19 -0
- package/src/engine/dialog.test.ts +23 -0
- package/src/engine/importExport.test.ts +38 -0
- package/src/engine/importExport.ts +36 -6
- package/src/engine/intents.test.ts +23 -0
- package/src/engine/localizationKeys.test.ts +23 -0
- package/src/engine/media.test.ts +23 -0
- package/src/engine/memories.test.ts +17 -0
- package/src/engine/nlp.test.ts +23 -0
- package/src/engine/people.test.ts +23 -0
- package/src/engine/promptedQuestions.test.ts +23 -0
- package/src/engine/search.test.ts +17 -0
- package/src/engine/session.test.ts +17 -0
- package/src/engine/stats.test.ts +17 -0
- package/src/engine/unansweredQuestions.test.ts +21 -0
- package/src/helpers/asset.test.ts +116 -0
- package/src/helpers/getApiUrl.test.ts +15 -0
- package/src/{types.ts → types.d.ts} +57 -50
- package/dist/memori-api-client.cjs.development.js +0 -4279
- package/dist/memori-api-client.cjs.development.js.map +0 -1
- package/dist/memori-api-client.cjs.production.min.js +0 -2
- package/dist/memori-api-client.cjs.production.min.js.map +0 -1
- package/dist/memori-api-client.esm.js +0 -4273
- package/dist/memori-api-client.esm.js.map +0 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,897 +1,627 @@
|
|
|
1
|
-
export declare type Error = {
|
|
2
|
-
code: number;
|
|
3
|
-
message: string;
|
|
4
|
-
};
|
|
5
|
-
export declare type ResponseSpec = {
|
|
6
|
-
requestID: string;
|
|
7
|
-
requestDateTime: string;
|
|
8
|
-
resultCode: number;
|
|
9
|
-
resultMessage: string;
|
|
10
|
-
};
|
|
11
|
-
export declare type MemoriConfig = {
|
|
12
|
-
memoriConfigID: string;
|
|
13
|
-
useCase: string;
|
|
14
|
-
culture: string;
|
|
15
|
-
descriptions?: {
|
|
16
|
-
[lang: string]: string;
|
|
17
|
-
};
|
|
18
|
-
dialogExamples?: {
|
|
19
|
-
[lang: string]: string;
|
|
20
|
-
};
|
|
21
|
-
logoURL?: string;
|
|
22
|
-
};
|
|
23
|
-
export declare type Memori = {
|
|
24
|
-
memoriID: string;
|
|
25
|
-
name: string;
|
|
26
|
-
password?: string;
|
|
27
|
-
recoveryTokens?: string[];
|
|
28
|
-
newPassword?: string;
|
|
29
|
-
ownerUserID?: string;
|
|
30
|
-
ownerTenantName?: string;
|
|
31
|
-
memoriConfigurationID: string;
|
|
32
|
-
description: string;
|
|
33
|
-
engineMemoriID?: string;
|
|
34
|
-
isGiver?: boolean;
|
|
35
|
-
isReceiver?: boolean;
|
|
36
|
-
giverTag?: string;
|
|
37
|
-
giverPIN?: string;
|
|
38
|
-
privacyType: 'PUBLIC' | 'PRIVATE' | 'SECRET';
|
|
39
|
-
secretToken?: string;
|
|
40
|
-
minimumNumberOfRecoveryTokens?: number;
|
|
41
|
-
totalNumberOfRecoveryTokens?: number;
|
|
42
|
-
avatarURL?: string;
|
|
43
|
-
coverURL?: string;
|
|
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
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
-
export declare type
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
};
|
|
178
|
-
export
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
};
|
|
233
|
-
export declare type
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
};
|
|
281
|
-
export declare type
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
};
|
|
395
|
-
export declare type
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
};
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
};
|
|
553
|
-
export
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
pairID?: string;
|
|
629
|
-
text1: string;
|
|
630
|
-
text2: string;
|
|
631
|
-
correlated: boolean;
|
|
632
|
-
occurrencies?: number;
|
|
633
|
-
};
|
|
634
|
-
export declare type Utterance = {
|
|
635
|
-
/**
|
|
636
|
-
* Utterance object ID.
|
|
637
|
-
*/
|
|
638
|
-
utteranceID?: string;
|
|
639
|
-
/**
|
|
640
|
-
* Accepted Utterance object for its corresponding intent,
|
|
641
|
-
* i.e. the text sentece that can be used to express the intent.
|
|
642
|
-
* An Utterance may include variable parts in the sentence by the use of one or more slots.
|
|
643
|
-
* Slots are specified using the syntax {slot}, where "slot" is the slot name.
|
|
644
|
-
* If present, their value is part of the IntentWebHookRequest passed to the web hook.
|
|
645
|
-
* Each slot can be present only once in the sentence, and must have been previously defined with a Intent Slot object.
|
|
646
|
-
* A special slot is the {date} slot, which represents a period of time such as "today", "yesterday", "last week", "next month" etc.
|
|
647
|
-
* Its values is passed in the IntentWebHookRequest as the BeginUTC and EndUTC properties.
|
|
648
|
-
*/
|
|
649
|
-
text: string;
|
|
650
|
-
/**
|
|
651
|
-
* Timestamp of creation.
|
|
652
|
-
* Always present when reading/receiving an object,
|
|
653
|
-
* ignored when writing/sending an object.
|
|
654
|
-
*/
|
|
655
|
-
creationTimestamp?: string;
|
|
656
|
-
/**
|
|
657
|
-
* ID of the session that created this object.
|
|
658
|
-
*/
|
|
659
|
-
creationSessionID?: string;
|
|
660
|
-
/**
|
|
661
|
-
* Timestamp of latest change.
|
|
662
|
-
* Always present when reading/receiving an object,
|
|
663
|
-
* ignored when writing/sending an object.
|
|
664
|
-
*/
|
|
665
|
-
lastChangeTimestamp?: string;
|
|
666
|
-
/**
|
|
667
|
-
* ID of the latest session that changed this object.
|
|
668
|
-
*/
|
|
669
|
-
lastChangeSessionID?: string;
|
|
670
|
-
};
|
|
671
|
-
export declare type Intent = {
|
|
672
|
-
/**
|
|
673
|
-
* Intent object ID.
|
|
674
|
-
*/
|
|
675
|
-
intentID?: string;
|
|
676
|
-
/**
|
|
677
|
-
* Memory type, e.g. Internal or WebHook.
|
|
678
|
-
* Internal intents are a limited subset implemented internally,
|
|
679
|
-
* while WebHook intents perform an external HTTP POST call to the specified web hook,
|
|
680
|
-
* passing an IntentWebHookRequest and expecting an IntentWebHookRespose in response.
|
|
681
|
-
* When updating an existing intent, this property is ignored.
|
|
682
|
-
*/
|
|
683
|
-
intentType?: 'Internal' | 'WebHook';
|
|
684
|
-
/**
|
|
685
|
-
* Name of the Intent object.
|
|
686
|
-
* It is part of the IntentWebHookRequest request passed to the web hook.
|
|
687
|
-
*/
|
|
688
|
-
name: string;
|
|
689
|
-
/**
|
|
690
|
-
* List of accepted Utterance objects for this Intent,
|
|
691
|
-
* i.e. the list of text senteces that can be used to express the intent.
|
|
692
|
-
* Utterances may include variable parts in the sentence by the use of one or more slots.
|
|
693
|
-
* Slots are specified using the syntax {slot}, where "slot" is the slot name.
|
|
694
|
-
* If present, their value is part of the IntentWebHookRequest passed to the web hook.
|
|
695
|
-
* Each slot can be present only once in the sentence, and must have been previously defined with a Intent Slot object.
|
|
696
|
-
* A special slot is the {date} slot, which represents a period of time such as "today", "yesterday", "last week", "next month" etc.
|
|
697
|
-
* Its values is passed in the IntentWebHookRequest as the BeginUTC and EndUTC properties.
|
|
698
|
-
*/
|
|
699
|
-
utterances: Utterance[];
|
|
700
|
-
/**
|
|
701
|
-
* If True this Intent may be executed to serve a Timeout event in R1 state.
|
|
702
|
-
* In this case the utterance is null.
|
|
703
|
-
* In case more than one Intent have this flag set, a random one is picked.
|
|
704
|
-
*/
|
|
705
|
-
timeoutIntent?: boolean;
|
|
706
|
-
/**
|
|
707
|
-
* HTTP URL of the web hook to be called when the intent is recognized.
|
|
708
|
-
* If the intent is of Internal type, it is ignored.
|
|
709
|
-
*/
|
|
710
|
-
webHook?: string;
|
|
711
|
-
/**
|
|
712
|
-
* Time to cache the intent response, expressed in minutes.
|
|
713
|
-
* May be fractional. A minimum of 0.1 minutes (i.e. 6 seconds) is always applied.
|
|
714
|
-
* A cached intent response is used only when the a subsequent intent request matches exactly the original request.
|
|
715
|
-
* See also RequestValidityMinutes in WebHookRequest.
|
|
716
|
-
*/
|
|
717
|
-
validityMinutes?: number;
|
|
718
|
-
/**
|
|
719
|
-
* Timestamp of creation.
|
|
720
|
-
* Always present when reading/receiving an object,
|
|
721
|
-
* ignored when writing/sending an object.
|
|
722
|
-
*/
|
|
723
|
-
creationTimestamp?: string;
|
|
724
|
-
/**
|
|
725
|
-
* ID of the session that created this object.
|
|
726
|
-
*/
|
|
727
|
-
creationSessionID?: string;
|
|
728
|
-
/**
|
|
729
|
-
* Timestamp of latest change.
|
|
730
|
-
* Always present when reading/receiving an object,
|
|
731
|
-
* ignored when writing/sending an object.
|
|
732
|
-
*/
|
|
733
|
-
lastChangeTimestamp?: string;
|
|
734
|
-
/**
|
|
735
|
-
* ID of the latest session that changed this object.
|
|
736
|
-
*/
|
|
737
|
-
lastChangeSessionID?: string;
|
|
738
|
-
};
|
|
739
|
-
export declare type IntentSlot = {
|
|
740
|
-
/**
|
|
741
|
-
* Intent Slot object ID.
|
|
742
|
-
*/
|
|
743
|
-
intentSlotID?: string;
|
|
744
|
-
/**
|
|
745
|
-
* Name of the Intent Slot object.
|
|
746
|
-
* It is part of the SlotWebHookRequest request passed to the web hook.
|
|
747
|
-
*/
|
|
748
|
-
name: string;
|
|
749
|
-
/**
|
|
750
|
-
* List of possible values of the slot.
|
|
751
|
-
* A slot may be composed of fixed values in this property,
|
|
752
|
-
* dynamic values fetched from the web hook, or a combination of both.
|
|
753
|
-
* Each value is considered only onces (duplicate values are ignored).
|
|
754
|
-
*/
|
|
755
|
-
values?: string[];
|
|
756
|
-
/**
|
|
757
|
-
* HTTP URL of the web hook to be called when the slot values must be fetched.
|
|
758
|
-
* May be null if the slot is composed only of fixed values in the Values property.
|
|
759
|
-
* If specified, the web hook is called periodically with an HTTP POST call,
|
|
760
|
-
* passing a SlotWebHookRequest and expecting a SlotWebHookRespose in response.
|
|
761
|
-
* Periodicity is determined by the ValidityMinutes property.
|
|
762
|
-
*/
|
|
763
|
-
webHook?: string;
|
|
764
|
-
/**
|
|
765
|
-
* Time to cache the slot values, expressed in minutes.
|
|
766
|
-
* May be fractional. A minimum of 0.5 minutes (i.e. 30 seconds) is always applied.
|
|
767
|
-
* See also RequestValidityMinutes in WebHookRequest.
|
|
768
|
-
*/
|
|
769
|
-
validityMinutes?: number;
|
|
770
|
-
/**
|
|
771
|
-
* Timestamp of creation.
|
|
772
|
-
* Always present when reading/receiving an object,
|
|
773
|
-
* ignored when writing/sending an object.
|
|
774
|
-
*/
|
|
775
|
-
creationTimestamp?: string;
|
|
776
|
-
/**
|
|
777
|
-
* ID of the session that created this object.
|
|
778
|
-
*/
|
|
779
|
-
creationSessionID?: string;
|
|
780
|
-
/**
|
|
781
|
-
* Timestamp of latest change.
|
|
782
|
-
* Always present when reading/receiving an object,
|
|
783
|
-
* ignored when writing/sending an object.
|
|
784
|
-
*/
|
|
785
|
-
lastChangeTimestamp?: string;
|
|
786
|
-
/**
|
|
787
|
-
* ID of the latest session that changed this object.
|
|
788
|
-
*/
|
|
789
|
-
lastChangeSessionID?: string;
|
|
790
|
-
};
|
|
791
|
-
export declare type CustomWord = {
|
|
792
|
-
customWordID: string;
|
|
793
|
-
word: string;
|
|
794
|
-
/**
|
|
795
|
-
* Definition of the Custom Word, in terms of sums and subtractions of existing words or custom words.
|
|
796
|
-
* The syntax for a Custom Word definition is as follows: word1 [+-] word2 [+-] word3...
|
|
797
|
-
* If the operator is omitted it is assumed to be the last specified from the left, and if no operator has been specified it is assumed to be the sum.
|
|
798
|
-
* E.g.:
|
|
799
|
-
* - alpha beta gamma is equivalent to alpha + beta + gamma
|
|
800
|
-
* - alpha beta - gamma deta is equivalent to alpha + beta - gamma - delta
|
|
801
|
-
*/
|
|
802
|
-
definition: string;
|
|
803
|
-
creationTimestamp: string;
|
|
804
|
-
creationSessionID: string;
|
|
805
|
-
lastChangeTimestamp: string;
|
|
806
|
-
lastChangeSessionID: string;
|
|
807
|
-
};
|
|
808
|
-
export interface ImportCSVParams {
|
|
809
|
-
hasHeaders?: boolean;
|
|
810
|
-
headerNames?: string[];
|
|
811
|
-
questionColumnName: string;
|
|
812
|
-
answerColumnName: string;
|
|
813
|
-
contextVarsToMatchColumnName?: string;
|
|
814
|
-
contextVarsToSetColumnName?: string;
|
|
815
|
-
csvSeparator?: string;
|
|
816
|
-
questionTitleVariantsSeparator?: string;
|
|
817
|
-
}
|
|
818
|
-
export interface ImportTxtParams {
|
|
819
|
-
newLinesPerParagraphs?: number;
|
|
820
|
-
}
|
|
821
|
-
export interface ImportParams {
|
|
822
|
-
includedRows?: number[];
|
|
823
|
-
forceImport?: boolean;
|
|
824
|
-
csvSpecs?: ImportCSVParams;
|
|
825
|
-
txtSpecs?: ImportTxtParams;
|
|
826
|
-
}
|
|
827
|
-
export interface ExportCSVParams {
|
|
828
|
-
newLine: '\n' | '\r\n';
|
|
829
|
-
hasHeaders?: boolean;
|
|
830
|
-
questionColumnName: string;
|
|
831
|
-
answerColumnName: string;
|
|
832
|
-
contextVarsToMatchColumnName?: string;
|
|
833
|
-
contextVarsToSetColumnName?: string;
|
|
834
|
-
csvSeparator?: string;
|
|
835
|
-
questionTitleVariantsSeparator?: string;
|
|
836
|
-
}
|
|
837
|
-
export interface ImportWarning {
|
|
838
|
-
warningType: 'Existing Similar Memory' | 'Internal Error';
|
|
839
|
-
rowNumber?: number;
|
|
840
|
-
row: string;
|
|
841
|
-
text?: string;
|
|
842
|
-
similarTexts?: {
|
|
843
|
-
text: string;
|
|
844
|
-
similarityLevel: 'HIGH' | 'MEDIUM' | 'LOW';
|
|
845
|
-
}[];
|
|
846
|
-
}
|
|
847
|
-
export interface ImportReponse {
|
|
848
|
-
importID: string;
|
|
849
|
-
status: {
|
|
850
|
-
/**
|
|
851
|
-
* @type {string}
|
|
852
|
-
* minLength: 1
|
|
853
|
-
* Current status of the Import process (starting, running etc.).
|
|
854
|
-
* May be one of the following:
|
|
855
|
-
* - Starting: the Import process is preparing to start, but has not started yet. Will advance to Running automatically.
|
|
856
|
-
* - Running: the Import process has been started and is actively processing Memory objects.
|
|
857
|
-
* - Stopped: the Import process has been stopped manually, not all Memory objects may have been processed.
|
|
858
|
-
* - Completed: the Import process finished successfully, all the Memory objects have been processed.
|
|
859
|
-
* - Failed: the Import process terminated due to an unexpected error, not all Memory objects may have been processed.
|
|
860
|
-
*/
|
|
861
|
-
status: 'Starting' | 'Running' | 'Stopped' | 'Completed' | 'Failed';
|
|
862
|
-
/**
|
|
863
|
-
* @type {string=}
|
|
864
|
-
* If the Status is Failed, reports the error that caused the Import process to fail. Null otherwise.
|
|
865
|
-
*/
|
|
866
|
-
error?: string;
|
|
867
|
-
/**
|
|
868
|
-
* @type {number}
|
|
869
|
-
* Progress of the Import process as a fraction of 1.
|
|
870
|
-
*/
|
|
871
|
-
progress: number;
|
|
872
|
-
/**
|
|
873
|
-
* @type {string=}
|
|
874
|
-
* Timestamp of start of the Import process. Null until the Import process is in Starting status.
|
|
875
|
-
*/
|
|
876
|
-
begin?: string;
|
|
877
|
-
/**
|
|
878
|
-
* @type {string=}
|
|
879
|
-
* Timestamp of end of the Import process. Null until the Import process is in Starting or Running status.
|
|
880
|
-
*/
|
|
881
|
-
end?: string;
|
|
882
|
-
/**
|
|
883
|
-
* @type {number=}
|
|
884
|
-
* Estimated time required to complete the Import process, in seconds.
|
|
885
|
-
*/
|
|
886
|
-
eta?: number;
|
|
887
|
-
/**
|
|
888
|
-
* @type {number=}
|
|
889
|
-
* Number of Imported Memory objects so far.
|
|
890
|
-
*/
|
|
891
|
-
importedMemories?: number;
|
|
892
|
-
/**
|
|
893
|
-
* List of Import Warning objects. May be empty.
|
|
894
|
-
*/
|
|
895
|
-
importWarnings?: ImportWarning[];
|
|
896
|
-
};
|
|
897
|
-
}
|
|
1
|
+
export declare type Error = {
|
|
2
|
+
code: number;
|
|
3
|
+
message: string;
|
|
4
|
+
};
|
|
5
|
+
export declare type ResponseSpec = {
|
|
6
|
+
requestID: string;
|
|
7
|
+
requestDateTime: string;
|
|
8
|
+
resultCode: number;
|
|
9
|
+
resultMessage: string;
|
|
10
|
+
};
|
|
11
|
+
export declare type MemoriConfig = {
|
|
12
|
+
memoriConfigID: string;
|
|
13
|
+
useCase: string;
|
|
14
|
+
culture: string;
|
|
15
|
+
descriptions?: {
|
|
16
|
+
[lang: string]: string;
|
|
17
|
+
};
|
|
18
|
+
dialogExamples?: {
|
|
19
|
+
[lang: string]: string;
|
|
20
|
+
};
|
|
21
|
+
logoURL?: string;
|
|
22
|
+
};
|
|
23
|
+
export declare type Memori = {
|
|
24
|
+
memoriID: string;
|
|
25
|
+
name: string;
|
|
26
|
+
password?: string;
|
|
27
|
+
recoveryTokens?: string[];
|
|
28
|
+
newPassword?: string;
|
|
29
|
+
ownerUserID?: string;
|
|
30
|
+
ownerTenantName?: string;
|
|
31
|
+
memoriConfigurationID: string;
|
|
32
|
+
description: string;
|
|
33
|
+
engineMemoriID?: string;
|
|
34
|
+
isGiver?: boolean;
|
|
35
|
+
isReceiver?: boolean;
|
|
36
|
+
giverTag?: string;
|
|
37
|
+
giverPIN?: string;
|
|
38
|
+
privacyType: 'PUBLIC' | 'PRIVATE' | 'SECRET';
|
|
39
|
+
secretToken?: string;
|
|
40
|
+
minimumNumberOfRecoveryTokens?: number;
|
|
41
|
+
totalNumberOfRecoveryTokens?: number;
|
|
42
|
+
avatarURL?: string;
|
|
43
|
+
coverURL?: string;
|
|
44
|
+
avatar3DURL?: string;
|
|
45
|
+
avatarOriginal3DURL?: string;
|
|
46
|
+
needsPosition?: boolean;
|
|
47
|
+
voiceType: string;
|
|
48
|
+
culture?: string;
|
|
49
|
+
publishedInTheMetaverse?: boolean;
|
|
50
|
+
metaverseEnvironment?: string;
|
|
51
|
+
exposed?: boolean;
|
|
52
|
+
disableR2R3Loop?: boolean;
|
|
53
|
+
disableR4Loop?: boolean;
|
|
54
|
+
disableR5Loop?: boolean;
|
|
55
|
+
enableCompletions?: boolean;
|
|
56
|
+
completionDescription?: string;
|
|
57
|
+
chainingMemoriID?: string;
|
|
58
|
+
chainingBaseURL?: string;
|
|
59
|
+
chainingPassword?: string;
|
|
60
|
+
properties?: {
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
};
|
|
63
|
+
creationTimestamp?: string;
|
|
64
|
+
lastChangeTimestamp?: string;
|
|
65
|
+
blockedUntil?: string;
|
|
66
|
+
integrations?: Integration[];
|
|
67
|
+
sentInvitations?: Invitation[];
|
|
68
|
+
receivedInvitations?: Invitation[];
|
|
69
|
+
categories?: string[];
|
|
70
|
+
ownerUserName?: string;
|
|
71
|
+
gamificationLevel?: GamificationLevel;
|
|
72
|
+
contentQualityIndex?: number;
|
|
73
|
+
contentQualityIndexTimestamp?: string;
|
|
74
|
+
};
|
|
75
|
+
export declare type Venue = {
|
|
76
|
+
placeName: string;
|
|
77
|
+
latitude: number;
|
|
78
|
+
longitude: number;
|
|
79
|
+
uncertainty?: number;
|
|
80
|
+
};
|
|
81
|
+
export declare type NotificationPrefs = {
|
|
82
|
+
chatLogExtractionPeriod?: 'None' | 'Hourly' | 'Daily' | 'Weekly';
|
|
83
|
+
chatLogExtractionMinLines?: number;
|
|
84
|
+
memoriID?: string;
|
|
85
|
+
};
|
|
86
|
+
export declare type User = {
|
|
87
|
+
tenant?: string;
|
|
88
|
+
userID?: string;
|
|
89
|
+
userName?: string;
|
|
90
|
+
password?: string;
|
|
91
|
+
newPassword?: string;
|
|
92
|
+
eMail?: string;
|
|
93
|
+
admin?: boolean;
|
|
94
|
+
superAdmin?: boolean;
|
|
95
|
+
verificationCode?: string;
|
|
96
|
+
dontSendInvitationEmail?: boolean;
|
|
97
|
+
flowID?: string;
|
|
98
|
+
newsletterSubscribed?: boolean;
|
|
99
|
+
maxMemori?: number;
|
|
100
|
+
numMemori?: number;
|
|
101
|
+
canCreateMemori?: boolean;
|
|
102
|
+
canAccessAPI?: boolean;
|
|
103
|
+
canRunSnippets?: boolean;
|
|
104
|
+
canEditIntegrations?: boolean;
|
|
105
|
+
canEditDynamicIntents?: boolean;
|
|
106
|
+
canEditMemoriChaining?: boolean;
|
|
107
|
+
monthSessions?: number;
|
|
108
|
+
monthValidSessions?: number;
|
|
109
|
+
maxFreeSessions?: number;
|
|
110
|
+
nonFreeSessionCost?: number;
|
|
111
|
+
monthCompletions?: number;
|
|
112
|
+
maxCompletions?: number;
|
|
113
|
+
creationTimestamp?: string;
|
|
114
|
+
lastChangeTimestamp?: string;
|
|
115
|
+
referral?: string;
|
|
116
|
+
couponCode?: string;
|
|
117
|
+
paying?: boolean;
|
|
118
|
+
notificationPrefs?: NotificationPrefs[];
|
|
119
|
+
};
|
|
120
|
+
export declare type IntegrationResource = {
|
|
121
|
+
name: string;
|
|
122
|
+
url: string;
|
|
123
|
+
};
|
|
124
|
+
export declare type IntegrationType = 'GOOGLE' | 'ALEXA' | 'LANDING_EXPERIENCE';
|
|
125
|
+
export declare type Integration = {
|
|
126
|
+
integrationID?: string;
|
|
127
|
+
memoriID?: string;
|
|
128
|
+
type: IntegrationType;
|
|
129
|
+
state?: 'NEW' | 'PROCESSING' | 'DONE' | 'REMOVED' | 'ERROR' | 'WAITING_MANUAL_ACTION' | 'DRAFT' | 'NOT_VALIDATED' | 'PUBLISHED';
|
|
130
|
+
publish?: boolean;
|
|
131
|
+
deviceEmails?: string[];
|
|
132
|
+
invocationText?: string;
|
|
133
|
+
jobID?: string;
|
|
134
|
+
customData?: string;
|
|
135
|
+
resources?: IntegrationResource[];
|
|
136
|
+
creationTimestamp?: string | Date;
|
|
137
|
+
lastChangeTimestamp?: string | Date;
|
|
138
|
+
dataResult?: {
|
|
139
|
+
[key: string]: any;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
export declare type PublicIntegrationListItem = {
|
|
143
|
+
integration: Integration;
|
|
144
|
+
memori: Memori;
|
|
145
|
+
memoriUser: User;
|
|
146
|
+
remoteMemoriId?: string;
|
|
147
|
+
};
|
|
148
|
+
export interface RcFile extends File {
|
|
149
|
+
readonly lastModifiedDate: string | Date;
|
|
150
|
+
uid: string;
|
|
151
|
+
}
|
|
152
|
+
export declare type UploadFileStatus = 'error' | 'success' | 'done' | 'uploading' | 'removed';
|
|
153
|
+
export interface UploadFile<T = any> {
|
|
154
|
+
uid: string;
|
|
155
|
+
size?: number;
|
|
156
|
+
name: string;
|
|
157
|
+
fileName?: string;
|
|
158
|
+
lastModified?: number;
|
|
159
|
+
lastModifiedDate?: string | Date;
|
|
160
|
+
url?: string;
|
|
161
|
+
status?: UploadFileStatus;
|
|
162
|
+
percent?: number;
|
|
163
|
+
thumbUrl?: string;
|
|
164
|
+
originFileObj?: RcFile;
|
|
165
|
+
response?: T;
|
|
166
|
+
error?: any;
|
|
167
|
+
linkProps?: any;
|
|
168
|
+
type?: string;
|
|
169
|
+
xhr?: T;
|
|
170
|
+
preview?: string;
|
|
171
|
+
}
|
|
172
|
+
export declare type TenantConfig = {
|
|
173
|
+
name: string;
|
|
174
|
+
showNewUser: boolean;
|
|
175
|
+
requirePosition: boolean;
|
|
176
|
+
feedbackURL?: string;
|
|
177
|
+
};
|
|
178
|
+
export declare type Tenant = {
|
|
179
|
+
id: string;
|
|
180
|
+
theme: string;
|
|
181
|
+
config: TenantConfig;
|
|
182
|
+
disableRegistration?: boolean;
|
|
183
|
+
maxMemoriPerAdmin?: number;
|
|
184
|
+
maxMemoriPerUser?: number;
|
|
185
|
+
maxTotalMemori?: number;
|
|
186
|
+
memoriCount?: number;
|
|
187
|
+
maxAdmins?: number;
|
|
188
|
+
adminCount?: number;
|
|
189
|
+
maxUsers?: number;
|
|
190
|
+
userCount?: number;
|
|
191
|
+
usersCanCreateMemori?: boolean;
|
|
192
|
+
usersCanAccessAPI?: boolean;
|
|
193
|
+
usersCanEditIntegrations?: boolean;
|
|
194
|
+
usersCanEditDynamicIntents?: boolean;
|
|
195
|
+
usersCanEditMemoriChaining?: boolean;
|
|
196
|
+
maxFreeSessions?: number;
|
|
197
|
+
maxFreeSessionsPerUser?: number;
|
|
198
|
+
nonFreeSessionCost?: number;
|
|
199
|
+
maxCompletions?: number;
|
|
200
|
+
maxCompletionsPerUser?: number;
|
|
201
|
+
paying?: boolean;
|
|
202
|
+
};
|
|
203
|
+
export declare type OpenSession = {
|
|
204
|
+
memoriID: string;
|
|
205
|
+
password?: string;
|
|
206
|
+
recoveryTokens?: string[];
|
|
207
|
+
tag?: string;
|
|
208
|
+
pin?: string;
|
|
209
|
+
initialContextVars?: {
|
|
210
|
+
[key: string]: string;
|
|
211
|
+
};
|
|
212
|
+
initialQuestion?: string;
|
|
213
|
+
};
|
|
214
|
+
export declare type MemoriSession = {
|
|
215
|
+
sessionID: string;
|
|
216
|
+
currentState: DialogState;
|
|
217
|
+
stats?: Stats;
|
|
218
|
+
};
|
|
219
|
+
export declare type Medium = {
|
|
220
|
+
mediumID: string;
|
|
221
|
+
url?: string;
|
|
222
|
+
content?: string;
|
|
223
|
+
mimeType: string;
|
|
224
|
+
title?: string;
|
|
225
|
+
properties?: {
|
|
226
|
+
[key: string]: any;
|
|
227
|
+
};
|
|
228
|
+
creationTimestamp?: string;
|
|
229
|
+
creationName?: string;
|
|
230
|
+
lastChangeTimestamp?: string;
|
|
231
|
+
lastChangeName?: string;
|
|
232
|
+
};
|
|
233
|
+
export declare type Stats = {
|
|
234
|
+
totalReceivers: number;
|
|
235
|
+
receiversWithMemories: number;
|
|
236
|
+
totalMemories: number;
|
|
237
|
+
publicMemories: number;
|
|
238
|
+
memoriesWithMedia: number;
|
|
239
|
+
totalQuestions: number;
|
|
240
|
+
publicQuestions: number;
|
|
241
|
+
questionsWithMoreThanOneAnswer: number;
|
|
242
|
+
totalStories: number;
|
|
243
|
+
publicStories: number;
|
|
244
|
+
storiesWithDate: number;
|
|
245
|
+
storiesWithPlace: number;
|
|
246
|
+
storiesWithDateAndPlace: number;
|
|
247
|
+
unansweredQuestions: number;
|
|
248
|
+
successfulCorrelations: number;
|
|
249
|
+
failedCorrelations: number;
|
|
250
|
+
};
|
|
251
|
+
export declare type GamificationLevel = {
|
|
252
|
+
points: number;
|
|
253
|
+
badge: string;
|
|
254
|
+
pointsForCurrentBadge: number;
|
|
255
|
+
nextBadge?: {
|
|
256
|
+
points: number;
|
|
257
|
+
badge: string;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
export declare type EventLog = {
|
|
261
|
+
eventLogID: string;
|
|
262
|
+
timestamp: string;
|
|
263
|
+
eventType: string;
|
|
264
|
+
memoriID: string;
|
|
265
|
+
userAgent?: string;
|
|
266
|
+
ipAddress?: string;
|
|
267
|
+
memoryID?: string;
|
|
268
|
+
intentID?: string;
|
|
269
|
+
enteredText?: string;
|
|
270
|
+
receiverTag?: string;
|
|
271
|
+
};
|
|
272
|
+
export declare type UserLog = {
|
|
273
|
+
timestamp: string;
|
|
274
|
+
count: number;
|
|
275
|
+
};
|
|
276
|
+
export declare type UsersLog = {
|
|
277
|
+
timestamp: string;
|
|
278
|
+
countUsers: number;
|
|
279
|
+
countRecurrentUsers: number;
|
|
280
|
+
};
|
|
281
|
+
export declare type TranslatedHint = {
|
|
282
|
+
text: string;
|
|
283
|
+
originalText: string;
|
|
284
|
+
};
|
|
285
|
+
export declare type DialogState = {
|
|
286
|
+
state: string;
|
|
287
|
+
stateName: string;
|
|
288
|
+
previousState: string;
|
|
289
|
+
confidence?: number;
|
|
290
|
+
confidenceLevel?: 'NONE' | 'LOW' | 'MEDIUM' | 'HIGH';
|
|
291
|
+
emission?: string;
|
|
292
|
+
completion?: boolean;
|
|
293
|
+
continuationEmitted?: boolean;
|
|
294
|
+
lastMatchedMemoryID?: string;
|
|
295
|
+
acceptsTimeout?: boolean;
|
|
296
|
+
acceptsAbort?: boolean;
|
|
297
|
+
acceptsMedia?: boolean;
|
|
298
|
+
acceptsDate?: boolean;
|
|
299
|
+
acceptsPlace?: boolean;
|
|
300
|
+
acceptsTag?: boolean;
|
|
301
|
+
acceptsFeedback?: boolean;
|
|
302
|
+
hints?: string[];
|
|
303
|
+
timeout?: number;
|
|
304
|
+
translatedHints?: TranslatedHint[];
|
|
305
|
+
currentTag?: string;
|
|
306
|
+
currentDate?: string;
|
|
307
|
+
currentPlaceName?: string;
|
|
308
|
+
currentLatitude?: number;
|
|
309
|
+
currentLongitude?: number;
|
|
310
|
+
currentUncertaintyKm?: number;
|
|
311
|
+
giverID?: string;
|
|
312
|
+
currentReceiverID?: string;
|
|
313
|
+
currentMemoryID?: string;
|
|
314
|
+
media?: Medium[];
|
|
315
|
+
knownTags?: {
|
|
316
|
+
[key: string]: string;
|
|
317
|
+
};
|
|
318
|
+
contextVars?: {
|
|
319
|
+
[key: string]: string;
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
export declare type Person = {
|
|
323
|
+
personID?: string;
|
|
324
|
+
personType: 'Giver' | 'Receiver';
|
|
325
|
+
name?: string;
|
|
326
|
+
information?: string;
|
|
327
|
+
pin: string;
|
|
328
|
+
tag: string;
|
|
329
|
+
creationTimestamp?: string;
|
|
330
|
+
creationName?: string;
|
|
331
|
+
lastChangeTimestamp?: string;
|
|
332
|
+
lastChangeName?: string;
|
|
333
|
+
};
|
|
334
|
+
export declare type PersonificationProfile = {
|
|
335
|
+
tag?: string;
|
|
336
|
+
pin?: string;
|
|
337
|
+
name?: string;
|
|
338
|
+
sessionID: string;
|
|
339
|
+
};
|
|
340
|
+
export declare type Invitation = {
|
|
341
|
+
invitationID?: string;
|
|
342
|
+
memoriID: string;
|
|
343
|
+
isInviter?: boolean;
|
|
344
|
+
isInvitee?: boolean;
|
|
345
|
+
text?: string;
|
|
346
|
+
destinationEMail: string;
|
|
347
|
+
destinationName: string;
|
|
348
|
+
tag: string;
|
|
349
|
+
pin: string;
|
|
350
|
+
type: string;
|
|
351
|
+
state?: 'PENDING' | 'ACCEPTED' | 'REJECTED';
|
|
352
|
+
creationTimestamp?: string;
|
|
353
|
+
lastChangeTimestamp?: string;
|
|
354
|
+
};
|
|
355
|
+
export declare type LocalizationKeyContent = {
|
|
356
|
+
key: string;
|
|
357
|
+
value: string;
|
|
358
|
+
};
|
|
359
|
+
export declare type LocalizationKey = LocalizationKeyContent & {
|
|
360
|
+
creationTimestamp?: string;
|
|
361
|
+
creationName?: string;
|
|
362
|
+
lastChangeTimestamp?: string;
|
|
363
|
+
lastChangeName?: string;
|
|
364
|
+
};
|
|
365
|
+
export declare type Asset = {
|
|
366
|
+
assetID: string;
|
|
367
|
+
assetURL: string;
|
|
368
|
+
mimeType: string;
|
|
369
|
+
memoriID: string;
|
|
370
|
+
originalFileName?: string;
|
|
371
|
+
title?: string;
|
|
372
|
+
engineMemoryID?: string;
|
|
373
|
+
creationTimestamp: string;
|
|
374
|
+
lastChangeTimestamp: string;
|
|
375
|
+
};
|
|
376
|
+
export declare type SearchQuery = {
|
|
377
|
+
text: string;
|
|
378
|
+
searchType?: 'Literal' | 'Semantic';
|
|
379
|
+
date?: string;
|
|
380
|
+
dateUncertaintyDays?: number;
|
|
381
|
+
placeName?: string;
|
|
382
|
+
placeLatitude?: number;
|
|
383
|
+
placeLongitude?: number;
|
|
384
|
+
placeUncertaintyKm?: number;
|
|
385
|
+
tag?: string;
|
|
386
|
+
ignoreLastRead?: boolean;
|
|
387
|
+
excludedMemoryIDs?: string[];
|
|
388
|
+
numberOfResults?: number;
|
|
389
|
+
};
|
|
390
|
+
export declare type SearchMatches = {
|
|
391
|
+
confidence: number;
|
|
392
|
+
confidenceLevel?: 'LOW' | 'MEDIUM' | 'HIGH';
|
|
393
|
+
memory: Memory;
|
|
394
|
+
};
|
|
395
|
+
export declare type Answer = {
|
|
396
|
+
text: string;
|
|
397
|
+
preformatted?: boolean;
|
|
398
|
+
creationTimestamp?: string;
|
|
399
|
+
creationName?: string;
|
|
400
|
+
lastChangeTimestamp?: string;
|
|
401
|
+
lastChangeName?: string;
|
|
402
|
+
};
|
|
403
|
+
export declare type Memory = {
|
|
404
|
+
memoryID: string;
|
|
405
|
+
memoryType: string;
|
|
406
|
+
lastRead?: string;
|
|
407
|
+
readOccurrencies?: number;
|
|
408
|
+
receiverID?: string;
|
|
409
|
+
receiverTag?: string;
|
|
410
|
+
receiverName?: string;
|
|
411
|
+
media?: Medium[];
|
|
412
|
+
text?: string;
|
|
413
|
+
textVariants?: string[];
|
|
414
|
+
answers?: Answer[];
|
|
415
|
+
title?: string;
|
|
416
|
+
titleVariants?: string[];
|
|
417
|
+
date?: string;
|
|
418
|
+
dateUncertaintyDays?: number;
|
|
419
|
+
placeName?: string;
|
|
420
|
+
placeLatitude?: number;
|
|
421
|
+
placeLongitude?: number;
|
|
422
|
+
placeUncertaintyKm?: number;
|
|
423
|
+
preformatted?: boolean;
|
|
424
|
+
conclusive?: boolean;
|
|
425
|
+
help?: boolean;
|
|
426
|
+
notPickable?: boolean;
|
|
427
|
+
hints?: string[];
|
|
428
|
+
minTimeout?: number;
|
|
429
|
+
maxTimeout?: number;
|
|
430
|
+
contextVarsToSet?: {
|
|
431
|
+
[variable: string]: string;
|
|
432
|
+
};
|
|
433
|
+
contextVarsToMatch?: {
|
|
434
|
+
[variable: string]: string;
|
|
435
|
+
};
|
|
436
|
+
contextVars?: {
|
|
437
|
+
[variable: string]: string;
|
|
438
|
+
};
|
|
439
|
+
creationTimestamp?: string;
|
|
440
|
+
creationName?: string;
|
|
441
|
+
creationSessionID?: string;
|
|
442
|
+
lastChangeTimestamp?: string;
|
|
443
|
+
lastChangeName?: string;
|
|
444
|
+
lastChangeSessionID?: string;
|
|
445
|
+
};
|
|
446
|
+
export declare type UnansweredQuestion = {
|
|
447
|
+
unansweredQuestionID?: string;
|
|
448
|
+
text: string;
|
|
449
|
+
occurrencies: number;
|
|
450
|
+
receiverID?: string;
|
|
451
|
+
receiverTag?: string;
|
|
452
|
+
receiverName?: string;
|
|
453
|
+
creationTimestamp?: string;
|
|
454
|
+
creationName?: string;
|
|
455
|
+
creationSessionID?: string;
|
|
456
|
+
lastChangeTimestamp?: string;
|
|
457
|
+
lastChangeName?: string;
|
|
458
|
+
lastChangeSessionID?: string;
|
|
459
|
+
suggestions?: SearchMatches[];
|
|
460
|
+
};
|
|
461
|
+
export declare type Message = {
|
|
462
|
+
memoryID?: string;
|
|
463
|
+
text: string;
|
|
464
|
+
translatedText?: string;
|
|
465
|
+
acceptsFeedback?: boolean;
|
|
466
|
+
generatedByAI?: boolean;
|
|
467
|
+
fromUser?: boolean;
|
|
468
|
+
media?: Medium[];
|
|
469
|
+
initial?: boolean;
|
|
470
|
+
timestamp?: string;
|
|
471
|
+
contextVars?: {
|
|
472
|
+
[key: string]: string;
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
export type ConsumptionLog = {
|
|
476
|
+
consumptionLogID: string;
|
|
477
|
+
from: string;
|
|
478
|
+
to: string;
|
|
479
|
+
type: 'Daily' | 'Monthly';
|
|
480
|
+
userID?: string;
|
|
481
|
+
memoriID?: string;
|
|
482
|
+
totalSessions: number;
|
|
483
|
+
validSessions: number;
|
|
484
|
+
completions: number;
|
|
485
|
+
};
|
|
486
|
+
export type Notification = {
|
|
487
|
+
notificationID: string;
|
|
488
|
+
timestamp: string;
|
|
489
|
+
severity: 'INFO' | 'WARN' | 'ALERT';
|
|
490
|
+
texts: {
|
|
491
|
+
'it-IT': string;
|
|
492
|
+
'en-US': string;
|
|
493
|
+
[lang: string]: string;
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
export type ChatMedium = {
|
|
497
|
+
url?: string;
|
|
498
|
+
content?: string;
|
|
499
|
+
mimeType: string;
|
|
500
|
+
title?: string;
|
|
501
|
+
properties?: {
|
|
502
|
+
[key: string]: any;
|
|
503
|
+
};
|
|
504
|
+
};
|
|
505
|
+
export type ChatLogLine = {
|
|
506
|
+
timestamp: string;
|
|
507
|
+
inbound: boolean;
|
|
508
|
+
text: string;
|
|
509
|
+
media?: ChatMedium[];
|
|
510
|
+
memoryID?: string;
|
|
511
|
+
contextVars?: {
|
|
512
|
+
[key: string]: string;
|
|
513
|
+
};
|
|
514
|
+
completion?: boolean;
|
|
515
|
+
acceptsFeedback?: boolean;
|
|
516
|
+
};
|
|
517
|
+
export type ChatLog = {
|
|
518
|
+
chatLogID: string;
|
|
519
|
+
timestamp: string;
|
|
520
|
+
memoriID: string;
|
|
521
|
+
sessionID: string;
|
|
522
|
+
receiverTag?: string;
|
|
523
|
+
lines: ChatLogLine[];
|
|
524
|
+
};
|
|
525
|
+
export type CorrelationPair = {
|
|
526
|
+
pairID?: string;
|
|
527
|
+
text1: string;
|
|
528
|
+
text2: string;
|
|
529
|
+
correlated: boolean;
|
|
530
|
+
occurrencies?: number;
|
|
531
|
+
};
|
|
532
|
+
export type Utterance = {
|
|
533
|
+
utteranceID?: string;
|
|
534
|
+
text: string;
|
|
535
|
+
creationTimestamp?: string;
|
|
536
|
+
creationSessionID?: string;
|
|
537
|
+
lastChangeTimestamp?: string;
|
|
538
|
+
lastChangeSessionID?: string;
|
|
539
|
+
};
|
|
540
|
+
export type Intent = {
|
|
541
|
+
intentID?: string;
|
|
542
|
+
intentType?: 'Internal' | 'WebHook';
|
|
543
|
+
name: string;
|
|
544
|
+
utterances: Utterance[];
|
|
545
|
+
timeoutIntent?: boolean;
|
|
546
|
+
webHook?: string;
|
|
547
|
+
validityMinutes?: number;
|
|
548
|
+
creationTimestamp?: string;
|
|
549
|
+
creationSessionID?: string;
|
|
550
|
+
lastChangeTimestamp?: string;
|
|
551
|
+
lastChangeSessionID?: string;
|
|
552
|
+
};
|
|
553
|
+
export type IntentSlot = {
|
|
554
|
+
intentSlotID?: string;
|
|
555
|
+
name: string;
|
|
556
|
+
values?: string[];
|
|
557
|
+
webHook?: string;
|
|
558
|
+
validityMinutes?: number;
|
|
559
|
+
creationTimestamp?: string;
|
|
560
|
+
creationSessionID?: string;
|
|
561
|
+
lastChangeTimestamp?: string;
|
|
562
|
+
lastChangeSessionID?: string;
|
|
563
|
+
};
|
|
564
|
+
export type CustomWord = {
|
|
565
|
+
customWordID: string;
|
|
566
|
+
word: string;
|
|
567
|
+
definition: string;
|
|
568
|
+
creationTimestamp: string;
|
|
569
|
+
creationSessionID: string;
|
|
570
|
+
lastChangeTimestamp: string;
|
|
571
|
+
lastChangeSessionID: string;
|
|
572
|
+
};
|
|
573
|
+
export interface ImportCSVParams {
|
|
574
|
+
hasHeaders?: boolean;
|
|
575
|
+
headerNames?: string[];
|
|
576
|
+
questionColumnName: string;
|
|
577
|
+
answerColumnName: string;
|
|
578
|
+
contextVarsToMatchColumnName?: string;
|
|
579
|
+
contextVarsToSetColumnName?: string;
|
|
580
|
+
csvSeparator?: string;
|
|
581
|
+
questionTitleVariantsSeparator?: string;
|
|
582
|
+
}
|
|
583
|
+
export interface ImportTxtParams {
|
|
584
|
+
newLinesPerParagraphs?: number;
|
|
585
|
+
}
|
|
586
|
+
export interface ImportParams {
|
|
587
|
+
includedRows?: number[];
|
|
588
|
+
forceImport?: boolean;
|
|
589
|
+
csvSpecs?: ImportCSVParams;
|
|
590
|
+
txtSpecs?: ImportTxtParams;
|
|
591
|
+
conclusive?: boolean;
|
|
592
|
+
notPickable?: boolean;
|
|
593
|
+
contextVarsToSet?: {
|
|
594
|
+
[key: string]: string;
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
export interface ExportCSVParams {
|
|
598
|
+
newLine: '\n' | '\r\n';
|
|
599
|
+
hasHeaders?: boolean;
|
|
600
|
+
questionColumnName: string;
|
|
601
|
+
answerColumnName: string;
|
|
602
|
+
contextVarsToMatchColumnName?: string;
|
|
603
|
+
contextVarsToSetColumnName?: string;
|
|
604
|
+
csvSeparator?: string;
|
|
605
|
+
questionTitleVariantsSeparator?: string;
|
|
606
|
+
}
|
|
607
|
+
export interface ImportWarning {
|
|
608
|
+
warningType: 'Existing Similar Memory' | 'Internal Error';
|
|
609
|
+
rowNumber?: number;
|
|
610
|
+
row: string;
|
|
611
|
+
text?: string;
|
|
612
|
+
similarTexts?: {
|
|
613
|
+
text: string;
|
|
614
|
+
similarityLevel: 'HIGH' | 'MEDIUM' | 'LOW';
|
|
615
|
+
}[];
|
|
616
|
+
}
|
|
617
|
+
export interface ImportResponse {
|
|
618
|
+
importID: string;
|
|
619
|
+
status: 'Starting' | 'Running' | 'Stopped' | 'Completed' | 'Failed';
|
|
620
|
+
error?: string;
|
|
621
|
+
progress: number;
|
|
622
|
+
begin?: string;
|
|
623
|
+
end?: string;
|
|
624
|
+
eta?: number;
|
|
625
|
+
importedMemories?: number;
|
|
626
|
+
importWarnings?: ImportWarning[];
|
|
627
|
+
}
|