@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.
- 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/CreateDocumentCommand.d.ts +0 -2
- 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 -4
- 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/ListDocumentsCommand.d.ts +0 -2
- 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/UpdateDocumentCommand.d.ts +0 -2
- package/dist-types/commands/index.d.ts +8 -4
- package/dist-types/models/models_0.d.ts +253 -346
- 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
|
@@ -38,14 +38,9 @@ declare const SearchKnowledgeBaseCommand_base: {
|
|
|
38
38
|
* companyId: "STRING_VALUE",
|
|
39
39
|
* knowledgeBaseId: "STRING_VALUE", // required
|
|
40
40
|
* query: "STRING_VALUE", // required
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* searchStrategy: "bm25" || "vector" || "hybrid",
|
|
45
|
-
* useQueryOptimization: true || false,
|
|
46
|
-
* extendMetadata: true || false,
|
|
47
|
-
* },
|
|
48
|
-
* withMetadata: true || false,
|
|
41
|
+
* searchLimit: Number("int"),
|
|
42
|
+
* searchThreshold: "low" || "medium" || "high",
|
|
43
|
+
* useQueryOptimization: true || false,
|
|
49
44
|
* searchUser: "STRING_VALUE",
|
|
50
45
|
* externalSessionId: "STRING_VALUE",
|
|
51
46
|
* };
|
|
@@ -58,9 +53,12 @@ declare const SearchKnowledgeBaseCommand_base: {
|
|
|
58
53
|
* // documentTitle: "STRING_VALUE", // required
|
|
59
54
|
* // documentUrl: "STRING_VALUE", // required
|
|
60
55
|
* // dataSourceId: "STRING_VALUE", // required
|
|
61
|
-
* // dataSourceType: "files" || "confluence" || "gdrive"
|
|
56
|
+
* // dataSourceType: "files" || "confluence" || "gdrive", // required
|
|
62
57
|
* // content: "STRING_VALUE", // required
|
|
63
58
|
* // score: Number("double"), // required
|
|
59
|
+
* // documentHierarchy: [ // StringList
|
|
60
|
+
* // "STRING_VALUE",
|
|
61
|
+
* // ],
|
|
64
62
|
* // },
|
|
65
63
|
* // ],
|
|
66
64
|
* // metadata: "DOCUMENT_VALUE",
|
|
@@ -37,7 +37,7 @@ declare const StartSyncDataSourceCommand_base: {
|
|
|
37
37
|
* const input = { // StartSyncDataSourceInput
|
|
38
38
|
* companyId: "STRING_VALUE",
|
|
39
39
|
* dataSourceId: "STRING_VALUE", // required
|
|
40
|
-
* syncType: "full" || "incremental"
|
|
40
|
+
* syncType: "full" || "incremental",
|
|
41
41
|
* };
|
|
42
42
|
* const command = new StartSyncDataSourceCommand(input);
|
|
43
43
|
* const response = await client.send(command);
|
|
@@ -46,7 +46,7 @@ declare const UpdateDataSourceCommand_base: {
|
|
|
46
46
|
* // dataSource: { // DataSourceItem
|
|
47
47
|
* // name: "STRING_VALUE", // required
|
|
48
48
|
* // description: "STRING_VALUE",
|
|
49
|
-
* // type: "files" || "confluence" || "gdrive"
|
|
49
|
+
* // type: "files" || "confluence" || "gdrive", // required
|
|
50
50
|
* // config: { // DataSourceConfig Union: only one key present
|
|
51
51
|
* // confluence: { // ConfluenceConfig
|
|
52
52
|
* // baseUrl: "STRING_VALUE", // required
|
|
@@ -74,32 +74,12 @@ declare const UpdateDataSourceCommand_base: {
|
|
|
74
74
|
* // },
|
|
75
75
|
* // },
|
|
76
76
|
* // files: "DOCUMENT_VALUE",
|
|
77
|
-
* // proxy: { // ProxyConfig
|
|
78
|
-
* // url: "STRING_VALUE", // required
|
|
79
|
-
* // method: "GET" || "POST",
|
|
80
|
-
* // token: "STRING_VALUE",
|
|
81
|
-
* // username: "STRING_VALUE",
|
|
82
|
-
* // password: "STRING_VALUE",
|
|
83
|
-
* // headers: [
|
|
84
|
-
* // "STRING_VALUE",
|
|
85
|
-
* // ],
|
|
86
|
-
* // body: "DOCUMENT_VALUE",
|
|
87
|
-
* // timeoutMs: Number("int"),
|
|
88
|
-
* // responseMapping: [
|
|
89
|
-
* // "STRING_VALUE",
|
|
90
|
-
* // ],
|
|
91
|
-
* // },
|
|
92
77
|
* // },
|
|
93
78
|
* // syncSchedule: "DISABLED" || "EVERY_SIX_HOURS" || "EVERY_TWELVE_HOURS" || "EVERY_DAY" || "EVERY_WEEK",
|
|
94
79
|
* // id: "STRING_VALUE", // required
|
|
95
80
|
* // companyId: "STRING_VALUE", // required
|
|
96
|
-
* // documentsCount: Number("int"), // required
|
|
97
81
|
* // createdAt: "STRING_VALUE", // required
|
|
98
82
|
* // updatedAt: "STRING_VALUE", // required
|
|
99
|
-
* // syncStatus: "idle" || "running" || "success" || "failed", // required
|
|
100
|
-
* // lastSyncedAt: "STRING_VALUE",
|
|
101
|
-
* // lastSyncMode: "full" || "incremental" || "unknown",
|
|
102
|
-
* // lastSyncErrorMessage: "STRING_VALUE",
|
|
103
83
|
* // },
|
|
104
84
|
* // };
|
|
105
85
|
*
|
|
@@ -58,8 +58,6 @@ declare const UpdateDocumentCommand_base: {
|
|
|
58
58
|
* // id: "STRING_VALUE", // required
|
|
59
59
|
* // companyId: "STRING_VALUE", // required
|
|
60
60
|
* // dataSourceId: "STRING_VALUE", // required
|
|
61
|
-
* // s3OriginalKey: "STRING_VALUE",
|
|
62
|
-
* // s3MarkdownKey: "STRING_VALUE",
|
|
63
61
|
* // createdAt: "STRING_VALUE", // required
|
|
64
62
|
* // updatedAt: "STRING_VALUE", // required
|
|
65
63
|
* // status: "draft" || "pending" || "processing" || "completed" || "failed", // required
|
|
@@ -8,18 +8,22 @@ export * from "./DeleteDataSourceCommand";
|
|
|
8
8
|
export * from "./DeleteDocumentCommand";
|
|
9
9
|
export * from "./DeleteKnowledgeBaseCommand";
|
|
10
10
|
export * from "./DescribeDataSourceCommand";
|
|
11
|
+
export * from "./GenerateSearchAnswerCommand";
|
|
11
12
|
export * from "./GetDataSourceCommand";
|
|
13
|
+
export * from "./GetDataSourceSyncStatusCommand";
|
|
12
14
|
export * from "./GetDocumentCommand";
|
|
15
|
+
export * from "./GetDocumentChunksCommand";
|
|
13
16
|
export * from "./GetDocumentDownloadUrlCommand";
|
|
17
|
+
export * from "./GetDocumentMarkdownCommand";
|
|
14
18
|
export * from "./GetDocumentUploadUrlCommand";
|
|
19
|
+
export * from "./GetDocumentWithContentAndChunksCommand";
|
|
15
20
|
export * from "./GetKnowledgeBaseCommand";
|
|
16
|
-
export * from "./GetSyncLogsCommand";
|
|
17
|
-
export * from "./GetSyncStatusCommand";
|
|
18
21
|
export * from "./ListDataSourcesCommand";
|
|
22
|
+
export * from "./ListDataSourceStatisticsCommand";
|
|
23
|
+
export * from "./ListDataSourceSynchronizationLogsCommand";
|
|
19
24
|
export * from "./ListDocumentsCommand";
|
|
20
25
|
export * from "./ListKnowledgeBasesCommand";
|
|
21
|
-
export * from "./
|
|
22
|
-
export * from "./SearchHistoryCommand";
|
|
26
|
+
export * from "./ListSearchQueriesHistoryCommand";
|
|
23
27
|
export * from "./SearchKnowledgeBaseCommand";
|
|
24
28
|
export * from "./StartSyncDataSourceCommand";
|
|
25
29
|
export * from "./StopSyncDataSourceCommand";
|