@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
@@ -413,7 +413,7 @@ var apiFetcher = function apiFetcher(path, opts) {
413
413
  'Content-Type': 'application/json'
414
414
  }, opts == null ? void 0 : opts.headers)
415
415
  })).then(function (res) {
416
- return res.json();
416
+ return opts != null && opts.text ? res.text() : res.json();
417
417
  });
418
418
  };
419
419
 
@@ -587,6 +587,21 @@ var memori = (function (apiUrl) {
587
587
  return apiFetcher("/MemoriSessions/" + authToken + "/" + memoriID + (dateFrom ? "/" + dateFrom : '') + (dateFrom && dateTo ? "/" + dateTo : ''), {
588
588
  apiUrl: apiUrl
589
589
  });
590
+ },
591
+
592
+ /**
593
+ * Transfers an existing Memori object to another User.
594
+ * The new owner must be specified by either a OwnerUserID or a OwnerUserName-OwnerTenantName pair.
595
+ * The OwnerUserName may also specify a user e-mail.
596
+ * @param {string} authToken - The login token
597
+ * @param {Memori} memori - The Memori object
598
+ */
599
+ transferMemori: function transferMemori(authToken, memori) {
600
+ return apiFetcher("/TransferMemori/" + authToken, {
601
+ apiUrl: apiUrl,
602
+ body: memori,
603
+ method: 'POST'
604
+ });
590
605
  }
591
606
  };
592
607
  });
@@ -1072,14 +1087,91 @@ var invitation = (function (apiUrl) {
1072
1087
  };
1073
1088
  });
1074
1089
 
1090
+ var consumptionLogs = (function (apiUrl) {
1091
+ return {
1092
+ /**
1093
+ * Gets the Consumption Log objects for a specific Tenant in a specific date interval.
1094
+ * @param {string} authToken - The login token
1095
+ * @param {string} tenantID - The name of the tenant
1096
+ * @param {string} type - Type of consumption (i.e. granularity), it may either be Daily or Monthly
1097
+ * @param {string=} dateFrom - The optional begin of the date interval, in UTC time, in the format yyyyMMdd
1098
+ * @param {string=} dateTo - The optional end of the date interval, in UTC time, in the format yyyyMMdd
1099
+ * @returns The list of Consumption Logs objects.
1100
+ */
1101
+ getTenantConsumptionLogs: function getTenantConsumptionLogs(authToken, tenantID, type, dateFrom, dateTo) {
1102
+ return apiFetcher("/TenantConsumptionLogs/" + authToken + "/" + tenantID + "/" + type + (dateFrom ? "/" + dateFrom : '') + (dateFrom && dateTo ? "/" + dateTo : ''), {
1103
+ apiUrl: apiUrl
1104
+ });
1105
+ },
1106
+
1107
+ /**
1108
+ * Gets the Consumption Log objects for a specific User in a specific date interval.
1109
+ * @param {string} authToken - The login token
1110
+ * @param {string} userID - The ID of the User object
1111
+ * @param {string} type - Type of consumption (i.e. granularity), it may either be Daily or Monthly
1112
+ * @param {string=} dateFrom - The optional begin of the date interval, in UTC time, in the format yyyyMMdd
1113
+ * @param {string=} dateTo - The optional end of the date interval, in UTC time, in the format yyyyMMdd
1114
+ * @returns The list of Consumption Logs objects.
1115
+ */
1116
+ getUserConsumptionLogs: function getUserConsumptionLogs(authToken, userID, type, dateFrom, dateTo) {
1117
+ return apiFetcher("/UserConsumptionLogs/" + authToken + "/" + userID + "/" + type + (dateFrom ? "/" + dateFrom : '') + (dateFrom && dateTo ? "/" + dateTo : ''), {
1118
+ apiUrl: apiUrl
1119
+ });
1120
+ },
1121
+
1122
+ /**
1123
+ * Gets the Consumption Log objects for a specific Memori in a specific date interval.
1124
+ * @param {string} authToken - The login token
1125
+ * @param {string} memoriID - The ID of the Memori object
1126
+ * @param {string} type - Type of consumption (i.e. granularity), it may either be Daily or Monthly
1127
+ * @param {string=} dateFrom - The optional begin of the date interval, in UTC time, in the format yyyyMMdd
1128
+ * @param {string=} dateTo - The optional end of the date interval, in UTC time, in the format yyyyMMdd
1129
+ * @returns The list of Consumption Logs objects.
1130
+ */
1131
+ getMemoriConsumptionLogs: function getMemoriConsumptionLogs(authToken, memoriID, type, dateFrom, dateTo) {
1132
+ return apiFetcher("/MemoriConsumptionLogs/" + authToken + "/" + memoriID + "/" + type + (dateFrom ? "/" + dateFrom : '') + (dateFrom && dateTo ? "/" + dateTo : ''), {
1133
+ apiUrl: apiUrl
1134
+ });
1135
+ }
1136
+ };
1137
+ });
1138
+
1139
+ var notifications = (function (apiUrl) {
1140
+ return {
1141
+ /**
1142
+ * Gets the Notification objects available for a specific Tenant.
1143
+ * @param {string} tenantID - The name of the tenant
1144
+ * @returns The list of Notification objects.
1145
+ */
1146
+ getTenantNotifications: function getTenantNotifications(tenantID) {
1147
+ return apiFetcher("/TenantNotifications/" + tenantID, {
1148
+ apiUrl: apiUrl
1149
+ });
1150
+ },
1151
+
1152
+ /**
1153
+ * Gets the Notification objects available for a specific User.
1154
+ * @param {string} authToken - The login token
1155
+ * @returns The list of Notification objects.
1156
+ */
1157
+ getUserNotifications: function getUserNotifications(authToken) {
1158
+ return apiFetcher("/UserNotifications/" + authToken, {
1159
+ apiUrl: apiUrl
1160
+ });
1161
+ }
1162
+ };
1163
+ });
1164
+
1075
1165
  var backendAPI = function backendAPI(apiUrl) {
1076
1166
  return _extends({
1077
1167
  asset: asset(apiUrl),
1078
1168
  memori: memori(apiUrl),
1079
1169
  user: user(apiUrl),
1080
1170
  integration: integration(apiUrl),
1081
- invitation: invitation(apiUrl)
1082
- }, asset(apiUrl), memori(apiUrl), user(apiUrl), integration(apiUrl), invitation(apiUrl));
1171
+ invitation: invitation(apiUrl),
1172
+ consumptionLogs: consumptionLogs(apiUrl),
1173
+ notifications: notifications(apiUrl)
1174
+ }, asset(apiUrl), memori(apiUrl), user(apiUrl), integration(apiUrl), invitation(apiUrl), consumptionLogs(apiUrl), notifications(apiUrl));
1083
1175
  };
1084
1176
 
1085
1177
  /****************************
@@ -1374,19 +1466,17 @@ var dialog = (function (apiUrl) {
1374
1466
  * @param {string} sessionId The session ID
1375
1467
  */
1376
1468
  postDateSelectedEvent: function () {
1377
- var _postDateSelectedEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(_ref3) {
1378
- var sessionId;
1469
+ var _postDateSelectedEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(sessionId) {
1379
1470
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
1380
1471
  while (1) {
1381
1472
  switch (_context7.prev = _context7.next) {
1382
1473
  case 0:
1383
- sessionId = _ref3.sessionId;
1384
1474
  return _context7.abrupt("return", apiFetcher("/DateSelectedEvent/" + sessionId, {
1385
1475
  method: 'GET',
1386
1476
  apiUrl: apiUrl
1387
1477
  }));
1388
1478
 
1389
- case 2:
1479
+ case 1:
1390
1480
  case "end":
1391
1481
  return _context7.stop();
1392
1482
  }
@@ -1406,19 +1496,17 @@ var dialog = (function (apiUrl) {
1406
1496
  * @param {string} sessionId The session ID
1407
1497
  */
1408
1498
  postPlaceSelectedEvent: function () {
1409
- var _postPlaceSelectedEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(_ref4) {
1410
- var sessionId;
1499
+ var _postPlaceSelectedEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(sessionId) {
1411
1500
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
1412
1501
  while (1) {
1413
1502
  switch (_context8.prev = _context8.next) {
1414
1503
  case 0:
1415
- sessionId = _ref4.sessionId;
1416
1504
  return _context8.abrupt("return", apiFetcher("/PlaceSelectedEvent/" + sessionId, {
1417
1505
  method: 'GET',
1418
1506
  apiUrl: apiUrl
1419
1507
  }));
1420
1508
 
1421
- case 2:
1509
+ case 1:
1422
1510
  case "end":
1423
1511
  return _context8.stop();
1424
1512
  }
@@ -1438,19 +1526,17 @@ var dialog = (function (apiUrl) {
1438
1526
  * @param {string} sessionId The session ID
1439
1527
  */
1440
1528
  postTagSelectedEvent: function () {
1441
- var _postTagSelectedEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(_ref5) {
1442
- var sessionId;
1529
+ var _postTagSelectedEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(sessionId) {
1443
1530
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
1444
1531
  while (1) {
1445
1532
  switch (_context9.prev = _context9.next) {
1446
1533
  case 0:
1447
- sessionId = _ref5.sessionId;
1448
1534
  return _context9.abrupt("return", apiFetcher("/TagSelectedEvent/" + sessionId, {
1449
1535
  method: 'GET',
1450
1536
  apiUrl: apiUrl
1451
1537
  }));
1452
1538
 
1453
- case 2:
1539
+ case 1:
1454
1540
  case "end":
1455
1541
  return _context9.stop();
1456
1542
  }
@@ -1478,10 +1564,11 @@ var importExport = (function (apiUrl) {
1478
1564
  /**
1479
1565
  * Imports memories from a CSV file.
1480
1566
  * @param {string} sessionId The session ID
1481
- * @param {ImportExportBody} csvData The CSV content info to import
1567
+ * @param {string[]} csvRows Rows of the CSV file.
1568
+ * @param {ImportCSVParams} params The specifications and content of the CSV file
1482
1569
  */
1483
- postImportExport: function () {
1484
- var _postImportExport = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(sessionId, csvData) {
1570
+ importCSV: function () {
1571
+ var _importCSV = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(sessionId, csvRows, params) {
1485
1572
  return _regeneratorRuntime().wrap(function _callee$(_context) {
1486
1573
  while (1) {
1487
1574
  switch (_context.prev = _context.next) {
@@ -1489,7 +1576,9 @@ var importExport = (function (apiUrl) {
1489
1576
  return _context.abrupt("return", apiFetcher("/ImportExport/ImportCSV/" + sessionId, {
1490
1577
  method: 'POST',
1491
1578
  apiUrl: apiUrl,
1492
- body: csvData
1579
+ body: _extends({
1580
+ csvRows: csvRows
1581
+ }, params)
1493
1582
  }));
1494
1583
 
1495
1584
  case 1:
@@ -1500,11 +1589,45 @@ var importExport = (function (apiUrl) {
1500
1589
  }, _callee);
1501
1590
  }));
1502
1591
 
1503
- function postImportExport(_x, _x2) {
1504
- return _postImportExport.apply(this, arguments);
1592
+ function importCSV(_x, _x2, _x3) {
1593
+ return _importCSV.apply(this, arguments);
1594
+ }
1595
+
1596
+ return importCSV;
1597
+ }(),
1598
+
1599
+ /**
1600
+ * Exports memories to a CSV file.
1601
+ * @param {string} sessionID The session ID
1602
+ * @param {ExportCSVParams} params - The specifications of the CSV file
1603
+ * @returns The CSV file content
1604
+ */
1605
+ exportCSV: function () {
1606
+ var _exportCSV = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionID, params) {
1607
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1608
+ while (1) {
1609
+ switch (_context2.prev = _context2.next) {
1610
+ case 0:
1611
+ return _context2.abrupt("return", apiFetcher("/ImportExport/ExportCSV/" + sessionID, {
1612
+ method: 'POST',
1613
+ apiUrl: apiUrl,
1614
+ body: params,
1615
+ text: true
1616
+ }));
1617
+
1618
+ case 1:
1619
+ case "end":
1620
+ return _context2.stop();
1621
+ }
1622
+ }
1623
+ }, _callee2);
1624
+ }));
1625
+
1626
+ function exportCSV(_x4, _x5) {
1627
+ return _exportCSV.apply(this, arguments);
1505
1628
  }
1506
1629
 
1507
- return postImportExport;
1630
+ return exportCSV;
1508
1631
  }()
1509
1632
  };
1510
1633
  });
@@ -1581,17 +1704,18 @@ var intents = (function (apiUrl) {
1581
1704
  /**
1582
1705
  * Updates an existing Intent object.
1583
1706
  * @param {string} sessionId The session ID
1584
- * @param {string} intentId The Intent object ID
1707
+ * @param {Intent} intent The Intent object
1585
1708
  */
1586
1709
  patchIntent: function () {
1587
- var _patchIntent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(sessionId, intentId) {
1710
+ var _patchIntent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(sessionId, intent) {
1588
1711
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
1589
1712
  while (1) {
1590
1713
  switch (_context3.prev = _context3.next) {
1591
1714
  case 0:
1592
- return _context3.abrupt("return", apiFetcher("/Intent/" + sessionId + "/" + intentId, {
1593
- method: 'GET',
1594
- apiUrl: apiUrl
1715
+ return _context3.abrupt("return", apiFetcher("/Intent/" + sessionId + "/" + intent.intentID, {
1716
+ method: 'PATCH',
1717
+ apiUrl: apiUrl,
1718
+ body: intent
1595
1719
  }));
1596
1720
 
1597
1721
  case 1:
@@ -1621,7 +1745,7 @@ var intents = (function (apiUrl) {
1621
1745
  switch (_context4.prev = _context4.next) {
1622
1746
  case 0:
1623
1747
  return _context4.abrupt("return", apiFetcher("/Intent/" + sessionId + "/" + intentId, {
1624
- method: 'GET',
1748
+ method: 'DELETE',
1625
1749
  apiUrl: apiUrl
1626
1750
  }));
1627
1751
 
@@ -1643,16 +1767,18 @@ var intents = (function (apiUrl) {
1643
1767
  /**
1644
1768
  * Adds a new Intent object.
1645
1769
  * @param {string} sessionId The session ID
1770
+ * @param {Intent} intent The Intent object
1646
1771
  */
1647
- postIntent: function () {
1648
- var _postIntent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(sessionId) {
1772
+ createIntent: function () {
1773
+ var _createIntent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(sessionId, intent) {
1649
1774
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
1650
1775
  while (1) {
1651
1776
  switch (_context5.prev = _context5.next) {
1652
1777
  case 0:
1653
1778
  return _context5.abrupt("return", apiFetcher("/Intent/" + sessionId, {
1654
- method: 'GET',
1655
- apiUrl: apiUrl
1779
+ method: 'POST',
1780
+ apiUrl: apiUrl,
1781
+ body: intent
1656
1782
  }));
1657
1783
 
1658
1784
  case 1:
@@ -1663,11 +1789,11 @@ var intents = (function (apiUrl) {
1663
1789
  }, _callee5);
1664
1790
  }));
1665
1791
 
1666
- function postIntent(_x8) {
1667
- return _postIntent.apply(this, arguments);
1792
+ function createIntent(_x8, _x9) {
1793
+ return _createIntent.apply(this, arguments);
1668
1794
  }
1669
1795
 
1670
- return postIntent;
1796
+ return createIntent;
1671
1797
  }(),
1672
1798
 
1673
1799
  /**
@@ -1693,7 +1819,7 @@ var intents = (function (apiUrl) {
1693
1819
  }, _callee6);
1694
1820
  }));
1695
1821
 
1696
- function getIntentSlots(_x9) {
1822
+ function getIntentSlots(_x10) {
1697
1823
  return _getIntentSlots.apply(this, arguments);
1698
1824
  }
1699
1825
 
@@ -1724,7 +1850,7 @@ var intents = (function (apiUrl) {
1724
1850
  }, _callee7);
1725
1851
  }));
1726
1852
 
1727
- function getIntentSlot(_x10, _x11) {
1853
+ function getIntentSlot(_x11, _x12) {
1728
1854
  return _getIntentSlot.apply(this, arguments);
1729
1855
  }
1730
1856
 
@@ -1734,17 +1860,18 @@ var intents = (function (apiUrl) {
1734
1860
  /**
1735
1861
  * Updates an existing Intent Slot object.
1736
1862
  * @param {string} sessionId The session ID
1737
- * @param {string} slotId The Intent Slot object ID
1863
+ * @param {IntentSlot} intentSlot The Intent Slot object
1738
1864
  */
1739
1865
  patchIntentSlot: function () {
1740
- var _patchIntentSlot = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(sessionId, slotId) {
1866
+ var _patchIntentSlot = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(sessionId, intentSlot) {
1741
1867
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
1742
1868
  while (1) {
1743
1869
  switch (_context8.prev = _context8.next) {
1744
1870
  case 0:
1745
- return _context8.abrupt("return", apiFetcher("/IntentSlot/" + sessionId + "/" + slotId, {
1746
- method: 'GET',
1747
- apiUrl: apiUrl
1871
+ return _context8.abrupt("return", apiFetcher("/IntentSlot/" + sessionId + "/" + intentSlot.intentSlotID, {
1872
+ method: 'PATCH',
1873
+ apiUrl: apiUrl,
1874
+ body: intentSlot
1748
1875
  }));
1749
1876
 
1750
1877
  case 1:
@@ -1755,7 +1882,7 @@ var intents = (function (apiUrl) {
1755
1882
  }, _callee8);
1756
1883
  }));
1757
1884
 
1758
- function patchIntentSlot(_x12, _x13) {
1885
+ function patchIntentSlot(_x13, _x14) {
1759
1886
  return _patchIntentSlot.apply(this, arguments);
1760
1887
  }
1761
1888
 
@@ -1774,7 +1901,7 @@ var intents = (function (apiUrl) {
1774
1901
  switch (_context9.prev = _context9.next) {
1775
1902
  case 0:
1776
1903
  return _context9.abrupt("return", apiFetcher("/IntentSlot/" + sessionId + "/" + slotId, {
1777
- method: 'GET',
1904
+ method: 'DELETE',
1778
1905
  apiUrl: apiUrl
1779
1906
  }));
1780
1907
 
@@ -1786,7 +1913,7 @@ var intents = (function (apiUrl) {
1786
1913
  }, _callee9);
1787
1914
  }));
1788
1915
 
1789
- function deleteIntentSlot(_x14, _x15) {
1916
+ function deleteIntentSlot(_x15, _x16) {
1790
1917
  return _deleteIntentSlot.apply(this, arguments);
1791
1918
  }
1792
1919
 
@@ -1797,15 +1924,16 @@ var intents = (function (apiUrl) {
1797
1924
  * Adds a new Intent Slot object.
1798
1925
  * @param {string} sessionId The session ID
1799
1926
  */
1800
- postIntentSlot: function () {
1801
- var _postIntentSlot = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(sessionId) {
1927
+ createIntentSlot: function () {
1928
+ var _createIntentSlot = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(sessionId, intentSlot) {
1802
1929
  return _regeneratorRuntime().wrap(function _callee10$(_context10) {
1803
1930
  while (1) {
1804
1931
  switch (_context10.prev = _context10.next) {
1805
1932
  case 0:
1806
1933
  return _context10.abrupt("return", apiFetcher("/IntentSlot/" + sessionId, {
1807
- method: 'GET',
1808
- apiUrl: apiUrl
1934
+ method: 'POST',
1935
+ apiUrl: apiUrl,
1936
+ body: intentSlot
1809
1937
  }));
1810
1938
 
1811
1939
  case 1:
@@ -1816,11 +1944,11 @@ var intents = (function (apiUrl) {
1816
1944
  }, _callee10);
1817
1945
  }));
1818
1946
 
1819
- function postIntentSlot(_x16) {
1820
- return _postIntentSlot.apply(this, arguments);
1947
+ function createIntentSlot(_x17, _x18) {
1948
+ return _createIntentSlot.apply(this, arguments);
1821
1949
  }
1822
1950
 
1823
- return postIntentSlot;
1951
+ return createIntentSlot;
1824
1952
  }()
1825
1953
  };
1826
1954
  });
@@ -2413,18 +2541,49 @@ var nlp = (function (apiUrl) {
2413
2541
  return getWordVector;
2414
2542
  }(),
2415
2543
 
2544
+ /**
2545
+ * Searches for the 10 words most semantically similar words to the specified word.
2546
+ * @param {string} sessionId The session ID
2547
+ * @param {string} word Word to be looked up
2548
+ */
2549
+ getSimilarWords: function () {
2550
+ var _getSimilarWords = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionId, word) {
2551
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2552
+ while (1) {
2553
+ switch (_context2.prev = _context2.next) {
2554
+ case 0:
2555
+ return _context2.abrupt("return", apiFetcher("/SimilarWords/" + sessionId + "/" + word, {
2556
+ method: 'GET',
2557
+ apiUrl: apiUrl
2558
+ }));
2559
+
2560
+ case 1:
2561
+ case "end":
2562
+ return _context2.stop();
2563
+ }
2564
+ }
2565
+ }, _callee2);
2566
+ }));
2567
+
2568
+ function getSimilarWords(_x3, _x4) {
2569
+ return _getSimilarWords.apply(this, arguments);
2570
+ }
2571
+
2572
+ return getSimilarWords;
2573
+ }(),
2574
+
2416
2575
  /**
2417
2576
  * Tries to guess the language of a sentence by analyzing key word occurrences.
2418
2577
  * @param {string} sessionId The session ID
2419
2578
  * @param {string} text Text to be used for guessing the language.
2420
2579
  */
2421
2580
  guessLanguage: function () {
2422
- var _guessLanguage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionId, text) {
2423
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2581
+ var _guessLanguage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(sessionId, text) {
2582
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
2424
2583
  while (1) {
2425
- switch (_context2.prev = _context2.next) {
2584
+ switch (_context3.prev = _context3.next) {
2426
2585
  case 0:
2427
- return _context2.abrupt("return", apiFetcher("/GuessLanguage/" + sessionId, {
2586
+ return _context3.abrupt("return", apiFetcher("/GuessLanguage/" + sessionId, {
2428
2587
  method: 'POST',
2429
2588
  apiUrl: apiUrl,
2430
2589
  body: {
@@ -2434,17 +2593,91 @@ var nlp = (function (apiUrl) {
2434
2593
 
2435
2594
  case 1:
2436
2595
  case "end":
2437
- return _context2.stop();
2596
+ return _context3.stop();
2438
2597
  }
2439
2598
  }
2440
- }, _callee2);
2599
+ }, _callee3);
2441
2600
  }));
2442
2601
 
2443
- function guessLanguage(_x3, _x4) {
2602
+ function guessLanguage(_x5, _x6) {
2444
2603
  return _guessLanguage.apply(this, arguments);
2445
2604
  }
2446
2605
 
2447
2606
  return guessLanguage;
2607
+ }(),
2608
+
2609
+ /**
2610
+ * Computes the similarity between a reference and a comparison sentences.
2611
+ * @param {string} sessionId The session ID
2612
+ * @param {string} referenceText Text of the reference sentence.
2613
+ * @param {'QUESTION' | 'ANSWER'} referenceTextType Type of reference text, i.e. question or answer. Only types supported are: 'QUESTION' and 'ANSWER'.
2614
+ * @param {string} comparisonText Text of the comparison sentence.
2615
+ * @param {'QUESTION' | 'ANSWER'} comparisonTextType Type of comparison text, i.e. question or answer. Only types supported are: 'QUESTION' and 'ANSWER'.
2616
+ */
2617
+ computeSimilarity: function () {
2618
+ var _computeSimilarity = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(sessionId, referenceText, referenceTextType, comparisonText, comparisonTextType) {
2619
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
2620
+ while (1) {
2621
+ switch (_context4.prev = _context4.next) {
2622
+ case 0:
2623
+ return _context4.abrupt("return", apiFetcher("/ComputeSimilarity/" + sessionId, {
2624
+ method: 'POST',
2625
+ apiUrl: apiUrl,
2626
+ body: {
2627
+ referenceText: referenceText,
2628
+ referenceTextType: referenceTextType,
2629
+ comparisonText: comparisonText,
2630
+ comparisonTextType: comparisonTextType
2631
+ }
2632
+ }));
2633
+
2634
+ case 1:
2635
+ case "end":
2636
+ return _context4.stop();
2637
+ }
2638
+ }
2639
+ }, _callee4);
2640
+ }));
2641
+
2642
+ function computeSimilarity(_x7, _x8, _x9, _x10, _x11) {
2643
+ return _computeSimilarity.apply(this, arguments);
2644
+ }
2645
+
2646
+ return computeSimilarity;
2647
+ }(),
2648
+
2649
+ /**
2650
+ * Checks the words of a sentence for their definition in the word vector dictionary.
2651
+ * @param {string} sessionId The session ID
2652
+ * @param {string} text Text of the sentence.
2653
+ */
2654
+ checkWords: function () {
2655
+ var _checkWords = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(sessionId, text) {
2656
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
2657
+ while (1) {
2658
+ switch (_context5.prev = _context5.next) {
2659
+ case 0:
2660
+ return _context5.abrupt("return", apiFetcher("/CheckWords/" + sessionId, {
2661
+ method: 'POST',
2662
+ apiUrl: apiUrl,
2663
+ body: {
2664
+ text: text
2665
+ }
2666
+ }));
2667
+
2668
+ case 1:
2669
+ case "end":
2670
+ return _context5.stop();
2671
+ }
2672
+ }
2673
+ }, _callee5);
2674
+ }));
2675
+
2676
+ function checkWords(_x12, _x13) {
2677
+ return _checkWords.apply(this, arguments);
2678
+ }
2679
+
2680
+ return checkWords;
2448
2681
  }()
2449
2682
  };
2450
2683
  });
@@ -3021,6 +3254,66 @@ var stats = (function (apiUrl) {
3021
3254
  return getStatistics;
3022
3255
  }(),
3023
3256
 
3257
+ /**
3258
+ * Computes content quality indexes for a Memori.
3259
+ * @param {string} memoriID - The Memori object ID
3260
+ */
3261
+ getContentQualityIndexes: function () {
3262
+ var _getContentQualityIndexes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(memoriID) {
3263
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
3264
+ while (1) {
3265
+ switch (_context2.prev = _context2.next) {
3266
+ case 0:
3267
+ return _context2.abrupt("return", apiFetcher("/ContentQualityIndexes/" + memoriID, {
3268
+ method: 'GET',
3269
+ apiUrl: apiUrl
3270
+ }));
3271
+
3272
+ case 1:
3273
+ case "end":
3274
+ return _context2.stop();
3275
+ }
3276
+ }
3277
+ }, _callee2);
3278
+ }));
3279
+
3280
+ function getContentQualityIndexes(_x2) {
3281
+ return _getContentQualityIndexes.apply(this, arguments);
3282
+ }
3283
+
3284
+ return getContentQualityIndexes;
3285
+ }(),
3286
+
3287
+ /**
3288
+ * Computes text quality indexes for a Memori.
3289
+ * @param {string} sessionId - The session ID
3290
+ */
3291
+ getTextQualityIndexes: function () {
3292
+ var _getTextQualityIndexes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(sessionId) {
3293
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
3294
+ while (1) {
3295
+ switch (_context3.prev = _context3.next) {
3296
+ case 0:
3297
+ return _context3.abrupt("return", apiFetcher("/TextQualityIndexes/" + sessionId, {
3298
+ method: 'GET',
3299
+ apiUrl: apiUrl
3300
+ }));
3301
+
3302
+ case 1:
3303
+ case "end":
3304
+ return _context3.stop();
3305
+ }
3306
+ }
3307
+ }, _callee3);
3308
+ }));
3309
+
3310
+ function getTextQualityIndexes(_x3) {
3311
+ return _getTextQualityIndexes.apply(this, arguments);
3312
+ }
3313
+
3314
+ return getTextQualityIndexes;
3315
+ }(),
3316
+
3024
3317
  /**
3025
3318
  * Get the Event Log objects for the Memori of the current session in a specific date interval
3026
3319
  * @param {string} sessionId The session ID
@@ -3028,29 +3321,95 @@ var stats = (function (apiUrl) {
3028
3321
  * @param {string} strDateTo The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
3029
3322
  */
3030
3323
  getEventLogs: function () {
3031
- var _getEventLogs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionId, strDateFrom, strDateTo) {
3032
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
3324
+ var _getEventLogs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(sessionId, strDateFrom, strDateTo) {
3325
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
3033
3326
  while (1) {
3034
- switch (_context2.prev = _context2.next) {
3327
+ switch (_context4.prev = _context4.next) {
3035
3328
  case 0:
3036
- return _context2.abrupt("return", apiFetcher("/EventLogs/" + sessionId + "/" + strDateFrom + "/" + strDateTo, {
3329
+ return _context4.abrupt("return", apiFetcher("/EventLogs/" + sessionId + "/" + strDateFrom + "/" + strDateTo, {
3037
3330
  method: 'GET',
3038
3331
  apiUrl: apiUrl
3039
3332
  }));
3040
3333
 
3041
3334
  case 1:
3042
3335
  case "end":
3043
- return _context2.stop();
3336
+ return _context4.stop();
3044
3337
  }
3045
3338
  }
3046
- }, _callee2);
3339
+ }, _callee4);
3047
3340
  }));
3048
3341
 
3049
- function getEventLogs(_x2, _x3, _x4) {
3342
+ function getEventLogs(_x4, _x5, _x6) {
3050
3343
  return _getEventLogs.apply(this, arguments);
3051
3344
  }
3052
3345
 
3053
3346
  return getEventLogs;
3347
+ }(),
3348
+
3349
+ /**
3350
+ * Gets the Event Log objects for a specific Memory object in a specific date interval.
3351
+ * @param {string} sessionId - The session ID
3352
+ * @param {string} memoryId - The Memory object ID
3353
+ * @param {string} strDateFrom - The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
3354
+ * @param {string} strDateTo - The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
3355
+ */
3356
+ getMemoryEventLogs: function () {
3357
+ var _getMemoryEventLogs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(sessionId, memoryId, strDateFrom, strDateTo) {
3358
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
3359
+ while (1) {
3360
+ switch (_context5.prev = _context5.next) {
3361
+ case 0:
3362
+ return _context5.abrupt("return", apiFetcher("/EventLogs/" + sessionId + "/" + memoryId + "/" + strDateFrom + "/" + strDateTo, {
3363
+ method: 'GET',
3364
+ apiUrl: apiUrl
3365
+ }));
3366
+
3367
+ case 1:
3368
+ case "end":
3369
+ return _context5.stop();
3370
+ }
3371
+ }
3372
+ }, _callee5);
3373
+ }));
3374
+
3375
+ function getMemoryEventLogs(_x7, _x8, _x9, _x10) {
3376
+ return _getMemoryEventLogs.apply(this, arguments);
3377
+ }
3378
+
3379
+ return getMemoryEventLogs;
3380
+ }(),
3381
+
3382
+ /**
3383
+ * Gets the Event Log objects for a specific Intent object in a specific date interval.
3384
+ * @param {string} sessionId - The session ID
3385
+ * @param {string} intentId - The Intent object ID
3386
+ * @param {string} strDateFrom - The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
3387
+ * @param {string} strDateTo - The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
3388
+ */
3389
+ getIntentEventLogs: function () {
3390
+ var _getIntentEventLogs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(sessionId, intentId, strDateFrom, strDateTo) {
3391
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
3392
+ while (1) {
3393
+ switch (_context6.prev = _context6.next) {
3394
+ case 0:
3395
+ return _context6.abrupt("return", apiFetcher("/EventLogs/" + sessionId + "/" + intentId + "/" + strDateFrom + "/" + strDateTo, {
3396
+ method: 'GET',
3397
+ apiUrl: apiUrl
3398
+ }));
3399
+
3400
+ case 1:
3401
+ case "end":
3402
+ return _context6.stop();
3403
+ }
3404
+ }
3405
+ }, _callee6);
3406
+ }));
3407
+
3408
+ function getIntentEventLogs(_x11, _x12, _x13, _x14) {
3409
+ return _getIntentEventLogs.apply(this, arguments);
3410
+ }
3411
+
3412
+ return getIntentEventLogs;
3054
3413
  }()
3055
3414
  };
3056
3415
  });
@@ -3227,6 +3586,278 @@ var contextVars = (function (apiUrl) {
3227
3586
  };
3228
3587
  });
3229
3588
 
3589
+ /****************************
3590
+ * *
3591
+ * CustomDictionary *
3592
+ * *
3593
+ ****************************/
3594
+
3595
+ var customDictionary = (function (apiUrl) {
3596
+ return {
3597
+ /**
3598
+ * Lists all Custom Words.
3599
+ * @param {string} sessionId The session ID
3600
+ */
3601
+ getCustomWords: function () {
3602
+ var _getCustomWords = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(sessionId) {
3603
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
3604
+ while (1) {
3605
+ switch (_context.prev = _context.next) {
3606
+ case 0:
3607
+ return _context.abrupt("return", apiFetcher("/CustomWords/" + sessionId, {
3608
+ method: 'GET',
3609
+ apiUrl: apiUrl
3610
+ }));
3611
+
3612
+ case 1:
3613
+ case "end":
3614
+ return _context.stop();
3615
+ }
3616
+ }
3617
+ }, _callee);
3618
+ }));
3619
+
3620
+ function getCustomWords(_x) {
3621
+ return _getCustomWords.apply(this, arguments);
3622
+ }
3623
+
3624
+ return getCustomWords;
3625
+ }(),
3626
+
3627
+ /**
3628
+ * Gets the details of a Custom Word object.
3629
+ * @param {string} sessionId The session ID
3630
+ * @param {string} customWordID The Custom Word object ID
3631
+ */
3632
+ getCustomWord: function () {
3633
+ var _getCustomWord = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionId, customWordID) {
3634
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
3635
+ while (1) {
3636
+ switch (_context2.prev = _context2.next) {
3637
+ case 0:
3638
+ return _context2.abrupt("return", apiFetcher("/CustomWord/" + sessionId + "/" + customWordID, {
3639
+ method: 'GET',
3640
+ apiUrl: apiUrl
3641
+ }));
3642
+
3643
+ case 1:
3644
+ case "end":
3645
+ return _context2.stop();
3646
+ }
3647
+ }
3648
+ }, _callee2);
3649
+ }));
3650
+
3651
+ function getCustomWord(_x2, _x3) {
3652
+ return _getCustomWord.apply(this, arguments);
3653
+ }
3654
+
3655
+ return getCustomWord;
3656
+ }(),
3657
+
3658
+ /**
3659
+ * Removes an existing Custom Word object.
3660
+ * @param {string} sessionId The session ID
3661
+ * @param {string} key The key of the Custom Word
3662
+ */
3663
+ deleteCustomWord: function () {
3664
+ var _deleteCustomWord = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(sessionId, key) {
3665
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
3666
+ while (1) {
3667
+ switch (_context3.prev = _context3.next) {
3668
+ case 0:
3669
+ return _context3.abrupt("return", apiFetcher("/CustomWord/" + sessionId + "/" + key, {
3670
+ method: 'DELETE',
3671
+ apiUrl: apiUrl
3672
+ }));
3673
+
3674
+ case 1:
3675
+ case "end":
3676
+ return _context3.stop();
3677
+ }
3678
+ }
3679
+ }, _callee3);
3680
+ }));
3681
+
3682
+ function deleteCustomWord(_x4, _x5) {
3683
+ return _deleteCustomWord.apply(this, arguments);
3684
+ }
3685
+
3686
+ return deleteCustomWord;
3687
+ }(),
3688
+
3689
+ /**
3690
+ * Adds a new Custom Word object.
3691
+ * @param {string} sessionId The session ID
3692
+ * @param {CustomWord} customWord Custom Word
3693
+ */
3694
+ postCustomWord: function () {
3695
+ var _postCustomWord = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(sessionId, customWord) {
3696
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
3697
+ while (1) {
3698
+ switch (_context4.prev = _context4.next) {
3699
+ case 0:
3700
+ return _context4.abrupt("return", apiFetcher("/CustomWord/" + sessionId, {
3701
+ method: 'POST',
3702
+ apiUrl: apiUrl,
3703
+ body: customWord
3704
+ }));
3705
+
3706
+ case 1:
3707
+ case "end":
3708
+ return _context4.stop();
3709
+ }
3710
+ }
3711
+ }, _callee4);
3712
+ }));
3713
+
3714
+ function postCustomWord(_x6, _x7) {
3715
+ return _postCustomWord.apply(this, arguments);
3716
+ }
3717
+
3718
+ return postCustomWord;
3719
+ }(),
3720
+
3721
+ /**
3722
+ * Updates an existing Custom Word object.
3723
+ * 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.
3724
+ * @param {string} sessionId The session ID
3725
+ * @param {CustomWord} customWord Custom Word
3726
+ */
3727
+ patchCustomWord: function () {
3728
+ var _patchCustomWord = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(sessionId, customWord) {
3729
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
3730
+ while (1) {
3731
+ switch (_context5.prev = _context5.next) {
3732
+ case 0:
3733
+ return _context5.abrupt("return", apiFetcher("/CustomWord/" + sessionId + "/" + customWord.customWordID, {
3734
+ method: 'PATCH',
3735
+ apiUrl: apiUrl,
3736
+ body: customWord
3737
+ }));
3738
+
3739
+ case 1:
3740
+ case "end":
3741
+ return _context5.stop();
3742
+ }
3743
+ }
3744
+ }, _callee5);
3745
+ }));
3746
+
3747
+ function patchCustomWord(_x8, _x9) {
3748
+ return _patchCustomWord.apply(this, arguments);
3749
+ }
3750
+
3751
+ return patchCustomWord;
3752
+ }()
3753
+ };
3754
+ });
3755
+
3756
+ /*************************
3757
+ * *
3758
+ * ChatLogs *
3759
+ * *
3760
+ *************************/
3761
+
3762
+ var chatLogs = (function (apiUrl) {
3763
+ return {
3764
+ /**
3765
+ * Gets the Chat Log objects for the Memori of the current session in a specific date interval.
3766
+ * @param {string} sessionId The session ID
3767
+ * @param {?string} dateFrom The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
3768
+ * @param {?string} dateTo The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
3769
+ */
3770
+ getChatLogs: function () {
3771
+ var _getChatLogs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(sessionId, dateFrom, dateTo) {
3772
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
3773
+ while (1) {
3774
+ switch (_context.prev = _context.next) {
3775
+ case 0:
3776
+ return _context.abrupt("return", apiFetcher("/ChatLogs/" + sessionId + (dateFrom ? "/" + dateFrom : '') + (dateFrom && dateTo ? "/" + dateTo : ''), {
3777
+ method: 'GET',
3778
+ apiUrl: apiUrl
3779
+ }));
3780
+
3781
+ case 1:
3782
+ case "end":
3783
+ return _context.stop();
3784
+ }
3785
+ }
3786
+ }, _callee);
3787
+ }));
3788
+
3789
+ function getChatLogs(_x, _x2, _x3) {
3790
+ return _getChatLogs.apply(this, arguments);
3791
+ }
3792
+
3793
+ return getChatLogs;
3794
+ }(),
3795
+
3796
+ /**
3797
+ * Removes all Chat Log objects in a specific date internval.
3798
+ * @param {string} sessionId The session ID
3799
+ * @param {?string} dateFrom The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
3800
+ * @param {?string} dateTo The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
3801
+ */
3802
+ deleteChatLogs: function () {
3803
+ var _deleteChatLogs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionId, dateFrom, dateTo) {
3804
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
3805
+ while (1) {
3806
+ switch (_context2.prev = _context2.next) {
3807
+ case 0:
3808
+ return _context2.abrupt("return", apiFetcher("/ChatLogs/" + sessionId + (dateFrom ? "/" + dateFrom : '') + (dateFrom && dateTo ? "/" + dateTo : ''), {
3809
+ method: 'DELETE',
3810
+ apiUrl: apiUrl
3811
+ }));
3812
+
3813
+ case 1:
3814
+ case "end":
3815
+ return _context2.stop();
3816
+ }
3817
+ }
3818
+ }, _callee2);
3819
+ }));
3820
+
3821
+ function deleteChatLogs(_x4, _x5, _x6) {
3822
+ return _deleteChatLogs.apply(this, arguments);
3823
+ }
3824
+
3825
+ return deleteChatLogs;
3826
+ }(),
3827
+
3828
+ /**
3829
+ * Removes an existing Chat Log object.
3830
+ * @param {string} sessionId The session ID
3831
+ * @param {string} chatLogId The Chat Log object ID
3832
+ */
3833
+ deleteChatLog: function () {
3834
+ var _deleteChatLog = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(sessionId, chatLogId) {
3835
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
3836
+ while (1) {
3837
+ switch (_context3.prev = _context3.next) {
3838
+ case 0:
3839
+ return _context3.abrupt("return", apiFetcher("/ChatLog/" + sessionId + "/" + chatLogId, {
3840
+ method: 'DELETE',
3841
+ apiUrl: apiUrl
3842
+ }));
3843
+
3844
+ case 1:
3845
+ case "end":
3846
+ return _context3.stop();
3847
+ }
3848
+ }
3849
+ }, _callee3);
3850
+ }));
3851
+
3852
+ function deleteChatLog(_x7, _x8) {
3853
+ return _deleteChatLog.apply(this, arguments);
3854
+ }
3855
+
3856
+ return deleteChatLog;
3857
+ }()
3858
+ };
3859
+ });
3860
+
3230
3861
  var engine = (function (apiUrl) {
3231
3862
  return _extends({
3232
3863
  correlationPairs: correlationPairs(apiUrl)
@@ -3258,7 +3889,11 @@ var engine = (function (apiUrl) {
3258
3889
  unansweredQuestions: unansweredQuestions(apiUrl)
3259
3890
  }, unansweredQuestions(apiUrl), {
3260
3891
  contextVars: contextVars(apiUrl)
3261
- }, contextVars(apiUrl));
3892
+ }, contextVars(apiUrl), {
3893
+ customDictionary: customDictionary(apiUrl)
3894
+ }, customDictionary(apiUrl), {
3895
+ chatLogs: chatLogs(apiUrl)
3896
+ }, chatLogs(apiUrl));
3262
3897
  });
3263
3898
 
3264
3899
  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'];