@wildix/wim-knowledge-base-client 0.0.55 → 0.0.56
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.
- package/dist-cjs/protocols/Aws_restJson1.js +7 -1
- package/dist-es/protocols/Aws_restJson1.js +7 -1
- package/dist-types/commands/GenerateSearchAnswerCommand.d.ts +2 -2
- package/dist-types/commands/ListSearchQueriesHistoryCommand.d.ts +2 -2
- package/dist-types/commands/SearchKnowledgeBaseCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1287,11 +1287,11 @@ const de_DescribeDataSourceResult = (output, context) => {
|
|
|
1287
1287
|
};
|
|
1288
1288
|
const de_SearchHistoryItem = (output, context) => {
|
|
1289
1289
|
return (0, smithy_client_1.take)(output, {
|
|
1290
|
-
'chunks': (_) => de_SearchKnowledgeBaseResultsList(_, context),
|
|
1291
1290
|
'chunksCount': smithy_client_1.expectInt32,
|
|
1292
1291
|
'companyId': smithy_client_1.expectString,
|
|
1293
1292
|
'createdAt': (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1294
1293
|
'request': (_) => de_SearchHistoryRequest(_, context),
|
|
1294
|
+
'results': (_) => de_SearchHistoryResultsList(_, context),
|
|
1295
1295
|
'sessionId': smithy_client_1.expectString,
|
|
1296
1296
|
'stages': smithy_client_1._json,
|
|
1297
1297
|
'totalDuration': smithy_client_1.expectInt32,
|
|
@@ -1314,6 +1314,12 @@ const de_SearchHistoryRequest = (output, context) => {
|
|
|
1314
1314
|
'user': smithy_client_1.expectString,
|
|
1315
1315
|
});
|
|
1316
1316
|
};
|
|
1317
|
+
const de_SearchHistoryResultsList = (output, context) => {
|
|
1318
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1319
|
+
return de_SearchKnowledgeBaseResultItem(entry, context);
|
|
1320
|
+
});
|
|
1321
|
+
return retVal;
|
|
1322
|
+
};
|
|
1317
1323
|
const de_SearchKnowledgeBaseResultItem = (output, context) => {
|
|
1318
1324
|
return (0, smithy_client_1.take)(output, {
|
|
1319
1325
|
'chunkId': smithy_client_1.expectString,
|
|
@@ -1219,11 +1219,11 @@ const de_DescribeDataSourceResult = (output, context) => {
|
|
|
1219
1219
|
};
|
|
1220
1220
|
const de_SearchHistoryItem = (output, context) => {
|
|
1221
1221
|
return take(output, {
|
|
1222
|
-
'chunks': (_) => de_SearchKnowledgeBaseResultsList(_, context),
|
|
1223
1222
|
'chunksCount': __expectInt32,
|
|
1224
1223
|
'companyId': __expectString,
|
|
1225
1224
|
'createdAt': (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1226
1225
|
'request': (_) => de_SearchHistoryRequest(_, context),
|
|
1226
|
+
'results': (_) => de_SearchHistoryResultsList(_, context),
|
|
1227
1227
|
'sessionId': __expectString,
|
|
1228
1228
|
'stages': _json,
|
|
1229
1229
|
'totalDuration': __expectInt32,
|
|
@@ -1246,6 +1246,12 @@ const de_SearchHistoryRequest = (output, context) => {
|
|
|
1246
1246
|
'user': __expectString,
|
|
1247
1247
|
});
|
|
1248
1248
|
};
|
|
1249
|
+
const de_SearchHistoryResultsList = (output, context) => {
|
|
1250
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1251
|
+
return de_SearchKnowledgeBaseResultItem(entry, context);
|
|
1252
|
+
});
|
|
1253
|
+
return retVal;
|
|
1254
|
+
};
|
|
1249
1255
|
const de_SearchKnowledgeBaseResultItem = (output, context) => {
|
|
1250
1256
|
return take(output, {
|
|
1251
1257
|
'chunkId': __expectString,
|
|
@@ -45,13 +45,13 @@ declare const GenerateSearchAnswerCommand_base: {
|
|
|
45
45
|
* documentUrl: "STRING_VALUE", // required
|
|
46
46
|
* dataSourceId: "STRING_VALUE", // required
|
|
47
47
|
* dataSourceType: "files" || "confluence" || "gdrive", // required
|
|
48
|
-
* content: "STRING_VALUE", // required
|
|
49
48
|
* score: Number("double"), // required
|
|
50
49
|
* fullTextScore: Number("double"),
|
|
51
50
|
* semanticScore: Number("double"),
|
|
52
51
|
* documentHierarchy: [ // StringList
|
|
53
52
|
* "STRING_VALUE",
|
|
54
53
|
* ],
|
|
54
|
+
* content: "STRING_VALUE", // required
|
|
55
55
|
* },
|
|
56
56
|
* ],
|
|
57
57
|
* model: "STRING_VALUE",
|
|
@@ -77,13 +77,13 @@ declare const GenerateSearchAnswerCommand_base: {
|
|
|
77
77
|
* // documentUrl: "STRING_VALUE", // required
|
|
78
78
|
* // dataSourceId: "STRING_VALUE", // required
|
|
79
79
|
* // dataSourceType: "files" || "confluence" || "gdrive", // required
|
|
80
|
-
* // content: "STRING_VALUE", // required
|
|
81
80
|
* // score: Number("double"), // required
|
|
82
81
|
* // fullTextScore: Number("double"),
|
|
83
82
|
* // semanticScore: Number("double"),
|
|
84
83
|
* // documentHierarchy: [ // StringList
|
|
85
84
|
* // "STRING_VALUE",
|
|
86
85
|
* // ],
|
|
86
|
+
* // content: "STRING_VALUE", // required
|
|
87
87
|
* // },
|
|
88
88
|
* // ],
|
|
89
89
|
* // };
|
|
@@ -90,7 +90,7 @@ declare const ListSearchQueriesHistoryCommand_base: {
|
|
|
90
90
|
* // duration: Number("int"), // required
|
|
91
91
|
* // },
|
|
92
92
|
* // },
|
|
93
|
-
* //
|
|
93
|
+
* // results: [ // SearchHistoryResultsList // required
|
|
94
94
|
* // { // SearchKnowledgeBaseResultItem
|
|
95
95
|
* // chunkId: "STRING_VALUE", // required
|
|
96
96
|
* // documentId: "STRING_VALUE", // required
|
|
@@ -98,13 +98,13 @@ declare const ListSearchQueriesHistoryCommand_base: {
|
|
|
98
98
|
* // documentUrl: "STRING_VALUE", // required
|
|
99
99
|
* // dataSourceId: "STRING_VALUE", // required
|
|
100
100
|
* // dataSourceType: "files" || "confluence" || "gdrive", // required
|
|
101
|
-
* // content: "STRING_VALUE", // required
|
|
102
101
|
* // score: Number("double"), // required
|
|
103
102
|
* // fullTextScore: Number("double"),
|
|
104
103
|
* // semanticScore: Number("double"),
|
|
105
104
|
* // documentHierarchy: [ // StringList
|
|
106
105
|
* // "STRING_VALUE",
|
|
107
106
|
* // ],
|
|
107
|
+
* // content: "STRING_VALUE", // required
|
|
108
108
|
* // },
|
|
109
109
|
* // ],
|
|
110
110
|
* // createdAt: new Date("TIMESTAMP"), // required
|
|
@@ -56,13 +56,13 @@ declare const SearchKnowledgeBaseCommand_base: {
|
|
|
56
56
|
* // documentUrl: "STRING_VALUE", // required
|
|
57
57
|
* // dataSourceId: "STRING_VALUE", // required
|
|
58
58
|
* // dataSourceType: "files" || "confluence" || "gdrive", // required
|
|
59
|
-
* // content: "STRING_VALUE", // required
|
|
60
59
|
* // score: Number("double"), // required
|
|
61
60
|
* // fullTextScore: Number("double"),
|
|
62
61
|
* // semanticScore: Number("double"),
|
|
63
62
|
* // documentHierarchy: [ // StringList
|
|
64
63
|
* // "STRING_VALUE",
|
|
65
64
|
* // ],
|
|
65
|
+
* // content: "STRING_VALUE", // required
|
|
66
66
|
* // },
|
|
67
67
|
* // ],
|
|
68
68
|
* // metadata: { // SearchResultMetadata
|
|
@@ -963,7 +963,6 @@ export interface SearchKnowledgeBaseResultItem {
|
|
|
963
963
|
*/
|
|
964
964
|
dataSourceId: string;
|
|
965
965
|
dataSourceType: DataSourceType;
|
|
966
|
-
content: string;
|
|
967
966
|
/**
|
|
968
967
|
* The total score of the result, calculated from the semantic search score and the full-text search score.
|
|
969
968
|
* @public
|
|
@@ -984,6 +983,7 @@ export interface SearchKnowledgeBaseResultItem {
|
|
|
984
983
|
* @public
|
|
985
984
|
*/
|
|
986
985
|
documentHierarchy?: (string)[] | undefined;
|
|
986
|
+
content: string;
|
|
987
987
|
}
|
|
988
988
|
/**
|
|
989
989
|
* @public
|
|
@@ -1553,7 +1553,7 @@ export interface SearchHistoryItem {
|
|
|
1553
1553
|
companyId: string;
|
|
1554
1554
|
request: SearchHistoryRequest;
|
|
1555
1555
|
stages: SearchHistoryStages;
|
|
1556
|
-
|
|
1556
|
+
results: (SearchKnowledgeBaseResultItem)[];
|
|
1557
1557
|
createdAt: Date;
|
|
1558
1558
|
totalDuration: number;
|
|
1559
1559
|
chunksCount: number;
|
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.0.
|
|
4
|
+
"version": "0.0.56",
|
|
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",
|