@memori.ai/memori-api-client 0.2.1 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/README.md +1 -1
  2. package/dist/apiFetcher.d.ts +1 -0
  3. package/dist/backend/consumptionLogs.d.ts +40 -0
  4. package/dist/backend/memori.d.ts +11 -0
  5. package/dist/backend/notifications.d.ts +20 -0
  6. package/dist/backend.d.ts +42 -0
  7. package/dist/engine/chatLogs.d.ts +31 -0
  8. package/dist/engine/customDictionary.d.ts +47 -0
  9. package/dist/engine/dialog.d.ts +3 -9
  10. package/dist/engine/importExport.d.ts +39 -14
  11. package/dist/engine/intents.d.ts +36 -11
  12. package/dist/engine/nlp.d.ts +42 -1
  13. package/dist/engine/stats.d.ts +68 -1
  14. package/dist/engine.d.ts +174 -38
  15. package/dist/index.d.ts +216 -38
  16. package/dist/memori-api-client.cjs.development.js +702 -67
  17. package/dist/memori-api-client.cjs.development.js.map +1 -1
  18. package/dist/memori-api-client.cjs.production.min.js +1 -1
  19. package/dist/memori-api-client.cjs.production.min.js.map +1 -1
  20. package/dist/memori-api-client.esm.js +702 -67
  21. package/dist/memori-api-client.esm.js.map +1 -1
  22. package/dist/types.d.ts +318 -1
  23. package/package.json +1 -1
  24. package/src/apiFetcher.ts +2 -1
  25. package/src/backend/consumptionLogs.ts +79 -0
  26. package/src/backend/memori.ts +20 -0
  27. package/src/backend/notifications.ts +24 -0
  28. package/src/backend.ts +6 -0
  29. package/src/engine/chatLogs.ts +63 -0
  30. package/src/engine/customDictionary.ts +85 -0
  31. package/src/engine/dialog.ts +3 -3
  32. package/src/engine/importExport.ts +56 -16
  33. package/src/engine/intents.ts +58 -21
  34. package/src/engine/nlp.ts +78 -1
  35. package/src/engine/stats.ts +117 -1
  36. package/src/engine.ts +6 -0
  37. package/src/types.ts +327 -1
@@ -419,7 +419,7 @@ var apiFetcher = function apiFetcher(path, opts) {
419
419
  'Content-Type': 'application/json'
420
420
  }, opts == null ? void 0 : opts.headers)
421
421
  })).then(function (res) {
422
- return res.json();
422
+ return opts != null && opts.text ? res.text() : res.json();
423
423
  });
424
424
  };
425
425
 
@@ -593,6 +593,21 @@ var memori = (function (apiUrl) {
593
593
  return apiFetcher("/MemoriSessions/" + authToken + "/" + memoriID + (dateFrom ? "/" + dateFrom : '') + (dateFrom && dateTo ? "/" + dateTo : ''), {
594
594
  apiUrl: apiUrl
595
595
  });
596
+ },
597
+
598
+ /**
599
+ * Transfers an existing Memori object to another User.
600
+ * The new owner must be specified by either a OwnerUserID or a OwnerUserName-OwnerTenantName pair.
601
+ * The OwnerUserName may also specify a user e-mail.
602
+ * @param {string} authToken - The login token
603
+ * @param {Memori} memori - The Memori object
604
+ */
605
+ transferMemori: function transferMemori(authToken, memori) {
606
+ return apiFetcher("/TransferMemori/" + authToken, {
607
+ apiUrl: apiUrl,
608
+ body: memori,
609
+ method: 'POST'
610
+ });
596
611
  }
597
612
  };
598
613
  });
@@ -1078,14 +1093,91 @@ var invitation = (function (apiUrl) {
1078
1093
  };
1079
1094
  });
1080
1095
 
1096
+ var consumptionLogs = (function (apiUrl) {
1097
+ return {
1098
+ /**
1099
+ * Gets the Consumption Log objects for a specific Tenant in a specific date interval.
1100
+ * @param {string} authToken - The login token
1101
+ * @param {string} tenantID - The name of the tenant
1102
+ * @param {string} type - Type of consumption (i.e. granularity), it may either be Daily or Monthly
1103
+ * @param {string=} dateFrom - The optional begin of the date interval, in UTC time, in the format yyyyMMdd
1104
+ * @param {string=} dateTo - The optional end of the date interval, in UTC time, in the format yyyyMMdd
1105
+ * @returns The list of Consumption Logs objects.
1106
+ */
1107
+ getTenantConsumptionLogs: function getTenantConsumptionLogs(authToken, tenantID, type, dateFrom, dateTo) {
1108
+ return apiFetcher("/TenantConsumptionLogs/" + authToken + "/" + tenantID + "/" + type + (dateFrom ? "/" + dateFrom : '') + (dateFrom && dateTo ? "/" + dateTo : ''), {
1109
+ apiUrl: apiUrl
1110
+ });
1111
+ },
1112
+
1113
+ /**
1114
+ * Gets the Consumption Log objects for a specific User in a specific date interval.
1115
+ * @param {string} authToken - The login token
1116
+ * @param {string} userID - The ID of the User object
1117
+ * @param {string} type - Type of consumption (i.e. granularity), it may either be Daily or Monthly
1118
+ * @param {string=} dateFrom - The optional begin of the date interval, in UTC time, in the format yyyyMMdd
1119
+ * @param {string=} dateTo - The optional end of the date interval, in UTC time, in the format yyyyMMdd
1120
+ * @returns The list of Consumption Logs objects.
1121
+ */
1122
+ getUserConsumptionLogs: function getUserConsumptionLogs(authToken, userID, type, dateFrom, dateTo) {
1123
+ return apiFetcher("/UserConsumptionLogs/" + authToken + "/" + userID + "/" + type + (dateFrom ? "/" + dateFrom : '') + (dateFrom && dateTo ? "/" + dateTo : ''), {
1124
+ apiUrl: apiUrl
1125
+ });
1126
+ },
1127
+
1128
+ /**
1129
+ * Gets the Consumption Log objects for a specific Memori in a specific date interval.
1130
+ * @param {string} authToken - The login token
1131
+ * @param {string} memoriID - The ID of the Memori object
1132
+ * @param {string} type - Type of consumption (i.e. granularity), it may either be Daily or Monthly
1133
+ * @param {string=} dateFrom - The optional begin of the date interval, in UTC time, in the format yyyyMMdd
1134
+ * @param {string=} dateTo - The optional end of the date interval, in UTC time, in the format yyyyMMdd
1135
+ * @returns The list of Consumption Logs objects.
1136
+ */
1137
+ getMemoriConsumptionLogs: function getMemoriConsumptionLogs(authToken, memoriID, type, dateFrom, dateTo) {
1138
+ return apiFetcher("/MemoriConsumptionLogs/" + authToken + "/" + memoriID + "/" + type + (dateFrom ? "/" + dateFrom : '') + (dateFrom && dateTo ? "/" + dateTo : ''), {
1139
+ apiUrl: apiUrl
1140
+ });
1141
+ }
1142
+ };
1143
+ });
1144
+
1145
+ var notifications = (function (apiUrl) {
1146
+ return {
1147
+ /**
1148
+ * Gets the Notification objects available for a specific Tenant.
1149
+ * @param {string} tenantID - The name of the tenant
1150
+ * @returns The list of Notification objects.
1151
+ */
1152
+ getTenantNotifications: function getTenantNotifications(tenantID) {
1153
+ return apiFetcher("/TenantNotifications/" + tenantID, {
1154
+ apiUrl: apiUrl
1155
+ });
1156
+ },
1157
+
1158
+ /**
1159
+ * Gets the Notification objects available for a specific User.
1160
+ * @param {string} authToken - The login token
1161
+ * @returns The list of Notification objects.
1162
+ */
1163
+ getUserNotifications: function getUserNotifications(authToken) {
1164
+ return apiFetcher("/UserNotifications/" + authToken, {
1165
+ apiUrl: apiUrl
1166
+ });
1167
+ }
1168
+ };
1169
+ });
1170
+
1081
1171
  var backendAPI = function backendAPI(apiUrl) {
1082
1172
  return _extends({
1083
1173
  asset: asset(apiUrl),
1084
1174
  memori: memori(apiUrl),
1085
1175
  user: user(apiUrl),
1086
1176
  integration: integration(apiUrl),
1087
- invitation: invitation(apiUrl)
1088
- }, asset(apiUrl), memori(apiUrl), user(apiUrl), integration(apiUrl), invitation(apiUrl));
1177
+ invitation: invitation(apiUrl),
1178
+ consumptionLogs: consumptionLogs(apiUrl),
1179
+ notifications: notifications(apiUrl)
1180
+ }, asset(apiUrl), memori(apiUrl), user(apiUrl), integration(apiUrl), invitation(apiUrl), consumptionLogs(apiUrl), notifications(apiUrl));
1089
1181
  };
1090
1182
 
1091
1183
  /****************************
@@ -1380,19 +1472,17 @@ var dialog = (function (apiUrl) {
1380
1472
  * @param {string} sessionId The session ID
1381
1473
  */
1382
1474
  postDateSelectedEvent: function () {
1383
- var _postDateSelectedEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(_ref3) {
1384
- var sessionId;
1475
+ var _postDateSelectedEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(sessionId) {
1385
1476
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
1386
1477
  while (1) {
1387
1478
  switch (_context7.prev = _context7.next) {
1388
1479
  case 0:
1389
- sessionId = _ref3.sessionId;
1390
1480
  return _context7.abrupt("return", apiFetcher("/DateSelectedEvent/" + sessionId, {
1391
1481
  method: 'GET',
1392
1482
  apiUrl: apiUrl
1393
1483
  }));
1394
1484
 
1395
- case 2:
1485
+ case 1:
1396
1486
  case "end":
1397
1487
  return _context7.stop();
1398
1488
  }
@@ -1412,19 +1502,17 @@ var dialog = (function (apiUrl) {
1412
1502
  * @param {string} sessionId The session ID
1413
1503
  */
1414
1504
  postPlaceSelectedEvent: function () {
1415
- var _postPlaceSelectedEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(_ref4) {
1416
- var sessionId;
1505
+ var _postPlaceSelectedEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(sessionId) {
1417
1506
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
1418
1507
  while (1) {
1419
1508
  switch (_context8.prev = _context8.next) {
1420
1509
  case 0:
1421
- sessionId = _ref4.sessionId;
1422
1510
  return _context8.abrupt("return", apiFetcher("/PlaceSelectedEvent/" + sessionId, {
1423
1511
  method: 'GET',
1424
1512
  apiUrl: apiUrl
1425
1513
  }));
1426
1514
 
1427
- case 2:
1515
+ case 1:
1428
1516
  case "end":
1429
1517
  return _context8.stop();
1430
1518
  }
@@ -1444,19 +1532,17 @@ var dialog = (function (apiUrl) {
1444
1532
  * @param {string} sessionId The session ID
1445
1533
  */
1446
1534
  postTagSelectedEvent: function () {
1447
- var _postTagSelectedEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(_ref5) {
1448
- var sessionId;
1535
+ var _postTagSelectedEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(sessionId) {
1449
1536
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
1450
1537
  while (1) {
1451
1538
  switch (_context9.prev = _context9.next) {
1452
1539
  case 0:
1453
- sessionId = _ref5.sessionId;
1454
1540
  return _context9.abrupt("return", apiFetcher("/TagSelectedEvent/" + sessionId, {
1455
1541
  method: 'GET',
1456
1542
  apiUrl: apiUrl
1457
1543
  }));
1458
1544
 
1459
- case 2:
1545
+ case 1:
1460
1546
  case "end":
1461
1547
  return _context9.stop();
1462
1548
  }
@@ -1484,10 +1570,11 @@ var importExport = (function (apiUrl) {
1484
1570
  /**
1485
1571
  * Imports memories from a CSV file.
1486
1572
  * @param {string} sessionId The session ID
1487
- * @param {ImportExportBody} csvData The CSV content info to import
1573
+ * @param {string[]} csvRows Rows of the CSV file.
1574
+ * @param {ImportCSVParams} params The specifications and content of the CSV file
1488
1575
  */
1489
- postImportExport: function () {
1490
- var _postImportExport = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(sessionId, csvData) {
1576
+ importCSV: function () {
1577
+ var _importCSV = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(sessionId, csvRows, params) {
1491
1578
  return _regeneratorRuntime().wrap(function _callee$(_context) {
1492
1579
  while (1) {
1493
1580
  switch (_context.prev = _context.next) {
@@ -1495,7 +1582,9 @@ var importExport = (function (apiUrl) {
1495
1582
  return _context.abrupt("return", apiFetcher("/ImportExport/ImportCSV/" + sessionId, {
1496
1583
  method: 'POST',
1497
1584
  apiUrl: apiUrl,
1498
- body: csvData
1585
+ body: _extends({
1586
+ csvRows: csvRows
1587
+ }, params)
1499
1588
  }));
1500
1589
 
1501
1590
  case 1:
@@ -1506,11 +1595,45 @@ var importExport = (function (apiUrl) {
1506
1595
  }, _callee);
1507
1596
  }));
1508
1597
 
1509
- function postImportExport(_x, _x2) {
1510
- return _postImportExport.apply(this, arguments);
1598
+ function importCSV(_x, _x2, _x3) {
1599
+ return _importCSV.apply(this, arguments);
1600
+ }
1601
+
1602
+ return importCSV;
1603
+ }(),
1604
+
1605
+ /**
1606
+ * Exports memories to a CSV file.
1607
+ * @param {string} sessionID The session ID
1608
+ * @param {ExportCSVParams} params - The specifications of the CSV file
1609
+ * @returns The CSV file content
1610
+ */
1611
+ exportCSV: function () {
1612
+ var _exportCSV = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionID, params) {
1613
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1614
+ while (1) {
1615
+ switch (_context2.prev = _context2.next) {
1616
+ case 0:
1617
+ return _context2.abrupt("return", apiFetcher("/ImportExport/ExportCSV/" + sessionID, {
1618
+ method: 'POST',
1619
+ apiUrl: apiUrl,
1620
+ body: params,
1621
+ text: true
1622
+ }));
1623
+
1624
+ case 1:
1625
+ case "end":
1626
+ return _context2.stop();
1627
+ }
1628
+ }
1629
+ }, _callee2);
1630
+ }));
1631
+
1632
+ function exportCSV(_x4, _x5) {
1633
+ return _exportCSV.apply(this, arguments);
1511
1634
  }
1512
1635
 
1513
- return postImportExport;
1636
+ return exportCSV;
1514
1637
  }()
1515
1638
  };
1516
1639
  });
@@ -1587,17 +1710,18 @@ var intents = (function (apiUrl) {
1587
1710
  /**
1588
1711
  * Updates an existing Intent object.
1589
1712
  * @param {string} sessionId The session ID
1590
- * @param {string} intentId The Intent object ID
1713
+ * @param {Intent} intent The Intent object
1591
1714
  */
1592
1715
  patchIntent: function () {
1593
- var _patchIntent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(sessionId, intentId) {
1716
+ var _patchIntent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(sessionId, intent) {
1594
1717
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
1595
1718
  while (1) {
1596
1719
  switch (_context3.prev = _context3.next) {
1597
1720
  case 0:
1598
- return _context3.abrupt("return", apiFetcher("/Intent/" + sessionId + "/" + intentId, {
1599
- method: 'GET',
1600
- apiUrl: apiUrl
1721
+ return _context3.abrupt("return", apiFetcher("/Intent/" + sessionId + "/" + intent.intentID, {
1722
+ method: 'PATCH',
1723
+ apiUrl: apiUrl,
1724
+ body: intent
1601
1725
  }));
1602
1726
 
1603
1727
  case 1:
@@ -1627,7 +1751,7 @@ var intents = (function (apiUrl) {
1627
1751
  switch (_context4.prev = _context4.next) {
1628
1752
  case 0:
1629
1753
  return _context4.abrupt("return", apiFetcher("/Intent/" + sessionId + "/" + intentId, {
1630
- method: 'GET',
1754
+ method: 'DELETE',
1631
1755
  apiUrl: apiUrl
1632
1756
  }));
1633
1757
 
@@ -1649,16 +1773,18 @@ var intents = (function (apiUrl) {
1649
1773
  /**
1650
1774
  * Adds a new Intent object.
1651
1775
  * @param {string} sessionId The session ID
1776
+ * @param {Intent} intent The Intent object
1652
1777
  */
1653
- postIntent: function () {
1654
- var _postIntent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(sessionId) {
1778
+ createIntent: function () {
1779
+ var _createIntent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(sessionId, intent) {
1655
1780
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
1656
1781
  while (1) {
1657
1782
  switch (_context5.prev = _context5.next) {
1658
1783
  case 0:
1659
1784
  return _context5.abrupt("return", apiFetcher("/Intent/" + sessionId, {
1660
- method: 'GET',
1661
- apiUrl: apiUrl
1785
+ method: 'POST',
1786
+ apiUrl: apiUrl,
1787
+ body: intent
1662
1788
  }));
1663
1789
 
1664
1790
  case 1:
@@ -1669,11 +1795,11 @@ var intents = (function (apiUrl) {
1669
1795
  }, _callee5);
1670
1796
  }));
1671
1797
 
1672
- function postIntent(_x8) {
1673
- return _postIntent.apply(this, arguments);
1798
+ function createIntent(_x8, _x9) {
1799
+ return _createIntent.apply(this, arguments);
1674
1800
  }
1675
1801
 
1676
- return postIntent;
1802
+ return createIntent;
1677
1803
  }(),
1678
1804
 
1679
1805
  /**
@@ -1699,7 +1825,7 @@ var intents = (function (apiUrl) {
1699
1825
  }, _callee6);
1700
1826
  }));
1701
1827
 
1702
- function getIntentSlots(_x9) {
1828
+ function getIntentSlots(_x10) {
1703
1829
  return _getIntentSlots.apply(this, arguments);
1704
1830
  }
1705
1831
 
@@ -1730,7 +1856,7 @@ var intents = (function (apiUrl) {
1730
1856
  }, _callee7);
1731
1857
  }));
1732
1858
 
1733
- function getIntentSlot(_x10, _x11) {
1859
+ function getIntentSlot(_x11, _x12) {
1734
1860
  return _getIntentSlot.apply(this, arguments);
1735
1861
  }
1736
1862
 
@@ -1740,17 +1866,18 @@ var intents = (function (apiUrl) {
1740
1866
  /**
1741
1867
  * Updates an existing Intent Slot object.
1742
1868
  * @param {string} sessionId The session ID
1743
- * @param {string} slotId The Intent Slot object ID
1869
+ * @param {IntentSlot} intentSlot The Intent Slot object
1744
1870
  */
1745
1871
  patchIntentSlot: function () {
1746
- var _patchIntentSlot = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(sessionId, slotId) {
1872
+ var _patchIntentSlot = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(sessionId, intentSlot) {
1747
1873
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
1748
1874
  while (1) {
1749
1875
  switch (_context8.prev = _context8.next) {
1750
1876
  case 0:
1751
- return _context8.abrupt("return", apiFetcher("/IntentSlot/" + sessionId + "/" + slotId, {
1752
- method: 'GET',
1753
- apiUrl: apiUrl
1877
+ return _context8.abrupt("return", apiFetcher("/IntentSlot/" + sessionId + "/" + intentSlot.intentSlotID, {
1878
+ method: 'PATCH',
1879
+ apiUrl: apiUrl,
1880
+ body: intentSlot
1754
1881
  }));
1755
1882
 
1756
1883
  case 1:
@@ -1761,7 +1888,7 @@ var intents = (function (apiUrl) {
1761
1888
  }, _callee8);
1762
1889
  }));
1763
1890
 
1764
- function patchIntentSlot(_x12, _x13) {
1891
+ function patchIntentSlot(_x13, _x14) {
1765
1892
  return _patchIntentSlot.apply(this, arguments);
1766
1893
  }
1767
1894
 
@@ -1780,7 +1907,7 @@ var intents = (function (apiUrl) {
1780
1907
  switch (_context9.prev = _context9.next) {
1781
1908
  case 0:
1782
1909
  return _context9.abrupt("return", apiFetcher("/IntentSlot/" + sessionId + "/" + slotId, {
1783
- method: 'GET',
1910
+ method: 'DELETE',
1784
1911
  apiUrl: apiUrl
1785
1912
  }));
1786
1913
 
@@ -1792,7 +1919,7 @@ var intents = (function (apiUrl) {
1792
1919
  }, _callee9);
1793
1920
  }));
1794
1921
 
1795
- function deleteIntentSlot(_x14, _x15) {
1922
+ function deleteIntentSlot(_x15, _x16) {
1796
1923
  return _deleteIntentSlot.apply(this, arguments);
1797
1924
  }
1798
1925
 
@@ -1803,15 +1930,16 @@ var intents = (function (apiUrl) {
1803
1930
  * Adds a new Intent Slot object.
1804
1931
  * @param {string} sessionId The session ID
1805
1932
  */
1806
- postIntentSlot: function () {
1807
- var _postIntentSlot = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(sessionId) {
1933
+ createIntentSlot: function () {
1934
+ var _createIntentSlot = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(sessionId, intentSlot) {
1808
1935
  return _regeneratorRuntime().wrap(function _callee10$(_context10) {
1809
1936
  while (1) {
1810
1937
  switch (_context10.prev = _context10.next) {
1811
1938
  case 0:
1812
1939
  return _context10.abrupt("return", apiFetcher("/IntentSlot/" + sessionId, {
1813
- method: 'GET',
1814
- apiUrl: apiUrl
1940
+ method: 'POST',
1941
+ apiUrl: apiUrl,
1942
+ body: intentSlot
1815
1943
  }));
1816
1944
 
1817
1945
  case 1:
@@ -1822,11 +1950,11 @@ var intents = (function (apiUrl) {
1822
1950
  }, _callee10);
1823
1951
  }));
1824
1952
 
1825
- function postIntentSlot(_x16) {
1826
- return _postIntentSlot.apply(this, arguments);
1953
+ function createIntentSlot(_x17, _x18) {
1954
+ return _createIntentSlot.apply(this, arguments);
1827
1955
  }
1828
1956
 
1829
- return postIntentSlot;
1957
+ return createIntentSlot;
1830
1958
  }()
1831
1959
  };
1832
1960
  });
@@ -2419,18 +2547,49 @@ var nlp = (function (apiUrl) {
2419
2547
  return getWordVector;
2420
2548
  }(),
2421
2549
 
2550
+ /**
2551
+ * Searches for the 10 words most semantically similar words to the specified word.
2552
+ * @param {string} sessionId The session ID
2553
+ * @param {string} word Word to be looked up
2554
+ */
2555
+ getSimilarWords: function () {
2556
+ var _getSimilarWords = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionId, word) {
2557
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2558
+ while (1) {
2559
+ switch (_context2.prev = _context2.next) {
2560
+ case 0:
2561
+ return _context2.abrupt("return", apiFetcher("/SimilarWords/" + sessionId + "/" + word, {
2562
+ method: 'GET',
2563
+ apiUrl: apiUrl
2564
+ }));
2565
+
2566
+ case 1:
2567
+ case "end":
2568
+ return _context2.stop();
2569
+ }
2570
+ }
2571
+ }, _callee2);
2572
+ }));
2573
+
2574
+ function getSimilarWords(_x3, _x4) {
2575
+ return _getSimilarWords.apply(this, arguments);
2576
+ }
2577
+
2578
+ return getSimilarWords;
2579
+ }(),
2580
+
2422
2581
  /**
2423
2582
  * Tries to guess the language of a sentence by analyzing key word occurrences.
2424
2583
  * @param {string} sessionId The session ID
2425
2584
  * @param {string} text Text to be used for guessing the language.
2426
2585
  */
2427
2586
  guessLanguage: function () {
2428
- var _guessLanguage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionId, text) {
2429
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2587
+ var _guessLanguage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(sessionId, text) {
2588
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
2430
2589
  while (1) {
2431
- switch (_context2.prev = _context2.next) {
2590
+ switch (_context3.prev = _context3.next) {
2432
2591
  case 0:
2433
- return _context2.abrupt("return", apiFetcher("/GuessLanguage/" + sessionId, {
2592
+ return _context3.abrupt("return", apiFetcher("/GuessLanguage/" + sessionId, {
2434
2593
  method: 'POST',
2435
2594
  apiUrl: apiUrl,
2436
2595
  body: {
@@ -2440,17 +2599,91 @@ var nlp = (function (apiUrl) {
2440
2599
 
2441
2600
  case 1:
2442
2601
  case "end":
2443
- return _context2.stop();
2602
+ return _context3.stop();
2444
2603
  }
2445
2604
  }
2446
- }, _callee2);
2605
+ }, _callee3);
2447
2606
  }));
2448
2607
 
2449
- function guessLanguage(_x3, _x4) {
2608
+ function guessLanguage(_x5, _x6) {
2450
2609
  return _guessLanguage.apply(this, arguments);
2451
2610
  }
2452
2611
 
2453
2612
  return guessLanguage;
2613
+ }(),
2614
+
2615
+ /**
2616
+ * Computes the similarity between a reference and a comparison sentences.
2617
+ * @param {string} sessionId The session ID
2618
+ * @param {string} referenceText Text of the reference sentence.
2619
+ * @param {'QUESTION' | 'ANSWER'} referenceTextType Type of reference text, i.e. question or answer. Only types supported are: 'QUESTION' and 'ANSWER'.
2620
+ * @param {string} comparisonText Text of the comparison sentence.
2621
+ * @param {'QUESTION' | 'ANSWER'} comparisonTextType Type of comparison text, i.e. question or answer. Only types supported are: 'QUESTION' and 'ANSWER'.
2622
+ */
2623
+ computeSimilarity: function () {
2624
+ var _computeSimilarity = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(sessionId, referenceText, referenceTextType, comparisonText, comparisonTextType) {
2625
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
2626
+ while (1) {
2627
+ switch (_context4.prev = _context4.next) {
2628
+ case 0:
2629
+ return _context4.abrupt("return", apiFetcher("/ComputeSimilarity/" + sessionId, {
2630
+ method: 'POST',
2631
+ apiUrl: apiUrl,
2632
+ body: {
2633
+ referenceText: referenceText,
2634
+ referenceTextType: referenceTextType,
2635
+ comparisonText: comparisonText,
2636
+ comparisonTextType: comparisonTextType
2637
+ }
2638
+ }));
2639
+
2640
+ case 1:
2641
+ case "end":
2642
+ return _context4.stop();
2643
+ }
2644
+ }
2645
+ }, _callee4);
2646
+ }));
2647
+
2648
+ function computeSimilarity(_x7, _x8, _x9, _x10, _x11) {
2649
+ return _computeSimilarity.apply(this, arguments);
2650
+ }
2651
+
2652
+ return computeSimilarity;
2653
+ }(),
2654
+
2655
+ /**
2656
+ * Checks the words of a sentence for their definition in the word vector dictionary.
2657
+ * @param {string} sessionId The session ID
2658
+ * @param {string} text Text of the sentence.
2659
+ */
2660
+ checkWords: function () {
2661
+ var _checkWords = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(sessionId, text) {
2662
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
2663
+ while (1) {
2664
+ switch (_context5.prev = _context5.next) {
2665
+ case 0:
2666
+ return _context5.abrupt("return", apiFetcher("/CheckWords/" + sessionId, {
2667
+ method: 'POST',
2668
+ apiUrl: apiUrl,
2669
+ body: {
2670
+ text: text
2671
+ }
2672
+ }));
2673
+
2674
+ case 1:
2675
+ case "end":
2676
+ return _context5.stop();
2677
+ }
2678
+ }
2679
+ }, _callee5);
2680
+ }));
2681
+
2682
+ function checkWords(_x12, _x13) {
2683
+ return _checkWords.apply(this, arguments);
2684
+ }
2685
+
2686
+ return checkWords;
2454
2687
  }()
2455
2688
  };
2456
2689
  });
@@ -3027,6 +3260,66 @@ var stats = (function (apiUrl) {
3027
3260
  return getStatistics;
3028
3261
  }(),
3029
3262
 
3263
+ /**
3264
+ * Computes content quality indexes for a Memori.
3265
+ * @param {string} memoriID - The Memori object ID
3266
+ */
3267
+ getContentQualityIndexes: function () {
3268
+ var _getContentQualityIndexes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(memoriID) {
3269
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
3270
+ while (1) {
3271
+ switch (_context2.prev = _context2.next) {
3272
+ case 0:
3273
+ return _context2.abrupt("return", apiFetcher("/ContentQualityIndexes/" + memoriID, {
3274
+ method: 'GET',
3275
+ apiUrl: apiUrl
3276
+ }));
3277
+
3278
+ case 1:
3279
+ case "end":
3280
+ return _context2.stop();
3281
+ }
3282
+ }
3283
+ }, _callee2);
3284
+ }));
3285
+
3286
+ function getContentQualityIndexes(_x2) {
3287
+ return _getContentQualityIndexes.apply(this, arguments);
3288
+ }
3289
+
3290
+ return getContentQualityIndexes;
3291
+ }(),
3292
+
3293
+ /**
3294
+ * Computes text quality indexes for a Memori.
3295
+ * @param {string} sessionId - The session ID
3296
+ */
3297
+ getTextQualityIndexes: function () {
3298
+ var _getTextQualityIndexes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(sessionId) {
3299
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
3300
+ while (1) {
3301
+ switch (_context3.prev = _context3.next) {
3302
+ case 0:
3303
+ return _context3.abrupt("return", apiFetcher("/TextQualityIndexes/" + sessionId, {
3304
+ method: 'GET',
3305
+ apiUrl: apiUrl
3306
+ }));
3307
+
3308
+ case 1:
3309
+ case "end":
3310
+ return _context3.stop();
3311
+ }
3312
+ }
3313
+ }, _callee3);
3314
+ }));
3315
+
3316
+ function getTextQualityIndexes(_x3) {
3317
+ return _getTextQualityIndexes.apply(this, arguments);
3318
+ }
3319
+
3320
+ return getTextQualityIndexes;
3321
+ }(),
3322
+
3030
3323
  /**
3031
3324
  * Get the Event Log objects for the Memori of the current session in a specific date interval
3032
3325
  * @param {string} sessionId The session ID
@@ -3034,29 +3327,95 @@ var stats = (function (apiUrl) {
3034
3327
  * @param {string} strDateTo The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
3035
3328
  */
3036
3329
  getEventLogs: function () {
3037
- var _getEventLogs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionId, strDateFrom, strDateTo) {
3038
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
3330
+ var _getEventLogs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(sessionId, strDateFrom, strDateTo) {
3331
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
3039
3332
  while (1) {
3040
- switch (_context2.prev = _context2.next) {
3333
+ switch (_context4.prev = _context4.next) {
3041
3334
  case 0:
3042
- return _context2.abrupt("return", apiFetcher("/EventLogs/" + sessionId + "/" + strDateFrom + "/" + strDateTo, {
3335
+ return _context4.abrupt("return", apiFetcher("/EventLogs/" + sessionId + "/" + strDateFrom + "/" + strDateTo, {
3043
3336
  method: 'GET',
3044
3337
  apiUrl: apiUrl
3045
3338
  }));
3046
3339
 
3047
3340
  case 1:
3048
3341
  case "end":
3049
- return _context2.stop();
3342
+ return _context4.stop();
3050
3343
  }
3051
3344
  }
3052
- }, _callee2);
3345
+ }, _callee4);
3053
3346
  }));
3054
3347
 
3055
- function getEventLogs(_x2, _x3, _x4) {
3348
+ function getEventLogs(_x4, _x5, _x6) {
3056
3349
  return _getEventLogs.apply(this, arguments);
3057
3350
  }
3058
3351
 
3059
3352
  return getEventLogs;
3353
+ }(),
3354
+
3355
+ /**
3356
+ * Gets the Event Log objects for a specific Memory object in a specific date interval.
3357
+ * @param {string} sessionId - The session ID
3358
+ * @param {string} memoryId - The Memory object ID
3359
+ * @param {string} strDateFrom - The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
3360
+ * @param {string} strDateTo - The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
3361
+ */
3362
+ getMemoryEventLogs: function () {
3363
+ var _getMemoryEventLogs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(sessionId, memoryId, strDateFrom, strDateTo) {
3364
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
3365
+ while (1) {
3366
+ switch (_context5.prev = _context5.next) {
3367
+ case 0:
3368
+ return _context5.abrupt("return", apiFetcher("/EventLogs/" + sessionId + "/" + memoryId + "/" + strDateFrom + "/" + strDateTo, {
3369
+ method: 'GET',
3370
+ apiUrl: apiUrl
3371
+ }));
3372
+
3373
+ case 1:
3374
+ case "end":
3375
+ return _context5.stop();
3376
+ }
3377
+ }
3378
+ }, _callee5);
3379
+ }));
3380
+
3381
+ function getMemoryEventLogs(_x7, _x8, _x9, _x10) {
3382
+ return _getMemoryEventLogs.apply(this, arguments);
3383
+ }
3384
+
3385
+ return getMemoryEventLogs;
3386
+ }(),
3387
+
3388
+ /**
3389
+ * Gets the Event Log objects for a specific Intent object in a specific date interval.
3390
+ * @param {string} sessionId - The session ID
3391
+ * @param {string} intentId - The Intent object ID
3392
+ * @param {string} strDateFrom - The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
3393
+ * @param {string} strDateTo - The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
3394
+ */
3395
+ getIntentEventLogs: function () {
3396
+ var _getIntentEventLogs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(sessionId, intentId, strDateFrom, strDateTo) {
3397
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
3398
+ while (1) {
3399
+ switch (_context6.prev = _context6.next) {
3400
+ case 0:
3401
+ return _context6.abrupt("return", apiFetcher("/EventLogs/" + sessionId + "/" + intentId + "/" + strDateFrom + "/" + strDateTo, {
3402
+ method: 'GET',
3403
+ apiUrl: apiUrl
3404
+ }));
3405
+
3406
+ case 1:
3407
+ case "end":
3408
+ return _context6.stop();
3409
+ }
3410
+ }
3411
+ }, _callee6);
3412
+ }));
3413
+
3414
+ function getIntentEventLogs(_x11, _x12, _x13, _x14) {
3415
+ return _getIntentEventLogs.apply(this, arguments);
3416
+ }
3417
+
3418
+ return getIntentEventLogs;
3060
3419
  }()
3061
3420
  };
3062
3421
  });
@@ -3233,6 +3592,278 @@ var contextVars = (function (apiUrl) {
3233
3592
  };
3234
3593
  });
3235
3594
 
3595
+ /****************************
3596
+ * *
3597
+ * CustomDictionary *
3598
+ * *
3599
+ ****************************/
3600
+
3601
+ var customDictionary = (function (apiUrl) {
3602
+ return {
3603
+ /**
3604
+ * Lists all Custom Words.
3605
+ * @param {string} sessionId The session ID
3606
+ */
3607
+ getCustomWords: function () {
3608
+ var _getCustomWords = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(sessionId) {
3609
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
3610
+ while (1) {
3611
+ switch (_context.prev = _context.next) {
3612
+ case 0:
3613
+ return _context.abrupt("return", apiFetcher("/CustomWords/" + sessionId, {
3614
+ method: 'GET',
3615
+ apiUrl: apiUrl
3616
+ }));
3617
+
3618
+ case 1:
3619
+ case "end":
3620
+ return _context.stop();
3621
+ }
3622
+ }
3623
+ }, _callee);
3624
+ }));
3625
+
3626
+ function getCustomWords(_x) {
3627
+ return _getCustomWords.apply(this, arguments);
3628
+ }
3629
+
3630
+ return getCustomWords;
3631
+ }(),
3632
+
3633
+ /**
3634
+ * Gets the details of a Custom Word object.
3635
+ * @param {string} sessionId The session ID
3636
+ * @param {string} customWordID The Custom Word object ID
3637
+ */
3638
+ getCustomWord: function () {
3639
+ var _getCustomWord = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionId, customWordID) {
3640
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
3641
+ while (1) {
3642
+ switch (_context2.prev = _context2.next) {
3643
+ case 0:
3644
+ return _context2.abrupt("return", apiFetcher("/CustomWord/" + sessionId + "/" + customWordID, {
3645
+ method: 'GET',
3646
+ apiUrl: apiUrl
3647
+ }));
3648
+
3649
+ case 1:
3650
+ case "end":
3651
+ return _context2.stop();
3652
+ }
3653
+ }
3654
+ }, _callee2);
3655
+ }));
3656
+
3657
+ function getCustomWord(_x2, _x3) {
3658
+ return _getCustomWord.apply(this, arguments);
3659
+ }
3660
+
3661
+ return getCustomWord;
3662
+ }(),
3663
+
3664
+ /**
3665
+ * Removes an existing Custom Word object.
3666
+ * @param {string} sessionId The session ID
3667
+ * @param {string} key The key of the Custom Word
3668
+ */
3669
+ deleteCustomWord: function () {
3670
+ var _deleteCustomWord = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(sessionId, key) {
3671
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
3672
+ while (1) {
3673
+ switch (_context3.prev = _context3.next) {
3674
+ case 0:
3675
+ return _context3.abrupt("return", apiFetcher("/CustomWord/" + sessionId + "/" + key, {
3676
+ method: 'DELETE',
3677
+ apiUrl: apiUrl
3678
+ }));
3679
+
3680
+ case 1:
3681
+ case "end":
3682
+ return _context3.stop();
3683
+ }
3684
+ }
3685
+ }, _callee3);
3686
+ }));
3687
+
3688
+ function deleteCustomWord(_x4, _x5) {
3689
+ return _deleteCustomWord.apply(this, arguments);
3690
+ }
3691
+
3692
+ return deleteCustomWord;
3693
+ }(),
3694
+
3695
+ /**
3696
+ * Adds a new Custom Word object.
3697
+ * @param {string} sessionId The session ID
3698
+ * @param {CustomWord} customWord Custom Word
3699
+ */
3700
+ postCustomWord: function () {
3701
+ var _postCustomWord = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(sessionId, customWord) {
3702
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
3703
+ while (1) {
3704
+ switch (_context4.prev = _context4.next) {
3705
+ case 0:
3706
+ return _context4.abrupt("return", apiFetcher("/CustomWord/" + sessionId, {
3707
+ method: 'POST',
3708
+ apiUrl: apiUrl,
3709
+ body: customWord
3710
+ }));
3711
+
3712
+ case 1:
3713
+ case "end":
3714
+ return _context4.stop();
3715
+ }
3716
+ }
3717
+ }, _callee4);
3718
+ }));
3719
+
3720
+ function postCustomWord(_x6, _x7) {
3721
+ return _postCustomWord.apply(this, arguments);
3722
+ }
3723
+
3724
+ return postCustomWord;
3725
+ }(),
3726
+
3727
+ /**
3728
+ * Updates an existing Custom Word object.
3729
+ * Only the Definition field is considered for update. To change the Word field a new Custom Word must be added and the existing must be removed.
3730
+ * @param {string} sessionId The session ID
3731
+ * @param {CustomWord} customWord Custom Word
3732
+ */
3733
+ patchCustomWord: function () {
3734
+ var _patchCustomWord = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(sessionId, customWord) {
3735
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
3736
+ while (1) {
3737
+ switch (_context5.prev = _context5.next) {
3738
+ case 0:
3739
+ return _context5.abrupt("return", apiFetcher("/CustomWord/" + sessionId + "/" + customWord.customWordID, {
3740
+ method: 'PATCH',
3741
+ apiUrl: apiUrl,
3742
+ body: customWord
3743
+ }));
3744
+
3745
+ case 1:
3746
+ case "end":
3747
+ return _context5.stop();
3748
+ }
3749
+ }
3750
+ }, _callee5);
3751
+ }));
3752
+
3753
+ function patchCustomWord(_x8, _x9) {
3754
+ return _patchCustomWord.apply(this, arguments);
3755
+ }
3756
+
3757
+ return patchCustomWord;
3758
+ }()
3759
+ };
3760
+ });
3761
+
3762
+ /*************************
3763
+ * *
3764
+ * ChatLogs *
3765
+ * *
3766
+ *************************/
3767
+
3768
+ var chatLogs = (function (apiUrl) {
3769
+ return {
3770
+ /**
3771
+ * Gets the Chat Log objects for the Memori of the current session in a specific date interval.
3772
+ * @param {string} sessionId The session ID
3773
+ * @param {?string} dateFrom The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
3774
+ * @param {?string} dateTo The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
3775
+ */
3776
+ getChatLogs: function () {
3777
+ var _getChatLogs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(sessionId, dateFrom, dateTo) {
3778
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
3779
+ while (1) {
3780
+ switch (_context.prev = _context.next) {
3781
+ case 0:
3782
+ return _context.abrupt("return", apiFetcher("/ChatLogs/" + sessionId + (dateFrom ? "/" + dateFrom : '') + (dateFrom && dateTo ? "/" + dateTo : ''), {
3783
+ method: 'GET',
3784
+ apiUrl: apiUrl
3785
+ }));
3786
+
3787
+ case 1:
3788
+ case "end":
3789
+ return _context.stop();
3790
+ }
3791
+ }
3792
+ }, _callee);
3793
+ }));
3794
+
3795
+ function getChatLogs(_x, _x2, _x3) {
3796
+ return _getChatLogs.apply(this, arguments);
3797
+ }
3798
+
3799
+ return getChatLogs;
3800
+ }(),
3801
+
3802
+ /**
3803
+ * Removes all Chat Log objects in a specific date internval.
3804
+ * @param {string} sessionId The session ID
3805
+ * @param {?string} dateFrom The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
3806
+ * @param {?string} dateTo The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
3807
+ */
3808
+ deleteChatLogs: function () {
3809
+ var _deleteChatLogs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionId, dateFrom, dateTo) {
3810
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
3811
+ while (1) {
3812
+ switch (_context2.prev = _context2.next) {
3813
+ case 0:
3814
+ return _context2.abrupt("return", apiFetcher("/ChatLogs/" + sessionId + (dateFrom ? "/" + dateFrom : '') + (dateFrom && dateTo ? "/" + dateTo : ''), {
3815
+ method: 'DELETE',
3816
+ apiUrl: apiUrl
3817
+ }));
3818
+
3819
+ case 1:
3820
+ case "end":
3821
+ return _context2.stop();
3822
+ }
3823
+ }
3824
+ }, _callee2);
3825
+ }));
3826
+
3827
+ function deleteChatLogs(_x4, _x5, _x6) {
3828
+ return _deleteChatLogs.apply(this, arguments);
3829
+ }
3830
+
3831
+ return deleteChatLogs;
3832
+ }(),
3833
+
3834
+ /**
3835
+ * Removes an existing Chat Log object.
3836
+ * @param {string} sessionId The session ID
3837
+ * @param {string} chatLogId The Chat Log object ID
3838
+ */
3839
+ deleteChatLog: function () {
3840
+ var _deleteChatLog = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(sessionId, chatLogId) {
3841
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
3842
+ while (1) {
3843
+ switch (_context3.prev = _context3.next) {
3844
+ case 0:
3845
+ return _context3.abrupt("return", apiFetcher("/ChatLog/" + sessionId + "/" + chatLogId, {
3846
+ method: 'DELETE',
3847
+ apiUrl: apiUrl
3848
+ }));
3849
+
3850
+ case 1:
3851
+ case "end":
3852
+ return _context3.stop();
3853
+ }
3854
+ }
3855
+ }, _callee3);
3856
+ }));
3857
+
3858
+ function deleteChatLog(_x7, _x8) {
3859
+ return _deleteChatLog.apply(this, arguments);
3860
+ }
3861
+
3862
+ return deleteChatLog;
3863
+ }()
3864
+ };
3865
+ });
3866
+
3236
3867
  var engine = (function (apiUrl) {
3237
3868
  return _extends({
3238
3869
  correlationPairs: correlationPairs(apiUrl)
@@ -3264,7 +3895,11 @@ var engine = (function (apiUrl) {
3264
3895
  unansweredQuestions: unansweredQuestions(apiUrl)
3265
3896
  }, unansweredQuestions(apiUrl), {
3266
3897
  contextVars: contextVars(apiUrl)
3267
- }, contextVars(apiUrl));
3898
+ }, contextVars(apiUrl), {
3899
+ customDictionary: customDictionary(apiUrl)
3900
+ }, customDictionary(apiUrl), {
3901
+ chatLogs: chatLogs(apiUrl)
3902
+ }, chatLogs(apiUrl));
3268
3903
  });
3269
3904
 
3270
3905
  var allowedMediaTypes = ['image/jpeg', 'image/png', 'image/jpg', 'image/gif', 'text/plain', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/pdf', 'video/mp4', 'video/avi', 'audio/mpeg3', 'audio/wav', 'audio/mpeg', 'video/mpeg', 'model/gltf-binary'];