@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.
Files changed (399) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +17 -89
  3. package/dist/apiFetcher.d.ts +7 -7
  4. package/dist/apiFetcher.js +17 -0
  5. package/dist/apiFetcher.js.map +1 -0
  6. package/dist/backend/asset.d.ts +13 -44
  7. package/dist/backend/asset.js +31 -0
  8. package/dist/backend/asset.js.map +1 -0
  9. package/dist/backend/asset.test.d.ts +1 -0
  10. package/dist/backend/asset.test.js +14 -0
  11. package/dist/backend/asset.test.js.map +1 -0
  12. package/dist/backend/consumptionLogs.d.ts +13 -40
  13. package/dist/backend/consumptionLogs.js +15 -0
  14. package/dist/backend/consumptionLogs.js.map +1 -0
  15. package/dist/backend/consumptionLogs.test.d.ts +1 -0
  16. package/dist/backend/consumptionLogs.test.js +14 -0
  17. package/dist/backend/consumptionLogs.test.js.map +1 -0
  18. package/dist/backend/integration.d.ts +20 -55
  19. package/dist/backend/integration.js +29 -0
  20. package/dist/backend/integration.js.map +1 -0
  21. package/dist/backend/integration.test.d.ts +1 -0
  22. package/dist/backend/integration.test.js +14 -0
  23. package/dist/backend/integration.test.js.map +1 -0
  24. package/dist/backend/invitation.d.ts +34 -91
  25. package/dist/backend/invitation.js +43 -0
  26. package/dist/backend/invitation.js.map +1 -0
  27. package/dist/backend/invitation.test.d.ts +1 -0
  28. package/dist/backend/invitation.test.js +14 -0
  29. package/dist/backend/invitation.test.js.map +1 -0
  30. package/dist/backend/memori.d.ts +61 -173
  31. package/dist/backend/memori.js +72 -0
  32. package/dist/backend/memori.js.map +1 -0
  33. package/dist/backend/memori.test.d.ts +1 -0
  34. package/dist/backend/memori.test.js +14 -0
  35. package/dist/backend/memori.test.js.map +1 -0
  36. package/dist/backend/notifications.d.ts +10 -20
  37. package/dist/backend/notifications.js +12 -0
  38. package/dist/backend/notifications.js.map +1 -0
  39. package/dist/backend/notifications.test.d.ts +1 -0
  40. package/dist/backend/notifications.test.js +14 -0
  41. package/dist/backend/notifications.test.js.map +1 -0
  42. package/dist/backend/user.d.ts +41 -109
  43. package/dist/backend/user.js +68 -0
  44. package/dist/backend/user.js.map +1 -0
  45. package/dist/backend/user.test.d.ts +1 -0
  46. package/dist/backend/user.test.js +14 -0
  47. package/dist/backend/user.test.js.map +1 -0
  48. package/dist/backend.d.ts +345 -333
  49. package/dist/backend.js +28 -0
  50. package/dist/backend.js.map +1 -0
  51. package/dist/client.test.d.ts +1 -0
  52. package/dist/client.test.js +32 -0
  53. package/dist/client.test.js.map +1 -0
  54. package/dist/constants.d.ts +2 -2
  55. package/dist/constants.js +24 -0
  56. package/dist/constants.js.map +1 -0
  57. package/dist/constants.test.d.ts +1 -0
  58. package/dist/constants.test.js +14 -0
  59. package/dist/constants.test.js.map +1 -0
  60. package/dist/engine/chatLogs.d.ts +12 -39
  61. package/dist/engine/chatLogs.js +22 -0
  62. package/dist/engine/chatLogs.js.map +1 -0
  63. package/dist/engine/chatLogs.test.d.ts +1 -0
  64. package/dist/engine/chatLogs.test.js +14 -0
  65. package/dist/engine/chatLogs.test.js.map +1 -0
  66. package/dist/engine/contextVars.d.ts +14 -32
  67. package/dist/engine/contextVars.js +18 -0
  68. package/dist/engine/contextVars.js.map +1 -0
  69. package/dist/engine/contextVars.test.d.ts +1 -0
  70. package/dist/engine/contextVars.test.js +14 -0
  71. package/dist/engine/contextVars.test.js.map +1 -0
  72. package/dist/engine/correlationPairs.d.ts +11 -32
  73. package/dist/engine/correlationPairs.js +19 -0
  74. package/dist/engine/correlationPairs.js.map +1 -0
  75. package/dist/engine/correlationPairs.test.d.ts +1 -0
  76. package/dist/engine/correlationPairs.test.js +14 -0
  77. package/dist/engine/correlationPairs.test.js.map +1 -0
  78. package/dist/engine/customDictionary.d.ts +17 -47
  79. package/dist/engine/customDictionary.js +28 -0
  80. package/dist/engine/customDictionary.js.map +1 -0
  81. package/dist/engine/customDictionary.test.d.ts +1 -0
  82. package/dist/engine/customDictionary.test.js +14 -0
  83. package/dist/engine/customDictionary.test.js.map +1 -0
  84. package/dist/engine/dialog.d.ts +32 -82
  85. package/dist/engine/dialog.js +53 -0
  86. package/dist/engine/dialog.js.map +1 -0
  87. package/dist/engine/dialog.test.d.ts +1 -0
  88. package/dist/engine/dialog.test.js +20 -0
  89. package/dist/engine/dialog.test.js.map +1 -0
  90. package/dist/engine/importExport.d.ts +20 -40
  91. package/dist/engine/importExport.js +40 -0
  92. package/dist/engine/importExport.js.map +1 -0
  93. package/dist/engine/importExport.test.d.ts +1 -0
  94. package/dist/engine/importExport.test.js +25 -0
  95. package/dist/engine/importExport.test.js.map +1 -0
  96. package/dist/engine/intents.d.ts +38 -90
  97. package/dist/engine/intents.js +50 -0
  98. package/dist/engine/intents.js.map +1 -0
  99. package/dist/engine/intents.test.d.ts +1 -0
  100. package/dist/engine/intents.test.js +14 -0
  101. package/dist/engine/intents.test.js.map +1 -0
  102. package/dist/engine/localizationKeys.d.ts +15 -50
  103. package/dist/engine/localizationKeys.js +28 -0
  104. package/dist/engine/localizationKeys.js.map +1 -0
  105. package/dist/engine/localizationKeys.test.d.ts +1 -0
  106. package/dist/engine/localizationKeys.test.js +14 -0
  107. package/dist/engine/localizationKeys.test.js.map +1 -0
  108. package/dist/engine/media.d.ts +10 -48
  109. package/dist/engine/media.js +30 -0
  110. package/dist/engine/media.js.map +1 -0
  111. package/dist/engine/media.test.d.ts +1 -0
  112. package/dist/engine/media.test.js +14 -0
  113. package/dist/engine/media.test.js.map +1 -0
  114. package/dist/engine/memories.d.ts +20 -62
  115. package/dist/engine/memories.js +36 -0
  116. package/dist/engine/memories.js.map +1 -0
  117. package/dist/engine/memories.test.d.ts +1 -0
  118. package/dist/engine/memories.test.js +14 -0
  119. package/dist/engine/memories.test.js.map +1 -0
  120. package/dist/engine/nlp.d.ts +22 -66
  121. package/dist/engine/nlp.js +34 -0
  122. package/dist/engine/nlp.js.map +1 -0
  123. package/dist/engine/nlp.test.d.ts +1 -0
  124. package/dist/engine/nlp.test.js +14 -0
  125. package/dist/engine/nlp.test.js.map +1 -0
  126. package/dist/engine/people.d.ts +17 -46
  127. package/dist/engine/people.js +28 -0
  128. package/dist/engine/people.js.map +1 -0
  129. package/dist/engine/people.test.d.ts +1 -0
  130. package/dist/engine/people.test.js +14 -0
  131. package/dist/engine/people.test.js.map +1 -0
  132. package/dist/engine/promptedQuestions.d.ts +9 -37
  133. package/dist/engine/promptedQuestions.js +26 -0
  134. package/dist/engine/promptedQuestions.js.map +1 -0
  135. package/dist/engine/promptedQuestions.test.d.ts +1 -0
  136. package/dist/engine/promptedQuestions.test.js +14 -0
  137. package/dist/engine/promptedQuestions.test.js.map +1 -0
  138. package/dist/engine/search.d.ts +9 -30
  139. package/dist/engine/search.js +19 -0
  140. package/dist/engine/search.js.map +1 -0
  141. package/dist/engine/search.test.d.ts +1 -0
  142. package/dist/engine/search.test.js +14 -0
  143. package/dist/engine/search.test.js.map +1 -0
  144. package/dist/engine/session.d.ts +12 -28
  145. package/dist/engine/session.js +19 -0
  146. package/dist/engine/session.js.map +1 -0
  147. package/dist/engine/session.test.d.ts +1 -0
  148. package/dist/engine/session.test.js +14 -0
  149. package/dist/engine/session.test.js.map +1 -0
  150. package/dist/engine/stats.d.ts +27 -92
  151. package/dist/engine/stats.js +30 -0
  152. package/dist/engine/stats.js.map +1 -0
  153. package/dist/engine/stats.test.d.ts +1 -0
  154. package/dist/engine/stats.test.js +14 -0
  155. package/dist/engine/stats.test.js.map +1 -0
  156. package/dist/engine/unansweredQuestions.d.ts +15 -38
  157. package/dist/engine/unansweredQuestions.js +23 -0
  158. package/dist/engine/unansweredQuestions.js.map +1 -0
  159. package/dist/engine/unansweredQuestions.test.d.ts +1 -0
  160. package/dist/engine/unansweredQuestions.test.js +14 -0
  161. package/dist/engine/unansweredQuestions.test.js.map +1 -0
  162. package/dist/engine.d.ts +501 -473
  163. package/dist/engine.js +57 -0
  164. package/dist/engine.js.map +1 -0
  165. package/dist/helpers/asset.d.ts +10 -20
  166. package/dist/helpers/asset.js +29 -0
  167. package/dist/helpers/asset.js.map +1 -0
  168. package/dist/helpers/asset.test.d.ts +1 -0
  169. package/dist/helpers/asset.test.js +68 -0
  170. package/dist/helpers/asset.test.js.map +1 -0
  171. package/dist/helpers/getApiUrl.d.ts +1 -1
  172. package/dist/helpers/getApiUrl.js +9 -0
  173. package/dist/helpers/getApiUrl.js.map +1 -0
  174. package/dist/helpers/getApiUrl.test.d.ts +1 -0
  175. package/dist/helpers/getApiUrl.test.js +15 -0
  176. package/dist/helpers/getApiUrl.test.js.map +1 -0
  177. package/dist/index.d.ts +850 -810
  178. package/dist/index.js +19 -8
  179. package/dist/index.js.map +1 -0
  180. package/dist/types.d.ts +627 -897
  181. package/dist/types.js +3 -0
  182. package/dist/types.js.map +1 -0
  183. package/esm/apiFetcher.d.ts +7 -0
  184. package/esm/apiFetcher.js +12 -0
  185. package/esm/apiFetcher.js.map +1 -0
  186. package/esm/backend/asset.d.ts +13 -0
  187. package/esm/backend/asset.js +29 -0
  188. package/esm/backend/asset.js.map +1 -0
  189. package/esm/backend/asset.test.d.ts +1 -0
  190. package/esm/backend/asset.test.js +11 -0
  191. package/esm/backend/asset.test.js.map +1 -0
  192. package/esm/backend/consumptionLogs.d.ts +13 -0
  193. package/esm/backend/consumptionLogs.js +13 -0
  194. package/esm/backend/consumptionLogs.js.map +1 -0
  195. package/esm/backend/consumptionLogs.test.d.ts +1 -0
  196. package/esm/backend/consumptionLogs.test.js +11 -0
  197. package/esm/backend/consumptionLogs.test.js.map +1 -0
  198. package/esm/backend/integration.d.ts +20 -0
  199. package/esm/backend/integration.js +27 -0
  200. package/esm/backend/integration.js.map +1 -0
  201. package/esm/backend/integration.test.d.ts +1 -0
  202. package/esm/backend/integration.test.js +11 -0
  203. package/esm/backend/integration.test.js.map +1 -0
  204. package/esm/backend/invitation.d.ts +34 -0
  205. package/esm/backend/invitation.js +41 -0
  206. package/esm/backend/invitation.js.map +1 -0
  207. package/esm/backend/invitation.test.d.ts +1 -0
  208. package/esm/backend/invitation.test.js +11 -0
  209. package/esm/backend/invitation.test.js.map +1 -0
  210. package/esm/backend/memori.d.ts +61 -0
  211. package/esm/backend/memori.js +70 -0
  212. package/esm/backend/memori.js.map +1 -0
  213. package/esm/backend/memori.test.d.ts +1 -0
  214. package/esm/backend/memori.test.js +11 -0
  215. package/esm/backend/memori.test.js.map +1 -0
  216. package/esm/backend/notifications.d.ts +10 -0
  217. package/esm/backend/notifications.js +10 -0
  218. package/esm/backend/notifications.js.map +1 -0
  219. package/esm/backend/notifications.test.d.ts +1 -0
  220. package/esm/backend/notifications.test.js +11 -0
  221. package/esm/backend/notifications.test.js.map +1 -0
  222. package/esm/backend/user.d.ts +41 -0
  223. package/esm/backend/user.js +66 -0
  224. package/esm/backend/user.js.map +1 -0
  225. package/esm/backend/user.test.d.ts +1 -0
  226. package/esm/backend/user.test.js +11 -0
  227. package/esm/backend/user.test.js.map +1 -0
  228. package/esm/backend.d.ts +345 -0
  229. package/esm/backend.js +25 -0
  230. package/esm/backend.js.map +1 -0
  231. package/esm/client.test.d.ts +1 -0
  232. package/esm/client.test.js +29 -0
  233. package/esm/client.test.js.map +1 -0
  234. package/esm/constants.d.ts +2 -0
  235. package/esm/constants.js +21 -0
  236. package/esm/constants.js.map +1 -0
  237. package/esm/constants.test.d.ts +1 -0
  238. package/esm/constants.test.js +11 -0
  239. package/esm/constants.test.js.map +1 -0
  240. package/esm/engine/chatLogs.d.ts +12 -0
  241. package/esm/engine/chatLogs.js +20 -0
  242. package/esm/engine/chatLogs.js.map +1 -0
  243. package/esm/engine/chatLogs.test.d.ts +1 -0
  244. package/esm/engine/chatLogs.test.js +11 -0
  245. package/esm/engine/chatLogs.test.js.map +1 -0
  246. package/esm/engine/contextVars.d.ts +14 -0
  247. package/esm/engine/contextVars.js +16 -0
  248. package/esm/engine/contextVars.js.map +1 -0
  249. package/esm/engine/contextVars.test.d.ts +1 -0
  250. package/esm/engine/contextVars.test.js +11 -0
  251. package/esm/engine/contextVars.test.js.map +1 -0
  252. package/esm/engine/correlationPairs.d.ts +11 -0
  253. package/esm/engine/correlationPairs.js +17 -0
  254. package/esm/engine/correlationPairs.js.map +1 -0
  255. package/esm/engine/correlationPairs.test.d.ts +1 -0
  256. package/esm/engine/correlationPairs.test.js +11 -0
  257. package/esm/engine/correlationPairs.test.js.map +1 -0
  258. package/esm/engine/customDictionary.d.ts +17 -0
  259. package/esm/engine/customDictionary.js +26 -0
  260. package/esm/engine/customDictionary.js.map +1 -0
  261. package/esm/engine/customDictionary.test.d.ts +1 -0
  262. package/esm/engine/customDictionary.test.js +11 -0
  263. package/esm/engine/customDictionary.test.js.map +1 -0
  264. package/esm/engine/dialog.d.ts +32 -0
  265. package/esm/engine/dialog.js +51 -0
  266. package/esm/engine/dialog.js.map +1 -0
  267. package/esm/engine/dialog.test.d.ts +1 -0
  268. package/esm/engine/dialog.test.js +17 -0
  269. package/esm/engine/dialog.test.js.map +1 -0
  270. package/esm/engine/importExport.d.ts +20 -0
  271. package/esm/engine/importExport.js +38 -0
  272. package/esm/engine/importExport.js.map +1 -0
  273. package/esm/engine/importExport.test.d.ts +1 -0
  274. package/esm/engine/importExport.test.js +22 -0
  275. package/esm/engine/importExport.test.js.map +1 -0
  276. package/esm/engine/intents.d.ts +38 -0
  277. package/esm/engine/intents.js +48 -0
  278. package/esm/engine/intents.js.map +1 -0
  279. package/esm/engine/intents.test.d.ts +1 -0
  280. package/esm/engine/intents.test.js +11 -0
  281. package/esm/engine/intents.test.js.map +1 -0
  282. package/esm/engine/localizationKeys.d.ts +15 -0
  283. package/esm/engine/localizationKeys.js +26 -0
  284. package/esm/engine/localizationKeys.js.map +1 -0
  285. package/esm/engine/localizationKeys.test.d.ts +1 -0
  286. package/esm/engine/localizationKeys.test.js +11 -0
  287. package/esm/engine/localizationKeys.test.js.map +1 -0
  288. package/esm/engine/media.d.ts +10 -0
  289. package/esm/engine/media.js +28 -0
  290. package/esm/engine/media.js.map +1 -0
  291. package/esm/engine/media.test.d.ts +1 -0
  292. package/esm/engine/media.test.js +11 -0
  293. package/esm/engine/media.test.js.map +1 -0
  294. package/esm/engine/memories.d.ts +20 -0
  295. package/esm/engine/memories.js +34 -0
  296. package/esm/engine/memories.js.map +1 -0
  297. package/esm/engine/memories.test.d.ts +1 -0
  298. package/esm/engine/memories.test.js +11 -0
  299. package/esm/engine/memories.test.js.map +1 -0
  300. package/esm/engine/nlp.d.ts +22 -0
  301. package/esm/engine/nlp.js +32 -0
  302. package/esm/engine/nlp.js.map +1 -0
  303. package/esm/engine/nlp.test.d.ts +1 -0
  304. package/esm/engine/nlp.test.js +11 -0
  305. package/esm/engine/nlp.test.js.map +1 -0
  306. package/esm/engine/people.d.ts +17 -0
  307. package/esm/engine/people.js +26 -0
  308. package/esm/engine/people.js.map +1 -0
  309. package/esm/engine/people.test.d.ts +1 -0
  310. package/esm/engine/people.test.js +11 -0
  311. package/esm/engine/people.test.js.map +1 -0
  312. package/esm/engine/promptedQuestions.d.ts +9 -0
  313. package/esm/engine/promptedQuestions.js +24 -0
  314. package/esm/engine/promptedQuestions.js.map +1 -0
  315. package/esm/engine/promptedQuestions.test.d.ts +1 -0
  316. package/esm/engine/promptedQuestions.test.js +11 -0
  317. package/esm/engine/promptedQuestions.test.js.map +1 -0
  318. package/esm/engine/search.d.ts +9 -0
  319. package/esm/engine/search.js +17 -0
  320. package/esm/engine/search.js.map +1 -0
  321. package/esm/engine/search.test.d.ts +1 -0
  322. package/esm/engine/search.test.js +11 -0
  323. package/esm/engine/search.test.js.map +1 -0
  324. package/esm/engine/session.d.ts +12 -0
  325. package/esm/engine/session.js +17 -0
  326. package/esm/engine/session.js.map +1 -0
  327. package/esm/engine/session.test.d.ts +1 -0
  328. package/esm/engine/session.test.js +11 -0
  329. package/esm/engine/session.test.js.map +1 -0
  330. package/esm/engine/stats.d.ts +27 -0
  331. package/esm/engine/stats.js +28 -0
  332. package/esm/engine/stats.js.map +1 -0
  333. package/esm/engine/stats.test.d.ts +1 -0
  334. package/esm/engine/stats.test.js +11 -0
  335. package/esm/engine/stats.test.js.map +1 -0
  336. package/esm/engine/unansweredQuestions.d.ts +15 -0
  337. package/esm/engine/unansweredQuestions.js +21 -0
  338. package/esm/engine/unansweredQuestions.js.map +1 -0
  339. package/esm/engine/unansweredQuestions.test.d.ts +1 -0
  340. package/esm/engine/unansweredQuestions.test.js +11 -0
  341. package/esm/engine/unansweredQuestions.test.js.map +1 -0
  342. package/esm/engine.d.ts +501 -0
  343. package/esm/engine.js +54 -0
  344. package/esm/engine.js.map +1 -0
  345. package/esm/helpers/asset.d.ts +10 -0
  346. package/esm/helpers/asset.js +27 -0
  347. package/esm/helpers/asset.js.map +1 -0
  348. package/esm/helpers/asset.test.d.ts +1 -0
  349. package/esm/helpers/asset.test.js +65 -0
  350. package/esm/helpers/asset.test.js.map +1 -0
  351. package/esm/helpers/getApiUrl.d.ts +1 -0
  352. package/esm/helpers/getApiUrl.js +5 -0
  353. package/esm/helpers/getApiUrl.js.map +1 -0
  354. package/esm/helpers/getApiUrl.test.d.ts +1 -0
  355. package/esm/helpers/getApiUrl.test.js +13 -0
  356. package/esm/helpers/getApiUrl.test.js.map +1 -0
  357. package/esm/index.d.ts +850 -0
  358. package/esm/index.js +16 -0
  359. package/esm/index.js.map +1 -0
  360. package/esm/types.d.ts +627 -0
  361. package/esm/types.js +2 -0
  362. package/esm/types.js.map +1 -0
  363. package/package.json +112 -46
  364. package/src/backend/asset.test.ts +23 -0
  365. package/src/backend/consumptionLogs.test.ts +25 -0
  366. package/src/backend/integration.test.ts +23 -0
  367. package/src/backend/invitation.test.ts +23 -0
  368. package/src/backend/memori.test.ts +23 -0
  369. package/src/backend/notifications.test.ts +21 -0
  370. package/src/backend/user.test.ts +23 -0
  371. package/src/client.test.ts +48 -0
  372. package/src/constants.test.ts +12 -0
  373. package/src/engine/chatLogs.test.ts +17 -0
  374. package/src/engine/contextVars.test.ts +19 -0
  375. package/src/engine/correlationPairs.test.ts +19 -0
  376. package/src/engine/customDictionary.test.ts +19 -0
  377. package/src/engine/dialog.test.ts +23 -0
  378. package/src/engine/importExport.test.ts +38 -0
  379. package/src/engine/importExport.ts +36 -6
  380. package/src/engine/intents.test.ts +23 -0
  381. package/src/engine/localizationKeys.test.ts +23 -0
  382. package/src/engine/media.test.ts +23 -0
  383. package/src/engine/memories.test.ts +17 -0
  384. package/src/engine/nlp.test.ts +23 -0
  385. package/src/engine/people.test.ts +23 -0
  386. package/src/engine/promptedQuestions.test.ts +23 -0
  387. package/src/engine/search.test.ts +17 -0
  388. package/src/engine/session.test.ts +17 -0
  389. package/src/engine/stats.test.ts +17 -0
  390. package/src/engine/unansweredQuestions.test.ts +21 -0
  391. package/src/helpers/asset.test.ts +116 -0
  392. package/src/helpers/getApiUrl.test.ts +15 -0
  393. package/src/{types.ts → types.d.ts} +57 -50
  394. package/dist/memori-api-client.cjs.development.js +0 -4279
  395. package/dist/memori-api-client.cjs.development.js.map +0 -1
  396. package/dist/memori-api-client.cjs.production.min.js +0 -2
  397. package/dist/memori-api-client.cjs.production.min.js.map +0 -1
  398. package/dist/memori-api-client.esm.js +0 -4273
  399. 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
- * @readonly
46
- * URL of the avatar 3D model represting this Memori object.
47
- * It is obtained from the CustomData property of the public home page Integration object for this Memori, if present.
48
- * To be changed, the Integration object must be changed. Returned during Get operations. Ignored in other cases.
49
- */
50
- avatar3DURL?: string;
51
- /**
52
- * @readonly
53
- * Original URL of the avatar 3D model represting this Memori object.
54
- * It is obtained from the CustomData property of the public home page Integration object for this Memori, if present.
55
- * To be changed, the Integration object must be changed. Returned during Get operations. Ignored in other cases.
56
- */
57
- avatarOriginal3DURL?: string;
58
- needsPosition?: boolean;
59
- voiceType: string;
60
- culture?: string;
61
- publishedInTheMetaverse?: boolean;
62
- metaverseEnvironment?: string;
63
- exposed?: boolean;
64
- disableR2R3Loop?: boolean;
65
- disableR4Loop?: boolean;
66
- disableR5Loop?: boolean;
67
- enableCompletions?: boolean;
68
- completionDescription?: string;
69
- chainingMemoriID?: string;
70
- chainingBaseURL?: string;
71
- chainingPassword?: string;
72
- properties?: {
73
- [key: string]: any;
74
- };
75
- creationTimestamp?: string;
76
- lastChangeTimestamp?: string;
77
- blockedUntil?: string;
78
- integrations?: Integration[];
79
- sentInvitations?: Invitation[];
80
- receivedInvitations?: Invitation[];
81
- categories?: string[];
82
- ownerUserName?: string;
83
- gamificationLevel?: GamificationLevel;
84
- contentQualityIndex?: number;
85
- contentQualityIndexTimestamp?: string;
86
- };
87
- export declare type Venue = {
88
- placeName: string;
89
- latitude: number;
90
- longitude: number;
91
- uncertainty?: number;
92
- };
93
- export declare type NotificationPrefs = {
94
- /**
95
- * @type {string='None'}
96
- * minLength: 1
97
- * Periodicity of chat log extraction (hourly, daily, weekly or none).
98
- * When chat log extraction is enabled (i.e. not None) chats performed on Memori owned or managed by the User
99
- * will be periodically collected and sent via e-mail.
100
- */
101
- chatLogExtractionPeriod?: 'None' | 'Hourly' | 'Daily' | 'Weekly';
102
- /**
103
- * @type {number=5}
104
- * Minimum lines for an extracted chat to be sent via e-mail to the User.
105
- * If 0 no filter is applied.
106
- * Default is 5.
107
- */
108
- chatLogExtractionMinLines?: number;
109
- /**
110
- * @type {string=}
111
- * Memori ID to which these preferences apply to.
112
- * If Null these preferences have default value and apply to all Memori objects not specified with other preferences.
113
- */
114
- memoriID?: string;
115
- };
116
- export declare type User = {
117
- tenant?: string;
118
- userID?: string;
119
- userName?: string;
120
- password?: string;
121
- newPassword?: string;
122
- eMail?: string;
123
- admin?: boolean;
124
- superAdmin?: boolean;
125
- verificationCode?: string;
126
- dontSendInvitationEmail?: boolean;
127
- flowID?: string;
128
- newsletterSubscribed?: boolean;
129
- maxMemori?: number;
130
- numMemori?: number;
131
- canCreateMemori?: boolean;
132
- canAccessAPI?: boolean;
133
- canRunSnippets?: boolean;
134
- canEditIntegrations?: boolean;
135
- canEditDynamicIntents?: boolean;
136
- canEditMemoriChaining?: boolean;
137
- monthSessions?: number;
138
- monthValidSessions?: number;
139
- maxFreeSessions?: number;
140
- nonFreeSessionCost?: number;
141
- monthCompletions?: number;
142
- maxCompletions?: number;
143
- creationTimestamp?: string;
144
- lastChangeTimestamp?: string;
145
- referral?: string;
146
- couponCode?: string;
147
- paying?: boolean;
148
- notificationPrefs?: NotificationPrefs[];
149
- };
150
- export declare type IntegrationResource = {
151
- name: string;
152
- url: string;
153
- };
154
- export declare type IntegrationType = 'GOOGLE' | 'ALEXA' | 'LANDING_EXPERIENCE';
155
- export declare type Integration = {
156
- integrationID?: string;
157
- memoriID?: string;
158
- type: IntegrationType;
159
- state?: 'NEW' | 'PROCESSING' | 'DONE' | 'REMOVED' | 'ERROR' | 'WAITING_MANUAL_ACTION' | 'DRAFT' | 'NOT_VALIDATED' | 'PUBLISHED';
160
- publish?: boolean;
161
- deviceEmails?: string[];
162
- invocationText?: string;
163
- jobID?: string;
164
- customData?: string;
165
- resources?: IntegrationResource[];
166
- creationTimestamp?: string | Date;
167
- lastChangeTimestamp?: string | Date;
168
- dataResult?: {
169
- [key: string]: any;
170
- };
171
- };
172
- export declare type PublicIntegrationListItem = {
173
- integration: Integration;
174
- memori: Memori;
175
- memoriUser: User;
176
- remoteMemoriId?: string;
177
- };
178
- export interface RcFile extends File {
179
- readonly lastModifiedDate: string | Date;
180
- uid: string;
181
- }
182
- export declare type UploadFileStatus = 'error' | 'success' | 'done' | 'uploading' | 'removed';
183
- export interface UploadFile<T = any> {
184
- uid: string;
185
- size?: number;
186
- name: string;
187
- fileName?: string;
188
- lastModified?: number;
189
- lastModifiedDate?: string | Date;
190
- url?: string;
191
- status?: UploadFileStatus;
192
- percent?: number;
193
- thumbUrl?: string;
194
- originFileObj?: RcFile;
195
- response?: T;
196
- error?: any;
197
- linkProps?: any;
198
- type?: string;
199
- xhr?: T;
200
- preview?: string;
201
- }
202
- export declare type TenantConfig = {
203
- name: string;
204
- showNewUser: boolean;
205
- requirePosition: boolean;
206
- feedbackURL?: string;
207
- };
208
- export declare type Tenant = {
209
- id: string;
210
- theme: string;
211
- config: TenantConfig;
212
- disableRegistration?: boolean;
213
- maxMemoriPerAdmin?: number;
214
- maxMemoriPerUser?: number;
215
- maxTotalMemori?: number;
216
- memoriCount?: number;
217
- maxAdmins?: number;
218
- adminCount?: number;
219
- maxUsers?: number;
220
- userCount?: number;
221
- usersCanCreateMemori?: boolean;
222
- usersCanAccessAPI?: boolean;
223
- usersCanEditIntegrations?: boolean;
224
- usersCanEditDynamicIntents?: boolean;
225
- usersCanEditMemoriChaining?: boolean;
226
- maxFreeSessions?: number;
227
- maxFreeSessionsPerUser?: number;
228
- nonFreeSessionCost?: number;
229
- maxCompletions?: number;
230
- maxCompletionsPerUser?: number;
231
- paying?: boolean;
232
- };
233
- export declare type OpenSession = {
234
- memoriID: string;
235
- password?: string;
236
- recoveryTokens?: string[];
237
- tag?: string;
238
- pin?: string;
239
- initialContextVars?: {
240
- [key: string]: string;
241
- };
242
- initialQuestion?: string;
243
- };
244
- export declare type MemoriSession = {
245
- sessionID: string;
246
- currentState: DialogState;
247
- stats?: Stats;
248
- };
249
- export declare type Medium = {
250
- mediumID: string;
251
- url?: string;
252
- content?: string;
253
- mimeType: string;
254
- title?: string;
255
- properties?: {
256
- [key: string]: any;
257
- };
258
- creationTimestamp?: string;
259
- creationName?: string;
260
- lastChangeTimestamp?: string;
261
- lastChangeName?: string;
262
- };
263
- export declare type Stats = {
264
- totalReceivers: number;
265
- receiversWithMemories: number;
266
- totalMemories: number;
267
- publicMemories: number;
268
- memoriesWithMedia: number;
269
- totalQuestions: number;
270
- publicQuestions: number;
271
- questionsWithMoreThanOneAnswer: number;
272
- totalStories: number;
273
- publicStories: number;
274
- storiesWithDate: number;
275
- storiesWithPlace: number;
276
- storiesWithDateAndPlace: number;
277
- unansweredQuestions: number;
278
- successfulCorrelations: number;
279
- failedCorrelations: number;
280
- };
281
- export declare type GamificationLevel = {
282
- points: number;
283
- badge: string;
284
- pointsForCurrentBadge: number;
285
- nextBadge?: {
286
- points: number;
287
- badge: string;
288
- };
289
- };
290
- export declare type EventLog = {
291
- eventLogID: string;
292
- timestamp: string;
293
- eventType: string;
294
- memoriID: string;
295
- userAgent?: string;
296
- ipAddress?: string;
297
- memoryID?: string;
298
- intentID?: string;
299
- enteredText?: string;
300
- receiverTag?: string;
301
- };
302
- export declare type UserLog = {
303
- timestamp: string;
304
- count: number;
305
- };
306
- export declare type UsersLog = {
307
- timestamp: string;
308
- countUsers: number;
309
- countRecurrentUsers: number;
310
- };
311
- export declare type TranslatedHint = {
312
- text: string;
313
- originalText: string;
314
- };
315
- export declare type DialogState = {
316
- state: string;
317
- stateName: string;
318
- previousState: string;
319
- confidence?: number;
320
- confidenceLevel?: 'NONE' | 'LOW' | 'MEDIUM' | 'HIGH';
321
- emission?: string;
322
- completion?: boolean;
323
- continuationEmitted?: boolean;
324
- lastMatchedMemoryID?: string;
325
- acceptsTimeout?: boolean;
326
- acceptsAbort?: boolean;
327
- acceptsMedia?: boolean;
328
- acceptsDate?: boolean;
329
- acceptsPlace?: boolean;
330
- acceptsTag?: boolean;
331
- acceptsFeedback?: boolean;
332
- hints?: string[];
333
- timeout?: number;
334
- translatedHints?: TranslatedHint[];
335
- currentTag?: string;
336
- currentDate?: string;
337
- currentPlaceName?: string;
338
- currentLatitude?: number;
339
- currentLongitude?: number;
340
- currentUncertaintyKm?: number;
341
- giverID?: string;
342
- currentReceiverID?: string;
343
- currentMemoryID?: string;
344
- media?: Medium[];
345
- knownTags?: {
346
- [key: string]: string;
347
- };
348
- contextVars?: {
349
- [key: string]: string;
350
- };
351
- };
352
- export declare type Person = {
353
- personID?: string;
354
- personType: 'Giver' | 'Receiver';
355
- name?: string;
356
- information?: string;
357
- pin: string;
358
- tag: string;
359
- creationTimestamp?: string;
360
- creationName?: string;
361
- lastChangeTimestamp?: string;
362
- lastChangeName?: string;
363
- };
364
- export declare type PersonificationProfile = {
365
- tag?: string;
366
- pin?: string;
367
- name?: string;
368
- sessionID: string;
369
- };
370
- export declare type Invitation = {
371
- invitationID?: string;
372
- memoriID: string;
373
- isInviter?: boolean;
374
- isInvitee?: boolean;
375
- text?: string;
376
- destinationEMail: string;
377
- destinationName: string;
378
- tag: string;
379
- pin: string;
380
- type: string;
381
- state?: 'PENDING' | 'ACCEPTED' | 'REJECTED';
382
- creationTimestamp?: string;
383
- lastChangeTimestamp?: string;
384
- };
385
- export declare type LocalizationKeyContent = {
386
- key: string;
387
- value: string;
388
- };
389
- export declare type LocalizationKey = LocalizationKeyContent & {
390
- creationTimestamp?: string;
391
- creationName?: string;
392
- lastChangeTimestamp?: string;
393
- lastChangeName?: string;
394
- };
395
- export declare type Asset = {
396
- assetID: string;
397
- assetURL: string;
398
- mimeType: string;
399
- memoriID: string;
400
- originalFileName?: string;
401
- title?: string;
402
- engineMemoryID?: string;
403
- creationTimestamp: string;
404
- lastChangeTimestamp: string;
405
- };
406
- export declare type SearchQuery = {
407
- text: string;
408
- searchType?: 'Literal' | 'Semantic';
409
- date?: string;
410
- dateUncertaintyDays?: number;
411
- placeName?: string;
412
- placeLatitude?: number;
413
- placeLongitude?: number;
414
- placeUncertaintyKm?: number;
415
- tag?: string;
416
- ignoreLastRead?: boolean;
417
- excludedMemoryIDs?: string[];
418
- numberOfResults?: number;
419
- };
420
- export declare type SearchMatches = {
421
- confidence: number;
422
- confidenceLevel?: 'LOW' | 'MEDIUM' | 'HIGH';
423
- memory: Memory;
424
- };
425
- export declare type Answer = {
426
- text: string;
427
- preformatted?: boolean;
428
- creationTimestamp?: string;
429
- creationName?: string;
430
- lastChangeTimestamp?: string;
431
- lastChangeName?: string;
432
- };
433
- export declare type Memory = {
434
- memoryID: string;
435
- memoryType: string;
436
- lastRead?: string;
437
- readOccurrencies?: number;
438
- receiverID?: string;
439
- receiverTag?: string;
440
- receiverName?: string;
441
- media?: Medium[];
442
- text?: string;
443
- textVariants?: string[];
444
- answers?: Answer[];
445
- title?: string;
446
- titleVariants?: string[];
447
- date?: string;
448
- dateUncertaintyDays?: number;
449
- placeName?: string;
450
- placeLatitude?: number;
451
- placeLongitude?: number;
452
- placeUncertaintyKm?: number;
453
- preformatted?: boolean;
454
- conclusive?: boolean;
455
- help?: boolean;
456
- notPickable?: boolean;
457
- hints?: string[];
458
- minTimeout?: number;
459
- maxTimeout?: number;
460
- contextVarsToSet?: {
461
- [variable: string]: string;
462
- };
463
- contextVarsToMatch?: {
464
- [variable: string]: string;
465
- };
466
- /**
467
- * Used for Unanswered Questions
468
- */
469
- contextVars?: {
470
- [variable: string]: string;
471
- };
472
- creationTimestamp?: string;
473
- creationName?: string;
474
- creationSessionID?: string;
475
- lastChangeTimestamp?: string;
476
- lastChangeName?: string;
477
- lastChangeSessionID?: string;
478
- };
479
- export declare type UnansweredQuestion = {
480
- unansweredQuestionID?: string;
481
- text: string;
482
- occurrencies: number;
483
- receiverID?: string;
484
- receiverTag?: string;
485
- receiverName?: string;
486
- creationTimestamp?: string;
487
- creationName?: string;
488
- creationSessionID?: string;
489
- lastChangeTimestamp?: string;
490
- lastChangeName?: string;
491
- lastChangeSessionID?: string;
492
- suggestions?: SearchMatches[];
493
- };
494
- export declare type Message = {
495
- memoryID?: string;
496
- text: string;
497
- translatedText?: string;
498
- acceptsFeedback?: boolean;
499
- generatedByAI?: boolean;
500
- fromUser?: boolean;
501
- media?: Medium[];
502
- initial?: boolean;
503
- timestamp?: string;
504
- contextVars?: {
505
- [key: string]: string;
506
- };
507
- };
508
- export declare type ConsumptionLog = {
509
- consumptionLogID: string;
510
- from: string;
511
- to: string;
512
- type: 'Daily' | 'Monthly';
513
- userID?: string;
514
- memoriID?: string;
515
- totalSessions: number;
516
- validSessions: number;
517
- completions: number;
518
- };
519
- export declare type Notification = {
520
- notificationID: string;
521
- timestamp: string;
522
- severity: 'INFO' | 'WARN' | 'ALERT';
523
- texts: {
524
- 'it-IT': string;
525
- 'en-US': string;
526
- [lang: string]: string;
527
- };
528
- };
529
- export declare type ChatMedium = {
530
- /**
531
- * URL of the Medium. If specified, the Content property is Null.
532
- */
533
- url?: string;
534
- /**
535
- * Content of the Medium. If specified, the URL property is Null.
536
- */
537
- content?: string;
538
- /**
539
- * MIME type of the Medium.
540
- */
541
- mimeType: string;
542
- /**
543
- * Title of the Medium.
544
- */
545
- title?: string;
546
- /**
547
- * Key-value pairs for additional structured content storage.
548
- */
549
- properties?: {
550
- [key: string]: any;
551
- };
552
- };
553
- export declare type ChatLogLine = {
554
- /**
555
- * @type {string}
556
- * Timestamp UTC of the line.
557
- */
558
- timestamp: string;
559
- /**
560
- * @type {boolean}
561
- * If True the line is the text from a Text Entered Event. If False the line is Dialog State Machine emission.
562
- */
563
- inbound: boolean;
564
- /**
565
- * @type {string}
566
- * Text of the line.
567
- */
568
- text: string;
569
- /**
570
- * Media attached with the Dialog State Machine emission, if present. Empty if the line is inbound.
571
- */
572
- media?: ChatMedium[];
573
- /**
574
- * ID of the Memory object referenced in this line.
575
- */
576
- memoryID?: string;
577
- /**
578
- * Dialog State Machine context variables after the emission, if present. Empty if the line is inbound.
579
- */
580
- contextVars?: {
581
- [key: string]: string;
582
- };
583
- /**
584
- * @type {boolean}
585
- * If True the text is a complation obtained via a generative AI. Can only be True for outbound lines.
586
- */
587
- completion?: boolean;
588
- /**
589
- * @type {boolean}
590
- * If True the line is the result of a high confidence Memory object match, and as such can be subject to feedback.
591
- * Can only be True for outbound lines.
592
- */
593
- acceptsFeedback?: boolean;
594
- };
595
- export declare type ChatLog = {
596
- /**
597
- * @param {string}
598
- * Chat Log object ID.
599
- */
600
- chatLogID: string;
601
- /**
602
- * @type {string}
603
- * Timestamp UTC of the chat log creation.
604
- */
605
- timestamp: string;
606
- /**
607
- * @type {string}
608
- * ID of the related Memori object in the Engine.
609
- * Relates to Memori.engineMemoriID
610
- */
611
- memoriID: string;
612
- /**
613
- * @type {string}
614
- * ID of the related session.
615
- */
616
- sessionID: string;
617
- /**
618
- * @type {?string}
619
- * Tag of the Person object authenticated in the session. Null if the chat was performed by anonymous.
620
- */
621
- receiverTag?: string;
622
- /**
623
- * List of Chat Line objects of this chat.
624
- */
625
- lines: ChatLogLine[];
626
- };
627
- export declare type CorrelationPair = {
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
+ }