@wildix/wim-knowledge-base-client 0.0.64 → 0.0.66

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.
@@ -817,10 +817,10 @@ const de_GetDataSourceSyncStatusCommand = async (output, context) => {
817
817
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
818
818
  const doc = (0, smithy_client_1.take)(data, {
819
819
  'documentsStats': smithy_client_1._json,
820
- 'lastSyncErrorMessage': smithy_client_1.expectString,
821
- 'lastSyncMode': smithy_client_1.expectString,
822
- 'lastSyncedAt': smithy_client_1.expectString,
823
- 'syncStatus': smithy_client_1.expectString,
820
+ 'error': smithy_client_1.expectString,
821
+ 'mode': smithy_client_1.expectString,
822
+ 'status': smithy_client_1.expectString,
823
+ 'syncedAt': smithy_client_1.expectString,
824
824
  });
825
825
  Object.assign(contents, doc);
826
826
  return contents;
@@ -1265,6 +1265,7 @@ const se_SearchKnowledgeBaseResultItem = (input, context) => {
1265
1265
  'documentTitle': [],
1266
1266
  'documentUrl': [],
1267
1267
  'fullTextScore': smithy_client_1.serializeFloat,
1268
+ 'metadata': _ => se_Document(_, context),
1268
1269
  'score': smithy_client_1.serializeFloat,
1269
1270
  'semanticScore': smithy_client_1.serializeFloat,
1270
1271
  });
@@ -1383,6 +1384,7 @@ const de_SearchKnowledgeBaseResultItem = (output, context) => {
1383
1384
  'documentTitle': smithy_client_1.expectString,
1384
1385
  'documentUrl': smithy_client_1.expectString,
1385
1386
  'fullTextScore': smithy_client_1.limitedParseDouble,
1387
+ 'metadata': (_) => de_Document(_, context),
1386
1388
  'score': smithy_client_1.limitedParseDouble,
1387
1389
  'semanticScore': smithy_client_1.limitedParseDouble,
1388
1390
  });
@@ -768,10 +768,10 @@ export const de_GetDataSourceSyncStatusCommand = async (output, context) => {
768
768
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
769
769
  const doc = take(data, {
770
770
  'documentsStats': _json,
771
- 'lastSyncErrorMessage': __expectString,
772
- 'lastSyncMode': __expectString,
773
- 'lastSyncedAt': __expectString,
774
- 'syncStatus': __expectString,
771
+ 'error': __expectString,
772
+ 'mode': __expectString,
773
+ 'status': __expectString,
774
+ 'syncedAt': __expectString,
775
775
  });
776
776
  Object.assign(contents, doc);
777
777
  return contents;
@@ -1195,6 +1195,7 @@ const se_SearchKnowledgeBaseResultItem = (input, context) => {
1195
1195
  'documentTitle': [],
1196
1196
  'documentUrl': [],
1197
1197
  'fullTextScore': __serializeFloat,
1198
+ 'metadata': _ => se_Document(_, context),
1198
1199
  'score': __serializeFloat,
1199
1200
  'semanticScore': __serializeFloat,
1200
1201
  });
@@ -1313,6 +1314,7 @@ const de_SearchKnowledgeBaseResultItem = (output, context) => {
1313
1314
  'documentTitle': __expectString,
1314
1315
  'documentUrl': __expectString,
1315
1316
  'fullTextScore': __limitedParseDouble,
1317
+ 'metadata': (_) => de_Document(_, context),
1316
1318
  'score': __limitedParseDouble,
1317
1319
  'semanticScore': __limitedParseDouble,
1318
1320
  });
@@ -52,6 +52,7 @@ declare const GenerateSearchAnswerCommand_base: {
52
52
  * "STRING_VALUE",
53
53
  * ],
54
54
  * content: "STRING_VALUE", // required
55
+ * metadata: "DOCUMENT_VALUE",
55
56
  * },
56
57
  * ],
57
58
  * model: "STRING_VALUE",
@@ -84,6 +85,7 @@ declare const GenerateSearchAnswerCommand_base: {
84
85
  * // "STRING_VALUE",
85
86
  * // ],
86
87
  * // content: "STRING_VALUE", // required
88
+ * // metadata: "DOCUMENT_VALUE",
87
89
  * // },
88
90
  * // ],
89
91
  * // };
@@ -41,10 +41,10 @@ declare const GetDataSourceSyncStatusCommand_base: {
41
41
  * const command = new GetDataSourceSyncStatusCommand(input);
42
42
  * const response = await client.send(command);
43
43
  * // { // GetDataSourceSyncStatusOutput
44
- * // syncStatus: "idle" || "running" || "success" || "failed", // required
45
- * // lastSyncedAt: "STRING_VALUE",
46
- * // lastSyncMode: "full" || "incremental",
47
- * // lastSyncErrorMessage: "STRING_VALUE",
44
+ * // status: "idle" || "running" || "success" || "failed", // required
45
+ * // syncedAt: "STRING_VALUE",
46
+ * // mode: "full" || "incremental",
47
+ * // error: "STRING_VALUE",
48
48
  * // documentsStats: { // SyncStatusStats
49
49
  * // "<keys>": Number("int"),
50
50
  * // },
@@ -63,6 +63,7 @@ declare const SearchKnowledgeBaseCommand_base: {
63
63
  * // "STRING_VALUE",
64
64
  * // ],
65
65
  * // content: "STRING_VALUE", // required
66
+ * // metadata: "DOCUMENT_VALUE",
66
67
  * // },
67
68
  * // ],
68
69
  * // metadata: { // SearchResultMetadata
@@ -1009,6 +1009,11 @@ export interface SearchKnowledgeBaseResultItem {
1009
1009
  */
1010
1010
  documentHierarchy?: (string)[] | undefined;
1011
1011
  content: string;
1012
+ /**
1013
+ * The metadata of the document.
1014
+ * @public
1015
+ */
1016
+ metadata?: __DocumentType | undefined;
1012
1017
  }
1013
1018
  /**
1014
1019
  * @public
@@ -1030,7 +1035,7 @@ export interface GenerateSearchAnswerInput {
1030
1035
  */
1031
1036
  searchResults: (SearchKnowledgeBaseResultItem)[];
1032
1037
  /**
1033
- * The specific provider and model identifier. Examples: 'openai/gpt-4o' or 'openai/gpt-4o-mini' for OpenAI, 'mistral/mistral-small-2506' for Mistral. Check provider documentation for available models
1038
+ * The specific provider and model identifier. Examples: 'openai://gpt-4o' or 'openai://gpt-4o-mini' for OpenAI, 'mistral://mistral-small-2506' for Mistral. Check provider documentation for available models
1034
1039
  * @public
1035
1040
  */
1036
1041
  model?: string | undefined;
@@ -1124,10 +1129,30 @@ export type SyncDataSourceStatus = typeof SyncDataSourceStatus[keyof typeof Sync
1124
1129
  * @public
1125
1130
  */
1126
1131
  export interface GetDataSourceSyncStatusOutput {
1127
- syncStatus: SyncDataSourceStatus;
1128
- lastSyncedAt?: string | undefined;
1129
- lastSyncMode?: SyncDataSourceMode | undefined;
1130
- lastSyncErrorMessage?: string | undefined;
1132
+ /**
1133
+ * The current status of the data source synchronization.
1134
+ * @public
1135
+ */
1136
+ status: SyncDataSourceStatus;
1137
+ /**
1138
+ * Timestamp when the data source was last synced (ISO 8601 format). Example: 2021-01-01T00:00:00Z
1139
+ * @public
1140
+ */
1141
+ syncedAt?: string | undefined;
1142
+ /**
1143
+ * The synchronization mode used for the last sync.
1144
+ * @public
1145
+ */
1146
+ mode?: SyncDataSourceMode | undefined;
1147
+ /**
1148
+ * The error message from the last sync, if any.
1149
+ * @public
1150
+ */
1151
+ error?: string | undefined;
1152
+ /**
1153
+ * The statistics of the documents in the data source.
1154
+ * @public
1155
+ */
1131
1156
  documentsStats?: Partial<Record<DocumentStatus, number>> | undefined;
1132
1157
  }
1133
1158
  /**
@@ -16,8 +16,13 @@ export declare const getRuntimeConfig: (config: KnowledgeBaseClientConfig) => {
16
16
  env?: "stage" | "stable" | "prod" | undefined;
17
17
  token: import("@wildix/smithy-utils").TokenProvider;
18
18
  endpoint?: (() => Record<string, string>) | undefined;
19
- apiVersion: string;
20
19
  cacheMiddleware?: boolean | undefined;
20
+ protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
21
+ protocolSettings?: {
22
+ [setting: string]: unknown;
23
+ defaultNamespace?: string | undefined;
24
+ } | undefined;
25
+ apiVersion: string;
21
26
  urlParser: import("@smithy/types").UrlParser;
22
27
  base64Decoder: import("@smithy/types").Decoder;
23
28
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -17,8 +17,13 @@ export declare const getRuntimeConfig: (config: KnowledgeBaseClientConfig) => {
17
17
  env?: "stage" | "stable" | "prod" | undefined;
18
18
  token: import("@wildix/smithy-utils").TokenProvider;
19
19
  endpoint?: (() => Record<string, string>) | undefined;
20
- apiVersion: string;
21
20
  cacheMiddleware?: boolean | undefined;
21
+ protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
22
+ protocolSettings?: {
23
+ [setting: string]: unknown;
24
+ defaultNamespace?: string | undefined;
25
+ } | undefined;
26
+ apiVersion: string;
22
27
  urlParser: import("@smithy/types").UrlParser;
23
28
  base64Decoder: import("@smithy/types").Decoder;
24
29
  base64Encoder: (_input: string | Uint8Array) => string;
@@ -9,8 +9,13 @@ export declare const getRuntimeConfig: (config: KnowledgeBaseClientConfig) => {
9
9
  token: import("@wildix/smithy-utils").TokenProvider;
10
10
  endpoint?: (() => Record<string, string>) | undefined;
11
11
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
12
- apiVersion: string;
13
12
  cacheMiddleware?: boolean | undefined;
13
+ protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
14
+ protocolSettings?: {
15
+ [setting: string]: unknown;
16
+ defaultNamespace?: string | undefined;
17
+ } | undefined;
18
+ apiVersion: string;
14
19
  urlParser: import("@smithy/types").UrlParser;
15
20
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
16
21
  streamCollector: import("@smithy/types").StreamCollector;
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.64",
4
+ "version": "0.0.66",
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",