@wildix/wim-knowledge-base-client 0.1.2 → 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.
@@ -96,6 +96,7 @@ const se_CreateDocumentCommand = async (input, context) => {
96
96
  let body;
97
97
  body = JSON.stringify((0, smithy_client_1.take)(input, {
98
98
  'content': [],
99
+ 'description': [],
99
100
  'metadata': _ => se_Document(_, context),
100
101
  'originalFormat': [],
101
102
  'originalId': [],
@@ -440,6 +441,8 @@ const se_ListDocumentsCommand = async (input, context) => {
440
441
  [_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
441
442
  [_s]: [, input[_s]],
442
443
  [_se]: [, input[_se]],
444
+ [_oI]: [, input[_oI]],
445
+ [_st]: [, input[_st]],
443
446
  });
444
447
  let body;
445
448
  b.m("GET")
@@ -605,6 +608,7 @@ const se_UpdateDocumentCommand = async (input, context) => {
605
608
  let body;
606
609
  body = JSON.stringify((0, smithy_client_1.take)(input, {
607
610
  'content': [],
611
+ 'description': [],
608
612
  'originalFormat': [],
609
613
  'originalId': [],
610
614
  'originalName': [],
@@ -1410,6 +1414,8 @@ const _cI = "companyId";
1410
1414
  const _l = "limit";
1411
1415
  const _lL = "logLevel";
1412
1416
  const _o = "offset";
1417
+ const _oI = "originalId";
1413
1418
  const _s = "sort";
1414
1419
  const _sT = "syncType";
1415
1420
  const _se = "search";
1421
+ const _st = "status";
@@ -88,6 +88,7 @@ export const se_CreateDocumentCommand = async (input, context) => {
88
88
  let body;
89
89
  body = JSON.stringify(take(input, {
90
90
  'content': [],
91
+ 'description': [],
91
92
  'metadata': _ => se_Document(_, context),
92
93
  'originalFormat': [],
93
94
  'originalId': [],
@@ -413,6 +414,8 @@ export const se_ListDocumentsCommand = async (input, context) => {
413
414
  [_o]: [() => input.offset !== void 0, () => (input[_o].toString())],
414
415
  [_s]: [, input[_s]],
415
416
  [_se]: [, input[_se]],
417
+ [_oI]: [, input[_oI]],
418
+ [_st]: [, input[_st]],
416
419
  });
417
420
  let body;
418
421
  b.m("GET")
@@ -570,6 +573,7 @@ export const se_UpdateDocumentCommand = async (input, context) => {
570
573
  let body;
571
574
  body = JSON.stringify(take(input, {
572
575
  'content': [],
576
+ 'description': [],
573
577
  'originalFormat': [],
574
578
  'originalId': [],
575
579
  'originalName': [],
@@ -1340,6 +1344,8 @@ const _cI = "companyId";
1340
1344
  const _l = "limit";
1341
1345
  const _lL = "logLevel";
1342
1346
  const _o = "offset";
1347
+ const _oI = "originalId";
1343
1348
  const _s = "sort";
1344
1349
  const _sT = "syncType";
1345
1350
  const _se = "search";
1351
+ const _st = "status";
@@ -38,6 +38,7 @@ declare const CreateDocumentCommand_base: {
38
38
  * title: "STRING_VALUE", // required
39
39
  * url: "STRING_VALUE",
40
40
  * content: "STRING_VALUE",
41
+ * description: "STRING_VALUE",
41
42
  * originalFormat: "STRING_VALUE", // required
42
43
  * originalName: "STRING_VALUE", // required
43
44
  * originalId: "STRING_VALUE",
@@ -52,6 +53,7 @@ declare const CreateDocumentCommand_base: {
52
53
  * // title: "STRING_VALUE", // required
53
54
  * // url: "STRING_VALUE",
54
55
  * // content: "STRING_VALUE",
56
+ * // description: "STRING_VALUE",
55
57
  * // originalFormat: "STRING_VALUE", // required
56
58
  * // originalName: "STRING_VALUE", // required
57
59
  * // originalId: "STRING_VALUE",
@@ -46,6 +46,7 @@ declare const GetDocumentCommand_base: {
46
46
  * // title: "STRING_VALUE", // required
47
47
  * // url: "STRING_VALUE",
48
48
  * // content: "STRING_VALUE",
49
+ * // description: "STRING_VALUE",
49
50
  * // originalFormat: "STRING_VALUE", // required
50
51
  * // originalName: "STRING_VALUE", // required
51
52
  * // originalId: "STRING_VALUE",
@@ -46,6 +46,7 @@ declare const GetDocumentWithContentAndChunksCommand_base: {
46
46
  * // title: "STRING_VALUE", // required
47
47
  * // url: "STRING_VALUE",
48
48
  * // content: "STRING_VALUE",
49
+ * // description: "STRING_VALUE",
49
50
  * // originalFormat: "STRING_VALUE", // required
50
51
  * // originalName: "STRING_VALUE", // required
51
52
  * // originalId: "STRING_VALUE",
@@ -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);
@@ -50,6 +52,7 @@ declare const ListDocumentsCommand_base: {
50
52
  * // title: "STRING_VALUE", // required
51
53
  * // url: "STRING_VALUE",
52
54
  * // content: "STRING_VALUE",
55
+ * // description: "STRING_VALUE",
53
56
  * // originalFormat: "STRING_VALUE", // required
54
57
  * // originalName: "STRING_VALUE", // required
55
58
  * // originalId: "STRING_VALUE",
@@ -38,6 +38,7 @@ declare const UpdateDocumentCommand_base: {
38
38
  * title: "STRING_VALUE", // required
39
39
  * url: "STRING_VALUE",
40
40
  * content: "STRING_VALUE",
41
+ * description: "STRING_VALUE",
41
42
  * originalFormat: "STRING_VALUE", // required
42
43
  * originalName: "STRING_VALUE", // required
43
44
  * originalId: "STRING_VALUE",
@@ -52,6 +53,7 @@ declare const UpdateDocumentCommand_base: {
52
53
  * // title: "STRING_VALUE", // required
53
54
  * // url: "STRING_VALUE",
54
55
  * // content: "STRING_VALUE",
56
+ * // description: "STRING_VALUE",
55
57
  * // originalFormat: "STRING_VALUE", // required
56
58
  * // originalName: "STRING_VALUE", // required
57
59
  * // originalId: "STRING_VALUE",
@@ -416,6 +416,11 @@ export interface CreateDocumentInput {
416
416
  * @public
417
417
  */
418
418
  content?: string | undefined;
419
+ /**
420
+ * Optional detailed description of the document content and purpose. Helps users understand what the document is about.
421
+ * @public
422
+ */
423
+ description?: string | undefined;
419
424
  /**
420
425
  * File format/extension of the original document for reference. Examples: 'pdf', 'docx', 'md', 'html', 'txt'. Helps identify source document type
421
426
  * @public
@@ -442,7 +447,7 @@ export interface CreateDocumentInput {
442
447
  */
443
448
  dataSourceId: string;
444
449
  /**
445
- * Additional metadata of the document. Example: \{ 'createdAt': '2025-01-01T00:00:00Z', 'updatedAt': '2025-05-01T00:00:00Z', 'createdBy': 'user@example.com' \}
450
+ * Additional metadata of the document. Example: `\{ 'createdAt': '2025-01-01T00:00:00Z', 'updatedAt': '2025-05-01T00:00:00Z', 'createdBy': 'user@example.com' \}`
446
451
  * @public
447
452
  */
448
453
  metadata?: __DocumentType | undefined;
@@ -481,6 +486,11 @@ export interface DocumentItem {
481
486
  * @public
482
487
  */
483
488
  content?: string | undefined;
489
+ /**
490
+ * Optional detailed description of the document content and purpose. Helps users understand what the document is about.
491
+ * @public
492
+ */
493
+ description?: string | undefined;
484
494
  /**
485
495
  * File format/extension of the original document for reference. Examples: 'pdf', 'docx', 'md', 'html', 'txt'. Helps identify source document type
486
496
  * @public
@@ -1534,6 +1544,16 @@ export interface ListDocumentsInput {
1534
1544
  * @public
1535
1545
  */
1536
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;
1537
1557
  }
1538
1558
  /**
1539
1559
  * @public
@@ -1595,7 +1615,7 @@ export interface SearchHistoryFilter {
1595
1615
  */
1596
1616
  sessionId?: string | undefined;
1597
1617
  /**
1598
- * 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`
1599
1619
  * @public
1600
1620
  */
1601
1621
  sessionUri?: string | undefined;
@@ -1850,7 +1870,7 @@ export interface SearchKnowledgeBaseInput {
1850
1870
  */
1851
1871
  sessionUser?: string | undefined;
1852
1872
  /**
1853
- * 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`
1854
1874
  * @public
1855
1875
  */
1856
1876
  sessionUri?: string | undefined;
@@ -1964,6 +1984,11 @@ export interface UpdateDocumentInput {
1964
1984
  * @public
1965
1985
  */
1966
1986
  content?: string | undefined;
1987
+ /**
1988
+ * Optional detailed description of the document content and purpose. Helps users understand what the document is about.
1989
+ * @public
1990
+ */
1991
+ description?: string | undefined;
1967
1992
  /**
1968
1993
  * File format/extension of the original document for reference. Examples: 'pdf', 'docx', 'md', 'html', 'txt'. Helps identify source document type
1969
1994
  * @public
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.2",
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",