@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
@@ -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
- * 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
- * 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" || "proxy", // required
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" || "unknown", // required
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" || "proxy", // required
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 "./QueryKnowledgeBaseCommand";
22
- export * from "./SearchHistoryCommand";
26
+ export * from "./ListSearchQueriesHistoryCommand";
23
27
  export * from "./SearchKnowledgeBaseCommand";
24
28
  export * from "./StartSyncDataSourceCommand";
25
29
  export * from "./StopSyncDataSourceCommand";