@aws-sdk/client-bedrock-agent-runtime 3.1161.0 → 3.1163.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 +6 -4
- package/dist-es/runtimeConfig.js +2 -1
- package/dist-es/schemas/schemas_0.js +3 -2
- package/dist-types/commands/GetDocumentContentCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +9 -4
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, getDefaultSocketTimeout, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
3
3
|
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
|
|
4
4
|
const { Command: $Command } = require("@smithy/core/client");
|
|
@@ -70,7 +70,7 @@ const commonParams = {
|
|
|
70
70
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
var version = "3.
|
|
73
|
+
var version = "3.1162.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,
|
|
@@ -3698,6 +3699,7 @@ const getRuntimeConfig = (config) => {
|
|
|
3698
3699
|
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
3699
3700
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
3700
3701
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
3702
|
+
defaultSocketTimeout: getDefaultSocketTimeout(config?.requestHandler, 900_000),
|
|
3701
3703
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
3702
3704
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
3703
3705
|
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
|
|
2
|
+
import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, getDefaultSocketTimeout, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
|
|
3
3
|
import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
|
|
4
4
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
5
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
@@ -28,6 +28,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
28
28
|
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
29
29
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
30
30
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
31
|
+
defaultSocketTimeout: getDefaultSocketTimeout(config?.requestHandler, 900_000),
|
|
31
32
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
32
33
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
33
34
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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;
|
|
@@ -44,6 +44,7 @@ export declare const getRuntimeConfig: (config: BedrockAgentRuntimeClientConfig)
|
|
|
44
44
|
authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
|
|
45
45
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
46
46
|
credentialDefaultProvider: ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit) => import("@aws-sdk/credential-provider-node").MemoizedRuntimeConfigAwsCredentialIdentityProvider) | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider);
|
|
47
|
+
defaultSocketTimeout: number | undefined;
|
|
47
48
|
defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
48
49
|
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
|
|
49
50
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
@@ -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
|
}
|
|
@@ -78,6 +78,7 @@ export declare const getRuntimeConfig: (config: BedrockAgentRuntimeClientConfig)
|
|
|
78
78
|
init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit,
|
|
79
79
|
) => import("@aws-sdk/credential-provider-node").MemoizedRuntimeConfigAwsCredentialIdentityProvider)
|
|
80
80
|
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider);
|
|
81
|
+
defaultSocketTimeout: number | undefined;
|
|
81
82
|
defaultUserAgentProvider: (
|
|
82
83
|
config?: import("@aws-sdk/core/client").PreviouslyResolved,
|
|
83
84
|
) => Promise<import("@smithy/types").UserAgent>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-agent-runtime",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1163.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.
|
|
50
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
49
|
+
"@aws-sdk/core": "^3.980.0",
|
|
50
|
+
"@aws-sdk/credential-provider-node": "^3.972.93",
|
|
51
51
|
"@aws-sdk/types": "^3.975.0",
|
|
52
52
|
"@smithy/core": "^3.38.0",
|
|
53
53
|
"@smithy/fetch-http-handler": "^5.8.0",
|