@wildix/wim-knowledge-base-client 0.1.3 → 0.1.4
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.
|
@@ -441,6 +441,8 @@ const se_ListDocumentsCommand = async (input, context) => {
|
|
|
441
441
|
[_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
|
|
442
442
|
[_s]: [, input[_s]],
|
|
443
443
|
[_se]: [, input[_se]],
|
|
444
|
+
[_oI]: [, input[_oI]],
|
|
445
|
+
[_st]: [, input[_st]],
|
|
444
446
|
});
|
|
445
447
|
let body;
|
|
446
448
|
b.m("GET")
|
|
@@ -1412,6 +1414,8 @@ const _cI = "companyId";
|
|
|
1412
1414
|
const _l = "limit";
|
|
1413
1415
|
const _lL = "logLevel";
|
|
1414
1416
|
const _o = "offset";
|
|
1417
|
+
const _oI = "originalId";
|
|
1415
1418
|
const _s = "sort";
|
|
1416
1419
|
const _sT = "syncType";
|
|
1417
1420
|
const _se = "search";
|
|
1421
|
+
const _st = "status";
|
|
@@ -414,6 +414,8 @@ export const se_ListDocumentsCommand = async (input, context) => {
|
|
|
414
414
|
[_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
|
|
415
415
|
[_s]: [, input[_s]],
|
|
416
416
|
[_se]: [, input[_se]],
|
|
417
|
+
[_oI]: [, input[_oI]],
|
|
418
|
+
[_st]: [, input[_st]],
|
|
417
419
|
});
|
|
418
420
|
let body;
|
|
419
421
|
b.m("GET")
|
|
@@ -1342,6 +1344,8 @@ const _cI = "companyId";
|
|
|
1342
1344
|
const _l = "limit";
|
|
1343
1345
|
const _lL = "logLevel";
|
|
1344
1346
|
const _o = "offset";
|
|
1347
|
+
const _oI = "originalId";
|
|
1345
1348
|
const _s = "sort";
|
|
1346
1349
|
const _sT = "syncType";
|
|
1347
1350
|
const _se = "search";
|
|
1351
|
+
const _st = "status";
|
|
@@ -41,6 +41,8 @@ declare const ListDocumentsCommand_base: {
|
|
|
41
41
|
* sort: "STRING_VALUE",
|
|
42
42
|
* dataSourceId: "STRING_VALUE", // required
|
|
43
43
|
* search: "STRING_VALUE",
|
|
44
|
+
* originalId: "STRING_VALUE",
|
|
45
|
+
* status: "draft" || "pending" || "processing" || "completed" || "failed",
|
|
44
46
|
* };
|
|
45
47
|
* const command = new ListDocumentsCommand(input);
|
|
46
48
|
* const response = await client.send(command);
|
|
@@ -447,7 +447,7 @@ export interface CreateDocumentInput {
|
|
|
447
447
|
*/
|
|
448
448
|
dataSourceId: string;
|
|
449
449
|
/**
|
|
450
|
-
* Additional metadata of the document. Example:
|
|
450
|
+
* Additional metadata of the document. Example: `\{ 'createdAt': '2025-01-01T00:00:00Z', 'updatedAt': '2025-05-01T00:00:00Z', 'createdBy': 'user@example.com' \}`
|
|
451
451
|
* @public
|
|
452
452
|
*/
|
|
453
453
|
metadata?: __DocumentType | undefined;
|
|
@@ -1544,6 +1544,16 @@ export interface ListDocumentsInput {
|
|
|
1544
1544
|
* @public
|
|
1545
1545
|
*/
|
|
1546
1546
|
search?: string | undefined;
|
|
1547
|
+
/**
|
|
1548
|
+
* Original ID from the source system, preserving the reference to the source document.
|
|
1549
|
+
* @public
|
|
1550
|
+
*/
|
|
1551
|
+
originalId?: string | undefined;
|
|
1552
|
+
/**
|
|
1553
|
+
* Status of the document.
|
|
1554
|
+
* @public
|
|
1555
|
+
*/
|
|
1556
|
+
status?: DocumentStatus | undefined;
|
|
1547
1557
|
}
|
|
1548
1558
|
/**
|
|
1549
1559
|
* @public
|
|
@@ -1605,7 +1615,7 @@ export interface SearchHistoryFilter {
|
|
|
1605
1615
|
*/
|
|
1606
1616
|
sessionId?: string | undefined;
|
|
1607
1617
|
/**
|
|
1608
|
-
* Filter history by the session URI. Used for tracking and analytics purposes. Example: chatbots://\{agentId\}/id-of-chat-session/id-of-message
|
|
1618
|
+
* Filter history by the session URI. Used for tracking and analytics purposes. Example: `chatbots://\{agentId\}/id-of-chat-session/id-of-message`
|
|
1609
1619
|
* @public
|
|
1610
1620
|
*/
|
|
1611
1621
|
sessionUri?: string | undefined;
|
|
@@ -1860,7 +1870,7 @@ export interface SearchKnowledgeBaseInput {
|
|
|
1860
1870
|
*/
|
|
1861
1871
|
sessionUser?: string | undefined;
|
|
1862
1872
|
/**
|
|
1863
|
-
* The session URI. Used for tracking and analytics purposes. Example: chatbots://\{agentId\}/id-of-chat-session/id-of-message
|
|
1873
|
+
* The session URI. Used for tracking and analytics purposes. Example: `chatbots://\{agentId\}/id-of-chat-session/id-of-message`
|
|
1864
1874
|
* @public
|
|
1865
1875
|
*/
|
|
1866
1876
|
sessionUri?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wim-knowledge-base-client",
|
|
3
3
|
"description": "@wildix/wim-knowledge-base-client client",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.4",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|