@wildix/wim-knowledge-base-client 0.0.47 → 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.
Files changed (57) hide show
  1. package/dist-cjs/KnowledgeBase.js +16 -8
  2. package/dist-cjs/commands/{QueryKnowledgeBaseCommand.js → GenerateSearchAnswerCommand.js} +7 -7
  3. package/dist-cjs/commands/{SearchHistoryCommand.js → GetDataSourceSyncStatusCommand.js} +7 -7
  4. package/dist-cjs/commands/{GetSyncLogsCommand.js → GetDocumentChunksCommand.js} +7 -7
  5. package/dist-cjs/commands/{GetSyncStatusCommand.js → GetDocumentMarkdownCommand.js} +7 -7
  6. package/dist-cjs/commands/GetDocumentWithContentAndChunksCommand.js +21 -0
  7. package/dist-cjs/commands/ListDataSourceStatisticsCommand.js +21 -0
  8. package/dist-cjs/commands/ListDataSourceSynchronizationLogsCommand.js +21 -0
  9. package/dist-cjs/commands/ListSearchQueriesHistoryCommand.js +21 -0
  10. package/dist-cjs/commands/index.js +8 -4
  11. package/dist-cjs/models/models_0.js +15 -27
  12. package/dist-cjs/protocols/Aws_restJson1.js +228 -140
  13. package/dist-es/KnowledgeBase.js +16 -8
  14. package/dist-es/commands/GenerateSearchAnswerCommand.js +17 -0
  15. package/dist-es/commands/GetDataSourceSyncStatusCommand.js +17 -0
  16. package/dist-es/commands/GetDocumentChunksCommand.js +17 -0
  17. package/dist-es/commands/GetDocumentMarkdownCommand.js +17 -0
  18. package/dist-es/commands/GetDocumentWithContentAndChunksCommand.js +17 -0
  19. package/dist-es/commands/ListDataSourceStatisticsCommand.js +17 -0
  20. package/dist-es/commands/ListDataSourceSynchronizationLogsCommand.js +17 -0
  21. package/dist-es/commands/ListSearchQueriesHistoryCommand.js +17 -0
  22. package/dist-es/commands/index.js +8 -4
  23. package/dist-es/models/models_0.js +14 -26
  24. package/dist-es/protocols/Aws_restJson1.js +203 -123
  25. package/dist-types/KnowledgeBase.d.ts +54 -26
  26. package/dist-types/KnowledgeBaseClient.d.ts +10 -6
  27. package/dist-types/commands/ConfigureDataSourceCommand.d.ts +1 -36
  28. package/dist-types/commands/CreateDataSourceCommand.d.ts +2 -22
  29. package/dist-types/commands/CreateDocumentCommand.d.ts +0 -2
  30. package/dist-types/commands/GenerateSearchAnswerCommand.d.ts +105 -0
  31. package/dist-types/commands/GetDataSourceCommand.d.ts +1 -21
  32. package/dist-types/commands/GetDataSourceSyncStatusCommand.d.ts +88 -0
  33. package/dist-types/commands/GetDocumentChunksCommand.d.ts +94 -0
  34. package/dist-types/commands/GetDocumentCommand.d.ts +0 -4
  35. package/dist-types/commands/GetDocumentMarkdownCommand.d.ts +86 -0
  36. package/dist-types/commands/GetDocumentWithContentAndChunksCommand.d.ts +113 -0
  37. package/dist-types/commands/ListDataSourceStatisticsCommand.d.ts +86 -0
  38. package/dist-types/commands/ListDataSourceSynchronizationLogsCommand.d.ts +96 -0
  39. package/dist-types/commands/ListDataSourcesCommand.d.ts +1 -21
  40. package/dist-types/commands/ListDocumentsCommand.d.ts +0 -2
  41. package/dist-types/commands/ListSearchQueriesHistoryCommand.d.ts +97 -0
  42. package/dist-types/commands/SearchKnowledgeBaseCommand.d.ts +7 -9
  43. package/dist-types/commands/StartSyncDataSourceCommand.d.ts +1 -1
  44. package/dist-types/commands/UpdateDataSourceCommand.d.ts +1 -21
  45. package/dist-types/commands/UpdateDocumentCommand.d.ts +0 -2
  46. package/dist-types/commands/index.d.ts +8 -4
  47. package/dist-types/models/models_0.d.ts +253 -346
  48. package/dist-types/protocols/Aws_restJson1.d.ts +64 -28
  49. package/package.json +1 -1
  50. package/dist-es/commands/GetSyncLogsCommand.js +0 -17
  51. package/dist-es/commands/GetSyncStatusCommand.js +0 -17
  52. package/dist-es/commands/QueryKnowledgeBaseCommand.js +0 -17
  53. package/dist-es/commands/SearchHistoryCommand.js +0 -17
  54. package/dist-types/commands/GetSyncLogsCommand.d.ts +0 -96
  55. package/dist-types/commands/GetSyncStatusCommand.d.ts +0 -94
  56. package/dist-types/commands/QueryKnowledgeBaseCommand.d.ts +0 -103
  57. package/dist-types/commands/SearchHistoryCommand.d.ts +0 -98
@@ -8,18 +8,22 @@ import { DeleteDataSourceCommandInput, DeleteDataSourceCommandOutput } from "../
8
8
  import { DeleteDocumentCommandInput, DeleteDocumentCommandOutput } from "../commands/DeleteDocumentCommand";
9
9
  import { DeleteKnowledgeBaseCommandInput, DeleteKnowledgeBaseCommandOutput } from "../commands/DeleteKnowledgeBaseCommand";
10
10
  import { DescribeDataSourceCommandInput, DescribeDataSourceCommandOutput } from "../commands/DescribeDataSourceCommand";
11
+ import { GenerateSearchAnswerCommandInput, GenerateSearchAnswerCommandOutput } from "../commands/GenerateSearchAnswerCommand";
11
12
  import { GetDataSourceCommandInput, GetDataSourceCommandOutput } from "../commands/GetDataSourceCommand";
13
+ import { GetDataSourceSyncStatusCommandInput, GetDataSourceSyncStatusCommandOutput } from "../commands/GetDataSourceSyncStatusCommand";
14
+ import { GetDocumentChunksCommandInput, GetDocumentChunksCommandOutput } from "../commands/GetDocumentChunksCommand";
12
15
  import { GetDocumentCommandInput, GetDocumentCommandOutput } from "../commands/GetDocumentCommand";
13
16
  import { GetDocumentDownloadUrlCommandInput, GetDocumentDownloadUrlCommandOutput } from "../commands/GetDocumentDownloadUrlCommand";
17
+ import { GetDocumentMarkdownCommandInput, GetDocumentMarkdownCommandOutput } from "../commands/GetDocumentMarkdownCommand";
14
18
  import { GetDocumentUploadUrlCommandInput, GetDocumentUploadUrlCommandOutput } from "../commands/GetDocumentUploadUrlCommand";
19
+ import { GetDocumentWithContentAndChunksCommandInput, GetDocumentWithContentAndChunksCommandOutput } from "../commands/GetDocumentWithContentAndChunksCommand";
15
20
  import { GetKnowledgeBaseCommandInput, GetKnowledgeBaseCommandOutput } from "../commands/GetKnowledgeBaseCommand";
16
- import { GetSyncLogsCommandInput, GetSyncLogsCommandOutput } from "../commands/GetSyncLogsCommand";
17
- import { GetSyncStatusCommandInput, GetSyncStatusCommandOutput } from "../commands/GetSyncStatusCommand";
21
+ import { ListDataSourceStatisticsCommandInput, ListDataSourceStatisticsCommandOutput } from "../commands/ListDataSourceStatisticsCommand";
22
+ import { ListDataSourceSynchronizationLogsCommandInput, ListDataSourceSynchronizationLogsCommandOutput } from "../commands/ListDataSourceSynchronizationLogsCommand";
18
23
  import { ListDataSourcesCommandInput, ListDataSourcesCommandOutput } from "../commands/ListDataSourcesCommand";
19
24
  import { ListDocumentsCommandInput, ListDocumentsCommandOutput } from "../commands/ListDocumentsCommand";
20
25
  import { ListKnowledgeBasesCommandInput, ListKnowledgeBasesCommandOutput } from "../commands/ListKnowledgeBasesCommand";
21
- import { QueryKnowledgeBaseCommandInput, QueryKnowledgeBaseCommandOutput } from "../commands/QueryKnowledgeBaseCommand";
22
- import { SearchHistoryCommandInput, SearchHistoryCommandOutput } from "../commands/SearchHistoryCommand";
26
+ import { ListSearchQueriesHistoryCommandInput, ListSearchQueriesHistoryCommandOutput } from "../commands/ListSearchQueriesHistoryCommand";
23
27
  import { SearchKnowledgeBaseCommandInput, SearchKnowledgeBaseCommandOutput } from "../commands/SearchKnowledgeBaseCommand";
24
28
  import { StartSyncDataSourceCommandInput, StartSyncDataSourceCommandOutput } from "../commands/StartSyncDataSourceCommand";
25
29
  import { StopSyncDataSourceCommandInput, StopSyncDataSourceCommandOutput } from "../commands/StopSyncDataSourceCommand";
@@ -68,38 +72,58 @@ export declare const se_DeleteKnowledgeBaseCommand: (input: DeleteKnowledgeBaseC
68
72
  * serializeAws_restJson1DescribeDataSourceCommand
69
73
  */
70
74
  export declare const se_DescribeDataSourceCommand: (input: DescribeDataSourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
75
+ /**
76
+ * serializeAws_restJson1GenerateSearchAnswerCommand
77
+ */
78
+ export declare const se_GenerateSearchAnswerCommand: (input: GenerateSearchAnswerCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
71
79
  /**
72
80
  * serializeAws_restJson1GetDataSourceCommand
73
81
  */
74
82
  export declare const se_GetDataSourceCommand: (input: GetDataSourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
83
+ /**
84
+ * serializeAws_restJson1GetDataSourceSyncStatusCommand
85
+ */
86
+ export declare const se_GetDataSourceSyncStatusCommand: (input: GetDataSourceSyncStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
75
87
  /**
76
88
  * serializeAws_restJson1GetDocumentCommand
77
89
  */
78
90
  export declare const se_GetDocumentCommand: (input: GetDocumentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
91
+ /**
92
+ * serializeAws_restJson1GetDocumentChunksCommand
93
+ */
94
+ export declare const se_GetDocumentChunksCommand: (input: GetDocumentChunksCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
79
95
  /**
80
96
  * serializeAws_restJson1GetDocumentDownloadUrlCommand
81
97
  */
82
98
  export declare const se_GetDocumentDownloadUrlCommand: (input: GetDocumentDownloadUrlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
99
+ /**
100
+ * serializeAws_restJson1GetDocumentMarkdownCommand
101
+ */
102
+ export declare const se_GetDocumentMarkdownCommand: (input: GetDocumentMarkdownCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
83
103
  /**
84
104
  * serializeAws_restJson1GetDocumentUploadUrlCommand
85
105
  */
86
106
  export declare const se_GetDocumentUploadUrlCommand: (input: GetDocumentUploadUrlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
107
+ /**
108
+ * serializeAws_restJson1GetDocumentWithContentAndChunksCommand
109
+ */
110
+ export declare const se_GetDocumentWithContentAndChunksCommand: (input: GetDocumentWithContentAndChunksCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
87
111
  /**
88
112
  * serializeAws_restJson1GetKnowledgeBaseCommand
89
113
  */
90
114
  export declare const se_GetKnowledgeBaseCommand: (input: GetKnowledgeBaseCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
91
115
  /**
92
- * serializeAws_restJson1GetSyncLogsCommand
116
+ * serializeAws_restJson1ListDataSourcesCommand
93
117
  */
94
- export declare const se_GetSyncLogsCommand: (input: GetSyncLogsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
118
+ export declare const se_ListDataSourcesCommand: (input: ListDataSourcesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
95
119
  /**
96
- * serializeAws_restJson1GetSyncStatusCommand
120
+ * serializeAws_restJson1ListDataSourceStatisticsCommand
97
121
  */
98
- export declare const se_GetSyncStatusCommand: (input: GetSyncStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
122
+ export declare const se_ListDataSourceStatisticsCommand: (input: ListDataSourceStatisticsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
99
123
  /**
100
- * serializeAws_restJson1ListDataSourcesCommand
124
+ * serializeAws_restJson1ListDataSourceSynchronizationLogsCommand
101
125
  */
102
- export declare const se_ListDataSourcesCommand: (input: ListDataSourcesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
126
+ export declare const se_ListDataSourceSynchronizationLogsCommand: (input: ListDataSourceSynchronizationLogsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
103
127
  /**
104
128
  * serializeAws_restJson1ListDocumentsCommand
105
129
  */
@@ -109,13 +133,9 @@ export declare const se_ListDocumentsCommand: (input: ListDocumentsCommandInput,
109
133
  */
110
134
  export declare const se_ListKnowledgeBasesCommand: (input: ListKnowledgeBasesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
111
135
  /**
112
- * serializeAws_restJson1QueryKnowledgeBaseCommand
113
- */
114
- export declare const se_QueryKnowledgeBaseCommand: (input: QueryKnowledgeBaseCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
115
- /**
116
- * serializeAws_restJson1SearchHistoryCommand
136
+ * serializeAws_restJson1ListSearchQueriesHistoryCommand
117
137
  */
118
- export declare const se_SearchHistoryCommand: (input: SearchHistoryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
138
+ export declare const se_ListSearchQueriesHistoryCommand: (input: ListSearchQueriesHistoryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
119
139
  /**
120
140
  * serializeAws_restJson1SearchKnowledgeBaseCommand
121
141
  */
@@ -180,38 +200,58 @@ export declare const de_DeleteKnowledgeBaseCommand: (output: __HttpResponse, con
180
200
  * deserializeAws_restJson1DescribeDataSourceCommand
181
201
  */
182
202
  export declare const de_DescribeDataSourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeDataSourceCommandOutput>;
203
+ /**
204
+ * deserializeAws_restJson1GenerateSearchAnswerCommand
205
+ */
206
+ export declare const de_GenerateSearchAnswerCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateSearchAnswerCommandOutput>;
183
207
  /**
184
208
  * deserializeAws_restJson1GetDataSourceCommand
185
209
  */
186
210
  export declare const de_GetDataSourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDataSourceCommandOutput>;
211
+ /**
212
+ * deserializeAws_restJson1GetDataSourceSyncStatusCommand
213
+ */
214
+ export declare const de_GetDataSourceSyncStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDataSourceSyncStatusCommandOutput>;
187
215
  /**
188
216
  * deserializeAws_restJson1GetDocumentCommand
189
217
  */
190
218
  export declare const de_GetDocumentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentCommandOutput>;
219
+ /**
220
+ * deserializeAws_restJson1GetDocumentChunksCommand
221
+ */
222
+ export declare const de_GetDocumentChunksCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentChunksCommandOutput>;
191
223
  /**
192
224
  * deserializeAws_restJson1GetDocumentDownloadUrlCommand
193
225
  */
194
226
  export declare const de_GetDocumentDownloadUrlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentDownloadUrlCommandOutput>;
227
+ /**
228
+ * deserializeAws_restJson1GetDocumentMarkdownCommand
229
+ */
230
+ export declare const de_GetDocumentMarkdownCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentMarkdownCommandOutput>;
195
231
  /**
196
232
  * deserializeAws_restJson1GetDocumentUploadUrlCommand
197
233
  */
198
234
  export declare const de_GetDocumentUploadUrlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentUploadUrlCommandOutput>;
235
+ /**
236
+ * deserializeAws_restJson1GetDocumentWithContentAndChunksCommand
237
+ */
238
+ export declare const de_GetDocumentWithContentAndChunksCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentWithContentAndChunksCommandOutput>;
199
239
  /**
200
240
  * deserializeAws_restJson1GetKnowledgeBaseCommand
201
241
  */
202
242
  export declare const de_GetKnowledgeBaseCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetKnowledgeBaseCommandOutput>;
203
243
  /**
204
- * deserializeAws_restJson1GetSyncLogsCommand
244
+ * deserializeAws_restJson1ListDataSourcesCommand
205
245
  */
206
- export declare const de_GetSyncLogsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetSyncLogsCommandOutput>;
246
+ export declare const de_ListDataSourcesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListDataSourcesCommandOutput>;
207
247
  /**
208
- * deserializeAws_restJson1GetSyncStatusCommand
248
+ * deserializeAws_restJson1ListDataSourceStatisticsCommand
209
249
  */
210
- export declare const de_GetSyncStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetSyncStatusCommandOutput>;
250
+ export declare const de_ListDataSourceStatisticsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListDataSourceStatisticsCommandOutput>;
211
251
  /**
212
- * deserializeAws_restJson1ListDataSourcesCommand
252
+ * deserializeAws_restJson1ListDataSourceSynchronizationLogsCommand
213
253
  */
214
- export declare const de_ListDataSourcesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListDataSourcesCommandOutput>;
254
+ export declare const de_ListDataSourceSynchronizationLogsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListDataSourceSynchronizationLogsCommandOutput>;
215
255
  /**
216
256
  * deserializeAws_restJson1ListDocumentsCommand
217
257
  */
@@ -221,13 +261,9 @@ export declare const de_ListDocumentsCommand: (output: __HttpResponse, context:
221
261
  */
222
262
  export declare const de_ListKnowledgeBasesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListKnowledgeBasesCommandOutput>;
223
263
  /**
224
- * deserializeAws_restJson1QueryKnowledgeBaseCommand
225
- */
226
- export declare const de_QueryKnowledgeBaseCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<QueryKnowledgeBaseCommandOutput>;
227
- /**
228
- * deserializeAws_restJson1SearchHistoryCommand
264
+ * deserializeAws_restJson1ListSearchQueriesHistoryCommand
229
265
  */
230
- export declare const de_SearchHistoryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SearchHistoryCommandOutput>;
266
+ export declare const de_ListSearchQueriesHistoryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListSearchQueriesHistoryCommandOutput>;
231
267
  /**
232
268
  * deserializeAws_restJson1SearchKnowledgeBaseCommand
233
269
  */
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.47",
4
+ "version": "0.0.49",
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",
@@ -1,17 +0,0 @@
1
- import { de_GetSyncLogsCommand, se_GetSyncLogsCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- export { $Command };
5
- export class GetSyncLogsCommand extends $Command.classBuilder()
6
- .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
- })
11
- .s("KnowledgeBase", "GetSyncLogs", {})
12
- .n("KnowledgeBaseClient", "GetSyncLogsCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetSyncLogsCommand)
15
- .de(de_GetSyncLogsCommand)
16
- .build() {
17
- }
@@ -1,17 +0,0 @@
1
- import { de_GetSyncStatusCommand, se_GetSyncStatusCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- export { $Command };
5
- export class GetSyncStatusCommand extends $Command.classBuilder()
6
- .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
- })
11
- .s("KnowledgeBase", "GetSyncStatus", {})
12
- .n("KnowledgeBaseClient", "GetSyncStatusCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetSyncStatusCommand)
15
- .de(de_GetSyncStatusCommand)
16
- .build() {
17
- }
@@ -1,17 +0,0 @@
1
- import { de_QueryKnowledgeBaseCommand, se_QueryKnowledgeBaseCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- export { $Command };
5
- export class QueryKnowledgeBaseCommand extends $Command.classBuilder()
6
- .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
- })
11
- .s("KnowledgeBase", "QueryKnowledgeBase", {})
12
- .n("KnowledgeBaseClient", "QueryKnowledgeBaseCommand")
13
- .f(void 0, void 0)
14
- .ser(se_QueryKnowledgeBaseCommand)
15
- .de(de_QueryKnowledgeBaseCommand)
16
- .build() {
17
- }
@@ -1,17 +0,0 @@
1
- import { de_SearchHistoryCommand, se_SearchHistoryCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- export { $Command };
5
- export class SearchHistoryCommand extends $Command.classBuilder()
6
- .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
- })
11
- .s("KnowledgeBase", "SearchHistory", {})
12
- .n("KnowledgeBaseClient", "SearchHistoryCommand")
13
- .f(void 0, void 0)
14
- .ser(se_SearchHistoryCommand)
15
- .de(de_SearchHistoryCommand)
16
- .build() {
17
- }
@@ -1,96 +0,0 @@
1
- import { KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KnowledgeBaseClient";
2
- import { GetSyncLogsInput, GetSyncLogsOutput } from "../models/models_0";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
- /**
6
- * @public
7
- */
8
- export type { __MetadataBearer };
9
- export { $Command };
10
- /**
11
- * @public
12
- *
13
- * The input for {@link GetSyncLogsCommand}.
14
- */
15
- export interface GetSyncLogsCommandInput extends GetSyncLogsInput {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link GetSyncLogsCommand}.
21
- */
22
- export interface GetSyncLogsCommandOutput extends GetSyncLogsOutput, __MetadataBearer {
23
- }
24
- declare const GetSyncLogsCommand_base: {
25
- new (input: GetSyncLogsCommandInput): import("@smithy/smithy-client").CommandImpl<GetSyncLogsCommandInput, GetSyncLogsCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: GetSyncLogsCommandInput): import("@smithy/smithy-client").CommandImpl<GetSyncLogsCommandInput, GetSyncLogsCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
- };
29
- /**
30
- * Get the sync logs of a data source by its ID
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { KnowledgeBaseClient, GetSyncLogsCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
35
- * // const { KnowledgeBaseClient, GetSyncLogsCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
36
- * const client = new KnowledgeBaseClient(config);
37
- * const input = { // GetSyncLogsInput
38
- * companyId: "STRING_VALUE",
39
- * limit: Number("int"),
40
- * offset: Number("int"),
41
- * sort: "STRING_VALUE",
42
- * dataSourceId: "STRING_VALUE", // required
43
- * logLevel: "debug" || "info" || "warn" || "error",
44
- * search: "STRING_VALUE",
45
- * };
46
- * const command = new GetSyncLogsCommand(input);
47
- * const response = await client.send(command);
48
- * // { // GetSyncLogsOutput
49
- * // logs: [ // SyncLogList // required
50
- * // { // SyncLogItem
51
- * // timestamp: "STRING_VALUE", // required
52
- * // level: "debug" || "info" || "warn" || "error", // required
53
- * // message: "STRING_VALUE", // required
54
- * // },
55
- * // ],
56
- * // };
57
- *
58
- * ```
59
- *
60
- * @param GetSyncLogsCommandInput - {@link GetSyncLogsCommandInput}
61
- * @returns {@link GetSyncLogsCommandOutput}
62
- * @see {@link GetSyncLogsCommandInput} for command's `input` shape.
63
- * @see {@link GetSyncLogsCommandOutput} for command's `response` shape.
64
- * @see {@link KnowledgeBaseClientResolvedConfig | config} for KnowledgeBaseClient's `config` shape.
65
- *
66
- * @throws {@link DataSourceNotFoundException} (client fault)
67
- *
68
- * @throws {@link UnauthorizedException} (client fault)
69
- *
70
- * @throws {@link ForbiddenException} (client fault)
71
- *
72
- * @throws {@link ValidationException} (client fault)
73
- *
74
- * @throws {@link KnowledgeBaseNotFoundException} (client fault)
75
- *
76
- * @throws {@link DocumentNotFoundException} (client fault)
77
- *
78
- * @throws {@link KnowledgeBaseServiceException}
79
- * <p>Base exception class for all service exceptions from KnowledgeBase service.</p>
80
- *
81
- *
82
- * @public
83
- */
84
- export declare class GetSyncLogsCommand extends GetSyncLogsCommand_base {
85
- /** @internal type navigation helper, not in runtime. */
86
- protected static __types: {
87
- api: {
88
- input: GetSyncLogsInput;
89
- output: GetSyncLogsOutput;
90
- };
91
- sdk: {
92
- input: GetSyncLogsCommandInput;
93
- output: GetSyncLogsCommandOutput;
94
- };
95
- };
96
- }
@@ -1,94 +0,0 @@
1
- import { KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KnowledgeBaseClient";
2
- import { GetSyncStatusInput, GetSyncStatusOutput } from "../models/models_0";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
- /**
6
- * @public
7
- */
8
- export type { __MetadataBearer };
9
- export { $Command };
10
- /**
11
- * @public
12
- *
13
- * The input for {@link GetSyncStatusCommand}.
14
- */
15
- export interface GetSyncStatusCommandInput extends GetSyncStatusInput {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link GetSyncStatusCommand}.
21
- */
22
- export interface GetSyncStatusCommandOutput extends GetSyncStatusOutput, __MetadataBearer {
23
- }
24
- declare const GetSyncStatusCommand_base: {
25
- new (input: GetSyncStatusCommandInput): import("@smithy/smithy-client").CommandImpl<GetSyncStatusCommandInput, GetSyncStatusCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: GetSyncStatusCommandInput): import("@smithy/smithy-client").CommandImpl<GetSyncStatusCommandInput, GetSyncStatusCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
- };
29
- /**
30
- * Get the sync status of a data source by its ID
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { KnowledgeBaseClient, GetSyncStatusCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
35
- * // const { KnowledgeBaseClient, GetSyncStatusCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
36
- * const client = new KnowledgeBaseClient(config);
37
- * const input = { // GetSyncStatusInput
38
- * companyId: "STRING_VALUE",
39
- * dataSourceId: "STRING_VALUE", // required
40
- * };
41
- * const command = new GetSyncStatusCommand(input);
42
- * const response = await client.send(command);
43
- * // { // GetSyncStatusOutput
44
- * // syncStatus: "idle" || "running" || "success" || "failed", // required
45
- * // progress: Number("int"),
46
- * // syncErrorMessage: "STRING_VALUE",
47
- * // lastSyncLogs: [ // SyncLogList
48
- * // { // SyncLogItem
49
- * // timestamp: "STRING_VALUE", // required
50
- * // level: "debug" || "info" || "warn" || "error", // required
51
- * // message: "STRING_VALUE", // required
52
- * // },
53
- * // ],
54
- * // };
55
- *
56
- * ```
57
- *
58
- * @param GetSyncStatusCommandInput - {@link GetSyncStatusCommandInput}
59
- * @returns {@link GetSyncStatusCommandOutput}
60
- * @see {@link GetSyncStatusCommandInput} for command's `input` shape.
61
- * @see {@link GetSyncStatusCommandOutput} for command's `response` shape.
62
- * @see {@link KnowledgeBaseClientResolvedConfig | config} for KnowledgeBaseClient's `config` shape.
63
- *
64
- * @throws {@link DataSourceNotFoundException} (client fault)
65
- *
66
- * @throws {@link UnauthorizedException} (client fault)
67
- *
68
- * @throws {@link ForbiddenException} (client fault)
69
- *
70
- * @throws {@link ValidationException} (client fault)
71
- *
72
- * @throws {@link KnowledgeBaseNotFoundException} (client fault)
73
- *
74
- * @throws {@link DocumentNotFoundException} (client fault)
75
- *
76
- * @throws {@link KnowledgeBaseServiceException}
77
- * <p>Base exception class for all service exceptions from KnowledgeBase service.</p>
78
- *
79
- *
80
- * @public
81
- */
82
- export declare class GetSyncStatusCommand extends GetSyncStatusCommand_base {
83
- /** @internal type navigation helper, not in runtime. */
84
- protected static __types: {
85
- api: {
86
- input: GetSyncStatusInput;
87
- output: GetSyncStatusOutput;
88
- };
89
- sdk: {
90
- input: GetSyncStatusCommandInput;
91
- output: GetSyncStatusCommandOutput;
92
- };
93
- };
94
- }
@@ -1,103 +0,0 @@
1
- import { KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KnowledgeBaseClient";
2
- import { QueryKnowledgeBaseInput, QueryKnowledgeBaseOutput } from "../models/models_0";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
- /**
6
- * @public
7
- */
8
- export type { __MetadataBearer };
9
- export { $Command };
10
- /**
11
- * @public
12
- *
13
- * The input for {@link QueryKnowledgeBaseCommand}.
14
- */
15
- export interface QueryKnowledgeBaseCommandInput extends QueryKnowledgeBaseInput {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link QueryKnowledgeBaseCommand}.
21
- */
22
- export interface QueryKnowledgeBaseCommandOutput extends QueryKnowledgeBaseOutput, __MetadataBearer {
23
- }
24
- declare const QueryKnowledgeBaseCommand_base: {
25
- new (input: QueryKnowledgeBaseCommandInput): import("@smithy/smithy-client").CommandImpl<QueryKnowledgeBaseCommandInput, QueryKnowledgeBaseCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: QueryKnowledgeBaseCommandInput): import("@smithy/smithy-client").CommandImpl<QueryKnowledgeBaseCommandInput, QueryKnowledgeBaseCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
- };
29
- /**
30
- * Query a knowledge base by its ID and return the answer from the LLM
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { KnowledgeBaseClient, QueryKnowledgeBaseCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
35
- * // const { KnowledgeBaseClient, QueryKnowledgeBaseCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
36
- * const client = new KnowledgeBaseClient(config);
37
- * const input = { // QueryKnowledgeBaseInput
38
- * companyId: "STRING_VALUE",
39
- * knowledgeBaseId: "STRING_VALUE", // required
40
- * query: "STRING_VALUE", // required
41
- * searchConfig: { // SearchConfig
42
- * topK: Number("int"),
43
- * threshold: Number("double"),
44
- * searchStrategy: "bm25" || "vector" || "hybrid",
45
- * useQueryOptimization: true || false,
46
- * extendMetadata: true || false,
47
- * },
48
- * llmConfig: { // LlmConfig
49
- * model: "STRING_VALUE",
50
- * temperature: Number("double"),
51
- * maxOutputTokens: Number("int"),
52
- * systemPrompt: "STRING_VALUE",
53
- * },
54
- * searchUser: "STRING_VALUE",
55
- * externalSessionId: "STRING_VALUE",
56
- * };
57
- * const command = new QueryKnowledgeBaseCommand(input);
58
- * const response = await client.send(command);
59
- * // { // QueryKnowledgeBaseOutput
60
- * // answer: "STRING_VALUE", // required
61
- * // metadata: "DOCUMENT_VALUE", // required
62
- * // sources: "DOCUMENT_VALUE", // required
63
- * // };
64
- *
65
- * ```
66
- *
67
- * @param QueryKnowledgeBaseCommandInput - {@link QueryKnowledgeBaseCommandInput}
68
- * @returns {@link QueryKnowledgeBaseCommandOutput}
69
- * @see {@link QueryKnowledgeBaseCommandInput} for command's `input` shape.
70
- * @see {@link QueryKnowledgeBaseCommandOutput} for command's `response` shape.
71
- * @see {@link KnowledgeBaseClientResolvedConfig | config} for KnowledgeBaseClient's `config` shape.
72
- *
73
- * @throws {@link KnowledgeBaseNotFoundException} (client fault)
74
- *
75
- * @throws {@link UnauthorizedException} (client fault)
76
- *
77
- * @throws {@link ForbiddenException} (client fault)
78
- *
79
- * @throws {@link ValidationException} (client fault)
80
- *
81
- * @throws {@link DataSourceNotFoundException} (client fault)
82
- *
83
- * @throws {@link DocumentNotFoundException} (client fault)
84
- *
85
- * @throws {@link KnowledgeBaseServiceException}
86
- * <p>Base exception class for all service exceptions from KnowledgeBase service.</p>
87
- *
88
- *
89
- * @public
90
- */
91
- export declare class QueryKnowledgeBaseCommand extends QueryKnowledgeBaseCommand_base {
92
- /** @internal type navigation helper, not in runtime. */
93
- protected static __types: {
94
- api: {
95
- input: QueryKnowledgeBaseInput;
96
- output: QueryKnowledgeBaseOutput;
97
- };
98
- sdk: {
99
- input: QueryKnowledgeBaseCommandInput;
100
- output: QueryKnowledgeBaseCommandOutput;
101
- };
102
- };
103
- }
@@ -1,98 +0,0 @@
1
- import { KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KnowledgeBaseClient";
2
- import { SearchHistoryInput, SearchHistoryOutput } from "../models/models_0";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
- /**
6
- * @public
7
- */
8
- export type { __MetadataBearer };
9
- export { $Command };
10
- /**
11
- * @public
12
- *
13
- * The input for {@link SearchHistoryCommand}.
14
- */
15
- export interface SearchHistoryCommandInput extends SearchHistoryInput {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link SearchHistoryCommand}.
21
- */
22
- export interface SearchHistoryCommandOutput extends SearchHistoryOutput, __MetadataBearer {
23
- }
24
- declare const SearchHistoryCommand_base: {
25
- new (input: SearchHistoryCommandInput): import("@smithy/smithy-client").CommandImpl<SearchHistoryCommandInput, SearchHistoryCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: SearchHistoryCommandInput): import("@smithy/smithy-client").CommandImpl<SearchHistoryCommandInput, SearchHistoryCommandOutput, KnowledgeBaseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
- };
29
- /**
30
- * You can use this endpoint to retrieve the search history of the knowledge base.
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { KnowledgeBaseClient, SearchHistoryCommand } from "@wildix/wim-knowledge-base-client"; // ES Modules import
35
- * // const { KnowledgeBaseClient, SearchHistoryCommand } = require("@wildix/wim-knowledge-base-client"); // CommonJS import
36
- * const client = new KnowledgeBaseClient(config);
37
- * const input = { // SearchHistoryInput
38
- * companyId: "STRING_VALUE",
39
- * limit: Number("int"),
40
- * offset: Number("int"),
41
- * sort: "STRING_VALUE",
42
- * filter: { // SearchHistoryFilter
43
- * knowledgeBaseId: "STRING_VALUE",
44
- * dataSourceId: "STRING_VALUE",
45
- * sessionId: "STRING_VALUE",
46
- * externalSessionId: "STRING_VALUE",
47
- * searchUser: "STRING_VALUE",
48
- * mode: "search" || "ai_answer",
49
- * },
50
- * search: "STRING_VALUE",
51
- * };
52
- * const command = new SearchHistoryCommand(input);
53
- * const response = await client.send(command);
54
- * // { // SearchHistoryOutput
55
- * // results: [ // SearchHistoryResults // required
56
- * // "DOCUMENT_VALUE",
57
- * // ],
58
- * // };
59
- *
60
- * ```
61
- *
62
- * @param SearchHistoryCommandInput - {@link SearchHistoryCommandInput}
63
- * @returns {@link SearchHistoryCommandOutput}
64
- * @see {@link SearchHistoryCommandInput} for command's `input` shape.
65
- * @see {@link SearchHistoryCommandOutput} for command's `response` shape.
66
- * @see {@link KnowledgeBaseClientResolvedConfig | config} for KnowledgeBaseClient's `config` shape.
67
- *
68
- * @throws {@link ValidationException} (client fault)
69
- *
70
- * @throws {@link UnauthorizedException} (client fault)
71
- *
72
- * @throws {@link ForbiddenException} (client fault)
73
- *
74
- * @throws {@link KnowledgeBaseNotFoundException} (client fault)
75
- *
76
- * @throws {@link DataSourceNotFoundException} (client fault)
77
- *
78
- * @throws {@link DocumentNotFoundException} (client fault)
79
- *
80
- * @throws {@link KnowledgeBaseServiceException}
81
- * <p>Base exception class for all service exceptions from KnowledgeBase service.</p>
82
- *
83
- *
84
- * @public
85
- */
86
- export declare class SearchHistoryCommand extends SearchHistoryCommand_base {
87
- /** @internal type navigation helper, not in runtime. */
88
- protected static __types: {
89
- api: {
90
- input: SearchHistoryInput;
91
- output: SearchHistoryOutput;
92
- };
93
- sdk: {
94
- input: SearchHistoryCommandInput;
95
- output: SearchHistoryCommandOutput;
96
- };
97
- };
98
- }