@wildix/wim-knowledge-base-client 0.0.65 → 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.
@@ -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
  });
@@ -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
  * // };
@@ -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;
@@ -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.65",
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",