deep-chat-dev 9.0.46 → 9.0.48

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 (35) hide show
  1. package/custom-elements.json +1582 -1452
  2. package/dist/deepChat.bundle.js +1 -1
  3. package/dist/deepChat.d.ts +5 -4
  4. package/dist/deepChat.d.ts.map +1 -1
  5. package/dist/deepChat.js +2821 -2788
  6. package/dist/services/serviceIO.d.ts +1 -0
  7. package/dist/services/serviceIO.d.ts.map +1 -1
  8. package/dist/services/utils/baseServiceIO.d.ts +2 -2
  9. package/dist/services/utils/baseServiceIO.d.ts.map +1 -1
  10. package/dist/types/submitButton.d.ts +2 -0
  11. package/dist/types/submitButton.d.ts.map +1 -1
  12. package/dist/types/validateInput.d.ts +2 -0
  13. package/dist/types/validateInput.d.ts.map +1 -0
  14. package/dist/types/validationHandler.d.ts +1 -1
  15. package/dist/types/validationHandler.d.ts.map +1 -1
  16. package/dist/utils/HTTP/websocket.d.ts.map +1 -1
  17. package/dist/utils/legacy/legacy.d.ts +2 -0
  18. package/dist/utils/legacy/legacy.d.ts.map +1 -1
  19. package/dist/views/chat/input/buttons/submit/submitButton.d.ts +5 -3
  20. package/dist/views/chat/input/buttons/submit/submitButton.d.ts.map +1 -1
  21. package/dist/views/chat/input/buttons/submit/submitButtonStateStyle.d.ts +2 -2
  22. package/dist/views/chat/input/buttons/submit/submitButtonStateStyle.d.ts.map +1 -1
  23. package/dist/views/chat/input/fileAttachments/fileAttachmentTypes/fileAttachmentsType.d.ts.map +1 -1
  24. package/dist/views/chat/input/fileAttachments/fileAttachments.d.ts.map +1 -1
  25. package/dist/views/chat/input/input.d.ts +0 -1
  26. package/dist/views/chat/input/input.d.ts.map +1 -1
  27. package/dist/views/chat/input/textInput/textInput.d.ts.map +1 -1
  28. package/dist/views/chat/input/textInput/{inputEvents.d.ts → textInputEvents.d.ts} +2 -2
  29. package/dist/views/chat/input/textInput/textInputEvents.d.ts.map +1 -0
  30. package/dist/views/chat/input/validation/validationHandler.d.ts +12 -0
  31. package/dist/views/chat/input/validation/validationHandler.d.ts.map +1 -0
  32. package/package.json +1 -1
  33. package/dist/types/validateMessageBeforeSending.d.ts +0 -2
  34. package/dist/types/validateMessageBeforeSending.d.ts.map +0 -1
  35. package/dist/views/chat/input/textInput/inputEvents.d.ts.map +0 -1
@@ -55,9 +55,9 @@
55
55
  },
56
56
  {
57
57
  "kind": "field",
58
- "name": "validateMessageBeforeSending",
58
+ "name": "validateInput",
59
59
  "type": {
60
- "text": "ValidateMessageBeforeSending | undefined"
60
+ "text": "ValidateInput | undefined"
61
61
  }
62
62
  },
63
63
  {
@@ -151,13 +151,6 @@
151
151
  "text": "MessageStyles | undefined"
152
152
  }
153
153
  },
154
- {
155
- "kind": "field",
156
- "name": "_insertKeyViewStyles",
157
- "type": {
158
- "text": "InsertKeyViewStyles | undefined"
159
- }
160
- },
161
154
  {
162
155
  "kind": "field",
163
156
  "name": "textToSpeech",
@@ -277,6 +270,13 @@
277
270
  "text": "() => void"
278
271
  }
279
272
  },
273
+ {
274
+ "kind": "field",
275
+ "name": "changeSubmitButtonState",
276
+ "type": {
277
+ "text": "ChangeSubmitButtonState"
278
+ }
279
+ },
280
280
  {
281
281
  "kind": "field",
282
282
  "name": "onNewMessage",
@@ -342,6 +342,13 @@
342
342
  "text": "ValidationHandler | undefined"
343
343
  }
344
344
  },
345
+ {
346
+ "kind": "field",
347
+ "name": "_insertKeyViewStyles",
348
+ "type": {
349
+ "text": "InsertKeyViewStyles | undefined"
350
+ }
351
+ },
345
352
  {
346
353
  "kind": "field",
347
354
  "name": "_elementRef",
@@ -1174,7 +1181,7 @@
1174
1181
  },
1175
1182
  {
1176
1183
  "kind": "javascript-module",
1177
- "path": "src/types/validateMessageBeforeSending.ts",
1184
+ "path": "src/types/validateInput.ts",
1178
1185
  "declarations": [],
1179
1186
  "exports": []
1180
1187
  },
@@ -1186,12 +1193,12 @@
1186
1193
  },
1187
1194
  {
1188
1195
  "kind": "javascript-module",
1189
- "path": "src/services/assemblyAI/assemblyAIAudioIO.ts",
1196
+ "path": "src/services/azure/azureLanguageIO.ts",
1190
1197
  "declarations": [
1191
1198
  {
1192
1199
  "kind": "class",
1193
1200
  "description": "",
1194
- "name": "AssemblyAIAudioIO",
1201
+ "name": "AzureLanguageIO",
1195
1202
  "members": [
1196
1203
  {
1197
1204
  "kind": "field",
@@ -1199,7 +1206,7 @@
1199
1206
  "type": {
1200
1207
  "text": "string"
1201
1208
  },
1202
- "default": "'AssemblyAI API Key'",
1209
+ "default": "'Azure Language Subscription Key'",
1203
1210
  "inheritedFrom": {
1204
1211
  "name": "DirectServiceIO",
1205
1212
  "module": "src/services/utils/directServiceIO.ts"
@@ -1211,156 +1218,19 @@
1211
1218
  "type": {
1212
1219
  "text": "string"
1213
1220
  },
1214
- "default": "'https://www.assemblyai.com/app/account'",
1221
+ "default": "'https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal'",
1215
1222
  "inheritedFrom": {
1216
1223
  "name": "DirectServiceIO",
1217
1224
  "module": "src/services/utils/directServiceIO.ts"
1218
1225
  }
1219
1226
  },
1220
- {
1221
- "kind": "field",
1222
- "name": "introPanelMarkUp",
1223
- "default": "`\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>AssemblyAI Audio</b></div>\n <p><b>Upload an audio file</b> to transcribe it into text.\n <p>\n Click <a href=\"https://www.assemblyai.com/docs/Guides/transcribing_an_audio_file#get-started\">here</a> for more info.\n </p>`"
1224
- },
1225
- {
1226
- "kind": "field",
1227
- "name": "url",
1228
- "type": {
1229
- "text": "string"
1230
- },
1231
- "default": "'https://api.assemblyai.com/v2/upload'"
1232
- },
1233
- {
1234
- "kind": "field",
1235
- "name": "isTextInputDisabled",
1236
- "type": {
1237
- "text": "boolean"
1238
- },
1239
- "default": "true"
1240
- },
1241
- {
1242
- "kind": "field",
1243
- "name": "textInputPlaceholderText",
1244
- "type": {
1245
- "text": "string"
1246
- },
1247
- "default": "'Upload an audio file'"
1248
- },
1249
1227
  {
1250
1228
  "kind": "field",
1251
1229
  "name": "permittedErrorPrefixes",
1252
1230
  "type": {
1253
1231
  "text": "array"
1254
1232
  },
1255
- "default": "['Authentication', 'Invalid']"
1256
- },
1257
- {
1258
- "kind": "method",
1259
- "name": "canFileSendMessage",
1260
- "privacy": "private",
1261
- "static": true,
1262
- "parameters": [
1263
- {
1264
- "name": "_",
1265
- "optional": true,
1266
- "type": {
1267
- "text": "string"
1268
- }
1269
- },
1270
- {
1271
- "name": "files",
1272
- "optional": true,
1273
- "type": {
1274
- "text": "File[]"
1275
- }
1276
- }
1277
- ]
1278
- },
1279
- {
1280
- "kind": "method",
1281
- "name": "callServiceAPI",
1282
- "parameters": [
1283
- {
1284
- "name": "messages",
1285
- "type": {
1286
- "text": "Messages"
1287
- }
1288
- },
1289
- {
1290
- "name": "_",
1291
- "type": {
1292
- "text": "MessageContent[]"
1293
- }
1294
- },
1295
- {
1296
- "name": "files",
1297
- "optional": true,
1298
- "type": {
1299
- "text": "File[]"
1300
- }
1301
- }
1302
- ],
1303
- "inheritedFrom": {
1304
- "name": "BaseServiceIO",
1305
- "module": "src/services/utils/baseServiceIO.ts"
1306
- }
1307
- },
1308
- {
1309
- "kind": "method",
1310
- "name": "extractResultData",
1311
- "return": {
1312
- "type": {
1313
- "text": "Promise<Response>"
1314
- }
1315
- },
1316
- "parameters": [
1317
- {
1318
- "name": "result",
1319
- "type": {
1320
- "text": "AssemblyAIResult"
1321
- }
1322
- }
1323
- ],
1324
- "inheritedFrom": {
1325
- "name": "BaseServiceIO",
1326
- "module": "src/services/utils/baseServiceIO.ts"
1327
- }
1328
- },
1329
- {
1330
- "kind": "field",
1331
- "name": "canSendMessage",
1332
- "privacy": "private",
1333
- "static": true,
1334
- "parameters": [
1335
- {
1336
- "name": "text",
1337
- "optional": true,
1338
- "type": {
1339
- "text": "string"
1340
- }
1341
- },
1342
- {
1343
- "name": "files",
1344
- "optional": true,
1345
- "type": {
1346
- "text": "File[]"
1347
- }
1348
- },
1349
- {
1350
- "name": "isProgrammatic",
1351
- "optional": true,
1352
- "type": {
1353
- "text": "boolean"
1354
- }
1355
- }
1356
- ],
1357
- "type": {
1358
- "text": "ValidateMessageBeforeSending"
1359
- },
1360
- "inheritedFrom": {
1361
- "name": "BaseServiceIO",
1362
- "module": "src/services/utils/baseServiceIO.ts"
1363
- }
1233
+ "default": "['Access']"
1364
1234
  },
1365
1235
  {
1366
1236
  "kind": "field",
@@ -1542,6 +1412,42 @@
1542
1412
  "module": "src/services/utils/baseServiceIO.ts"
1543
1413
  }
1544
1414
  },
1415
+ {
1416
+ "kind": "field",
1417
+ "name": "canSendMessage",
1418
+ "privacy": "private",
1419
+ "static": true,
1420
+ "parameters": [
1421
+ {
1422
+ "name": "text",
1423
+ "optional": true,
1424
+ "type": {
1425
+ "text": "string"
1426
+ }
1427
+ },
1428
+ {
1429
+ "name": "files",
1430
+ "optional": true,
1431
+ "type": {
1432
+ "text": "File[]"
1433
+ }
1434
+ },
1435
+ {
1436
+ "name": "isProgrammatic",
1437
+ "optional": true,
1438
+ "type": {
1439
+ "text": "boolean"
1440
+ }
1441
+ }
1442
+ ],
1443
+ "type": {
1444
+ "text": "ValidateInput"
1445
+ },
1446
+ "inheritedFrom": {
1447
+ "name": "BaseServiceIO",
1448
+ "module": "src/services/utils/baseServiceIO.ts"
1449
+ }
1450
+ },
1545
1451
  {
1546
1452
  "kind": "field",
1547
1453
  "name": "fileTypes",
@@ -1720,6 +1626,35 @@
1720
1626
  "module": "src/services/utils/baseServiceIO.ts"
1721
1627
  }
1722
1628
  },
1629
+ {
1630
+ "kind": "method",
1631
+ "name": "callServiceAPI",
1632
+ "parameters": [
1633
+ {
1634
+ "name": "messages",
1635
+ "type": {
1636
+ "text": "Messages"
1637
+ }
1638
+ },
1639
+ {
1640
+ "name": "pMessages",
1641
+ "type": {
1642
+ "text": "MessageContent[]"
1643
+ }
1644
+ },
1645
+ {
1646
+ "name": "_",
1647
+ "optional": true,
1648
+ "type": {
1649
+ "text": "File[]"
1650
+ }
1651
+ }
1652
+ ],
1653
+ "inheritedFrom": {
1654
+ "name": "BaseServiceIO",
1655
+ "module": "src/services/utils/baseServiceIO.ts"
1656
+ }
1657
+ },
1723
1658
  {
1724
1659
  "kind": "method",
1725
1660
  "name": "callApiWithFiles",
@@ -1775,6 +1710,27 @@
1775
1710
  "name": "BaseServiceIO",
1776
1711
  "module": "src/services/utils/baseServiceIO.ts"
1777
1712
  }
1713
+ },
1714
+ {
1715
+ "kind": "method",
1716
+ "name": "extractResultData",
1717
+ "return": {
1718
+ "type": {
1719
+ "text": "Promise<Response | {pollingInAnotherRequest: true}>"
1720
+ }
1721
+ },
1722
+ "parameters": [
1723
+ {
1724
+ "name": "result",
1725
+ "type": {
1726
+ "text": "any | Response"
1727
+ }
1728
+ }
1729
+ ],
1730
+ "inheritedFrom": {
1731
+ "name": "BaseServiceIO",
1732
+ "module": "src/services/utils/baseServiceIO.ts"
1733
+ }
1778
1734
  }
1779
1735
  ],
1780
1736
  "superclass": {
@@ -1786,126 +1742,30 @@
1786
1742
  "exports": [
1787
1743
  {
1788
1744
  "kind": "js",
1789
- "name": "AssemblyAIAudioIO",
1745
+ "name": "AzureLanguageIO",
1790
1746
  "declaration": {
1791
- "name": "AssemblyAIAudioIO",
1792
- "module": "src/services/assemblyAI/assemblyAIAudioIO.ts"
1747
+ "name": "AzureLanguageIO",
1748
+ "module": "src/services/azure/azureLanguageIO.ts"
1793
1749
  }
1794
1750
  }
1795
1751
  ]
1796
1752
  },
1797
1753
  {
1798
1754
  "kind": "javascript-module",
1799
- "path": "src/services/cohere/cohereChatIO.ts",
1755
+ "path": "src/services/azure/azureSpeechIO.ts",
1800
1756
  "declarations": [
1801
1757
  {
1802
1758
  "kind": "class",
1803
1759
  "description": "",
1804
- "name": "CohereChatIO",
1760
+ "name": "AzureSpeechIO",
1805
1761
  "members": [
1806
- {
1807
- "kind": "field",
1808
- "name": "username",
1809
- "type": {
1810
- "text": "string"
1811
- },
1812
- "privacy": "private",
1813
- "default": "'USER'"
1814
- },
1815
- {
1816
- "kind": "method",
1817
- "name": "cleanConfig",
1818
- "privacy": "private",
1819
- "parameters": [
1820
- {
1821
- "name": "config",
1822
- "type": {
1823
- "text": "CohereChatConfig"
1824
- }
1825
- }
1826
- ]
1827
- },
1828
- {
1829
- "kind": "method",
1830
- "name": "preprocessBody",
1831
- "privacy": "private",
1832
- "parameters": [
1833
- {
1834
- "name": "body",
1835
- "type": {
1836
- "text": "CohereChatConfig"
1837
- }
1838
- },
1839
- {
1840
- "name": "pMessages",
1841
- "type": {
1842
- "text": "MessageContent[]"
1843
- }
1844
- }
1845
- ]
1846
- },
1847
- {
1848
- "kind": "method",
1849
- "name": "callServiceAPI",
1850
- "parameters": [
1851
- {
1852
- "name": "messages",
1853
- "type": {
1854
- "text": "Messages"
1855
- }
1856
- },
1857
- {
1858
- "name": "pMessages",
1859
- "type": {
1860
- "text": "MessageContent[]"
1861
- }
1862
- }
1863
- ],
1864
- "inheritedFrom": {
1865
- "name": "BaseServiceIO",
1866
- "module": "src/services/utils/baseServiceIO.ts"
1867
- }
1868
- },
1869
- {
1870
- "kind": "method",
1871
- "name": "extractResultData",
1872
- "return": {
1873
- "type": {
1874
- "text": "Promise<Response>"
1875
- }
1876
- },
1877
- "parameters": [
1878
- {
1879
- "name": "result",
1880
- "type": {
1881
- "text": "CohereChatResult"
1882
- }
1883
- }
1884
- ],
1885
- "inheritedFrom": {
1886
- "name": "BaseServiceIO",
1887
- "module": "src/services/utils/baseServiceIO.ts"
1888
- }
1889
- },
1890
- {
1891
- "kind": "field",
1892
- "name": "maxMessages",
1893
- "type": {
1894
- "text": "number | undefined"
1895
- },
1896
- "default": "-1",
1897
- "inheritedFrom": {
1898
- "name": "BaseServiceIO",
1899
- "module": "src/services/utils/baseServiceIO.ts"
1900
- }
1901
- },
1902
1762
  {
1903
1763
  "kind": "field",
1904
1764
  "name": "insertKeyPlaceholderText",
1905
1765
  "type": {
1906
1766
  "text": "string"
1907
1767
  },
1908
- "default": "'Cohere API Key'",
1768
+ "default": "'Azure Speech Subscription Key'",
1909
1769
  "inheritedFrom": {
1910
1770
  "name": "DirectServiceIO",
1911
1771
  "module": "src/services/utils/directServiceIO.ts"
@@ -1917,48 +1777,12 @@
1917
1777
  "type": {
1918
1778
  "text": "string"
1919
1779
  },
1920
- "default": "'https://dashboard.cohere.ai/api-keys'",
1780
+ "default": "'https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal'",
1921
1781
  "inheritedFrom": {
1922
1782
  "name": "DirectServiceIO",
1923
1783
  "module": "src/services/utils/directServiceIO.ts"
1924
1784
  }
1925
1785
  },
1926
- {
1927
- "kind": "field",
1928
- "name": "textInputPlaceholderText",
1929
- "type": {
1930
- "text": "string"
1931
- },
1932
- "default": "inputPlaceholder",
1933
- "inheritedFrom": {
1934
- "name": "CohereIO",
1935
- "module": "src/services/cohere/cohereIO.ts"
1936
- }
1937
- },
1938
- {
1939
- "kind": "field",
1940
- "name": "permittedErrorPrefixes",
1941
- "type": {
1942
- "text": "array"
1943
- },
1944
- "default": "['invalid']",
1945
- "inheritedFrom": {
1946
- "name": "CohereIO",
1947
- "module": "src/services/cohere/cohereIO.ts"
1948
- }
1949
- },
1950
- {
1951
- "kind": "field",
1952
- "name": "url",
1953
- "type": {
1954
- "text": "string"
1955
- },
1956
- "default": "url",
1957
- "inheritedFrom": {
1958
- "name": "CohereIO",
1959
- "module": "src/services/cohere/cohereIO.ts"
1960
- }
1961
- },
1962
1786
  {
1963
1787
  "kind": "field",
1964
1788
  "name": "key",
@@ -2168,7 +1992,7 @@
2168
1992
  }
2169
1993
  ],
2170
1994
  "type": {
2171
- "text": "ValidateMessageBeforeSending"
1995
+ "text": "ValidateInput"
2172
1996
  },
2173
1997
  "inheritedFrom": {
2174
1998
  "name": "BaseServiceIO",
@@ -2220,6 +2044,17 @@
2220
2044
  "module": "src/services/utils/baseServiceIO.ts"
2221
2045
  }
2222
2046
  },
2047
+ {
2048
+ "kind": "field",
2049
+ "name": "maxMessages",
2050
+ "type": {
2051
+ "text": "number | undefined"
2052
+ },
2053
+ "inheritedFrom": {
2054
+ "name": "BaseServiceIO",
2055
+ "module": "src/services/utils/baseServiceIO.ts"
2056
+ }
2057
+ },
2223
2058
  {
2224
2059
  "kind": "field",
2225
2060
  "name": "_directServiceRequiresFiles",
@@ -2342,6 +2177,35 @@
2342
2177
  "module": "src/services/utils/baseServiceIO.ts"
2343
2178
  }
2344
2179
  },
2180
+ {
2181
+ "kind": "method",
2182
+ "name": "callServiceAPI",
2183
+ "parameters": [
2184
+ {
2185
+ "name": "messages",
2186
+ "type": {
2187
+ "text": "Messages"
2188
+ }
2189
+ },
2190
+ {
2191
+ "name": "pMessages",
2192
+ "type": {
2193
+ "text": "MessageContent[]"
2194
+ }
2195
+ },
2196
+ {
2197
+ "name": "_",
2198
+ "optional": true,
2199
+ "type": {
2200
+ "text": "File[]"
2201
+ }
2202
+ }
2203
+ ],
2204
+ "inheritedFrom": {
2205
+ "name": "BaseServiceIO",
2206
+ "module": "src/services/utils/baseServiceIO.ts"
2207
+ }
2208
+ },
2345
2209
  {
2346
2210
  "kind": "method",
2347
2211
  "name": "callApiWithFiles",
@@ -2397,89 +2261,245 @@
2397
2261
  "name": "BaseServiceIO",
2398
2262
  "module": "src/services/utils/baseServiceIO.ts"
2399
2263
  }
2264
+ },
2265
+ {
2266
+ "kind": "method",
2267
+ "name": "extractResultData",
2268
+ "return": {
2269
+ "type": {
2270
+ "text": "Promise<Response | {pollingInAnotherRequest: true}>"
2271
+ }
2272
+ },
2273
+ "parameters": [
2274
+ {
2275
+ "name": "result",
2276
+ "type": {
2277
+ "text": "any | Response"
2278
+ }
2279
+ }
2280
+ ],
2281
+ "inheritedFrom": {
2282
+ "name": "BaseServiceIO",
2283
+ "module": "src/services/utils/baseServiceIO.ts"
2284
+ }
2400
2285
  }
2401
2286
  ],
2402
2287
  "superclass": {
2403
- "name": "CohereIO",
2404
- "module": "/src/services/cohere/cohereIO"
2288
+ "name": "DirectServiceIO",
2289
+ "module": "/src/services/utils/directServiceIO"
2405
2290
  }
2406
2291
  }
2407
2292
  ],
2408
2293
  "exports": [
2409
2294
  {
2410
2295
  "kind": "js",
2411
- "name": "CohereChatIO",
2296
+ "name": "AzureSpeechIO",
2412
2297
  "declaration": {
2413
- "name": "CohereChatIO",
2414
- "module": "src/services/cohere/cohereChatIO.ts"
2298
+ "name": "AzureSpeechIO",
2299
+ "module": "src/services/azure/azureSpeechIO.ts"
2415
2300
  }
2416
2301
  }
2417
2302
  ]
2418
2303
  },
2419
2304
  {
2420
2305
  "kind": "javascript-module",
2421
- "path": "src/services/cohere/cohereIO.ts",
2306
+ "path": "src/services/azure/azureSpeechToTextIO.ts",
2422
2307
  "declarations": [
2423
2308
  {
2424
2309
  "kind": "class",
2425
2310
  "description": "",
2426
- "name": "CohereIO",
2311
+ "name": "AzureSpeechToTextIO",
2427
2312
  "members": [
2428
2313
  {
2429
2314
  "kind": "field",
2430
- "name": "insertKeyPlaceholderText",
2315
+ "name": "HELP_LINK",
2431
2316
  "type": {
2432
2317
  "text": "string"
2433
2318
  },
2434
- "default": "'Cohere API Key'",
2435
- "inheritedFrom": {
2436
- "name": "DirectServiceIO",
2437
- "module": "src/services/utils/directServiceIO.ts"
2438
- }
2319
+ "privacy": "private",
2320
+ "static": true,
2321
+ "default": "'https://learn.microsoft.com/en-GB/azure/cognitive-services/speech-service/get-started-text-to-speech?tabs=windows%2Cterminal&pivots=programming-language-rest'"
2439
2322
  },
2440
2323
  {
2441
2324
  "kind": "field",
2442
- "name": "getKeyLink",
2443
- "type": {
2444
- "text": "string"
2445
- },
2446
- "default": "'https://dashboard.cohere.ai/api-keys'",
2447
- "inheritedFrom": {
2448
- "name": "DirectServiceIO",
2449
- "module": "src/services/utils/directServiceIO.ts"
2450
- }
2325
+ "name": "introPanelMarkUp",
2326
+ "default": "`\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Azure Speech To Text</b></div>\n <p><b>Upload a .wav or .ogg audio file</b> to transcribe it into text.\n <p>\n Click <a href=\"${AzureSpeechToTextIO.HELP_LINK}\">here</a> for more info.\n </p>`"
2451
2327
  },
2452
2328
  {
2453
2329
  "kind": "field",
2454
- "name": "textInputPlaceholderText",
2330
+ "name": "url",
2455
2331
  "type": {
2456
2332
  "text": "string"
2457
2333
  },
2458
- "default": "inputPlaceholder"
2334
+ "default": "`https://${config.region}.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1?language=${lang}&format=detailed`"
2459
2335
  },
2460
2336
  {
2461
2337
  "kind": "field",
2462
- "name": "permittedErrorPrefixes",
2338
+ "name": "isTextInputDisabled",
2463
2339
  "type": {
2464
- "text": "array"
2340
+ "text": "boolean"
2465
2341
  },
2466
- "default": "['invalid']"
2342
+ "default": "true"
2467
2343
  },
2468
2344
  {
2469
2345
  "kind": "field",
2470
- "name": "url",
2346
+ "name": "textInputPlaceholderText",
2471
2347
  "type": {
2472
2348
  "text": "string"
2473
2349
  },
2474
- "default": "url"
2350
+ "default": "'Upload an audio file'"
2475
2351
  },
2476
2352
  {
2477
- "kind": "field",
2478
- "name": "key",
2479
- "type": {
2480
- "text": "string | undefined"
2481
- },
2482
- "inheritedFrom": {
2353
+ "kind": "method",
2354
+ "name": "canFileSendMessage",
2355
+ "privacy": "private",
2356
+ "static": true,
2357
+ "parameters": [
2358
+ {
2359
+ "name": "_",
2360
+ "optional": true,
2361
+ "type": {
2362
+ "text": "string"
2363
+ }
2364
+ },
2365
+ {
2366
+ "name": "files",
2367
+ "optional": true,
2368
+ "type": {
2369
+ "text": "File[]"
2370
+ }
2371
+ }
2372
+ ]
2373
+ },
2374
+ {
2375
+ "kind": "method",
2376
+ "name": "callServiceAPI",
2377
+ "parameters": [
2378
+ {
2379
+ "name": "messages",
2380
+ "type": {
2381
+ "text": "Messages"
2382
+ }
2383
+ },
2384
+ {
2385
+ "name": "_",
2386
+ "type": {
2387
+ "text": "MessageContent[]"
2388
+ }
2389
+ },
2390
+ {
2391
+ "name": "files",
2392
+ "optional": true,
2393
+ "type": {
2394
+ "text": "File[]"
2395
+ }
2396
+ }
2397
+ ],
2398
+ "inheritedFrom": {
2399
+ "name": "BaseServiceIO",
2400
+ "module": "src/services/utils/baseServiceIO.ts"
2401
+ }
2402
+ },
2403
+ {
2404
+ "kind": "method",
2405
+ "name": "extractResultData",
2406
+ "return": {
2407
+ "type": {
2408
+ "text": "Promise<Response>"
2409
+ }
2410
+ },
2411
+ "parameters": [
2412
+ {
2413
+ "name": "result",
2414
+ "type": {
2415
+ "text": "AzureSpeechToTextResult"
2416
+ }
2417
+ }
2418
+ ],
2419
+ "inheritedFrom": {
2420
+ "name": "BaseServiceIO",
2421
+ "module": "src/services/utils/baseServiceIO.ts"
2422
+ }
2423
+ },
2424
+ {
2425
+ "kind": "field",
2426
+ "name": "canSendMessage",
2427
+ "privacy": "private",
2428
+ "static": true,
2429
+ "parameters": [
2430
+ {
2431
+ "name": "text",
2432
+ "optional": true,
2433
+ "type": {
2434
+ "text": "string"
2435
+ }
2436
+ },
2437
+ {
2438
+ "name": "files",
2439
+ "optional": true,
2440
+ "type": {
2441
+ "text": "File[]"
2442
+ }
2443
+ },
2444
+ {
2445
+ "name": "isProgrammatic",
2446
+ "optional": true,
2447
+ "type": {
2448
+ "text": "boolean"
2449
+ }
2450
+ }
2451
+ ],
2452
+ "type": {
2453
+ "text": "ValidateInput"
2454
+ },
2455
+ "inheritedFrom": {
2456
+ "name": "BaseServiceIO",
2457
+ "module": "src/services/utils/baseServiceIO.ts"
2458
+ }
2459
+ },
2460
+ {
2461
+ "kind": "field",
2462
+ "name": "recordAudio",
2463
+ "type": {
2464
+ "text": "MicrophoneFilesServiceConfig | undefined"
2465
+ },
2466
+ "inheritedFrom": {
2467
+ "name": "BaseServiceIO",
2468
+ "module": "src/services/utils/baseServiceIO.ts"
2469
+ },
2470
+ "default": "undefined"
2471
+ },
2472
+ {
2473
+ "kind": "field",
2474
+ "name": "insertKeyPlaceholderText",
2475
+ "type": {
2476
+ "text": "string"
2477
+ },
2478
+ "default": "'Azure Speech Subscription Key'",
2479
+ "inheritedFrom": {
2480
+ "name": "DirectServiceIO",
2481
+ "module": "src/services/utils/directServiceIO.ts"
2482
+ }
2483
+ },
2484
+ {
2485
+ "kind": "field",
2486
+ "name": "getKeyLink",
2487
+ "type": {
2488
+ "text": "string"
2489
+ },
2490
+ "default": "'https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal'",
2491
+ "inheritedFrom": {
2492
+ "name": "DirectServiceIO",
2493
+ "module": "src/services/utils/directServiceIO.ts"
2494
+ }
2495
+ },
2496
+ {
2497
+ "kind": "field",
2498
+ "name": "key",
2499
+ "type": {
2500
+ "text": "string | undefined"
2501
+ },
2502
+ "inheritedFrom": {
2483
2503
  "name": "DirectServiceIO",
2484
2504
  "module": "src/services/utils/directServiceIO.ts"
2485
2505
  }
@@ -2653,42 +2673,6 @@
2653
2673
  "module": "src/services/utils/baseServiceIO.ts"
2654
2674
  }
2655
2675
  },
2656
- {
2657
- "kind": "field",
2658
- "name": "canSendMessage",
2659
- "privacy": "private",
2660
- "static": true,
2661
- "parameters": [
2662
- {
2663
- "name": "text",
2664
- "optional": true,
2665
- "type": {
2666
- "text": "string"
2667
- }
2668
- },
2669
- {
2670
- "name": "files",
2671
- "optional": true,
2672
- "type": {
2673
- "text": "File[]"
2674
- }
2675
- },
2676
- {
2677
- "name": "isProgrammatic",
2678
- "optional": true,
2679
- "type": {
2680
- "text": "boolean"
2681
- }
2682
- }
2683
- ],
2684
- "type": {
2685
- "text": "ValidateMessageBeforeSending"
2686
- },
2687
- "inheritedFrom": {
2688
- "name": "BaseServiceIO",
2689
- "module": "src/services/utils/baseServiceIO.ts"
2690
- }
2691
- },
2692
2676
  {
2693
2677
  "kind": "field",
2694
2678
  "name": "fileTypes",
@@ -2712,17 +2696,6 @@
2712
2696
  "module": "src/services/utils/baseServiceIO.ts"
2713
2697
  }
2714
2698
  },
2715
- {
2716
- "kind": "field",
2717
- "name": "recordAudio",
2718
- "type": {
2719
- "text": "MicrophoneFilesServiceConfig | undefined"
2720
- },
2721
- "inheritedFrom": {
2722
- "name": "BaseServiceIO",
2723
- "module": "src/services/utils/baseServiceIO.ts"
2724
- }
2725
- },
2726
2699
  {
2727
2700
  "kind": "field",
2728
2701
  "name": "totalMessagesMaxCharLength",
@@ -2867,35 +2840,6 @@
2867
2840
  "module": "src/services/utils/baseServiceIO.ts"
2868
2841
  }
2869
2842
  },
2870
- {
2871
- "kind": "method",
2872
- "name": "callServiceAPI",
2873
- "parameters": [
2874
- {
2875
- "name": "messages",
2876
- "type": {
2877
- "text": "Messages"
2878
- }
2879
- },
2880
- {
2881
- "name": "pMessages",
2882
- "type": {
2883
- "text": "MessageContent[]"
2884
- }
2885
- },
2886
- {
2887
- "name": "_",
2888
- "optional": true,
2889
- "type": {
2890
- "text": "File[]"
2891
- }
2892
- }
2893
- ],
2894
- "inheritedFrom": {
2895
- "name": "BaseServiceIO",
2896
- "module": "src/services/utils/baseServiceIO.ts"
2897
- }
2898
- },
2899
2843
  {
2900
2844
  "kind": "method",
2901
2845
  "name": "callApiWithFiles",
@@ -2951,55 +2895,58 @@
2951
2895
  "name": "BaseServiceIO",
2952
2896
  "module": "src/services/utils/baseServiceIO.ts"
2953
2897
  }
2954
- },
2955
- {
2956
- "kind": "method",
2957
- "name": "extractResultData",
2958
- "return": {
2959
- "type": {
2960
- "text": "Promise<Response | {pollingInAnotherRequest: true}>"
2961
- }
2962
- },
2963
- "parameters": [
2964
- {
2965
- "name": "result",
2966
- "type": {
2967
- "text": "any | Response"
2968
- }
2969
- }
2970
- ],
2971
- "inheritedFrom": {
2972
- "name": "BaseServiceIO",
2973
- "module": "src/services/utils/baseServiceIO.ts"
2974
- }
2975
2898
  }
2976
2899
  ],
2977
2900
  "superclass": {
2978
- "name": "DirectServiceIO",
2979
- "module": "/src/services/utils/directServiceIO"
2901
+ "name": "AzureSpeechIO",
2902
+ "module": "/src/services/azure/azureSpeechIO"
2980
2903
  }
2981
2904
  }
2982
2905
  ],
2983
2906
  "exports": [
2984
2907
  {
2985
2908
  "kind": "js",
2986
- "name": "CohereIO",
2909
+ "name": "AzureSpeechToTextIO",
2987
2910
  "declaration": {
2988
- "name": "CohereIO",
2989
- "module": "src/services/cohere/cohereIO.ts"
2911
+ "name": "AzureSpeechToTextIO",
2912
+ "module": "src/services/azure/azureSpeechToTextIO.ts"
2990
2913
  }
2991
2914
  }
2992
2915
  ]
2993
2916
  },
2994
2917
  {
2995
2918
  "kind": "javascript-module",
2996
- "path": "src/services/cohere/cohereSummarizationIO.ts",
2919
+ "path": "src/services/azure/azureSummarizationIO.ts",
2997
2920
  "declarations": [
2998
2921
  {
2999
2922
  "kind": "class",
3000
2923
  "description": "",
3001
- "name": "CohereSummarizationIO",
2924
+ "name": "AzureSummarizationIO",
3002
2925
  "members": [
2926
+ {
2927
+ "kind": "field",
2928
+ "name": "url",
2929
+ "type": {
2930
+ "text": "string"
2931
+ },
2932
+ "default": "`${config.endpoint}/language/analyze-text/jobs?api-version=2022-10-01-preview`"
2933
+ },
2934
+ {
2935
+ "kind": "field",
2936
+ "name": "textInputPlaceholderText",
2937
+ "type": {
2938
+ "text": "string"
2939
+ },
2940
+ "default": "'Insert text to summarize'"
2941
+ },
2942
+ {
2943
+ "kind": "field",
2944
+ "name": "messages",
2945
+ "type": {
2946
+ "text": "Messages | undefined"
2947
+ },
2948
+ "privacy": "private"
2949
+ },
3003
2950
  {
3004
2951
  "kind": "method",
3005
2952
  "name": "preprocessBody",
@@ -3007,7 +2954,7 @@
3007
2954
  {
3008
2955
  "name": "body",
3009
2956
  "type": {
3010
- "text": "CohereSummarizationConfig"
2957
+ "text": "RawBody"
3011
2958
  }
3012
2959
  },
3013
2960
  {
@@ -3045,14 +2992,14 @@
3045
2992
  "name": "extractResultData",
3046
2993
  "return": {
3047
2994
  "type": {
3048
- "text": "Promise<Response>"
2995
+ "text": "Promise<{pollingInAnotherRequest: true}>"
3049
2996
  }
3050
2997
  },
3051
2998
  "parameters": [
3052
2999
  {
3053
3000
  "name": "result",
3054
3001
  "type": {
3055
- "text": "CohereSummarizationResult"
3002
+ "text": "Response & AzureAuthenticationError"
3056
3003
  }
3057
3004
  }
3058
3005
  ],
@@ -3061,25 +3008,38 @@
3061
3008
  "module": "src/services/utils/baseServiceIO.ts"
3062
3009
  }
3063
3010
  },
3011
+ {
3012
+ "kind": "method",
3013
+ "name": "extractPollResultData",
3014
+ "return": {
3015
+ "type": {
3016
+ "text": "PollResult"
3017
+ }
3018
+ },
3019
+ "parameters": [
3020
+ {
3021
+ "name": "result",
3022
+ "type": {
3023
+ "text": "AzureSummarizationResult"
3024
+ }
3025
+ }
3026
+ ]
3027
+ },
3064
3028
  {
3065
3029
  "kind": "field",
3066
- "name": "insertKeyPlaceholderText",
3030
+ "name": "language",
3067
3031
  "type": {
3068
3032
  "text": "string"
3069
3033
  },
3070
- "default": "'Cohere API Key'",
3071
- "inheritedFrom": {
3072
- "name": "DirectServiceIO",
3073
- "module": "src/services/utils/directServiceIO.ts"
3074
- }
3034
+ "default": "'en'"
3075
3035
  },
3076
3036
  {
3077
3037
  "kind": "field",
3078
- "name": "getKeyLink",
3038
+ "name": "insertKeyPlaceholderText",
3079
3039
  "type": {
3080
3040
  "text": "string"
3081
3041
  },
3082
- "default": "'https://dashboard.cohere.ai/api-keys'",
3042
+ "default": "'Azure Language Subscription Key'",
3083
3043
  "inheritedFrom": {
3084
3044
  "name": "DirectServiceIO",
3085
3045
  "module": "src/services/utils/directServiceIO.ts"
@@ -3087,14 +3047,14 @@
3087
3047
  },
3088
3048
  {
3089
3049
  "kind": "field",
3090
- "name": "textInputPlaceholderText",
3050
+ "name": "getKeyLink",
3091
3051
  "type": {
3092
3052
  "text": "string"
3093
3053
  },
3094
- "default": "inputPlaceholder",
3054
+ "default": "'https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal'",
3095
3055
  "inheritedFrom": {
3096
- "name": "CohereIO",
3097
- "module": "src/services/cohere/cohereIO.ts"
3056
+ "name": "DirectServiceIO",
3057
+ "module": "src/services/utils/directServiceIO.ts"
3098
3058
  }
3099
3059
  },
3100
3060
  {
@@ -3103,22 +3063,10 @@
3103
3063
  "type": {
3104
3064
  "text": "array"
3105
3065
  },
3106
- "default": "['invalid']",
3107
- "inheritedFrom": {
3108
- "name": "CohereIO",
3109
- "module": "src/services/cohere/cohereIO.ts"
3110
- }
3111
- },
3112
- {
3113
- "kind": "field",
3114
- "name": "url",
3115
- "type": {
3116
- "text": "string"
3117
- },
3118
- "default": "url",
3066
+ "default": "['Access']",
3119
3067
  "inheritedFrom": {
3120
- "name": "CohereIO",
3121
- "module": "src/services/cohere/cohereIO.ts"
3068
+ "name": "AzureLanguageIO",
3069
+ "module": "src/services/azure/azureLanguageIO.ts"
3122
3070
  }
3123
3071
  },
3124
3072
  {
@@ -3330,7 +3278,7 @@
3330
3278
  }
3331
3279
  ],
3332
3280
  "type": {
3333
- "text": "ValidateMessageBeforeSending"
3281
+ "text": "ValidateInput"
3334
3282
  },
3335
3283
  "inheritedFrom": {
3336
3284
  "name": "BaseServiceIO",
@@ -3573,31 +3521,54 @@
3573
3521
  }
3574
3522
  ],
3575
3523
  "superclass": {
3576
- "name": "CohereIO",
3577
- "module": "/src/services/cohere/cohereIO"
3524
+ "name": "AzureLanguageIO",
3525
+ "module": "/src/services/azure/azureLanguageIO"
3578
3526
  }
3579
3527
  }
3580
3528
  ],
3581
3529
  "exports": [
3582
3530
  {
3583
3531
  "kind": "js",
3584
- "name": "CohereSummarizationIO",
3532
+ "name": "AzureSummarizationIO",
3585
3533
  "declaration": {
3586
- "name": "CohereSummarizationIO",
3587
- "module": "src/services/cohere/cohereSummarizationIO.ts"
3534
+ "name": "AzureSummarizationIO",
3535
+ "module": "src/services/azure/azureSummarizationIO.ts"
3588
3536
  }
3589
3537
  }
3590
3538
  ]
3591
3539
  },
3592
3540
  {
3593
3541
  "kind": "javascript-module",
3594
- "path": "src/services/cohere/cohereTextGenerationIO.ts",
3542
+ "path": "src/services/azure/azureTextToSpeechIO.ts",
3595
3543
  "declarations": [
3596
3544
  {
3597
3545
  "kind": "class",
3598
3546
  "description": "",
3599
- "name": "CohereTextGenerationIO",
3547
+ "name": "AzureTextToSpeechIO",
3600
3548
  "members": [
3549
+ {
3550
+ "kind": "field",
3551
+ "name": "HELP_LINK",
3552
+ "type": {
3553
+ "text": "string"
3554
+ },
3555
+ "privacy": "private",
3556
+ "static": true,
3557
+ "default": "'https://learn.microsoft.com/en-GB/azure/cognitive-services/speech-service/get-started-text-to-speech?tabs=windows%2Cterminal&pivots=programming-language-rest'"
3558
+ },
3559
+ {
3560
+ "kind": "field",
3561
+ "name": "introPanelMarkUp",
3562
+ "default": "`\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Azure Text To Speech</b></div>\n <p>Insert text to synthesize it to audio.\n <p>\n Click <a href=\"${AzureTextToSpeechIO.HELP_LINK}\">here</a> for more info.\n </p>`"
3563
+ },
3564
+ {
3565
+ "kind": "field",
3566
+ "name": "url",
3567
+ "type": {
3568
+ "text": "string"
3569
+ },
3570
+ "default": "`https://${config.region}.tts.speech.microsoft.com/cognitiveservices/v1`"
3571
+ },
3601
3572
  {
3602
3573
  "kind": "method",
3603
3574
  "name": "preprocessBody",
@@ -3605,7 +3576,7 @@
3605
3576
  {
3606
3577
  "name": "body",
3607
3578
  "type": {
3608
- "text": "CohereGenerateConfig"
3579
+ "text": "AzureTextToSpeechConfig"
3609
3580
  }
3610
3581
  },
3611
3582
  {
@@ -3650,7 +3621,7 @@
3650
3621
  {
3651
3622
  "name": "result",
3652
3623
  "type": {
3653
- "text": "CohereCompletionsResult"
3624
+ "text": "AzureTextToSpeechResult"
3654
3625
  }
3655
3626
  }
3656
3627
  ],
@@ -3661,62 +3632,50 @@
3661
3632
  },
3662
3633
  {
3663
3634
  "kind": "field",
3664
- "name": "insertKeyPlaceholderText",
3635
+ "name": "lang",
3665
3636
  "type": {
3666
3637
  "text": "string"
3667
3638
  },
3668
- "default": "'Cohere API Key'",
3669
- "inheritedFrom": {
3670
- "name": "DirectServiceIO",
3671
- "module": "src/services/utils/directServiceIO.ts"
3672
- }
3639
+ "default": "'en-US'"
3673
3640
  },
3674
3641
  {
3675
3642
  "kind": "field",
3676
- "name": "getKeyLink",
3643
+ "name": "name",
3677
3644
  "type": {
3678
3645
  "text": "string"
3679
3646
  },
3680
- "default": "'https://dashboard.cohere.ai/api-keys'",
3681
- "inheritedFrom": {
3682
- "name": "DirectServiceIO",
3683
- "module": "src/services/utils/directServiceIO.ts"
3684
- }
3647
+ "default": "'en-US-JennyNeural'"
3685
3648
  },
3686
3649
  {
3687
3650
  "kind": "field",
3688
- "name": "textInputPlaceholderText",
3651
+ "name": "gender",
3689
3652
  "type": {
3690
3653
  "text": "string"
3691
3654
  },
3692
- "default": "inputPlaceholder",
3693
- "inheritedFrom": {
3694
- "name": "CohereIO",
3695
- "module": "src/services/cohere/cohereIO.ts"
3696
- }
3655
+ "default": "'Female'"
3697
3656
  },
3698
3657
  {
3699
3658
  "kind": "field",
3700
- "name": "permittedErrorPrefixes",
3659
+ "name": "insertKeyPlaceholderText",
3701
3660
  "type": {
3702
- "text": "array"
3661
+ "text": "string"
3703
3662
  },
3704
- "default": "['invalid']",
3663
+ "default": "'Azure Speech Subscription Key'",
3705
3664
  "inheritedFrom": {
3706
- "name": "CohereIO",
3707
- "module": "src/services/cohere/cohereIO.ts"
3665
+ "name": "DirectServiceIO",
3666
+ "module": "src/services/utils/directServiceIO.ts"
3708
3667
  }
3709
3668
  },
3710
3669
  {
3711
3670
  "kind": "field",
3712
- "name": "url",
3671
+ "name": "getKeyLink",
3713
3672
  "type": {
3714
3673
  "text": "string"
3715
3674
  },
3716
- "default": "url",
3675
+ "default": "'https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal'",
3717
3676
  "inheritedFrom": {
3718
- "name": "CohereIO",
3719
- "module": "src/services/cohere/cohereIO.ts"
3677
+ "name": "DirectServiceIO",
3678
+ "module": "src/services/utils/directServiceIO.ts"
3720
3679
  }
3721
3680
  },
3722
3681
  {
@@ -3928,7 +3887,7 @@
3928
3887
  }
3929
3888
  ],
3930
3889
  "type": {
3931
- "text": "ValidateMessageBeforeSending"
3890
+ "text": "ValidateInput"
3932
3891
  },
3933
3892
  "inheritedFrom": {
3934
3893
  "name": "BaseServiceIO",
@@ -4171,30 +4130,30 @@
4171
4130
  }
4172
4131
  ],
4173
4132
  "superclass": {
4174
- "name": "CohereIO",
4175
- "module": "/src/services/cohere/cohereIO"
4133
+ "name": "AzureSpeechIO",
4134
+ "module": "/src/services/azure/azureSpeechIO"
4176
4135
  }
4177
4136
  }
4178
4137
  ],
4179
4138
  "exports": [
4180
4139
  {
4181
4140
  "kind": "js",
4182
- "name": "CohereTextGenerationIO",
4141
+ "name": "AzureTextToSpeechIO",
4183
4142
  "declaration": {
4184
- "name": "CohereTextGenerationIO",
4185
- "module": "src/services/cohere/cohereTextGenerationIO.ts"
4143
+ "name": "AzureTextToSpeechIO",
4144
+ "module": "src/services/azure/azureTextToSpeechIO.ts"
4186
4145
  }
4187
4146
  }
4188
4147
  ]
4189
4148
  },
4190
4149
  {
4191
4150
  "kind": "javascript-module",
4192
- "path": "src/services/azure/azureLanguageIO.ts",
4151
+ "path": "src/services/azure/azureTranslationIO.ts",
4193
4152
  "declarations": [
4194
4153
  {
4195
4154
  "kind": "class",
4196
4155
  "description": "",
4197
- "name": "AzureLanguageIO",
4156
+ "name": "AzureTranslationIO",
4198
4157
  "members": [
4199
4158
  {
4200
4159
  "kind": "field",
@@ -4202,7 +4161,7 @@
4202
4161
  "type": {
4203
4162
  "text": "string"
4204
4163
  },
4205
- "default": "'Azure Language Subscription Key'",
4164
+ "default": "'Azure Translate Subscription Key'",
4206
4165
  "inheritedFrom": {
4207
4166
  "name": "DirectServiceIO",
4208
4167
  "module": "src/services/utils/directServiceIO.ts"
@@ -4222,11 +4181,66 @@
4222
4181
  },
4223
4182
  {
4224
4183
  "kind": "field",
4225
- "name": "permittedErrorPrefixes",
4184
+ "name": "url",
4226
4185
  "type": {
4227
- "text": "array"
4186
+ "text": "string"
4228
4187
  },
4229
- "default": "['Access']"
4188
+ "default": "`https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=${config.language || 'es'}`"
4189
+ },
4190
+ {
4191
+ "kind": "method",
4192
+ "name": "preprocessBody",
4193
+ "parameters": [
4194
+ {
4195
+ "name": "messages",
4196
+ "type": {
4197
+ "text": "MessageContent[]"
4198
+ }
4199
+ }
4200
+ ]
4201
+ },
4202
+ {
4203
+ "kind": "method",
4204
+ "name": "callServiceAPI",
4205
+ "parameters": [
4206
+ {
4207
+ "name": "messages",
4208
+ "type": {
4209
+ "text": "Messages"
4210
+ }
4211
+ },
4212
+ {
4213
+ "name": "pMessages",
4214
+ "type": {
4215
+ "text": "MessageContent[]"
4216
+ }
4217
+ }
4218
+ ],
4219
+ "inheritedFrom": {
4220
+ "name": "BaseServiceIO",
4221
+ "module": "src/services/utils/baseServiceIO.ts"
4222
+ }
4223
+ },
4224
+ {
4225
+ "kind": "method",
4226
+ "name": "extractResultData",
4227
+ "return": {
4228
+ "type": {
4229
+ "text": "Promise<Response>"
4230
+ }
4231
+ },
4232
+ "parameters": [
4233
+ {
4234
+ "name": "result",
4235
+ "type": {
4236
+ "text": "AzureTranslationResult"
4237
+ }
4238
+ }
4239
+ ],
4240
+ "inheritedFrom": {
4241
+ "name": "BaseServiceIO",
4242
+ "module": "src/services/utils/baseServiceIO.ts"
4243
+ }
4230
4244
  },
4231
4245
  {
4232
4246
  "kind": "field",
@@ -4437,7 +4451,7 @@
4437
4451
  }
4438
4452
  ],
4439
4453
  "type": {
4440
- "text": "ValidateMessageBeforeSending"
4454
+ "text": "ValidateInput"
4441
4455
  },
4442
4456
  "inheritedFrom": {
4443
4457
  "name": "BaseServiceIO",
@@ -4624,8 +4638,14 @@
4624
4638
  },
4625
4639
  {
4626
4640
  "kind": "method",
4627
- "name": "callServiceAPI",
4641
+ "name": "callApiWithFiles",
4628
4642
  "parameters": [
4643
+ {
4644
+ "name": "body",
4645
+ "type": {
4646
+ "text": "any"
4647
+ }
4648
+ },
4629
4649
  {
4630
4650
  "name": "messages",
4631
4651
  "type": {
@@ -4639,8 +4659,7 @@
4639
4659
  }
4640
4660
  },
4641
4661
  {
4642
- "name": "_",
4643
- "optional": true,
4662
+ "name": "files",
4644
4663
  "type": {
4645
4664
  "text": "File[]"
4646
4665
  }
@@ -4653,12 +4672,12 @@
4653
4672
  },
4654
4673
  {
4655
4674
  "kind": "method",
4656
- "name": "callApiWithFiles",
4675
+ "name": "callAPI",
4657
4676
  "parameters": [
4658
4677
  {
4659
- "name": "body",
4678
+ "name": "requestContents",
4660
4679
  "type": {
4661
- "text": "any"
4680
+ "text": "RequestContents"
4662
4681
  }
4663
4682
  },
4664
4683
  {
@@ -4666,39 +4685,144 @@
4666
4685
  "type": {
4667
4686
  "text": "Messages"
4668
4687
  }
4669
- },
4688
+ }
4689
+ ],
4690
+ "inheritedFrom": {
4691
+ "name": "BaseServiceIO",
4692
+ "module": "src/services/utils/baseServiceIO.ts"
4693
+ }
4694
+ }
4695
+ ],
4696
+ "superclass": {
4697
+ "name": "DirectServiceIO",
4698
+ "module": "/src/services/utils/directServiceIO"
4699
+ }
4700
+ }
4701
+ ],
4702
+ "exports": [
4703
+ {
4704
+ "kind": "js",
4705
+ "name": "AzureTranslationIO",
4706
+ "declaration": {
4707
+ "name": "AzureTranslationIO",
4708
+ "module": "src/services/azure/azureTranslationIO.ts"
4709
+ }
4710
+ }
4711
+ ]
4712
+ },
4713
+ {
4714
+ "kind": "javascript-module",
4715
+ "path": "src/services/assemblyAI/assemblyAIAudioIO.ts",
4716
+ "declarations": [
4717
+ {
4718
+ "kind": "class",
4719
+ "description": "",
4720
+ "name": "AssemblyAIAudioIO",
4721
+ "members": [
4722
+ {
4723
+ "kind": "field",
4724
+ "name": "insertKeyPlaceholderText",
4725
+ "type": {
4726
+ "text": "string"
4727
+ },
4728
+ "default": "'AssemblyAI API Key'",
4729
+ "inheritedFrom": {
4730
+ "name": "DirectServiceIO",
4731
+ "module": "src/services/utils/directServiceIO.ts"
4732
+ }
4733
+ },
4734
+ {
4735
+ "kind": "field",
4736
+ "name": "getKeyLink",
4737
+ "type": {
4738
+ "text": "string"
4739
+ },
4740
+ "default": "'https://www.assemblyai.com/app/account'",
4741
+ "inheritedFrom": {
4742
+ "name": "DirectServiceIO",
4743
+ "module": "src/services/utils/directServiceIO.ts"
4744
+ }
4745
+ },
4746
+ {
4747
+ "kind": "field",
4748
+ "name": "introPanelMarkUp",
4749
+ "default": "`\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>AssemblyAI Audio</b></div>\n <p><b>Upload an audio file</b> to transcribe it into text.\n <p>\n Click <a href=\"https://www.assemblyai.com/docs/Guides/transcribing_an_audio_file#get-started\">here</a> for more info.\n </p>`"
4750
+ },
4751
+ {
4752
+ "kind": "field",
4753
+ "name": "url",
4754
+ "type": {
4755
+ "text": "string"
4756
+ },
4757
+ "default": "'https://api.assemblyai.com/v2/upload'"
4758
+ },
4759
+ {
4760
+ "kind": "field",
4761
+ "name": "isTextInputDisabled",
4762
+ "type": {
4763
+ "text": "boolean"
4764
+ },
4765
+ "default": "true"
4766
+ },
4767
+ {
4768
+ "kind": "field",
4769
+ "name": "textInputPlaceholderText",
4770
+ "type": {
4771
+ "text": "string"
4772
+ },
4773
+ "default": "'Upload an audio file'"
4774
+ },
4775
+ {
4776
+ "kind": "field",
4777
+ "name": "permittedErrorPrefixes",
4778
+ "type": {
4779
+ "text": "array"
4780
+ },
4781
+ "default": "['Authentication', 'Invalid']"
4782
+ },
4783
+ {
4784
+ "kind": "method",
4785
+ "name": "canFileSendMessage",
4786
+ "privacy": "private",
4787
+ "static": true,
4788
+ "parameters": [
4670
4789
  {
4671
- "name": "pMessages",
4790
+ "name": "_",
4791
+ "optional": true,
4672
4792
  "type": {
4673
- "text": "MessageContent[]"
4793
+ "text": "string"
4674
4794
  }
4675
4795
  },
4676
4796
  {
4677
4797
  "name": "files",
4798
+ "optional": true,
4678
4799
  "type": {
4679
4800
  "text": "File[]"
4680
4801
  }
4681
4802
  }
4682
- ],
4683
- "inheritedFrom": {
4684
- "name": "BaseServiceIO",
4685
- "module": "src/services/utils/baseServiceIO.ts"
4686
- }
4803
+ ]
4687
4804
  },
4688
4805
  {
4689
4806
  "kind": "method",
4690
- "name": "callAPI",
4807
+ "name": "callServiceAPI",
4691
4808
  "parameters": [
4692
4809
  {
4693
- "name": "requestContents",
4810
+ "name": "messages",
4694
4811
  "type": {
4695
- "text": "RequestContents"
4812
+ "text": "Messages"
4696
4813
  }
4697
4814
  },
4698
4815
  {
4699
- "name": "messages",
4816
+ "name": "_",
4700
4817
  "type": {
4701
- "text": "Messages"
4818
+ "text": "MessageContent[]"
4819
+ }
4820
+ },
4821
+ {
4822
+ "name": "files",
4823
+ "optional": true,
4824
+ "type": {
4825
+ "text": "File[]"
4702
4826
  }
4703
4827
  }
4704
4828
  ],
@@ -4712,14 +4836,14 @@
4712
4836
  "name": "extractResultData",
4713
4837
  "return": {
4714
4838
  "type": {
4715
- "text": "Promise<Response | {pollingInAnotherRequest: true}>"
4839
+ "text": "Promise<Response>"
4716
4840
  }
4717
4841
  },
4718
4842
  "parameters": [
4719
4843
  {
4720
4844
  "name": "result",
4721
4845
  "type": {
4722
- "text": "any | Response"
4846
+ "text": "AssemblyAIResult"
4723
4847
  }
4724
4848
  }
4725
4849
  ],
@@ -4727,56 +4851,41 @@
4727
4851
  "name": "BaseServiceIO",
4728
4852
  "module": "src/services/utils/baseServiceIO.ts"
4729
4853
  }
4730
- }
4731
- ],
4732
- "superclass": {
4733
- "name": "DirectServiceIO",
4734
- "module": "/src/services/utils/directServiceIO"
4735
- }
4736
- }
4737
- ],
4738
- "exports": [
4739
- {
4740
- "kind": "js",
4741
- "name": "AzureLanguageIO",
4742
- "declaration": {
4743
- "name": "AzureLanguageIO",
4744
- "module": "src/services/azure/azureLanguageIO.ts"
4745
- }
4746
- }
4747
- ]
4748
- },
4749
- {
4750
- "kind": "javascript-module",
4751
- "path": "src/services/azure/azureSpeechIO.ts",
4752
- "declarations": [
4753
- {
4754
- "kind": "class",
4755
- "description": "",
4756
- "name": "AzureSpeechIO",
4757
- "members": [
4758
- {
4759
- "kind": "field",
4760
- "name": "insertKeyPlaceholderText",
4761
- "type": {
4762
- "text": "string"
4763
- },
4764
- "default": "'Azure Speech Subscription Key'",
4765
- "inheritedFrom": {
4766
- "name": "DirectServiceIO",
4767
- "module": "src/services/utils/directServiceIO.ts"
4768
- }
4769
4854
  },
4770
4855
  {
4771
4856
  "kind": "field",
4772
- "name": "getKeyLink",
4857
+ "name": "canSendMessage",
4858
+ "privacy": "private",
4859
+ "static": true,
4860
+ "parameters": [
4861
+ {
4862
+ "name": "text",
4863
+ "optional": true,
4864
+ "type": {
4865
+ "text": "string"
4866
+ }
4867
+ },
4868
+ {
4869
+ "name": "files",
4870
+ "optional": true,
4871
+ "type": {
4872
+ "text": "File[]"
4873
+ }
4874
+ },
4875
+ {
4876
+ "name": "isProgrammatic",
4877
+ "optional": true,
4878
+ "type": {
4879
+ "text": "boolean"
4880
+ }
4881
+ }
4882
+ ],
4773
4883
  "type": {
4774
- "text": "string"
4884
+ "text": "ValidateInput"
4775
4885
  },
4776
- "default": "'https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal'",
4777
4886
  "inheritedFrom": {
4778
- "name": "DirectServiceIO",
4779
- "module": "src/services/utils/directServiceIO.ts"
4887
+ "name": "BaseServiceIO",
4888
+ "module": "src/services/utils/baseServiceIO.ts"
4780
4889
  }
4781
4890
  },
4782
4891
  {
@@ -4959,42 +5068,6 @@
4959
5068
  "module": "src/services/utils/baseServiceIO.ts"
4960
5069
  }
4961
5070
  },
4962
- {
4963
- "kind": "field",
4964
- "name": "canSendMessage",
4965
- "privacy": "private",
4966
- "static": true,
4967
- "parameters": [
4968
- {
4969
- "name": "text",
4970
- "optional": true,
4971
- "type": {
4972
- "text": "string"
4973
- }
4974
- },
4975
- {
4976
- "name": "files",
4977
- "optional": true,
4978
- "type": {
4979
- "text": "File[]"
4980
- }
4981
- },
4982
- {
4983
- "name": "isProgrammatic",
4984
- "optional": true,
4985
- "type": {
4986
- "text": "boolean"
4987
- }
4988
- }
4989
- ],
4990
- "type": {
4991
- "text": "ValidateMessageBeforeSending"
4992
- },
4993
- "inheritedFrom": {
4994
- "name": "BaseServiceIO",
4995
- "module": "src/services/utils/baseServiceIO.ts"
4996
- }
4997
- },
4998
5071
  {
4999
5072
  "kind": "field",
5000
5073
  "name": "fileTypes",
@@ -5173,35 +5246,6 @@
5173
5246
  "module": "src/services/utils/baseServiceIO.ts"
5174
5247
  }
5175
5248
  },
5176
- {
5177
- "kind": "method",
5178
- "name": "callServiceAPI",
5179
- "parameters": [
5180
- {
5181
- "name": "messages",
5182
- "type": {
5183
- "text": "Messages"
5184
- }
5185
- },
5186
- {
5187
- "name": "pMessages",
5188
- "type": {
5189
- "text": "MessageContent[]"
5190
- }
5191
- },
5192
- {
5193
- "name": "_",
5194
- "optional": true,
5195
- "type": {
5196
- "text": "File[]"
5197
- }
5198
- }
5199
- ],
5200
- "inheritedFrom": {
5201
- "name": "BaseServiceIO",
5202
- "module": "src/services/utils/baseServiceIO.ts"
5203
- }
5204
- },
5205
5249
  {
5206
5250
  "kind": "method",
5207
5251
  "name": "callApiWithFiles",
@@ -5257,27 +5301,6 @@
5257
5301
  "name": "BaseServiceIO",
5258
5302
  "module": "src/services/utils/baseServiceIO.ts"
5259
5303
  }
5260
- },
5261
- {
5262
- "kind": "method",
5263
- "name": "extractResultData",
5264
- "return": {
5265
- "type": {
5266
- "text": "Promise<Response | {pollingInAnotherRequest: true}>"
5267
- }
5268
- },
5269
- "parameters": [
5270
- {
5271
- "name": "result",
5272
- "type": {
5273
- "text": "any | Response"
5274
- }
5275
- }
5276
- ],
5277
- "inheritedFrom": {
5278
- "name": "BaseServiceIO",
5279
- "module": "src/services/utils/baseServiceIO.ts"
5280
- }
5281
5304
  }
5282
5305
  ],
5283
5306
  "superclass": {
@@ -5289,80 +5312,60 @@
5289
5312
  "exports": [
5290
5313
  {
5291
5314
  "kind": "js",
5292
- "name": "AzureSpeechIO",
5315
+ "name": "AssemblyAIAudioIO",
5293
5316
  "declaration": {
5294
- "name": "AzureSpeechIO",
5295
- "module": "src/services/azure/azureSpeechIO.ts"
5317
+ "name": "AssemblyAIAudioIO",
5318
+ "module": "src/services/assemblyAI/assemblyAIAudioIO.ts"
5296
5319
  }
5297
5320
  }
5298
5321
  ]
5299
5322
  },
5300
5323
  {
5301
5324
  "kind": "javascript-module",
5302
- "path": "src/services/azure/azureSpeechToTextIO.ts",
5325
+ "path": "src/services/cohere/cohereChatIO.ts",
5303
5326
  "declarations": [
5304
5327
  {
5305
5328
  "kind": "class",
5306
5329
  "description": "",
5307
- "name": "AzureSpeechToTextIO",
5330
+ "name": "CohereChatIO",
5308
5331
  "members": [
5309
5332
  {
5310
5333
  "kind": "field",
5311
- "name": "HELP_LINK",
5334
+ "name": "username",
5312
5335
  "type": {
5313
5336
  "text": "string"
5314
5337
  },
5315
5338
  "privacy": "private",
5316
- "static": true,
5317
- "default": "'https://learn.microsoft.com/en-GB/azure/cognitive-services/speech-service/get-started-text-to-speech?tabs=windows%2Cterminal&pivots=programming-language-rest'"
5318
- },
5319
- {
5320
- "kind": "field",
5321
- "name": "introPanelMarkUp",
5322
- "default": "`\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Azure Speech To Text</b></div>\n <p><b>Upload a .wav or .ogg audio file</b> to transcribe it into text.\n <p>\n Click <a href=\"${AzureSpeechToTextIO.HELP_LINK}\">here</a> for more info.\n </p>`"
5323
- },
5324
- {
5325
- "kind": "field",
5326
- "name": "url",
5327
- "type": {
5328
- "text": "string"
5329
- },
5330
- "default": "`https://${config.region}.stt.speech.microsoft.com/speech/recognition/conversation/cognitiveservices/v1?language=${lang}&format=detailed`"
5331
- },
5332
- {
5333
- "kind": "field",
5334
- "name": "isTextInputDisabled",
5335
- "type": {
5336
- "text": "boolean"
5337
- },
5338
- "default": "true"
5339
+ "default": "'USER'"
5339
5340
  },
5340
5341
  {
5341
- "kind": "field",
5342
- "name": "textInputPlaceholderText",
5343
- "type": {
5344
- "text": "string"
5345
- },
5346
- "default": "'Upload an audio file'"
5342
+ "kind": "method",
5343
+ "name": "cleanConfig",
5344
+ "privacy": "private",
5345
+ "parameters": [
5346
+ {
5347
+ "name": "config",
5348
+ "type": {
5349
+ "text": "CohereChatConfig"
5350
+ }
5351
+ }
5352
+ ]
5347
5353
  },
5348
5354
  {
5349
5355
  "kind": "method",
5350
- "name": "canFileSendMessage",
5356
+ "name": "preprocessBody",
5351
5357
  "privacy": "private",
5352
- "static": true,
5353
5358
  "parameters": [
5354
5359
  {
5355
- "name": "_",
5356
- "optional": true,
5360
+ "name": "body",
5357
5361
  "type": {
5358
- "text": "string"
5362
+ "text": "CohereChatConfig"
5359
5363
  }
5360
5364
  },
5361
5365
  {
5362
- "name": "files",
5363
- "optional": true,
5366
+ "name": "pMessages",
5364
5367
  "type": {
5365
- "text": "File[]"
5368
+ "text": "MessageContent[]"
5366
5369
  }
5367
5370
  }
5368
5371
  ]
@@ -5378,17 +5381,10 @@
5378
5381
  }
5379
5382
  },
5380
5383
  {
5381
- "name": "_",
5384
+ "name": "pMessages",
5382
5385
  "type": {
5383
5386
  "text": "MessageContent[]"
5384
5387
  }
5385
- },
5386
- {
5387
- "name": "files",
5388
- "optional": true,
5389
- "type": {
5390
- "text": "File[]"
5391
- }
5392
5388
  }
5393
5389
  ],
5394
5390
  "inheritedFrom": {
@@ -5408,7 +5404,7 @@
5408
5404
  {
5409
5405
  "name": "result",
5410
5406
  "type": {
5411
- "text": "AzureSpeechToTextResult"
5407
+ "text": "CohereChatResult"
5412
5408
  }
5413
5409
  }
5414
5410
  ],
@@ -5419,35 +5415,11 @@
5419
5415
  },
5420
5416
  {
5421
5417
  "kind": "field",
5422
- "name": "canSendMessage",
5423
- "privacy": "private",
5424
- "static": true,
5425
- "parameters": [
5426
- {
5427
- "name": "text",
5428
- "optional": true,
5429
- "type": {
5430
- "text": "string"
5431
- }
5432
- },
5433
- {
5434
- "name": "files",
5435
- "optional": true,
5436
- "type": {
5437
- "text": "File[]"
5438
- }
5439
- },
5440
- {
5441
- "name": "isProgrammatic",
5442
- "optional": true,
5443
- "type": {
5444
- "text": "boolean"
5445
- }
5446
- }
5447
- ],
5418
+ "name": "maxMessages",
5448
5419
  "type": {
5449
- "text": "ValidateMessageBeforeSending"
5420
+ "text": "number | undefined"
5450
5421
  },
5422
+ "default": "-1",
5451
5423
  "inheritedFrom": {
5452
5424
  "name": "BaseServiceIO",
5453
5425
  "module": "src/services/utils/baseServiceIO.ts"
@@ -5455,23 +5427,23 @@
5455
5427
  },
5456
5428
  {
5457
5429
  "kind": "field",
5458
- "name": "recordAudio",
5430
+ "name": "insertKeyPlaceholderText",
5459
5431
  "type": {
5460
- "text": "MicrophoneFilesServiceConfig | undefined"
5432
+ "text": "string"
5461
5433
  },
5434
+ "default": "'Cohere API Key'",
5462
5435
  "inheritedFrom": {
5463
- "name": "BaseServiceIO",
5464
- "module": "src/services/utils/baseServiceIO.ts"
5465
- },
5466
- "default": "undefined"
5436
+ "name": "DirectServiceIO",
5437
+ "module": "src/services/utils/directServiceIO.ts"
5438
+ }
5467
5439
  },
5468
5440
  {
5469
5441
  "kind": "field",
5470
- "name": "insertKeyPlaceholderText",
5442
+ "name": "getKeyLink",
5471
5443
  "type": {
5472
5444
  "text": "string"
5473
5445
  },
5474
- "default": "'Azure Speech Subscription Key'",
5446
+ "default": "'https://dashboard.cohere.ai/api-keys'",
5475
5447
  "inheritedFrom": {
5476
5448
  "name": "DirectServiceIO",
5477
5449
  "module": "src/services/utils/directServiceIO.ts"
@@ -5479,14 +5451,38 @@
5479
5451
  },
5480
5452
  {
5481
5453
  "kind": "field",
5482
- "name": "getKeyLink",
5454
+ "name": "textInputPlaceholderText",
5483
5455
  "type": {
5484
5456
  "text": "string"
5485
5457
  },
5486
- "default": "'https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal'",
5458
+ "default": "inputPlaceholder",
5487
5459
  "inheritedFrom": {
5488
- "name": "DirectServiceIO",
5489
- "module": "src/services/utils/directServiceIO.ts"
5460
+ "name": "CohereIO",
5461
+ "module": "src/services/cohere/cohereIO.ts"
5462
+ }
5463
+ },
5464
+ {
5465
+ "kind": "field",
5466
+ "name": "permittedErrorPrefixes",
5467
+ "type": {
5468
+ "text": "array"
5469
+ },
5470
+ "default": "['invalid']",
5471
+ "inheritedFrom": {
5472
+ "name": "CohereIO",
5473
+ "module": "src/services/cohere/cohereIO.ts"
5474
+ }
5475
+ },
5476
+ {
5477
+ "kind": "field",
5478
+ "name": "url",
5479
+ "type": {
5480
+ "text": "string"
5481
+ },
5482
+ "default": "url",
5483
+ "inheritedFrom": {
5484
+ "name": "CohereIO",
5485
+ "module": "src/services/cohere/cohereIO.ts"
5490
5486
  }
5491
5487
  },
5492
5488
  {
@@ -5669,6 +5665,42 @@
5669
5665
  "module": "src/services/utils/baseServiceIO.ts"
5670
5666
  }
5671
5667
  },
5668
+ {
5669
+ "kind": "field",
5670
+ "name": "canSendMessage",
5671
+ "privacy": "private",
5672
+ "static": true,
5673
+ "parameters": [
5674
+ {
5675
+ "name": "text",
5676
+ "optional": true,
5677
+ "type": {
5678
+ "text": "string"
5679
+ }
5680
+ },
5681
+ {
5682
+ "name": "files",
5683
+ "optional": true,
5684
+ "type": {
5685
+ "text": "File[]"
5686
+ }
5687
+ },
5688
+ {
5689
+ "name": "isProgrammatic",
5690
+ "optional": true,
5691
+ "type": {
5692
+ "text": "boolean"
5693
+ }
5694
+ }
5695
+ ],
5696
+ "type": {
5697
+ "text": "ValidateInput"
5698
+ },
5699
+ "inheritedFrom": {
5700
+ "name": "BaseServiceIO",
5701
+ "module": "src/services/utils/baseServiceIO.ts"
5702
+ }
5703
+ },
5672
5704
  {
5673
5705
  "kind": "field",
5674
5706
  "name": "fileTypes",
@@ -5694,9 +5726,9 @@
5694
5726
  },
5695
5727
  {
5696
5728
  "kind": "field",
5697
- "name": "totalMessagesMaxCharLength",
5729
+ "name": "recordAudio",
5698
5730
  "type": {
5699
- "text": "number | undefined"
5731
+ "text": "MicrophoneFilesServiceConfig | undefined"
5700
5732
  },
5701
5733
  "inheritedFrom": {
5702
5734
  "name": "BaseServiceIO",
@@ -5705,7 +5737,7 @@
5705
5737
  },
5706
5738
  {
5707
5739
  "kind": "field",
5708
- "name": "maxMessages",
5740
+ "name": "totalMessagesMaxCharLength",
5709
5741
  "type": {
5710
5742
  "text": "number | undefined"
5711
5743
  },
@@ -5894,148 +5926,38 @@
5894
5926
  }
5895
5927
  ],
5896
5928
  "superclass": {
5897
- "name": "AzureSpeechIO",
5898
- "module": "/src/services/azure/azureSpeechIO"
5929
+ "name": "CohereIO",
5930
+ "module": "/src/services/cohere/cohereIO"
5899
5931
  }
5900
5932
  }
5901
5933
  ],
5902
5934
  "exports": [
5903
5935
  {
5904
5936
  "kind": "js",
5905
- "name": "AzureSpeechToTextIO",
5937
+ "name": "CohereChatIO",
5906
5938
  "declaration": {
5907
- "name": "AzureSpeechToTextIO",
5908
- "module": "src/services/azure/azureSpeechToTextIO.ts"
5939
+ "name": "CohereChatIO",
5940
+ "module": "src/services/cohere/cohereChatIO.ts"
5909
5941
  }
5910
5942
  }
5911
5943
  ]
5912
5944
  },
5913
5945
  {
5914
5946
  "kind": "javascript-module",
5915
- "path": "src/services/azure/azureSummarizationIO.ts",
5947
+ "path": "src/services/cohere/cohereIO.ts",
5916
5948
  "declarations": [
5917
5949
  {
5918
5950
  "kind": "class",
5919
5951
  "description": "",
5920
- "name": "AzureSummarizationIO",
5952
+ "name": "CohereIO",
5921
5953
  "members": [
5922
- {
5923
- "kind": "field",
5924
- "name": "url",
5925
- "type": {
5926
- "text": "string"
5927
- },
5928
- "default": "`${config.endpoint}/language/analyze-text/jobs?api-version=2022-10-01-preview`"
5929
- },
5930
- {
5931
- "kind": "field",
5932
- "name": "textInputPlaceholderText",
5933
- "type": {
5934
- "text": "string"
5935
- },
5936
- "default": "'Insert text to summarize'"
5937
- },
5938
- {
5939
- "kind": "field",
5940
- "name": "messages",
5941
- "type": {
5942
- "text": "Messages | undefined"
5943
- },
5944
- "privacy": "private"
5945
- },
5946
- {
5947
- "kind": "method",
5948
- "name": "preprocessBody",
5949
- "parameters": [
5950
- {
5951
- "name": "body",
5952
- "type": {
5953
- "text": "RawBody"
5954
- }
5955
- },
5956
- {
5957
- "name": "messages",
5958
- "type": {
5959
- "text": "MessageContent[]"
5960
- }
5961
- }
5962
- ]
5963
- },
5964
- {
5965
- "kind": "method",
5966
- "name": "callServiceAPI",
5967
- "parameters": [
5968
- {
5969
- "name": "messages",
5970
- "type": {
5971
- "text": "Messages"
5972
- }
5973
- },
5974
- {
5975
- "name": "pMessages",
5976
- "type": {
5977
- "text": "MessageContent[]"
5978
- }
5979
- }
5980
- ],
5981
- "inheritedFrom": {
5982
- "name": "BaseServiceIO",
5983
- "module": "src/services/utils/baseServiceIO.ts"
5984
- }
5985
- },
5986
- {
5987
- "kind": "method",
5988
- "name": "extractResultData",
5989
- "return": {
5990
- "type": {
5991
- "text": "Promise<{pollingInAnotherRequest: true}>"
5992
- }
5993
- },
5994
- "parameters": [
5995
- {
5996
- "name": "result",
5997
- "type": {
5998
- "text": "Response & AzureAuthenticationError"
5999
- }
6000
- }
6001
- ],
6002
- "inheritedFrom": {
6003
- "name": "BaseServiceIO",
6004
- "module": "src/services/utils/baseServiceIO.ts"
6005
- }
6006
- },
6007
- {
6008
- "kind": "method",
6009
- "name": "extractPollResultData",
6010
- "return": {
6011
- "type": {
6012
- "text": "PollResult"
6013
- }
6014
- },
6015
- "parameters": [
6016
- {
6017
- "name": "result",
6018
- "type": {
6019
- "text": "AzureSummarizationResult"
6020
- }
6021
- }
6022
- ]
6023
- },
6024
- {
6025
- "kind": "field",
6026
- "name": "language",
6027
- "type": {
6028
- "text": "string"
6029
- },
6030
- "default": "'en'"
6031
- },
6032
5954
  {
6033
5955
  "kind": "field",
6034
5956
  "name": "insertKeyPlaceholderText",
6035
5957
  "type": {
6036
5958
  "text": "string"
6037
5959
  },
6038
- "default": "'Azure Language Subscription Key'",
5960
+ "default": "'Cohere API Key'",
6039
5961
  "inheritedFrom": {
6040
5962
  "name": "DirectServiceIO",
6041
5963
  "module": "src/services/utils/directServiceIO.ts"
@@ -6047,23 +5969,35 @@
6047
5969
  "type": {
6048
5970
  "text": "string"
6049
5971
  },
6050
- "default": "'https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal'",
5972
+ "default": "'https://dashboard.cohere.ai/api-keys'",
6051
5973
  "inheritedFrom": {
6052
5974
  "name": "DirectServiceIO",
6053
5975
  "module": "src/services/utils/directServiceIO.ts"
6054
5976
  }
6055
5977
  },
5978
+ {
5979
+ "kind": "field",
5980
+ "name": "textInputPlaceholderText",
5981
+ "type": {
5982
+ "text": "string"
5983
+ },
5984
+ "default": "inputPlaceholder"
5985
+ },
6056
5986
  {
6057
5987
  "kind": "field",
6058
5988
  "name": "permittedErrorPrefixes",
6059
5989
  "type": {
6060
5990
  "text": "array"
6061
5991
  },
6062
- "default": "['Access']",
6063
- "inheritedFrom": {
6064
- "name": "AzureLanguageIO",
6065
- "module": "src/services/azure/azureLanguageIO.ts"
6066
- }
5992
+ "default": "['invalid']"
5993
+ },
5994
+ {
5995
+ "kind": "field",
5996
+ "name": "url",
5997
+ "type": {
5998
+ "text": "string"
5999
+ },
6000
+ "default": "url"
6067
6001
  },
6068
6002
  {
6069
6003
  "kind": "field",
@@ -6274,7 +6208,7 @@
6274
6208
  }
6275
6209
  ],
6276
6210
  "type": {
6277
- "text": "ValidateMessageBeforeSending"
6211
+ "text": "ValidateInput"
6278
6212
  },
6279
6213
  "inheritedFrom": {
6280
6214
  "name": "BaseServiceIO",
@@ -6459,6 +6393,35 @@
6459
6393
  "module": "src/services/utils/baseServiceIO.ts"
6460
6394
  }
6461
6395
  },
6396
+ {
6397
+ "kind": "method",
6398
+ "name": "callServiceAPI",
6399
+ "parameters": [
6400
+ {
6401
+ "name": "messages",
6402
+ "type": {
6403
+ "text": "Messages"
6404
+ }
6405
+ },
6406
+ {
6407
+ "name": "pMessages",
6408
+ "type": {
6409
+ "text": "MessageContent[]"
6410
+ }
6411
+ },
6412
+ {
6413
+ "name": "_",
6414
+ "optional": true,
6415
+ "type": {
6416
+ "text": "File[]"
6417
+ }
6418
+ }
6419
+ ],
6420
+ "inheritedFrom": {
6421
+ "name": "BaseServiceIO",
6422
+ "module": "src/services/utils/baseServiceIO.ts"
6423
+ }
6424
+ },
6462
6425
  {
6463
6426
  "kind": "method",
6464
6427
  "name": "callApiWithFiles",
@@ -6514,57 +6477,55 @@
6514
6477
  "name": "BaseServiceIO",
6515
6478
  "module": "src/services/utils/baseServiceIO.ts"
6516
6479
  }
6480
+ },
6481
+ {
6482
+ "kind": "method",
6483
+ "name": "extractResultData",
6484
+ "return": {
6485
+ "type": {
6486
+ "text": "Promise<Response | {pollingInAnotherRequest: true}>"
6487
+ }
6488
+ },
6489
+ "parameters": [
6490
+ {
6491
+ "name": "result",
6492
+ "type": {
6493
+ "text": "any | Response"
6494
+ }
6495
+ }
6496
+ ],
6497
+ "inheritedFrom": {
6498
+ "name": "BaseServiceIO",
6499
+ "module": "src/services/utils/baseServiceIO.ts"
6500
+ }
6517
6501
  }
6518
6502
  ],
6519
6503
  "superclass": {
6520
- "name": "AzureLanguageIO",
6521
- "module": "/src/services/azure/azureLanguageIO"
6504
+ "name": "DirectServiceIO",
6505
+ "module": "/src/services/utils/directServiceIO"
6522
6506
  }
6523
6507
  }
6524
6508
  ],
6525
6509
  "exports": [
6526
6510
  {
6527
6511
  "kind": "js",
6528
- "name": "AzureSummarizationIO",
6512
+ "name": "CohereIO",
6529
6513
  "declaration": {
6530
- "name": "AzureSummarizationIO",
6531
- "module": "src/services/azure/azureSummarizationIO.ts"
6514
+ "name": "CohereIO",
6515
+ "module": "src/services/cohere/cohereIO.ts"
6532
6516
  }
6533
6517
  }
6534
6518
  ]
6535
6519
  },
6536
6520
  {
6537
6521
  "kind": "javascript-module",
6538
- "path": "src/services/azure/azureTextToSpeechIO.ts",
6522
+ "path": "src/services/cohere/cohereSummarizationIO.ts",
6539
6523
  "declarations": [
6540
6524
  {
6541
6525
  "kind": "class",
6542
6526
  "description": "",
6543
- "name": "AzureTextToSpeechIO",
6527
+ "name": "CohereSummarizationIO",
6544
6528
  "members": [
6545
- {
6546
- "kind": "field",
6547
- "name": "HELP_LINK",
6548
- "type": {
6549
- "text": "string"
6550
- },
6551
- "privacy": "private",
6552
- "static": true,
6553
- "default": "'https://learn.microsoft.com/en-GB/azure/cognitive-services/speech-service/get-started-text-to-speech?tabs=windows%2Cterminal&pivots=programming-language-rest'"
6554
- },
6555
- {
6556
- "kind": "field",
6557
- "name": "introPanelMarkUp",
6558
- "default": "`\n <div style=\"width: 100%; text-align: center; margin-left: -10px\"><b>Azure Text To Speech</b></div>\n <p>Insert text to synthesize it to audio.\n <p>\n Click <a href=\"${AzureTextToSpeechIO.HELP_LINK}\">here</a> for more info.\n </p>`"
6559
- },
6560
- {
6561
- "kind": "field",
6562
- "name": "url",
6563
- "type": {
6564
- "text": "string"
6565
- },
6566
- "default": "`https://${config.region}.tts.speech.microsoft.com/cognitiveservices/v1`"
6567
- },
6568
6529
  {
6569
6530
  "kind": "method",
6570
6531
  "name": "preprocessBody",
@@ -6572,7 +6533,7 @@
6572
6533
  {
6573
6534
  "name": "body",
6574
6535
  "type": {
6575
- "text": "AzureTextToSpeechConfig"
6536
+ "text": "CohereSummarizationConfig"
6576
6537
  }
6577
6538
  },
6578
6539
  {
@@ -6617,7 +6578,7 @@
6617
6578
  {
6618
6579
  "name": "result",
6619
6580
  "type": {
6620
- "text": "AzureTextToSpeechResult"
6581
+ "text": "CohereSummarizationResult"
6621
6582
  }
6622
6583
  }
6623
6584
  ],
@@ -6628,50 +6589,62 @@
6628
6589
  },
6629
6590
  {
6630
6591
  "kind": "field",
6631
- "name": "lang",
6592
+ "name": "insertKeyPlaceholderText",
6632
6593
  "type": {
6633
6594
  "text": "string"
6634
6595
  },
6635
- "default": "'en-US'"
6596
+ "default": "'Cohere API Key'",
6597
+ "inheritedFrom": {
6598
+ "name": "DirectServiceIO",
6599
+ "module": "src/services/utils/directServiceIO.ts"
6600
+ }
6636
6601
  },
6637
6602
  {
6638
6603
  "kind": "field",
6639
- "name": "name",
6604
+ "name": "getKeyLink",
6640
6605
  "type": {
6641
6606
  "text": "string"
6642
6607
  },
6643
- "default": "'en-US-JennyNeural'"
6608
+ "default": "'https://dashboard.cohere.ai/api-keys'",
6609
+ "inheritedFrom": {
6610
+ "name": "DirectServiceIO",
6611
+ "module": "src/services/utils/directServiceIO.ts"
6612
+ }
6644
6613
  },
6645
6614
  {
6646
6615
  "kind": "field",
6647
- "name": "gender",
6616
+ "name": "textInputPlaceholderText",
6648
6617
  "type": {
6649
6618
  "text": "string"
6650
6619
  },
6651
- "default": "'Female'"
6620
+ "default": "inputPlaceholder",
6621
+ "inheritedFrom": {
6622
+ "name": "CohereIO",
6623
+ "module": "src/services/cohere/cohereIO.ts"
6624
+ }
6652
6625
  },
6653
6626
  {
6654
6627
  "kind": "field",
6655
- "name": "insertKeyPlaceholderText",
6628
+ "name": "permittedErrorPrefixes",
6656
6629
  "type": {
6657
- "text": "string"
6630
+ "text": "array"
6658
6631
  },
6659
- "default": "'Azure Speech Subscription Key'",
6632
+ "default": "['invalid']",
6660
6633
  "inheritedFrom": {
6661
- "name": "DirectServiceIO",
6662
- "module": "src/services/utils/directServiceIO.ts"
6634
+ "name": "CohereIO",
6635
+ "module": "src/services/cohere/cohereIO.ts"
6663
6636
  }
6664
6637
  },
6665
6638
  {
6666
6639
  "kind": "field",
6667
- "name": "getKeyLink",
6640
+ "name": "url",
6668
6641
  "type": {
6669
6642
  "text": "string"
6670
6643
  },
6671
- "default": "'https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal'",
6644
+ "default": "url",
6672
6645
  "inheritedFrom": {
6673
- "name": "DirectServiceIO",
6674
- "module": "src/services/utils/directServiceIO.ts"
6646
+ "name": "CohereIO",
6647
+ "module": "src/services/cohere/cohereIO.ts"
6675
6648
  }
6676
6649
  },
6677
6650
  {
@@ -6883,7 +6856,7 @@
6883
6856
  }
6884
6857
  ],
6885
6858
  "type": {
6886
- "text": "ValidateMessageBeforeSending"
6859
+ "text": "ValidateInput"
6887
6860
  },
6888
6861
  "inheritedFrom": {
6889
6862
  "name": "BaseServiceIO",
@@ -7126,38 +7099,99 @@
7126
7099
  }
7127
7100
  ],
7128
7101
  "superclass": {
7129
- "name": "AzureSpeechIO",
7130
- "module": "/src/services/azure/azureSpeechIO"
7102
+ "name": "CohereIO",
7103
+ "module": "/src/services/cohere/cohereIO"
7131
7104
  }
7132
7105
  }
7133
7106
  ],
7134
7107
  "exports": [
7135
7108
  {
7136
7109
  "kind": "js",
7137
- "name": "AzureTextToSpeechIO",
7110
+ "name": "CohereSummarizationIO",
7138
7111
  "declaration": {
7139
- "name": "AzureTextToSpeechIO",
7140
- "module": "src/services/azure/azureTextToSpeechIO.ts"
7112
+ "name": "CohereSummarizationIO",
7113
+ "module": "src/services/cohere/cohereSummarizationIO.ts"
7141
7114
  }
7142
7115
  }
7143
7116
  ]
7144
7117
  },
7145
7118
  {
7146
7119
  "kind": "javascript-module",
7147
- "path": "src/services/azure/azureTranslationIO.ts",
7120
+ "path": "src/services/cohere/cohereTextGenerationIO.ts",
7148
7121
  "declarations": [
7149
7122
  {
7150
7123
  "kind": "class",
7151
7124
  "description": "",
7152
- "name": "AzureTranslationIO",
7125
+ "name": "CohereTextGenerationIO",
7153
7126
  "members": [
7127
+ {
7128
+ "kind": "method",
7129
+ "name": "preprocessBody",
7130
+ "parameters": [
7131
+ {
7132
+ "name": "body",
7133
+ "type": {
7134
+ "text": "CohereGenerateConfig"
7135
+ }
7136
+ },
7137
+ {
7138
+ "name": "messages",
7139
+ "type": {
7140
+ "text": "MessageContent[]"
7141
+ }
7142
+ }
7143
+ ]
7144
+ },
7145
+ {
7146
+ "kind": "method",
7147
+ "name": "callServiceAPI",
7148
+ "parameters": [
7149
+ {
7150
+ "name": "messages",
7151
+ "type": {
7152
+ "text": "Messages"
7153
+ }
7154
+ },
7155
+ {
7156
+ "name": "pMessages",
7157
+ "type": {
7158
+ "text": "MessageContent[]"
7159
+ }
7160
+ }
7161
+ ],
7162
+ "inheritedFrom": {
7163
+ "name": "BaseServiceIO",
7164
+ "module": "src/services/utils/baseServiceIO.ts"
7165
+ }
7166
+ },
7167
+ {
7168
+ "kind": "method",
7169
+ "name": "extractResultData",
7170
+ "return": {
7171
+ "type": {
7172
+ "text": "Promise<Response>"
7173
+ }
7174
+ },
7175
+ "parameters": [
7176
+ {
7177
+ "name": "result",
7178
+ "type": {
7179
+ "text": "CohereCompletionsResult"
7180
+ }
7181
+ }
7182
+ ],
7183
+ "inheritedFrom": {
7184
+ "name": "BaseServiceIO",
7185
+ "module": "src/services/utils/baseServiceIO.ts"
7186
+ }
7187
+ },
7154
7188
  {
7155
7189
  "kind": "field",
7156
7190
  "name": "insertKeyPlaceholderText",
7157
7191
  "type": {
7158
7192
  "text": "string"
7159
7193
  },
7160
- "default": "'Azure Translate Subscription Key'",
7194
+ "default": "'Cohere API Key'",
7161
7195
  "inheritedFrom": {
7162
7196
  "name": "DirectServiceIO",
7163
7197
  "module": "src/services/utils/directServiceIO.ts"
@@ -7169,7 +7203,7 @@
7169
7203
  "type": {
7170
7204
  "text": "string"
7171
7205
  },
7172
- "default": "'https://learn.microsoft.com/en-us/azure/api-management/api-management-subscriptions#create-and-manage-subscriptions-in-azure-portal'",
7206
+ "default": "'https://dashboard.cohere.ai/api-keys'",
7173
7207
  "inheritedFrom": {
7174
7208
  "name": "DirectServiceIO",
7175
7209
  "module": "src/services/utils/directServiceIO.ts"
@@ -7177,65 +7211,38 @@
7177
7211
  },
7178
7212
  {
7179
7213
  "kind": "field",
7180
- "name": "url",
7214
+ "name": "textInputPlaceholderText",
7181
7215
  "type": {
7182
7216
  "text": "string"
7183
7217
  },
7184
- "default": "`https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=${config.language || 'es'}`"
7185
- },
7186
- {
7187
- "kind": "method",
7188
- "name": "preprocessBody",
7189
- "parameters": [
7190
- {
7191
- "name": "messages",
7192
- "type": {
7193
- "text": "MessageContent[]"
7194
- }
7195
- }
7196
- ]
7218
+ "default": "inputPlaceholder",
7219
+ "inheritedFrom": {
7220
+ "name": "CohereIO",
7221
+ "module": "src/services/cohere/cohereIO.ts"
7222
+ }
7197
7223
  },
7198
7224
  {
7199
- "kind": "method",
7200
- "name": "callServiceAPI",
7201
- "parameters": [
7202
- {
7203
- "name": "messages",
7204
- "type": {
7205
- "text": "Messages"
7206
- }
7207
- },
7208
- {
7209
- "name": "pMessages",
7210
- "type": {
7211
- "text": "MessageContent[]"
7212
- }
7213
- }
7214
- ],
7225
+ "kind": "field",
7226
+ "name": "permittedErrorPrefixes",
7227
+ "type": {
7228
+ "text": "array"
7229
+ },
7230
+ "default": "['invalid']",
7215
7231
  "inheritedFrom": {
7216
- "name": "BaseServiceIO",
7217
- "module": "src/services/utils/baseServiceIO.ts"
7232
+ "name": "CohereIO",
7233
+ "module": "src/services/cohere/cohereIO.ts"
7218
7234
  }
7219
7235
  },
7220
7236
  {
7221
- "kind": "method",
7222
- "name": "extractResultData",
7223
- "return": {
7224
- "type": {
7225
- "text": "Promise<Response>"
7226
- }
7237
+ "kind": "field",
7238
+ "name": "url",
7239
+ "type": {
7240
+ "text": "string"
7227
7241
  },
7228
- "parameters": [
7229
- {
7230
- "name": "result",
7231
- "type": {
7232
- "text": "AzureTranslationResult"
7233
- }
7234
- }
7235
- ],
7242
+ "default": "url",
7236
7243
  "inheritedFrom": {
7237
- "name": "BaseServiceIO",
7238
- "module": "src/services/utils/baseServiceIO.ts"
7244
+ "name": "CohereIO",
7245
+ "module": "src/services/cohere/cohereIO.ts"
7239
7246
  }
7240
7247
  },
7241
7248
  {
@@ -7447,7 +7454,7 @@
7447
7454
  }
7448
7455
  ],
7449
7456
  "type": {
7450
- "text": "ValidateMessageBeforeSending"
7457
+ "text": "ValidateInput"
7451
7458
  },
7452
7459
  "inheritedFrom": {
7453
7460
  "name": "BaseServiceIO",
@@ -7690,18 +7697,18 @@
7690
7697
  }
7691
7698
  ],
7692
7699
  "superclass": {
7693
- "name": "DirectServiceIO",
7694
- "module": "/src/services/utils/directServiceIO"
7700
+ "name": "CohereIO",
7701
+ "module": "/src/services/cohere/cohereIO"
7695
7702
  }
7696
7703
  }
7697
7704
  ],
7698
7705
  "exports": [
7699
7706
  {
7700
7707
  "kind": "js",
7701
- "name": "AzureTranslationIO",
7708
+ "name": "CohereTextGenerationIO",
7702
7709
  "declaration": {
7703
- "name": "AzureTranslationIO",
7704
- "module": "src/services/azure/azureTranslationIO.ts"
7710
+ "name": "CohereTextGenerationIO",
7711
+ "module": "src/services/cohere/cohereTextGenerationIO.ts"
7705
7712
  }
7706
7713
  }
7707
7714
  ]
@@ -7856,7 +7863,7 @@
7856
7863
  }
7857
7864
  ],
7858
7865
  "type": {
7859
- "text": "ValidateMessageBeforeSending"
7866
+ "text": "ValidateInput"
7860
7867
  },
7861
7868
  "inheritedFrom": {
7862
7869
  "name": "BaseServiceIO",
@@ -8549,7 +8556,7 @@
8549
8556
  }
8550
8557
  ],
8551
8558
  "type": {
8552
- "text": "ValidateMessageBeforeSending"
8559
+ "text": "ValidateInput"
8553
8560
  },
8554
8561
  "inheritedFrom": {
8555
8562
  "name": "BaseServiceIO",
@@ -9490,7 +9497,7 @@
9490
9497
  }
9491
9498
  ],
9492
9499
  "type": {
9493
- "text": "ValidateMessageBeforeSending"
9500
+ "text": "ValidateInput"
9494
9501
  },
9495
9502
  "inheritedFrom": {
9496
9503
  "name": "BaseServiceIO",
@@ -9863,7 +9870,7 @@
9863
9870
  }
9864
9871
  ],
9865
9872
  "type": {
9866
- "text": "ValidateMessageBeforeSending"
9873
+ "text": "ValidateInput"
9867
9874
  },
9868
9875
  "inheritedFrom": {
9869
9876
  "name": "BaseServiceIO",
@@ -10786,7 +10793,7 @@
10786
10793
  }
10787
10794
  ],
10788
10795
  "type": {
10789
- "text": "ValidateMessageBeforeSending"
10796
+ "text": "ValidateInput"
10790
10797
  },
10791
10798
  "inheritedFrom": {
10792
10799
  "name": "BaseServiceIO",
@@ -11380,7 +11387,7 @@
11380
11387
  }
11381
11388
  ],
11382
11389
  "type": {
11383
- "text": "ValidateMessageBeforeSending"
11390
+ "text": "ValidateInput"
11384
11391
  },
11385
11392
  "inheritedFrom": {
11386
11393
  "name": "BaseServiceIO",
@@ -11810,7 +11817,7 @@
11810
11817
  }
11811
11818
  ],
11812
11819
  "type": {
11813
- "text": "ValidateMessageBeforeSending"
11820
+ "text": "ValidateInput"
11814
11821
  },
11815
11822
  "inheritedFrom": {
11816
11823
  "name": "BaseServiceIO",
@@ -12734,7 +12741,7 @@
12734
12741
  }
12735
12742
  ],
12736
12743
  "type": {
12737
- "text": "ValidateMessageBeforeSending"
12744
+ "text": "ValidateInput"
12738
12745
  },
12739
12746
  "inheritedFrom": {
12740
12747
  "name": "BaseServiceIO",
@@ -13373,7 +13380,7 @@
13373
13380
  }
13374
13381
  ],
13375
13382
  "type": {
13376
- "text": "ValidateMessageBeforeSending"
13383
+ "text": "ValidateInput"
13377
13384
  },
13378
13385
  "inheritedFrom": {
13379
13386
  "name": "BaseServiceIO",
@@ -14012,7 +14019,7 @@
14012
14019
  }
14013
14020
  ],
14014
14021
  "type": {
14015
- "text": "ValidateMessageBeforeSending"
14022
+ "text": "ValidateInput"
14016
14023
  },
14017
14024
  "inheritedFrom": {
14018
14025
  "name": "BaseServiceIO",
@@ -14651,7 +14658,7 @@
14651
14658
  }
14652
14659
  ],
14653
14660
  "type": {
14654
- "text": "ValidateMessageBeforeSending"
14661
+ "text": "ValidateInput"
14655
14662
  },
14656
14663
  "inheritedFrom": {
14657
14664
  "name": "BaseServiceIO",
@@ -15190,7 +15197,7 @@
15190
15197
  }
15191
15198
  ],
15192
15199
  "type": {
15193
- "text": "ValidateMessageBeforeSending"
15200
+ "text": "ValidateInput"
15194
15201
  },
15195
15202
  "inheritedFrom": {
15196
15203
  "name": "BaseServiceIO",
@@ -16005,7 +16012,7 @@
16005
16012
  }
16006
16013
  ],
16007
16014
  "type": {
16008
- "text": "ValidateMessageBeforeSending"
16015
+ "text": "ValidateInput"
16009
16016
  },
16010
16017
  "inheritedFrom": {
16011
16018
  "name": "BaseServiceIO",
@@ -16603,7 +16610,7 @@
16603
16610
  }
16604
16611
  ],
16605
16612
  "type": {
16606
- "text": "ValidateMessageBeforeSending"
16613
+ "text": "ValidateInput"
16607
16614
  },
16608
16615
  "inheritedFrom": {
16609
16616
  "name": "BaseServiceIO",
@@ -17127,7 +17134,7 @@
17127
17134
  }
17128
17135
  ],
17129
17136
  "type": {
17130
- "text": "ValidateMessageBeforeSending"
17137
+ "text": "ValidateInput"
17131
17138
  },
17132
17139
  "inheritedFrom": {
17133
17140
  "name": "BaseServiceIO",
@@ -17816,7 +17823,7 @@
17816
17823
  }
17817
17824
  ],
17818
17825
  "type": {
17819
- "text": "ValidateMessageBeforeSending"
17826
+ "text": "ValidateInput"
17820
17827
  },
17821
17828
  "inheritedFrom": {
17822
17829
  "name": "BaseServiceIO",
@@ -18304,7 +18311,7 @@
18304
18311
  }
18305
18312
  ],
18306
18313
  "type": {
18307
- "text": "ValidateMessageBeforeSending"
18314
+ "text": "ValidateInput"
18308
18315
  },
18309
18316
  "inheritedFrom": {
18310
18317
  "name": "BaseServiceIO",
@@ -18973,7 +18980,7 @@
18973
18980
  }
18974
18981
  ],
18975
18982
  "type": {
18976
- "text": "ValidateMessageBeforeSending"
18983
+ "text": "ValidateInput"
18977
18984
  },
18978
18985
  "inheritedFrom": {
18979
18986
  "name": "BaseServiceIO",
@@ -19612,7 +19619,7 @@
19612
19619
  }
19613
19620
  ],
19614
19621
  "type": {
19615
- "text": "ValidateMessageBeforeSending"
19622
+ "text": "ValidateInput"
19616
19623
  },
19617
19624
  "inheritedFrom": {
19618
19625
  "name": "BaseServiceIO",
@@ -20246,7 +20253,7 @@
20246
20253
  }
20247
20254
  ],
20248
20255
  "type": {
20249
- "text": "ValidateMessageBeforeSending"
20256
+ "text": "ValidateInput"
20250
20257
  },
20251
20258
  "inheritedFrom": {
20252
20259
  "name": "BaseServiceIO",
@@ -20758,7 +20765,7 @@
20758
20765
  "kind": "field",
20759
20766
  "name": "canSendMessage",
20760
20767
  "type": {
20761
- "text": "ValidateMessageBeforeSending"
20768
+ "text": "ValidateInput"
20762
20769
  }
20763
20770
  },
20764
20771
  {
@@ -21265,7 +21272,7 @@
21265
21272
  }
21266
21273
  ],
21267
21274
  "type": {
21268
- "text": "ValidateMessageBeforeSending"
21275
+ "text": "ValidateInput"
21269
21276
  },
21270
21277
  "inheritedFrom": {
21271
21278
  "name": "BaseServiceIO",
@@ -22134,10 +22141,7 @@
22134
22141
  },
22135
22142
  {
22136
22143
  "name": "displayCaution",
22137
- "optional": true,
22138
- "type": {
22139
- "text": "boolean"
22140
- }
22144
+ "default": "true"
22141
22145
  }
22142
22146
  ]
22143
22147
  },
@@ -24258,6 +24262,20 @@
24258
24262
  }
24259
24263
  }
24260
24264
  ]
24265
+ },
24266
+ {
24267
+ "kind": "method",
24268
+ "name": "processValidateInput",
24269
+ "privacy": "public",
24270
+ "static": true,
24271
+ "parameters": [
24272
+ {
24273
+ "name": "deepChat",
24274
+ "type": {
24275
+ "text": "DeepChat"
24276
+ }
24277
+ }
24278
+ ]
24261
24279
  }
24262
24280
  ]
24263
24281
  }
@@ -24503,214 +24521,34 @@
24503
24521
  "name": "addStyleElement",
24504
24522
  "privacy": "private",
24505
24523
  "static": true,
24506
- "parameters": [
24507
- {
24508
- "name": "style",
24509
- "type": {
24510
- "text": "string"
24511
- }
24512
- },
24513
- {
24514
- "name": "shadowRoot",
24515
- "type": {
24516
- "text": "ShadowRoot"
24517
- }
24518
- }
24519
- ]
24520
- },
24521
- {
24522
- "kind": "method",
24523
- "name": "applyDefaultStyleToComponent",
24524
- "privacy": "public",
24525
- "static": true,
24526
- "parameters": [
24527
- {
24528
- "name": "style",
24529
- "type": {
24530
- "text": "CSSStyleDeclaration"
24531
- }
24532
- }
24533
- ]
24534
- }
24535
- ]
24536
- }
24537
- ],
24538
- "exports": [
24539
- {
24540
- "kind": "js",
24541
- "name": "WebComponentStyleUtils",
24542
- "declaration": {
24543
- "name": "WebComponentStyleUtils",
24544
- "module": "src/utils/webComponent/webComponentStyleUtils.ts"
24545
- }
24546
- }
24547
- ]
24548
- },
24549
- {
24550
- "kind": "javascript-module",
24551
- "path": "src/services/assemblyAI/utils/assemblyAIUtils.ts",
24552
- "declarations": [
24553
- {
24554
- "kind": "class",
24555
- "description": "",
24556
- "name": "AssemblyAIUtils",
24557
- "members": [
24558
- {
24559
- "kind": "method",
24560
- "name": "poll",
24561
- "privacy": "public",
24562
- "static": true,
24563
- "parameters": [
24564
- {
24565
- "name": "api_token",
24566
- "type": {
24567
- "text": "string"
24568
- }
24569
- },
24570
- {
24571
- "name": "audio_url",
24572
- "type": {
24573
- "text": "string"
24574
- }
24575
- }
24576
- ]
24577
- },
24578
- {
24579
- "kind": "method",
24580
- "name": "buildHeaders",
24581
- "privacy": "public",
24582
- "static": true,
24583
- "parameters": [
24584
- {
24585
- "name": "key",
24586
- "type": {
24587
- "text": "string"
24588
- }
24589
- }
24590
- ]
24591
- },
24592
- {
24593
- "kind": "method",
24594
- "name": "handleVerificationResult",
24595
- "privacy": "private",
24596
- "static": true,
24597
- "parameters": [
24598
- {
24599
- "name": "result",
24600
- "type": {
24601
- "text": "object"
24602
- }
24603
- },
24604
- {
24605
- "name": "key",
24606
- "type": {
24607
- "text": "string"
24608
- }
24609
- },
24610
- {
24611
- "name": "onSuccess",
24612
- "type": {
24613
- "text": "(key: string) => void"
24614
- }
24615
- },
24616
- {
24617
- "name": "onFail",
24618
- "type": {
24619
- "text": "(message: string) => void"
24620
- }
24621
- }
24622
- ]
24623
- },
24624
- {
24625
- "kind": "method",
24626
- "name": "buildKeyVerificationDetails",
24627
- "privacy": "public",
24628
- "static": true,
24629
- "return": {
24630
- "type": {
24631
- "text": "KeyVerificationDetails"
24632
- }
24633
- }
24634
- }
24635
- ]
24636
- }
24637
- ],
24638
- "exports": [
24639
- {
24640
- "kind": "js",
24641
- "name": "AssemblyAIUtils",
24642
- "declaration": {
24643
- "name": "AssemblyAIUtils",
24644
- "module": "src/services/assemblyAI/utils/assemblyAIUtils.ts"
24645
- }
24646
- }
24647
- ]
24648
- },
24649
- {
24650
- "kind": "javascript-module",
24651
- "path": "src/services/cohere/utils/cohereUtils.ts",
24652
- "declarations": [
24653
- {
24654
- "kind": "class",
24655
- "description": "",
24656
- "name": "CohereUtils",
24657
- "members": [
24658
- {
24659
- "kind": "method",
24660
- "name": "buildHeaders",
24661
- "privacy": "public",
24662
- "static": true,
24663
- "parameters": [
24664
- {
24665
- "name": "key",
24666
- "type": {
24667
- "text": "string"
24668
- }
24669
- }
24670
- ]
24671
- },
24672
- {
24673
- "kind": "method",
24674
- "name": "handleVerificationResult",
24675
- "privacy": "private",
24676
- "static": true,
24677
- "parameters": [
24678
- {
24679
- "name": "result",
24680
- "type": {
24681
- "text": "object"
24682
- }
24683
- },
24524
+ "parameters": [
24684
24525
  {
24685
- "name": "key",
24526
+ "name": "style",
24686
24527
  "type": {
24687
24528
  "text": "string"
24688
24529
  }
24689
24530
  },
24690
24531
  {
24691
- "name": "onSuccess",
24692
- "type": {
24693
- "text": "(key: string) => void"
24694
- }
24695
- },
24696
- {
24697
- "name": "onFail",
24532
+ "name": "shadowRoot",
24698
24533
  "type": {
24699
- "text": "(message: string) => void"
24534
+ "text": "ShadowRoot"
24700
24535
  }
24701
24536
  }
24702
24537
  ]
24703
24538
  },
24704
24539
  {
24705
24540
  "kind": "method",
24706
- "name": "buildKeyVerificationDetails",
24541
+ "name": "applyDefaultStyleToComponent",
24707
24542
  "privacy": "public",
24708
24543
  "static": true,
24709
- "return": {
24710
- "type": {
24711
- "text": "KeyVerificationDetails"
24544
+ "parameters": [
24545
+ {
24546
+ "name": "style",
24547
+ "type": {
24548
+ "text": "CSSStyleDeclaration"
24549
+ }
24712
24550
  }
24713
- }
24551
+ ]
24714
24552
  }
24715
24553
  ]
24716
24554
  }
@@ -24718,10 +24556,10 @@
24718
24556
  "exports": [
24719
24557
  {
24720
24558
  "kind": "js",
24721
- "name": "CohereUtils",
24559
+ "name": "WebComponentStyleUtils",
24722
24560
  "declaration": {
24723
- "name": "CohereUtils",
24724
- "module": "src/services/cohere/utils/cohereUtils.ts"
24561
+ "name": "WebComponentStyleUtils",
24562
+ "module": "src/utils/webComponent/webComponentStyleUtils.ts"
24725
24563
  }
24726
24564
  }
24727
24565
  ]
@@ -24971,6 +24809,186 @@
24971
24809
  }
24972
24810
  ]
24973
24811
  },
24812
+ {
24813
+ "kind": "javascript-module",
24814
+ "path": "src/services/assemblyAI/utils/assemblyAIUtils.ts",
24815
+ "declarations": [
24816
+ {
24817
+ "kind": "class",
24818
+ "description": "",
24819
+ "name": "AssemblyAIUtils",
24820
+ "members": [
24821
+ {
24822
+ "kind": "method",
24823
+ "name": "poll",
24824
+ "privacy": "public",
24825
+ "static": true,
24826
+ "parameters": [
24827
+ {
24828
+ "name": "api_token",
24829
+ "type": {
24830
+ "text": "string"
24831
+ }
24832
+ },
24833
+ {
24834
+ "name": "audio_url",
24835
+ "type": {
24836
+ "text": "string"
24837
+ }
24838
+ }
24839
+ ]
24840
+ },
24841
+ {
24842
+ "kind": "method",
24843
+ "name": "buildHeaders",
24844
+ "privacy": "public",
24845
+ "static": true,
24846
+ "parameters": [
24847
+ {
24848
+ "name": "key",
24849
+ "type": {
24850
+ "text": "string"
24851
+ }
24852
+ }
24853
+ ]
24854
+ },
24855
+ {
24856
+ "kind": "method",
24857
+ "name": "handleVerificationResult",
24858
+ "privacy": "private",
24859
+ "static": true,
24860
+ "parameters": [
24861
+ {
24862
+ "name": "result",
24863
+ "type": {
24864
+ "text": "object"
24865
+ }
24866
+ },
24867
+ {
24868
+ "name": "key",
24869
+ "type": {
24870
+ "text": "string"
24871
+ }
24872
+ },
24873
+ {
24874
+ "name": "onSuccess",
24875
+ "type": {
24876
+ "text": "(key: string) => void"
24877
+ }
24878
+ },
24879
+ {
24880
+ "name": "onFail",
24881
+ "type": {
24882
+ "text": "(message: string) => void"
24883
+ }
24884
+ }
24885
+ ]
24886
+ },
24887
+ {
24888
+ "kind": "method",
24889
+ "name": "buildKeyVerificationDetails",
24890
+ "privacy": "public",
24891
+ "static": true,
24892
+ "return": {
24893
+ "type": {
24894
+ "text": "KeyVerificationDetails"
24895
+ }
24896
+ }
24897
+ }
24898
+ ]
24899
+ }
24900
+ ],
24901
+ "exports": [
24902
+ {
24903
+ "kind": "js",
24904
+ "name": "AssemblyAIUtils",
24905
+ "declaration": {
24906
+ "name": "AssemblyAIUtils",
24907
+ "module": "src/services/assemblyAI/utils/assemblyAIUtils.ts"
24908
+ }
24909
+ }
24910
+ ]
24911
+ },
24912
+ {
24913
+ "kind": "javascript-module",
24914
+ "path": "src/services/cohere/utils/cohereUtils.ts",
24915
+ "declarations": [
24916
+ {
24917
+ "kind": "class",
24918
+ "description": "",
24919
+ "name": "CohereUtils",
24920
+ "members": [
24921
+ {
24922
+ "kind": "method",
24923
+ "name": "buildHeaders",
24924
+ "privacy": "public",
24925
+ "static": true,
24926
+ "parameters": [
24927
+ {
24928
+ "name": "key",
24929
+ "type": {
24930
+ "text": "string"
24931
+ }
24932
+ }
24933
+ ]
24934
+ },
24935
+ {
24936
+ "kind": "method",
24937
+ "name": "handleVerificationResult",
24938
+ "privacy": "private",
24939
+ "static": true,
24940
+ "parameters": [
24941
+ {
24942
+ "name": "result",
24943
+ "type": {
24944
+ "text": "object"
24945
+ }
24946
+ },
24947
+ {
24948
+ "name": "key",
24949
+ "type": {
24950
+ "text": "string"
24951
+ }
24952
+ },
24953
+ {
24954
+ "name": "onSuccess",
24955
+ "type": {
24956
+ "text": "(key: string) => void"
24957
+ }
24958
+ },
24959
+ {
24960
+ "name": "onFail",
24961
+ "type": {
24962
+ "text": "(message: string) => void"
24963
+ }
24964
+ }
24965
+ ]
24966
+ },
24967
+ {
24968
+ "kind": "method",
24969
+ "name": "buildKeyVerificationDetails",
24970
+ "privacy": "public",
24971
+ "static": true,
24972
+ "return": {
24973
+ "type": {
24974
+ "text": "KeyVerificationDetails"
24975
+ }
24976
+ }
24977
+ }
24978
+ ]
24979
+ }
24980
+ ],
24981
+ "exports": [
24982
+ {
24983
+ "kind": "js",
24984
+ "name": "CohereUtils",
24985
+ "declaration": {
24986
+ "name": "CohereUtils",
24987
+ "module": "src/services/cohere/utils/cohereUtils.ts"
24988
+ }
24989
+ }
24990
+ ]
24991
+ },
24974
24992
  {
24975
24993
  "kind": "javascript-module",
24976
24994
  "path": "src/services/huggingFace/utils/huggingFaceUtils.ts",
@@ -25412,80 +25430,41 @@
25412
25430
  }
25413
25431
  },
25414
25432
  {
25415
- "name": "buttons",
25416
- "type": {
25417
- "text": "Buttons"
25418
- }
25419
- }
25420
- ]
25421
- },
25422
- {
25423
- "kind": "method",
25424
- "name": "addElements",
25425
- "privacy": "private",
25426
- "static": true,
25427
- "parameters": [
25428
- {
25429
- "name": "panel",
25430
- "type": {
25431
- "text": "HTMLElement"
25432
- }
25433
- },
25434
- {
25435
- "name": "textInput",
25436
- "type": {
25437
- "text": "TextInputEl"
25438
- }
25439
- },
25440
- {
25441
- "name": "buttons",
25442
- "type": {
25443
- "text": "Buttons"
25444
- }
25445
- },
25446
- {
25447
- "name": "container",
25448
- "type": {
25449
- "text": "HTMLElement"
25450
- }
25451
- },
25452
- {
25453
- "name": "fileAttachments",
25454
- "type": {
25455
- "text": "FileAttachments"
25456
- }
25457
- },
25458
- {
25459
- "name": "dropupStyles",
25460
- "optional": true,
25433
+ "name": "buttons",
25461
25434
  "type": {
25462
- "text": "DropupStyles"
25435
+ "text": "Buttons"
25463
25436
  }
25464
25437
  }
25465
25438
  ]
25466
25439
  },
25467
25440
  {
25468
25441
  "kind": "method",
25469
- "name": "attachValidationHandler",
25442
+ "name": "addElements",
25470
25443
  "privacy": "private",
25471
25444
  "static": true,
25472
25445
  "parameters": [
25473
25446
  {
25474
- "name": "deepChat",
25447
+ "name": "panel",
25475
25448
  "type": {
25476
- "text": "DeepChat"
25449
+ "text": "HTMLElement"
25477
25450
  }
25478
25451
  },
25479
25452
  {
25480
- "name": "serviceIO",
25453
+ "name": "textInput",
25481
25454
  "type": {
25482
- "text": "ServiceIO"
25455
+ "text": "TextInputEl"
25483
25456
  }
25484
25457
  },
25485
25458
  {
25486
- "name": "textInput",
25459
+ "name": "buttons",
25487
25460
  "type": {
25488
- "text": "TextInputEl"
25461
+ "text": "Buttons"
25462
+ }
25463
+ },
25464
+ {
25465
+ "name": "container",
25466
+ "type": {
25467
+ "text": "HTMLElement"
25489
25468
  }
25490
25469
  },
25491
25470
  {
@@ -25495,9 +25474,10 @@
25495
25474
  }
25496
25475
  },
25497
25476
  {
25498
- "name": "submitButton",
25477
+ "name": "dropupStyles",
25478
+ "optional": true,
25499
25479
  "type": {
25500
- "text": "SubmitButton"
25480
+ "text": "DropupStyles"
25501
25481
  }
25502
25482
  }
25503
25483
  ]
@@ -27901,7 +27881,6 @@
27901
27881
  {
27902
27882
  "kind": "method",
27903
27883
  "name": "addType",
27904
- "privacy": "public",
27905
27884
  "parameters": [
27906
27885
  {
27907
27886
  "name": "deepChat",
@@ -27972,7 +27951,6 @@
27972
27951
  {
27973
27952
  "kind": "method",
27974
27953
  "name": "addFilesToAnyType",
27975
- "privacy": "public",
27976
27954
  "parameters": [
27977
27955
  {
27978
27956
  "name": "files",
@@ -27984,13 +27962,11 @@
27984
27962
  },
27985
27963
  {
27986
27964
  "kind": "method",
27987
- "name": "removeAllFiles",
27988
- "privacy": "public"
27965
+ "name": "removeAllFiles"
27989
27966
  },
27990
27967
  {
27991
27968
  "kind": "method",
27992
- "name": "getNumberOfTypes",
27993
- "privacy": "public"
27969
+ "name": "getNumberOfTypes"
27994
27970
  }
27995
27971
  ]
27996
27972
  }
@@ -28100,124 +28076,6 @@
28100
28076
  }
28101
28077
  ]
28102
28078
  },
28103
- {
28104
- "kind": "javascript-module",
28105
- "path": "src/views/chat/input/textInput/inputEvents.ts",
28106
- "declarations": [
28107
- {
28108
- "kind": "class",
28109
- "description": "",
28110
- "name": "InputEvents",
28111
- "members": [
28112
- {
28113
- "kind": "field",
28114
- "name": "PERMITTED_KEYS",
28115
- "privacy": "private",
28116
- "static": true,
28117
- "default": "new Set<string>([\n KEYBOARD_KEY.BACKSPACE, KEYBOARD_KEY.DELETE, KEYBOARD_KEY.ARROW_RIGHT, KEYBOARD_KEY.ARROW_LEFT,\n KEYBOARD_KEY.ARROW_DOWN, KEYBOARD_KEY.ARROW_UP, KEYBOARD_KEY.META, KEYBOARD_KEY.CONTROL, KEYBOARD_KEY.ENTER\n ])"
28118
- },
28119
- {
28120
- "kind": "method",
28121
- "name": "add",
28122
- "privacy": "public",
28123
- "static": true,
28124
- "parameters": [
28125
- {
28126
- "name": "inputElement",
28127
- "type": {
28128
- "text": "HTMLElement"
28129
- }
28130
- },
28131
- {
28132
- "name": "characterLimit",
28133
- "optional": true,
28134
- "type": {
28135
- "text": "number"
28136
- }
28137
- },
28138
- {
28139
- "name": "validationHandler",
28140
- "optional": true,
28141
- "type": {
28142
- "text": "ValidationHandler"
28143
- }
28144
- }
28145
- ]
28146
- },
28147
- {
28148
- "kind": "method",
28149
- "name": "onKeyDown",
28150
- "privacy": "private",
28151
- "static": true,
28152
- "parameters": [
28153
- {
28154
- "name": "characterLimit",
28155
- "type": {
28156
- "text": "number"
28157
- }
28158
- },
28159
- {
28160
- "name": "event",
28161
- "type": {
28162
- "text": "KeyboardEvent"
28163
- }
28164
- }
28165
- ]
28166
- },
28167
- {
28168
- "kind": "method",
28169
- "name": "isKeyCombinationPermitted",
28170
- "privacy": "private",
28171
- "static": true,
28172
- "parameters": [
28173
- {
28174
- "name": "event",
28175
- "type": {
28176
- "text": "KeyboardEvent"
28177
- }
28178
- }
28179
- ]
28180
- },
28181
- {
28182
- "kind": "method",
28183
- "name": "onInput",
28184
- "privacy": "private",
28185
- "static": true,
28186
- "parameters": [
28187
- {
28188
- "name": "characterLimit",
28189
- "type": {
28190
- "text": "number | undefined"
28191
- }
28192
- },
28193
- {
28194
- "name": "validate",
28195
- "type": {
28196
- "text": "ValidationHandler | undefined"
28197
- }
28198
- },
28199
- {
28200
- "name": "event",
28201
- "type": {
28202
- "text": "Event"
28203
- }
28204
- }
28205
- ]
28206
- }
28207
- ]
28208
- }
28209
- ],
28210
- "exports": [
28211
- {
28212
- "kind": "js",
28213
- "name": "InputEvents",
28214
- "declaration": {
28215
- "name": "InputEvents",
28216
- "module": "src/views/chat/input/textInput/inputEvents.ts"
28217
- }
28218
- }
28219
- ]
28220
- },
28221
28079
  {
28222
28080
  "kind": "javascript-module",
28223
28081
  "path": "src/views/chat/input/textInput/pasteUtils.ts",
@@ -28409,67 +28267,185 @@
28409
28267
  "type": {
28410
28268
  "text": "TextInput"
28411
28269
  }
28412
- }
28413
- ]
28414
- },
28415
- {
28416
- "kind": "method",
28417
- "name": "onFocus",
28418
- "privacy": "private",
28419
- "parameters": [
28270
+ }
28271
+ ]
28272
+ },
28273
+ {
28274
+ "kind": "method",
28275
+ "name": "onFocus",
28276
+ "privacy": "private",
28277
+ "parameters": [
28278
+ {
28279
+ "name": "focusStyle",
28280
+ "optional": true,
28281
+ "type": {
28282
+ "text": "CustomStyle"
28283
+ }
28284
+ }
28285
+ ]
28286
+ },
28287
+ {
28288
+ "kind": "method",
28289
+ "name": "onBlur",
28290
+ "privacy": "private",
28291
+ "parameters": [
28292
+ {
28293
+ "name": "focusStyle",
28294
+ "type": {
28295
+ "text": "CustomStyle"
28296
+ }
28297
+ },
28298
+ {
28299
+ "name": "containerStyle",
28300
+ "optional": true,
28301
+ "type": {
28302
+ "text": "CustomStyle"
28303
+ }
28304
+ }
28305
+ ]
28306
+ },
28307
+ {
28308
+ "kind": "method",
28309
+ "name": "createContainerElement",
28310
+ "privacy": "private",
28311
+ "static": true,
28312
+ "parameters": [
28313
+ {
28314
+ "name": "containerStyle",
28315
+ "optional": true,
28316
+ "type": {
28317
+ "text": "CustomStyle"
28318
+ }
28319
+ }
28320
+ ]
28321
+ },
28322
+ {
28323
+ "kind": "method",
28324
+ "name": "onKeydown",
28325
+ "privacy": "private",
28326
+ "parameters": [
28327
+ {
28328
+ "name": "event",
28329
+ "type": {
28330
+ "text": "KeyboardEvent"
28331
+ }
28332
+ }
28333
+ ]
28334
+ }
28335
+ ]
28336
+ }
28337
+ ],
28338
+ "exports": [
28339
+ {
28340
+ "kind": "js",
28341
+ "name": "TextInputEl",
28342
+ "declaration": {
28343
+ "name": "TextInputEl",
28344
+ "module": "src/views/chat/input/textInput/textInput.ts"
28345
+ }
28346
+ }
28347
+ ]
28348
+ },
28349
+ {
28350
+ "kind": "javascript-module",
28351
+ "path": "src/views/chat/input/textInput/textInputEvents.ts",
28352
+ "declarations": [
28353
+ {
28354
+ "kind": "class",
28355
+ "description": "",
28356
+ "name": "TextInputEvents",
28357
+ "members": [
28358
+ {
28359
+ "kind": "field",
28360
+ "name": "PERMITTED_KEYS",
28361
+ "privacy": "private",
28362
+ "static": true,
28363
+ "default": "new Set<string>([\n KEYBOARD_KEY.BACKSPACE, KEYBOARD_KEY.DELETE, KEYBOARD_KEY.ARROW_RIGHT, KEYBOARD_KEY.ARROW_LEFT,\n KEYBOARD_KEY.ARROW_DOWN, KEYBOARD_KEY.ARROW_UP, KEYBOARD_KEY.META, KEYBOARD_KEY.CONTROL, KEYBOARD_KEY.ENTER\n ])"
28364
+ },
28365
+ {
28366
+ "kind": "method",
28367
+ "name": "add",
28368
+ "privacy": "public",
28369
+ "static": true,
28370
+ "parameters": [
28371
+ {
28372
+ "name": "inputElement",
28373
+ "type": {
28374
+ "text": "HTMLElement"
28375
+ }
28376
+ },
28377
+ {
28378
+ "name": "characterLimit",
28379
+ "optional": true,
28380
+ "type": {
28381
+ "text": "number"
28382
+ }
28383
+ },
28420
28384
  {
28421
- "name": "focusStyle",
28385
+ "name": "validationHandler",
28422
28386
  "optional": true,
28423
28387
  "type": {
28424
- "text": "CustomStyle"
28388
+ "text": "ValidationHandler"
28425
28389
  }
28426
28390
  }
28427
28391
  ]
28428
28392
  },
28429
28393
  {
28430
28394
  "kind": "method",
28431
- "name": "onBlur",
28395
+ "name": "onKeyDown",
28432
28396
  "privacy": "private",
28397
+ "static": true,
28433
28398
  "parameters": [
28434
28399
  {
28435
- "name": "focusStyle",
28400
+ "name": "characterLimit",
28436
28401
  "type": {
28437
- "text": "CustomStyle"
28402
+ "text": "number"
28438
28403
  }
28439
28404
  },
28440
28405
  {
28441
- "name": "containerStyle",
28442
- "optional": true,
28406
+ "name": "event",
28443
28407
  "type": {
28444
- "text": "CustomStyle"
28408
+ "text": "KeyboardEvent"
28445
28409
  }
28446
28410
  }
28447
28411
  ]
28448
28412
  },
28449
28413
  {
28450
28414
  "kind": "method",
28451
- "name": "createContainerElement",
28415
+ "name": "isKeyCombinationPermitted",
28452
28416
  "privacy": "private",
28453
28417
  "static": true,
28454
28418
  "parameters": [
28455
28419
  {
28456
- "name": "containerStyle",
28457
- "optional": true,
28420
+ "name": "event",
28458
28421
  "type": {
28459
- "text": "CustomStyle"
28422
+ "text": "KeyboardEvent"
28460
28423
  }
28461
28424
  }
28462
28425
  ]
28463
28426
  },
28464
28427
  {
28465
28428
  "kind": "method",
28466
- "name": "onKeydown",
28429
+ "name": "onInput",
28467
28430
  "privacy": "private",
28431
+ "static": true,
28468
28432
  "parameters": [
28433
+ {
28434
+ "name": "characterLimit",
28435
+ "type": {
28436
+ "text": "number | undefined"
28437
+ }
28438
+ },
28439
+ {
28440
+ "name": "validate",
28441
+ "type": {
28442
+ "text": "ValidationHandler | undefined"
28443
+ }
28444
+ },
28469
28445
  {
28470
28446
  "name": "event",
28471
28447
  "type": {
28472
- "text": "KeyboardEvent"
28448
+ "text": "Event"
28473
28449
  }
28474
28450
  }
28475
28451
  ]
@@ -28480,10 +28456,10 @@
28480
28456
  "exports": [
28481
28457
  {
28482
28458
  "kind": "js",
28483
- "name": "TextInputEl",
28459
+ "name": "TextInputEvents",
28484
28460
  "declaration": {
28485
- "name": "TextInputEl",
28486
- "module": "src/views/chat/input/textInput/textInput.ts"
28461
+ "name": "TextInputEvents",
28462
+ "module": "src/views/chat/input/textInput/textInputEvents.ts"
28487
28463
  }
28488
28464
  }
28489
28465
  ]
@@ -29177,6 +29153,125 @@
29177
29153
  }
29178
29154
  ]
29179
29155
  },
29156
+ {
29157
+ "kind": "javascript-module",
29158
+ "path": "src/views/chat/input/validation/validationHandler.ts",
29159
+ "declarations": [
29160
+ {
29161
+ "kind": "class",
29162
+ "description": "",
29163
+ "name": "ValidationHandler",
29164
+ "members": [
29165
+ {
29166
+ "kind": "method",
29167
+ "name": "useValidationFunc",
29168
+ "privacy": "private",
29169
+ "static": true,
29170
+ "parameters": [
29171
+ {
29172
+ "name": "validation",
29173
+ "type": {
29174
+ "text": "ValidateFunc"
29175
+ }
29176
+ },
29177
+ {
29178
+ "name": "textInput",
29179
+ "type": {
29180
+ "text": "TextInputEl"
29181
+ }
29182
+ },
29183
+ {
29184
+ "name": "fileAttachments",
29185
+ "type": {
29186
+ "text": "FileAttachments"
29187
+ }
29188
+ },
29189
+ {
29190
+ "name": "submitButton",
29191
+ "type": {
29192
+ "text": "SubmitButton"
29193
+ }
29194
+ },
29195
+ {
29196
+ "name": "isProgrammatic",
29197
+ "type": {
29198
+ "text": "boolean"
29199
+ }
29200
+ }
29201
+ ]
29202
+ },
29203
+ {
29204
+ "kind": "method",
29205
+ "name": "validateWebsocket",
29206
+ "privacy": "private",
29207
+ "static": true,
29208
+ "parameters": [
29209
+ {
29210
+ "name": "serviceIO",
29211
+ "type": {
29212
+ "text": "ServiceIO"
29213
+ }
29214
+ },
29215
+ {
29216
+ "name": "submitButton",
29217
+ "type": {
29218
+ "text": "SubmitButton"
29219
+ }
29220
+ }
29221
+ ]
29222
+ },
29223
+ {
29224
+ "kind": "method",
29225
+ "name": "attach",
29226
+ "privacy": "public",
29227
+ "static": true,
29228
+ "parameters": [
29229
+ {
29230
+ "name": "deepChat",
29231
+ "type": {
29232
+ "text": "DeepChat"
29233
+ }
29234
+ },
29235
+ {
29236
+ "name": "serviceIO",
29237
+ "type": {
29238
+ "text": "ServiceIO"
29239
+ }
29240
+ },
29241
+ {
29242
+ "name": "textInput",
29243
+ "type": {
29244
+ "text": "TextInputEl"
29245
+ }
29246
+ },
29247
+ {
29248
+ "name": "fileAttachments",
29249
+ "type": {
29250
+ "text": "FileAttachments"
29251
+ }
29252
+ },
29253
+ {
29254
+ "name": "submitButton",
29255
+ "type": {
29256
+ "text": "SubmitButton"
29257
+ }
29258
+ }
29259
+ ]
29260
+ }
29261
+ ]
29262
+ }
29263
+ ],
29264
+ "exports": [
29265
+ {
29266
+ "kind": "js",
29267
+ "name": "ValidationHandler",
29268
+ "declaration": {
29269
+ "name": "ValidationHandler",
29270
+ "module": "src/views/chat/input/validation/validationHandler.ts"
29271
+ }
29272
+ }
29273
+ ]
29274
+ },
29180
29275
  {
29181
29276
  "kind": "javascript-module",
29182
29277
  "path": "src/views/chat/messages/html/htmlDeepChatElements.ts",
@@ -29585,6 +29680,35 @@
29585
29680
  }
29586
29681
  ]
29587
29682
  },
29683
+ {
29684
+ "kind": "javascript-module",
29685
+ "path": "src/views/chat/messages/remarkable/remarkableConfig.ts",
29686
+ "declarations": [
29687
+ {
29688
+ "kind": "class",
29689
+ "description": "",
29690
+ "name": "RemarkableConfig",
29691
+ "members": [
29692
+ {
29693
+ "kind": "method",
29694
+ "name": "createNew",
29695
+ "privacy": "public",
29696
+ "static": true
29697
+ }
29698
+ ]
29699
+ }
29700
+ ],
29701
+ "exports": [
29702
+ {
29703
+ "kind": "js",
29704
+ "name": "RemarkableConfig",
29705
+ "declaration": {
29706
+ "name": "RemarkableConfig",
29707
+ "module": "src/views/chat/messages/remarkable/remarkableConfig.ts"
29708
+ }
29709
+ }
29710
+ ]
29711
+ },
29588
29712
  {
29589
29713
  "kind": "javascript-module",
29590
29714
  "path": "src/views/chat/messages/textToSpeech/textToSpeech.ts",
@@ -29658,35 +29782,6 @@
29658
29782
  }
29659
29783
  ]
29660
29784
  },
29661
- {
29662
- "kind": "javascript-module",
29663
- "path": "src/views/chat/messages/remarkable/remarkableConfig.ts",
29664
- "declarations": [
29665
- {
29666
- "kind": "class",
29667
- "description": "",
29668
- "name": "RemarkableConfig",
29669
- "members": [
29670
- {
29671
- "kind": "method",
29672
- "name": "createNew",
29673
- "privacy": "public",
29674
- "static": true
29675
- }
29676
- ]
29677
- }
29678
- ],
29679
- "exports": [
29680
- {
29681
- "kind": "js",
29682
- "name": "RemarkableConfig",
29683
- "declaration": {
29684
- "name": "RemarkableConfig",
29685
- "module": "src/views/chat/messages/remarkable/remarkableConfig.ts"
29686
- }
29687
- }
29688
- ]
29689
- },
29690
29785
  {
29691
29786
  "kind": "javascript-module",
29692
29787
  "path": "src/views/chat/input/buttons/camera/cameraButton.ts",
@@ -31658,6 +31753,15 @@
31658
31753
  "privacy": "private",
31659
31754
  "default": "fileAttachments"
31660
31755
  },
31756
+ {
31757
+ "kind": "field",
31758
+ "name": "_alwaysEnabled",
31759
+ "type": {
31760
+ "text": "boolean"
31761
+ },
31762
+ "privacy": "private",
31763
+ "default": "!!submitButtonStyles?.alwaysEnabled"
31764
+ },
31661
31765
  {
31662
31766
  "kind": "field",
31663
31767
  "name": "_isSVGLoadingIconOverriden",
@@ -31754,7 +31858,7 @@
31754
31858
  "privacy": "public",
31755
31859
  "parameters": [
31756
31860
  {
31757
- "name": "programmatic",
31861
+ "name": "isProgrammatic",
31758
31862
  "type": {
31759
31863
  "text": "boolean"
31760
31864
  }
@@ -31810,7 +31914,32 @@
31810
31914
  {
31811
31915
  "kind": "method",
31812
31916
  "name": "changeToDisabledIcon",
31813
- "privacy": "public"
31917
+ "privacy": "public",
31918
+ "parameters": [
31919
+ {
31920
+ "name": "isProgrammatic",
31921
+ "default": "false"
31922
+ }
31923
+ ]
31924
+ },
31925
+ {
31926
+ "kind": "method",
31927
+ "name": "changeSubmitButtonState",
31928
+ "privacy": "private",
31929
+ "parameters": [
31930
+ {
31931
+ "name": "serviceIO",
31932
+ "type": {
31933
+ "text": "ServiceIO"
31934
+ }
31935
+ },
31936
+ {
31937
+ "name": "isEnabled",
31938
+ "type": {
31939
+ "text": "boolean"
31940
+ }
31941
+ }
31942
+ ]
31814
31943
  },
31815
31944
  {
31816
31945
  "kind": "field",
@@ -32054,14 +32183,15 @@
32054
32183
  },
32055
32184
  {
32056
32185
  "kind": "method",
32057
- "name": "prepare",
32186
+ "name": "process",
32058
32187
  "privacy": "public",
32059
32188
  "static": true,
32060
32189
  "parameters": [
32061
32190
  {
32062
- "name": "deepChat",
32191
+ "name": "submitButtonStyles",
32192
+ "optional": true,
32063
32193
  "type": {
32064
- "text": "DeepChat"
32194
+ "text": "SubmitButtonStyles"
32065
32195
  }
32066
32196
  }
32067
32197
  ]