@wildix/wim-knowledge-base-client 0.0.48 → 0.0.49
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/KnowledgeBase.js +16 -8
- package/dist-cjs/commands/{QueryKnowledgeBaseCommand.js → GenerateSearchAnswerCommand.js} +7 -7
- package/dist-cjs/commands/{SearchHistoryCommand.js → GetDataSourceSyncStatusCommand.js} +7 -7
- package/dist-cjs/commands/{GetSyncLogsCommand.js → GetDocumentChunksCommand.js} +7 -7
- package/dist-cjs/commands/{GetSyncStatusCommand.js → GetDocumentMarkdownCommand.js} +7 -7
- package/dist-cjs/commands/GetDocumentWithContentAndChunksCommand.js +21 -0
- package/dist-cjs/commands/ListDataSourceStatisticsCommand.js +21 -0
- package/dist-cjs/commands/ListDataSourceSynchronizationLogsCommand.js +21 -0
- package/dist-cjs/commands/ListSearchQueriesHistoryCommand.js +21 -0
- package/dist-cjs/commands/index.js +8 -4
- package/dist-cjs/models/models_0.js +15 -27
- package/dist-cjs/protocols/Aws_restJson1.js +228 -140
- package/dist-es/KnowledgeBase.js +16 -8
- package/dist-es/commands/GenerateSearchAnswerCommand.js +17 -0
- package/dist-es/commands/GetDataSourceSyncStatusCommand.js +17 -0
- package/dist-es/commands/GetDocumentChunksCommand.js +17 -0
- package/dist-es/commands/GetDocumentMarkdownCommand.js +17 -0
- package/dist-es/commands/GetDocumentWithContentAndChunksCommand.js +17 -0
- package/dist-es/commands/ListDataSourceStatisticsCommand.js +17 -0
- package/dist-es/commands/ListDataSourceSynchronizationLogsCommand.js +17 -0
- package/dist-es/commands/ListSearchQueriesHistoryCommand.js +17 -0
- package/dist-es/commands/index.js +8 -4
- package/dist-es/models/models_0.js +14 -26
- package/dist-es/protocols/Aws_restJson1.js +203 -123
- package/dist-types/KnowledgeBase.d.ts +54 -26
- package/dist-types/KnowledgeBaseClient.d.ts +10 -6
- package/dist-types/commands/ConfigureDataSourceCommand.d.ts +1 -36
- package/dist-types/commands/CreateDataSourceCommand.d.ts +2 -22
- package/dist-types/commands/GenerateSearchAnswerCommand.d.ts +105 -0
- package/dist-types/commands/GetDataSourceCommand.d.ts +1 -21
- package/dist-types/commands/GetDataSourceSyncStatusCommand.d.ts +88 -0
- package/dist-types/commands/GetDocumentChunksCommand.d.ts +94 -0
- package/dist-types/commands/GetDocumentCommand.d.ts +0 -2
- package/dist-types/commands/GetDocumentMarkdownCommand.d.ts +86 -0
- package/dist-types/commands/GetDocumentWithContentAndChunksCommand.d.ts +113 -0
- package/dist-types/commands/ListDataSourceStatisticsCommand.d.ts +86 -0
- package/dist-types/commands/ListDataSourceSynchronizationLogsCommand.d.ts +96 -0
- package/dist-types/commands/ListDataSourcesCommand.d.ts +1 -21
- package/dist-types/commands/ListSearchQueriesHistoryCommand.d.ts +97 -0
- package/dist-types/commands/SearchKnowledgeBaseCommand.d.ts +7 -9
- package/dist-types/commands/StartSyncDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +1 -21
- package/dist-types/commands/index.d.ts +8 -4
- package/dist-types/models/models_0.d.ts +253 -336
- package/dist-types/protocols/Aws_restJson1.d.ts +64 -28
- package/package.json +1 -1
- package/dist-es/commands/GetSyncLogsCommand.js +0 -17
- package/dist-es/commands/GetSyncStatusCommand.js +0 -17
- package/dist-es/commands/QueryKnowledgeBaseCommand.js +0 -17
- package/dist-es/commands/SearchHistoryCommand.js +0 -17
- package/dist-types/commands/GetSyncLogsCommand.d.ts +0 -96
- package/dist-types/commands/GetSyncStatusCommand.d.ts +0 -94
- package/dist-types/commands/QueryKnowledgeBaseCommand.d.ts +0 -103
- package/dist-types/commands/SearchHistoryCommand.d.ts +0 -98
|
@@ -12,18 +12,22 @@ const DeleteDataSourceCommand_1 = require("./commands/DeleteDataSourceCommand");
|
|
|
12
12
|
const DeleteDocumentCommand_1 = require("./commands/DeleteDocumentCommand");
|
|
13
13
|
const DeleteKnowledgeBaseCommand_1 = require("./commands/DeleteKnowledgeBaseCommand");
|
|
14
14
|
const DescribeDataSourceCommand_1 = require("./commands/DescribeDataSourceCommand");
|
|
15
|
+
const GenerateSearchAnswerCommand_1 = require("./commands/GenerateSearchAnswerCommand");
|
|
15
16
|
const GetDataSourceCommand_1 = require("./commands/GetDataSourceCommand");
|
|
17
|
+
const GetDataSourceSyncStatusCommand_1 = require("./commands/GetDataSourceSyncStatusCommand");
|
|
18
|
+
const GetDocumentChunksCommand_1 = require("./commands/GetDocumentChunksCommand");
|
|
16
19
|
const GetDocumentCommand_1 = require("./commands/GetDocumentCommand");
|
|
17
20
|
const GetDocumentDownloadUrlCommand_1 = require("./commands/GetDocumentDownloadUrlCommand");
|
|
21
|
+
const GetDocumentMarkdownCommand_1 = require("./commands/GetDocumentMarkdownCommand");
|
|
18
22
|
const GetDocumentUploadUrlCommand_1 = require("./commands/GetDocumentUploadUrlCommand");
|
|
23
|
+
const GetDocumentWithContentAndChunksCommand_1 = require("./commands/GetDocumentWithContentAndChunksCommand");
|
|
19
24
|
const GetKnowledgeBaseCommand_1 = require("./commands/GetKnowledgeBaseCommand");
|
|
20
|
-
const
|
|
21
|
-
const
|
|
25
|
+
const ListDataSourceStatisticsCommand_1 = require("./commands/ListDataSourceStatisticsCommand");
|
|
26
|
+
const ListDataSourceSynchronizationLogsCommand_1 = require("./commands/ListDataSourceSynchronizationLogsCommand");
|
|
22
27
|
const ListDataSourcesCommand_1 = require("./commands/ListDataSourcesCommand");
|
|
23
28
|
const ListDocumentsCommand_1 = require("./commands/ListDocumentsCommand");
|
|
24
29
|
const ListKnowledgeBasesCommand_1 = require("./commands/ListKnowledgeBasesCommand");
|
|
25
|
-
const
|
|
26
|
-
const SearchHistoryCommand_1 = require("./commands/SearchHistoryCommand");
|
|
30
|
+
const ListSearchQueriesHistoryCommand_1 = require("./commands/ListSearchQueriesHistoryCommand");
|
|
27
31
|
const SearchKnowledgeBaseCommand_1 = require("./commands/SearchKnowledgeBaseCommand");
|
|
28
32
|
const StartSyncDataSourceCommand_1 = require("./commands/StartSyncDataSourceCommand");
|
|
29
33
|
const StopSyncDataSourceCommand_1 = require("./commands/StopSyncDataSourceCommand");
|
|
@@ -42,18 +46,22 @@ const commands = {
|
|
|
42
46
|
DeleteDocumentCommand: DeleteDocumentCommand_1.DeleteDocumentCommand,
|
|
43
47
|
DeleteKnowledgeBaseCommand: DeleteKnowledgeBaseCommand_1.DeleteKnowledgeBaseCommand,
|
|
44
48
|
DescribeDataSourceCommand: DescribeDataSourceCommand_1.DescribeDataSourceCommand,
|
|
49
|
+
GenerateSearchAnswerCommand: GenerateSearchAnswerCommand_1.GenerateSearchAnswerCommand,
|
|
45
50
|
GetDataSourceCommand: GetDataSourceCommand_1.GetDataSourceCommand,
|
|
51
|
+
GetDataSourceSyncStatusCommand: GetDataSourceSyncStatusCommand_1.GetDataSourceSyncStatusCommand,
|
|
46
52
|
GetDocumentCommand: GetDocumentCommand_1.GetDocumentCommand,
|
|
53
|
+
GetDocumentChunksCommand: GetDocumentChunksCommand_1.GetDocumentChunksCommand,
|
|
47
54
|
GetDocumentDownloadUrlCommand: GetDocumentDownloadUrlCommand_1.GetDocumentDownloadUrlCommand,
|
|
55
|
+
GetDocumentMarkdownCommand: GetDocumentMarkdownCommand_1.GetDocumentMarkdownCommand,
|
|
48
56
|
GetDocumentUploadUrlCommand: GetDocumentUploadUrlCommand_1.GetDocumentUploadUrlCommand,
|
|
57
|
+
GetDocumentWithContentAndChunksCommand: GetDocumentWithContentAndChunksCommand_1.GetDocumentWithContentAndChunksCommand,
|
|
49
58
|
GetKnowledgeBaseCommand: GetKnowledgeBaseCommand_1.GetKnowledgeBaseCommand,
|
|
50
|
-
GetSyncLogsCommand: GetSyncLogsCommand_1.GetSyncLogsCommand,
|
|
51
|
-
GetSyncStatusCommand: GetSyncStatusCommand_1.GetSyncStatusCommand,
|
|
52
59
|
ListDataSourcesCommand: ListDataSourcesCommand_1.ListDataSourcesCommand,
|
|
60
|
+
ListDataSourceStatisticsCommand: ListDataSourceStatisticsCommand_1.ListDataSourceStatisticsCommand,
|
|
61
|
+
ListDataSourceSynchronizationLogsCommand: ListDataSourceSynchronizationLogsCommand_1.ListDataSourceSynchronizationLogsCommand,
|
|
53
62
|
ListDocumentsCommand: ListDocumentsCommand_1.ListDocumentsCommand,
|
|
54
63
|
ListKnowledgeBasesCommand: ListKnowledgeBasesCommand_1.ListKnowledgeBasesCommand,
|
|
55
|
-
|
|
56
|
-
SearchHistoryCommand: SearchHistoryCommand_1.SearchHistoryCommand,
|
|
64
|
+
ListSearchQueriesHistoryCommand: ListSearchQueriesHistoryCommand_1.ListSearchQueriesHistoryCommand,
|
|
57
65
|
SearchKnowledgeBaseCommand: SearchKnowledgeBaseCommand_1.SearchKnowledgeBaseCommand,
|
|
58
66
|
StartSyncDataSourceCommand: StartSyncDataSourceCommand_1.StartSyncDataSourceCommand,
|
|
59
67
|
StopSyncDataSourceCommand: StopSyncDataSourceCommand_1.StopSyncDataSourceCommand,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.GenerateSearchAnswerCommand = exports.$Command = void 0;
|
|
4
4
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
class
|
|
8
|
+
class GenerateSearchAnswerCommand extends smithy_client_1.Command.classBuilder()
|
|
9
9
|
.m(function (Command, cs, config, o) {
|
|
10
10
|
return [
|
|
11
11
|
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
12
|
];
|
|
13
13
|
})
|
|
14
|
-
.s("KnowledgeBase", "
|
|
15
|
-
.n("KnowledgeBaseClient", "
|
|
14
|
+
.s("KnowledgeBase", "GenerateSearchAnswer", {})
|
|
15
|
+
.n("KnowledgeBaseClient", "GenerateSearchAnswerCommand")
|
|
16
16
|
.f(void 0, void 0)
|
|
17
|
-
.ser(Aws_restJson1_1.
|
|
18
|
-
.de(Aws_restJson1_1.
|
|
17
|
+
.ser(Aws_restJson1_1.se_GenerateSearchAnswerCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GenerateSearchAnswerCommand)
|
|
19
19
|
.build() {
|
|
20
20
|
}
|
|
21
|
-
exports.
|
|
21
|
+
exports.GenerateSearchAnswerCommand = GenerateSearchAnswerCommand;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.GetDataSourceSyncStatusCommand = exports.$Command = void 0;
|
|
4
4
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
class
|
|
8
|
+
class GetDataSourceSyncStatusCommand extends smithy_client_1.Command.classBuilder()
|
|
9
9
|
.m(function (Command, cs, config, o) {
|
|
10
10
|
return [
|
|
11
11
|
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
12
|
];
|
|
13
13
|
})
|
|
14
|
-
.s("KnowledgeBase", "
|
|
15
|
-
.n("KnowledgeBaseClient", "
|
|
14
|
+
.s("KnowledgeBase", "GetDataSourceSyncStatus", {})
|
|
15
|
+
.n("KnowledgeBaseClient", "GetDataSourceSyncStatusCommand")
|
|
16
16
|
.f(void 0, void 0)
|
|
17
|
-
.ser(Aws_restJson1_1.
|
|
18
|
-
.de(Aws_restJson1_1.
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetDataSourceSyncStatusCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetDataSourceSyncStatusCommand)
|
|
19
19
|
.build() {
|
|
20
20
|
}
|
|
21
|
-
exports.
|
|
21
|
+
exports.GetDataSourceSyncStatusCommand = GetDataSourceSyncStatusCommand;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.GetDocumentChunksCommand = exports.$Command = void 0;
|
|
4
4
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
class
|
|
8
|
+
class GetDocumentChunksCommand extends smithy_client_1.Command.classBuilder()
|
|
9
9
|
.m(function (Command, cs, config, o) {
|
|
10
10
|
return [
|
|
11
11
|
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
12
|
];
|
|
13
13
|
})
|
|
14
|
-
.s("KnowledgeBase", "
|
|
15
|
-
.n("KnowledgeBaseClient", "
|
|
14
|
+
.s("KnowledgeBase", "GetDocumentChunks", {})
|
|
15
|
+
.n("KnowledgeBaseClient", "GetDocumentChunksCommand")
|
|
16
16
|
.f(void 0, void 0)
|
|
17
|
-
.ser(Aws_restJson1_1.
|
|
18
|
-
.de(Aws_restJson1_1.
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetDocumentChunksCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetDocumentChunksCommand)
|
|
19
19
|
.build() {
|
|
20
20
|
}
|
|
21
|
-
exports.
|
|
21
|
+
exports.GetDocumentChunksCommand = GetDocumentChunksCommand;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.GetDocumentMarkdownCommand = exports.$Command = void 0;
|
|
4
4
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
class
|
|
8
|
+
class GetDocumentMarkdownCommand extends smithy_client_1.Command.classBuilder()
|
|
9
9
|
.m(function (Command, cs, config, o) {
|
|
10
10
|
return [
|
|
11
11
|
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
12
|
];
|
|
13
13
|
})
|
|
14
|
-
.s("KnowledgeBase", "
|
|
15
|
-
.n("KnowledgeBaseClient", "
|
|
14
|
+
.s("KnowledgeBase", "GetDocumentMarkdown", {})
|
|
15
|
+
.n("KnowledgeBaseClient", "GetDocumentMarkdownCommand")
|
|
16
16
|
.f(void 0, void 0)
|
|
17
|
-
.ser(Aws_restJson1_1.
|
|
18
|
-
.de(Aws_restJson1_1.
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetDocumentMarkdownCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetDocumentMarkdownCommand)
|
|
19
19
|
.build() {
|
|
20
20
|
}
|
|
21
|
-
exports.
|
|
21
|
+
exports.GetDocumentMarkdownCommand = GetDocumentMarkdownCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetDocumentWithContentAndChunksCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class GetDocumentWithContentAndChunksCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("KnowledgeBase", "GetDocumentWithContentAndChunks", {})
|
|
15
|
+
.n("KnowledgeBaseClient", "GetDocumentWithContentAndChunksCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetDocumentWithContentAndChunksCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetDocumentWithContentAndChunksCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetDocumentWithContentAndChunksCommand = GetDocumentWithContentAndChunksCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListDataSourceStatisticsCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class ListDataSourceStatisticsCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("KnowledgeBase", "ListDataSourceStatistics", {})
|
|
15
|
+
.n("KnowledgeBaseClient", "ListDataSourceStatisticsCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListDataSourceStatisticsCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListDataSourceStatisticsCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListDataSourceStatisticsCommand = ListDataSourceStatisticsCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListDataSourceSynchronizationLogsCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class ListDataSourceSynchronizationLogsCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("KnowledgeBase", "ListDataSourceSynchronizationLogs", {})
|
|
15
|
+
.n("KnowledgeBaseClient", "ListDataSourceSynchronizationLogsCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListDataSourceSynchronizationLogsCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListDataSourceSynchronizationLogsCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListDataSourceSynchronizationLogsCommand = ListDataSourceSynchronizationLogsCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListSearchQueriesHistoryCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class ListSearchQueriesHistoryCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("KnowledgeBase", "ListSearchQueriesHistory", {})
|
|
15
|
+
.n("KnowledgeBaseClient", "ListSearchQueriesHistoryCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListSearchQueriesHistoryCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListSearchQueriesHistoryCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListSearchQueriesHistoryCommand = ListSearchQueriesHistoryCommand;
|
|
@@ -11,18 +11,22 @@ tslib_1.__exportStar(require("./DeleteDataSourceCommand"), exports);
|
|
|
11
11
|
tslib_1.__exportStar(require("./DeleteDocumentCommand"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./DeleteKnowledgeBaseCommand"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./DescribeDataSourceCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./GenerateSearchAnswerCommand"), exports);
|
|
14
15
|
tslib_1.__exportStar(require("./GetDataSourceCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./GetDataSourceSyncStatusCommand"), exports);
|
|
15
17
|
tslib_1.__exportStar(require("./GetDocumentCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./GetDocumentChunksCommand"), exports);
|
|
16
19
|
tslib_1.__exportStar(require("./GetDocumentDownloadUrlCommand"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./GetDocumentMarkdownCommand"), exports);
|
|
17
21
|
tslib_1.__exportStar(require("./GetDocumentUploadUrlCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./GetDocumentWithContentAndChunksCommand"), exports);
|
|
18
23
|
tslib_1.__exportStar(require("./GetKnowledgeBaseCommand"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./GetSyncLogsCommand"), exports);
|
|
20
|
-
tslib_1.__exportStar(require("./GetSyncStatusCommand"), exports);
|
|
21
24
|
tslib_1.__exportStar(require("./ListDataSourcesCommand"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./ListDataSourceStatisticsCommand"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./ListDataSourceSynchronizationLogsCommand"), exports);
|
|
22
27
|
tslib_1.__exportStar(require("./ListDocumentsCommand"), exports);
|
|
23
28
|
tslib_1.__exportStar(require("./ListKnowledgeBasesCommand"), exports);
|
|
24
|
-
tslib_1.__exportStar(require("./
|
|
25
|
-
tslib_1.__exportStar(require("./SearchHistoryCommand"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./ListSearchQueriesHistoryCommand"), exports);
|
|
26
30
|
tslib_1.__exportStar(require("./SearchKnowledgeBaseCommand"), exports);
|
|
27
31
|
tslib_1.__exportStar(require("./StartSyncDataSourceCommand"), exports);
|
|
28
32
|
tslib_1.__exportStar(require("./StopSyncDataSourceCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SearchThresholdValue = exports.SyncLogLevel = exports.SyncDataSourceStatus = exports.SyncDataSourceMode = exports.DownloadDocumentType = exports.DocumentStatus = exports.DataSourceType = exports.ScheduleConfiguration = exports.DataSourceConfig = exports.KnowledgeBaseNotFoundException = exports.DocumentNotFoundException = exports.DataSourceNotFoundException = exports.UnauthorizedException = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
4
4
|
const KnowledgeBaseServiceException_1 = require("./KnowledgeBaseServiceException");
|
|
5
5
|
class ValidationException extends KnowledgeBaseServiceException_1.KnowledgeBaseServiceException {
|
|
6
6
|
name = "ValidationException";
|
|
@@ -80,10 +80,6 @@ class KnowledgeBaseNotFoundException extends KnowledgeBaseServiceException_1.Kno
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
exports.KnowledgeBaseNotFoundException = KnowledgeBaseNotFoundException;
|
|
83
|
-
exports.ProxyMethod = {
|
|
84
|
-
GET: "GET",
|
|
85
|
-
POST: "POST",
|
|
86
|
-
};
|
|
87
83
|
var DataSourceConfig;
|
|
88
84
|
(function (DataSourceConfig) {
|
|
89
85
|
DataSourceConfig.visit = (value, visitor) => {
|
|
@@ -93,8 +89,6 @@ var DataSourceConfig;
|
|
|
93
89
|
return visitor.gdrive(value.gdrive);
|
|
94
90
|
if (value.files !== undefined)
|
|
95
91
|
return visitor.files(value.files);
|
|
96
|
-
if (value.proxy !== undefined)
|
|
97
|
-
return visitor.proxy(value.proxy);
|
|
98
92
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
99
93
|
};
|
|
100
94
|
})(DataSourceConfig || (exports.DataSourceConfig = DataSourceConfig = {}));
|
|
@@ -105,22 +99,10 @@ exports.ScheduleConfiguration = {
|
|
|
105
99
|
EVERY_TWELVE_HOURS: "EVERY_TWELVE_HOURS",
|
|
106
100
|
EVERY_WEEK: "EVERY_WEEK",
|
|
107
101
|
};
|
|
108
|
-
exports.SyncDataSourceMode = {
|
|
109
|
-
FULL: "full",
|
|
110
|
-
INCREMENTAL: "incremental",
|
|
111
|
-
UNKNOWN: "unknown",
|
|
112
|
-
};
|
|
113
|
-
exports.SyncDataSourceStatus = {
|
|
114
|
-
FAILED: "failed",
|
|
115
|
-
IDLE: "idle",
|
|
116
|
-
RUNNING: "running",
|
|
117
|
-
SUCCESS: "success",
|
|
118
|
-
};
|
|
119
102
|
exports.DataSourceType = {
|
|
120
103
|
CONFLUENCE: "confluence",
|
|
121
104
|
FILES: "files",
|
|
122
105
|
GDRIVE: "gdrive",
|
|
123
|
-
PROXY: "proxy",
|
|
124
106
|
};
|
|
125
107
|
exports.DocumentStatus = {
|
|
126
108
|
COMPLETED: "completed",
|
|
@@ -133,18 +115,24 @@ exports.DownloadDocumentType = {
|
|
|
133
115
|
MARKDOWN: "markdown",
|
|
134
116
|
ORIGINAL: "original",
|
|
135
117
|
};
|
|
118
|
+
exports.SyncDataSourceMode = {
|
|
119
|
+
FULL: "full",
|
|
120
|
+
INCREMENTAL: "incremental",
|
|
121
|
+
};
|
|
122
|
+
exports.SyncDataSourceStatus = {
|
|
123
|
+
FAILED: "failed",
|
|
124
|
+
IDLE: "idle",
|
|
125
|
+
RUNNING: "running",
|
|
126
|
+
SUCCESS: "success",
|
|
127
|
+
};
|
|
136
128
|
exports.SyncLogLevel = {
|
|
137
129
|
DEBUG: "debug",
|
|
138
130
|
ERROR: "error",
|
|
139
131
|
INFO: "info",
|
|
140
132
|
WARN: "warn",
|
|
141
133
|
};
|
|
142
|
-
exports.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
};
|
|
147
|
-
exports.SearchHistoryMode = {
|
|
148
|
-
AI_ANSWER: "ai_answer",
|
|
149
|
-
SEARCH: "search",
|
|
134
|
+
exports.SearchThresholdValue = {
|
|
135
|
+
HIGH: "high",
|
|
136
|
+
LOW: "low",
|
|
137
|
+
MEDIUM: "medium",
|
|
150
138
|
};
|