@aws-sdk/client-bedrock-agent 3.750.0 → 3.754.0

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/index.js CHANGED
@@ -1261,7 +1261,8 @@ var WebCrawlerConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) =>
1261
1261
  ...obj,
1262
1262
  ...obj.inclusionFilters && { inclusionFilters: import_smithy_client.SENSITIVE_STRING },
1263
1263
  ...obj.exclusionFilters && { exclusionFilters: import_smithy_client.SENSITIVE_STRING },
1264
- ...obj.userAgent && { userAgent: import_smithy_client.SENSITIVE_STRING }
1264
+ ...obj.userAgent && { userAgent: import_smithy_client.SENSITIVE_STRING },
1265
+ ...obj.userAgentHeader && { userAgentHeader: import_smithy_client.SENSITIVE_STRING }
1265
1266
  }), "WebCrawlerConfigurationFilterSensitiveLog");
1266
1267
  var WebDataSourceConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1267
1268
  ...obj,
@@ -3975,7 +3976,7 @@ var se_FlowNodeConfiguration = /* @__PURE__ */ __name((input, context) => {
3975
3976
  prompt: (value) => ({ prompt: se_PromptFlowNodeConfiguration(value, context) }),
3976
3977
  retrieval: (value) => ({ retrieval: (0, import_smithy_client._json)(value) }),
3977
3978
  storage: (value) => ({ storage: (0, import_smithy_client._json)(value) }),
3978
- _: (name, value) => ({ name: value })
3979
+ _: (name, value) => ({ [name]: value })
3979
3980
  });
3980
3981
  }, "se_FlowNodeConfiguration");
3981
3982
  var se_FlowNodes = /* @__PURE__ */ __name((input, context) => {
@@ -4066,13 +4067,13 @@ var se_PromptFlowNodeSourceConfiguration = /* @__PURE__ */ __name((input, contex
4066
4067
  return PromptFlowNodeSourceConfiguration.visit(input, {
4067
4068
  inline: (value) => ({ inline: se_PromptFlowNodeInlineConfiguration(value, context) }),
4068
4069
  resource: (value) => ({ resource: (0, import_smithy_client._json)(value) }),
4069
- _: (name, value) => ({ name: value })
4070
+ _: (name, value) => ({ [name]: value })
4070
4071
  });
4071
4072
  }, "se_PromptFlowNodeSourceConfiguration");
4072
4073
  var se_PromptInferenceConfiguration = /* @__PURE__ */ __name((input, context) => {
4073
4074
  return PromptInferenceConfiguration.visit(input, {
4074
4075
  text: (value) => ({ text: se_PromptModelInferenceConfiguration(value, context) }),
4075
- _: (name, value) => ({ name: value })
4076
+ _: (name, value) => ({ [name]: value })
4076
4077
  });
4077
4078
  }, "se_PromptInferenceConfiguration");
4078
4079
  var se_PromptModelInferenceConfiguration = /* @__PURE__ */ __name((input, context) => {
@@ -4093,7 +4094,7 @@ var se_PromptTemplateConfiguration = /* @__PURE__ */ __name((input, context) =>
4093
4094
  return PromptTemplateConfiguration.visit(input, {
4094
4095
  chat: (value) => ({ chat: se_ChatPromptTemplateConfiguration(value, context) }),
4095
4096
  text: (value) => ({ text: (0, import_smithy_client._json)(value) }),
4096
- _: (name, value) => ({ name: value })
4097
+ _: (name, value) => ({ [name]: value })
4097
4098
  });
4098
4099
  }, "se_PromptTemplateConfiguration");
4099
4100
  var se_PromptVariant = /* @__PURE__ */ __name((input, context) => {
@@ -4117,7 +4118,7 @@ var se_Tool = /* @__PURE__ */ __name((input, context) => {
4117
4118
  return Tool.visit(input, {
4118
4119
  cachePoint: (value) => ({ cachePoint: (0, import_smithy_client._json)(value) }),
4119
4120
  toolSpec: (value) => ({ toolSpec: se_ToolSpecification(value, context) }),
4120
- _: (name, value) => ({ name: value })
4121
+ _: (name, value) => ({ [name]: value })
4121
4122
  });
4122
4123
  }, "se_Tool");
4123
4124
  var se_ToolConfiguration = /* @__PURE__ */ __name((input, context) => {
@@ -4129,7 +4130,7 @@ var se_ToolConfiguration = /* @__PURE__ */ __name((input, context) => {
4129
4130
  var se_ToolInputSchema = /* @__PURE__ */ __name((input, context) => {
4130
4131
  return ToolInputSchema.visit(input, {
4131
4132
  json: (value) => ({ json: se_Document(value, context) }),
4132
- _: (name, value) => ({ name: value })
4133
+ _: (name, value) => ({ [name]: value })
4133
4134
  });
4134
4135
  }, "se_ToolInputSchema");
4135
4136
  var se_Tools = /* @__PURE__ */ __name((input, context) => {
@@ -742,6 +742,7 @@ export const WebCrawlerConfigurationFilterSensitiveLog = (obj) => ({
742
742
  ...(obj.inclusionFilters && { inclusionFilters: SENSITIVE_STRING }),
743
743
  ...(obj.exclusionFilters && { exclusionFilters: SENSITIVE_STRING }),
744
744
  ...(obj.userAgent && { userAgent: SENSITIVE_STRING }),
745
+ ...(obj.userAgentHeader && { userAgentHeader: SENSITIVE_STRING }),
745
746
  });
746
747
  export const WebDataSourceConfigurationFilterSensitiveLog = (obj) => ({
747
748
  ...obj,
@@ -2359,7 +2359,7 @@ const se_FlowNodeConfiguration = (input, context) => {
2359
2359
  prompt: (value) => ({ prompt: se_PromptFlowNodeConfiguration(value, context) }),
2360
2360
  retrieval: (value) => ({ retrieval: _json(value) }),
2361
2361
  storage: (value) => ({ storage: _json(value) }),
2362
- _: (name, value) => ({ name: value }),
2362
+ _: (name, value) => ({ [name]: value }),
2363
2363
  });
2364
2364
  };
2365
2365
  const se_FlowNodes = (input, context) => {
@@ -2458,13 +2458,13 @@ const se_PromptFlowNodeSourceConfiguration = (input, context) => {
2458
2458
  return PromptFlowNodeSourceConfiguration.visit(input, {
2459
2459
  inline: (value) => ({ inline: se_PromptFlowNodeInlineConfiguration(value, context) }),
2460
2460
  resource: (value) => ({ resource: _json(value) }),
2461
- _: (name, value) => ({ name: value }),
2461
+ _: (name, value) => ({ [name]: value }),
2462
2462
  });
2463
2463
  };
2464
2464
  const se_PromptInferenceConfiguration = (input, context) => {
2465
2465
  return PromptInferenceConfiguration.visit(input, {
2466
2466
  text: (value) => ({ text: se_PromptModelInferenceConfiguration(value, context) }),
2467
- _: (name, value) => ({ name: value }),
2467
+ _: (name, value) => ({ [name]: value }),
2468
2468
  });
2469
2469
  };
2470
2470
  const se_PromptModelInferenceConfiguration = (input, context) => {
@@ -2485,7 +2485,7 @@ const se_PromptTemplateConfiguration = (input, context) => {
2485
2485
  return PromptTemplateConfiguration.visit(input, {
2486
2486
  chat: (value) => ({ chat: se_ChatPromptTemplateConfiguration(value, context) }),
2487
2487
  text: (value) => ({ text: _json(value) }),
2488
- _: (name, value) => ({ name: value }),
2488
+ _: (name, value) => ({ [name]: value }),
2489
2489
  });
2490
2490
  };
2491
2491
  const se_PromptVariant = (input, context) => {
@@ -2511,7 +2511,7 @@ const se_Tool = (input, context) => {
2511
2511
  return Tool.visit(input, {
2512
2512
  cachePoint: (value) => ({ cachePoint: _json(value) }),
2513
2513
  toolSpec: (value) => ({ toolSpec: se_ToolSpecification(value, context) }),
2514
- _: (name, value) => ({ name: value }),
2514
+ _: (name, value) => ({ [name]: value }),
2515
2515
  });
2516
2516
  };
2517
2517
  const se_ToolConfiguration = (input, context) => {
@@ -2523,7 +2523,7 @@ const se_ToolConfiguration = (input, context) => {
2523
2523
  const se_ToolInputSchema = (input, context) => {
2524
2524
  return ToolInputSchema.visit(input, {
2525
2525
  json: (value) => ({ json: se_Document(value, context) }),
2526
- _: (name, value) => ({ name: value }),
2526
+ _: (name, value) => ({ [name]: value }),
2527
2527
  });
2528
2528
  };
2529
2529
  const se_Tools = (input, context) => {
@@ -74,6 +74,7 @@ declare const CreateDataSourceCommand_base: {
74
74
  * ],
75
75
  * scope: "HOST_ONLY" || "SUBDOMAINS",
76
76
  * userAgent: "STRING_VALUE",
77
+ * userAgentHeader: "STRING_VALUE",
77
78
  * },
78
79
  * },
79
80
  * confluenceConfiguration: { // ConfluenceDataSourceConfiguration
@@ -250,6 +251,7 @@ declare const CreateDataSourceCommand_base: {
250
251
  * // ],
251
252
  * // scope: "HOST_ONLY" || "SUBDOMAINS",
252
253
  * // userAgent: "STRING_VALUE",
254
+ * // userAgentHeader: "STRING_VALUE",
253
255
  * // },
254
256
  * // },
255
257
  * // confluenceConfiguration: { // ConfluenceDataSourceConfiguration
@@ -79,6 +79,7 @@ declare const GetDataSourceCommand_base: {
79
79
  * // ],
80
80
  * // scope: "HOST_ONLY" || "SUBDOMAINS",
81
81
  * // userAgent: "STRING_VALUE",
82
+ * // userAgentHeader: "STRING_VALUE",
82
83
  * // },
83
84
  * // },
84
85
  * // confluenceConfiguration: { // ConfluenceDataSourceConfiguration
@@ -74,6 +74,7 @@ declare const UpdateDataSourceCommand_base: {
74
74
  * ],
75
75
  * scope: "HOST_ONLY" || "SUBDOMAINS",
76
76
  * userAgent: "STRING_VALUE",
77
+ * userAgentHeader: "STRING_VALUE",
77
78
  * },
78
79
  * },
79
80
  * confluenceConfiguration: { // ConfluenceDataSourceConfiguration
@@ -250,6 +251,7 @@ declare const UpdateDataSourceCommand_base: {
250
251
  * // ],
251
252
  * // scope: "HOST_ONLY" || "SUBDOMAINS",
252
253
  * // userAgent: "STRING_VALUE",
254
+ * // userAgentHeader: "STRING_VALUE",
253
255
  * // },
254
256
  * // },
255
257
  * // confluenceConfiguration: { // ConfluenceDataSourceConfiguration
@@ -2968,13 +2968,18 @@ export interface WebCrawlerConfiguration {
2968
2968
  */
2969
2969
  scope?: WebScopeType | undefined;
2970
2970
  /**
2971
- * <p>A string used for identifying the crawler or a bot when it accesses a web server. By default,
2972
- * this is set to <code>bedrockbot_UUID</code> for your crawler. You can optionally append a custom
2973
- * string to <code>bedrockbot_UUID</code> to allowlist a specific user agent permitted to access your source URLs.
2974
- * </p>
2971
+ * <p>Returns the user agent suffix for your web crawler.</p>
2975
2972
  * @public
2976
2973
  */
2977
2974
  userAgent?: string | undefined;
2975
+ /**
2976
+ * <p>A string used for identifying the crawler or bot when it accesses a web server. The user agent header value
2977
+ * consists of the <code>bedrockbot</code>, UUID, and a user agent suffix for your crawler (if one is provided).
2978
+ * By default, it is set to <code>bedrockbot_UUID</code>. You can optionally append a custom
2979
+ * suffix to <code>bedrockbot_UUID</code> to allowlist a specific user agent permitted to access your source URLs. </p>
2980
+ * @public
2981
+ */
2982
+ userAgentHeader?: string | undefined;
2978
2983
  }
2979
2984
  /**
2980
2985
  * <p>The seed or starting point URL.
@@ -3364,12 +3369,12 @@ export interface ParsingPrompt {
3364
3369
  parsingPromptText: string | undefined;
3365
3370
  }
3366
3371
  /**
3367
- * <p>Settings for a foundation model or <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html">inference profile</a> used to parse documents for a data source.</p>
3372
+ * <p>Settings for a foundation model used to parse documents for a data source.</p>
3368
3373
  * @public
3369
3374
  */
3370
3375
  export interface BedrockFoundationModelConfiguration {
3371
3376
  /**
3372
- * <p>The ARN of the foundation model or <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html">inference profile</a> to use for parsing.</p>
3377
+ * <p>The ARN of the foundation model to use for parsing.</p>
3373
3378
  * @public
3374
3379
  */
3375
3380
  modelArn: string | undefined;
@@ -922,7 +922,7 @@ export interface SupplementalDataStorageConfiguration {
922
922
  */
923
923
  export interface VectorKnowledgeBaseConfiguration {
924
924
  /**
925
- * <p>The Amazon Resource Name (ARN) of the model or inference profile used to create vector embeddings for the knowledge base.</p>
925
+ * <p>The Amazon Resource Name (ARN) of the model used to create vector embeddings for the knowledge base.</p>
926
926
  * @public
927
927
  */
928
928
  embeddingModelArn: string | undefined;
@@ -795,6 +795,7 @@ export interface WebCrawlerConfiguration {
795
795
  exclusionFilters?: string[] | undefined;
796
796
  scope?: WebScopeType | undefined;
797
797
  userAgent?: string | undefined;
798
+ userAgentHeader?: string | undefined;
798
799
  }
799
800
  export interface SeedUrl {
800
801
  url?: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agent",
3
3
  "description": "AWS SDK for JavaScript Bedrock Agent Client for Node.js, Browser and React Native",
4
- "version": "3.750.0",
4
+ "version": "3.754.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock-agent",