@wildix/wim-knowledge-base-client 0.1.1 → 0.1.3

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': [],
@@ -605,6 +606,7 @@ const se_UpdateDocumentCommand = async (input, context) => {
605
606
  let body;
606
607
  body = JSON.stringify((0, smithy_client_1.take)(input, {
607
608
  'content': [],
609
+ 'description': [],
608
610
  'originalFormat': [],
609
611
  'originalId': [],
610
612
  'originalName': [],
@@ -974,6 +976,7 @@ const de_ListDataSourceSynchronizationLogsCommand = async (output, context) => {
974
976
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
975
977
  const doc = (0, smithy_client_1.take)(data, {
976
978
  'logs': smithy_client_1._json,
979
+ 'metadata': smithy_client_1._json,
977
980
  });
978
981
  Object.assign(contents, doc);
979
982
  return contents;
@@ -989,6 +992,7 @@ const de_ListDocumentsCommand = async (output, context) => {
989
992
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
990
993
  const doc = (0, smithy_client_1.take)(data, {
991
994
  'documents': smithy_client_1._json,
995
+ 'metadata': smithy_client_1._json,
992
996
  });
993
997
  Object.assign(contents, doc);
994
998
  return contents;
@@ -1034,6 +1038,7 @@ const de_ListSearchQueriesHistoryCommand = async (output, context) => {
1034
1038
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1035
1039
  const doc = (0, smithy_client_1.take)(data, {
1036
1040
  'history': _ => de_SearchHistoryList(_, context),
1041
+ 'metadata': smithy_client_1._json,
1037
1042
  });
1038
1043
  Object.assign(contents, doc);
1039
1044
  return contents;
@@ -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': [],
@@ -570,6 +571,7 @@ export const se_UpdateDocumentCommand = async (input, context) => {
570
571
  let body;
571
572
  body = JSON.stringify(take(input, {
572
573
  'content': [],
574
+ 'description': [],
573
575
  'originalFormat': [],
574
576
  'originalId': [],
575
577
  'originalName': [],
@@ -915,6 +917,7 @@ export const de_ListDataSourceSynchronizationLogsCommand = async (output, contex
915
917
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
916
918
  const doc = take(data, {
917
919
  'logs': _json,
920
+ 'metadata': _json,
918
921
  });
919
922
  Object.assign(contents, doc);
920
923
  return contents;
@@ -929,6 +932,7 @@ export const de_ListDocumentsCommand = async (output, context) => {
929
932
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
930
933
  const doc = take(data, {
931
934
  'documents': _json,
935
+ 'metadata': _json,
932
936
  });
933
937
  Object.assign(contents, doc);
934
938
  return contents;
@@ -971,6 +975,7 @@ export const de_ListSearchQueriesHistoryCommand = async (output, context) => {
971
975
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
972
976
  const doc = take(data, {
973
977
  'history': _ => de_SearchHistoryList(_, context),
978
+ 'metadata': _json,
974
979
  });
975
980
  Object.assign(contents, doc);
976
981
  return contents;
@@ -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",
@@ -53,6 +53,11 @@ declare const ListDataSourceSynchronizationLogsCommand_base: {
53
53
  * // message: "STRING_VALUE", // required
54
54
  * // },
55
55
  * // ],
56
+ * // metadata: { // PaginationMetadata
57
+ * // total: Number("int"), // required
58
+ * // limit: Number("int"),
59
+ * // offset: Number("int"),
60
+ * // },
56
61
  * // };
57
62
  *
58
63
  * ```
@@ -50,6 +50,7 @@ declare const ListDocumentsCommand_base: {
50
50
  * // title: "STRING_VALUE", // required
51
51
  * // url: "STRING_VALUE",
52
52
  * // content: "STRING_VALUE",
53
+ * // description: "STRING_VALUE",
53
54
  * // originalFormat: "STRING_VALUE", // required
54
55
  * // originalName: "STRING_VALUE", // required
55
56
  * // originalId: "STRING_VALUE",
@@ -65,6 +66,11 @@ declare const ListDocumentsCommand_base: {
65
66
  * // errorMessage: "STRING_VALUE",
66
67
  * // },
67
68
  * // ],
69
+ * // metadata: { // PaginationMetadata
70
+ * // total: Number("int"), // required
71
+ * // limit: Number("int"),
72
+ * // offset: Number("int"),
73
+ * // },
68
74
  * // };
69
75
  *
70
76
  * ```
@@ -122,6 +122,11 @@ declare const ListSearchQueriesHistoryCommand_base: {
122
122
  * // resultsCount: Number("int"), // required
123
123
  * // },
124
124
  * // ],
125
+ * // metadata: { // PaginationMetadata
126
+ * // total: Number("int"), // required
127
+ * // limit: Number("int"),
128
+ * // offset: Number("int"),
129
+ * // },
125
130
  * // };
126
131
  *
127
132
  * ```
@@ -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
@@ -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
@@ -1481,11 +1491,32 @@ export interface SyncLogItem {
1481
1491
  level: SyncLogLevel;
1482
1492
  message: string;
1483
1493
  }
1494
+ /**
1495
+ * @public
1496
+ */
1497
+ export interface PaginationMetadata {
1498
+ /**
1499
+ * The total number of results.
1500
+ * @public
1501
+ */
1502
+ total: number;
1503
+ /**
1504
+ * The number of results per page.
1505
+ * @public
1506
+ */
1507
+ limit?: number | undefined;
1508
+ /**
1509
+ * The offset from which to start the results.
1510
+ * @public
1511
+ */
1512
+ offset?: number | undefined;
1513
+ }
1484
1514
  /**
1485
1515
  * @public
1486
1516
  */
1487
1517
  export interface ListDataSourceSynchronizationLogsOutput {
1488
1518
  logs: (SyncLogItem)[];
1519
+ metadata: PaginationMetadata;
1489
1520
  }
1490
1521
  /**
1491
1522
  * @public
@@ -1519,6 +1550,7 @@ export interface ListDocumentsInput {
1519
1550
  */
1520
1551
  export interface ListDocumentsOutput {
1521
1552
  documents: (DocumentItem)[];
1553
+ metadata: PaginationMetadata;
1522
1554
  }
1523
1555
  /**
1524
1556
  * @public
@@ -1768,6 +1800,7 @@ export interface SearchHistoryItem {
1768
1800
  */
1769
1801
  export interface ListSearchQueriesHistoryOutput {
1770
1802
  history: (SearchHistoryItem)[];
1803
+ metadata: PaginationMetadata;
1771
1804
  }
1772
1805
  /**
1773
1806
  * @public
@@ -1941,6 +1974,11 @@ export interface UpdateDocumentInput {
1941
1974
  * @public
1942
1975
  */
1943
1976
  content?: string | undefined;
1977
+ /**
1978
+ * Optional detailed description of the document content and purpose. Helps users understand what the document is about.
1979
+ * @public
1980
+ */
1981
+ description?: string | undefined;
1944
1982
  /**
1945
1983
  * File format/extension of the original document for reference. Examples: 'pdf', 'docx', 'md', 'html', 'txt'. Helps identify source document type
1946
1984
  * @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.1",
4
+ "version": "0.1.3",
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",