@aws-sdk/client-bedrock-agent-runtime 3.1162.0 → 3.1164.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
@@ -70,7 +70,7 @@ const commonParams = {
70
70
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
71
71
  };
72
72
 
73
- var version = "3.1161.0";
73
+ var version = "3.1163.0";
74
74
  var packageInfo = {
75
75
  version: version};
76
76
 
@@ -1053,6 +1053,7 @@ const _mI = "memoryId";
1053
1053
  const _mII = "modelInvocationInput";
1054
1054
  const _mIO = "modelInvocationOutput";
1055
1055
  const _mIa = "maxItems";
1056
+ const _mIe = "mediaId";
1056
1057
  const _mK = "metadataKey";
1057
1058
  const _mL = "maximumLength";
1058
1059
  const _mNOR = "maxNumberOfResults";
@@ -2053,8 +2054,8 @@ var GetAgentMemoryResponse$ = [3, n0, _GAMRe,
2053
2054
  ];
2054
2055
  var GetDocumentContentRequest$ = [3, n0, _GDCR,
2055
2056
  0,
2056
- [_kBI, _dSI, _dI, _oF, _uC],
2057
- [[0, 1], [0, 1], [0, 1], 0, [() => UserContext$, 0]], 3
2057
+ [_kBI, _dSI, _dI, _mIe, _oF, _uC],
2058
+ [[0, 1], [0, 1], [0, 1], 0, 0, [() => UserContext$, 0]], 3
2058
2059
  ];
2059
2060
  var GetDocumentContentResponse$ = [3, n0, _GDCRe,
2060
2061
  0,
@@ -774,6 +774,7 @@ const _mI = "memoryId";
774
774
  const _mII = "modelInvocationInput";
775
775
  const _mIO = "modelInvocationOutput";
776
776
  const _mIa = "maxItems";
777
+ const _mIe = "mediaId";
777
778
  const _mK = "metadataKey";
778
779
  const _mL = "maximumLength";
779
780
  const _mNOR = "maxNumberOfResults";
@@ -1777,8 +1778,8 @@ export var GetAgentMemoryResponse$ = [3, n0, _GAMRe,
1777
1778
  ];
1778
1779
  export var GetDocumentContentRequest$ = [3, n0, _GDCR,
1779
1780
  0,
1780
- [_kBI, _dSI, _dI, _oF, _uC],
1781
- [[0, 1], [0, 1], [0, 1], 0, [() => UserContext$, 0]], 3
1781
+ [_kBI, _dSI, _dI, _mIe, _oF, _uC],
1782
+ [[0, 1], [0, 1], [0, 1], 0, 0, [() => UserContext$, 0]], 3
1782
1783
  ];
1783
1784
  export var GetDocumentContentResponse$ = [3, n0, _GDCRe,
1784
1785
  0,
@@ -24,7 +24,7 @@ declare const GetDocumentContentCommand_base: {
24
24
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
25
  };
26
26
  /**
27
- * <p>Retrieves the content of an ingested document from a knowledge base. Returns a pre-signed URL for secure document access.</p>
27
+ * <p>Retrieves the content of an ingested document from a knowledge base, or of an image embedded in the document. Returns a pre-signed URL for downloading the content. Use this operation to display the source of a <code>Retrieve</code> result.</p>
28
28
  * @example
29
29
  * Use a bare-bones client and the command you need to make an API call.
30
30
  * ```javascript
@@ -37,6 +37,7 @@ declare const GetDocumentContentCommand_base: {
37
37
  * knowledgeBaseId: "STRING_VALUE", // required
38
38
  * dataSourceId: "STRING_VALUE", // required
39
39
  * documentId: "STRING_VALUE", // required
40
+ * mediaId: "STRING_VALUE",
40
41
  * outputFormat: "RAW" || "EXTRACTED",
41
42
  * userContext: { // UserContext
42
43
  * userId: "STRING_VALUE", // required
@@ -5815,7 +5815,12 @@ export interface GetDocumentContentRequest {
5815
5815
  */
5816
5816
  documentId: string | undefined;
5817
5817
  /**
5818
- * <p>The output format for the document content. <code>RAW</code> returns the original file. <code>EXTRACTED</code> returns parsed text as JSON. Defaults to <code>RAW</code>.</p>
5818
+ * <p>The unique identifier (in UUID format) of an image embedded in the specified document. Set this parameter to the <code>_media_id</code> value in the metadata of the corresponding <code>Retrieve</code> result. If you specify this parameter, the response contains a pre-signed URL for the image instead of the document, and you must omit <code>outputFormat</code> or set it to <code>RAW</code>.</p>
5819
+ * @public
5820
+ */
5821
+ mediaId?: string | undefined;
5822
+ /**
5823
+ * <p>The output format for the content. You can specify one of the following values:</p> <dl> <dt>RAW</dt> <dd> <p>Returns the original document, or the selected image if you specify <code>mediaId</code>.</p> </dd> <dt>EXTRACTED</dt> <dd> <p>Returns parsed document text as JSON.</p> </dd> </dl> <p>If you omit this parameter, the default is <code>RAW</code>. You can't use <code>EXTRACTED</code> with <code>mediaId</code>.</p>
5819
5824
  * @public
5820
5825
  */
5821
5826
  outputFormat?: DocumentOutputFormat | undefined;
@@ -5830,17 +5835,17 @@ export interface GetDocumentContentRequest {
5830
5835
  */
5831
5836
  export interface GetDocumentContentResponse {
5832
5837
  /**
5833
- * <p>The MIME type of the document content. For <code>RAW</code> format, this is the original file type (for example, <code>application/pdf</code>). For <code>EXTRACTED</code> format, this is always <code>application/json</code>.</p>
5838
+ * <p>The MIME type of the returned content. For <code>RAW</code> format, this is the original file type (for example, <code>application/pdf</code>), or the image type (for example, <code>image/png</code>) if you specify <code>mediaId</code>. For <code>EXTRACTED</code> format, this is always <code>application/json</code>.</p>
5834
5839
  * @public
5835
5840
  */
5836
5841
  mimeType: string | undefined;
5837
5842
  /**
5838
- * <p>A pre-signed URL for downloading the document content. The URL expires after 5 minutes.</p>
5843
+ * <p>A pre-signed URL for downloading the document content, or the selected image if you specify <code>mediaId</code>. The URL expires after 5 minutes.</p>
5839
5844
  * @public
5840
5845
  */
5841
5846
  presignedUrl: string | undefined;
5842
5847
  /**
5843
- * <p>The size of the document content in bytes available at the pre-signed URL.</p>
5848
+ * <p>The size, in bytes, of the content available at the pre-signed URL.</p>
5844
5849
  * @public
5845
5850
  */
5846
5851
  documentContentLength?: number | undefined;
@@ -2372,6 +2372,7 @@ export interface GetDocumentContentRequest {
2372
2372
  knowledgeBaseId: string | undefined;
2373
2373
  dataSourceId: string | undefined;
2374
2374
  documentId: string | undefined;
2375
+ mediaId?: string | undefined;
2375
2376
  outputFormat?: DocumentOutputFormat | undefined;
2376
2377
  userContext?: UserContext | undefined;
2377
2378
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agent-runtime",
3
- "version": "3.1162.0",
3
+ "version": "3.1164.0",
4
4
  "description": "AWS SDK for JavaScript Bedrock Agent Runtime Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock-agent-runtime",
6
6
  "license": "Apache-2.0",
@@ -46,8 +46,8 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.980.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.93",
49
+ "@aws-sdk/core": "^3.980.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.94",
51
51
  "@aws-sdk/types": "^3.975.0",
52
52
  "@smithy/core": "^3.38.0",
53
53
  "@smithy/fetch-http-handler": "^5.8.0",