@aws-sdk/client-bedrock-runtime 3.828.0 → 3.835.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 +3 -3
- package/dist-es/protocols/Aws_restJson1.js +3 -3
- package/dist-types/endpoint/EndpointParameters.d.ts +8 -8
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +11 -8
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
- package/package.json +11 -11
package/dist-cjs/index.js
CHANGED
|
@@ -1783,7 +1783,7 @@ var de_ConverseStreamOutput = /* @__PURE__ */ __name((output, context) => {
|
|
|
1783
1783
|
)
|
|
1784
1784
|
};
|
|
1785
1785
|
}
|
|
1786
|
-
return { $unknown:
|
|
1786
|
+
return { $unknown: event };
|
|
1787
1787
|
});
|
|
1788
1788
|
}, "de_ConverseStreamOutput");
|
|
1789
1789
|
var de_InvokeModelWithBidirectionalStreamOutput = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -1829,7 +1829,7 @@ var de_InvokeModelWithBidirectionalStreamOutput = /* @__PURE__ */ __name((output
|
|
|
1829
1829
|
)
|
|
1830
1830
|
};
|
|
1831
1831
|
}
|
|
1832
|
-
return { $unknown:
|
|
1832
|
+
return { $unknown: event };
|
|
1833
1833
|
});
|
|
1834
1834
|
}, "de_InvokeModelWithBidirectionalStreamOutput");
|
|
1835
1835
|
var de_ResponseStream = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -1875,7 +1875,7 @@ var de_ResponseStream = /* @__PURE__ */ __name((output, context) => {
|
|
|
1875
1875
|
)
|
|
1876
1876
|
};
|
|
1877
1877
|
}
|
|
1878
|
-
return { $unknown:
|
|
1878
|
+
return { $unknown: event };
|
|
1879
1879
|
});
|
|
1880
1880
|
}, "de_ResponseStream");
|
|
1881
1881
|
var de_BidirectionalOutputPayloadPart_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
@@ -588,7 +588,7 @@ const de_ConverseStreamOutput = (output, context) => {
|
|
|
588
588
|
serviceUnavailableException: await de_ServiceUnavailableException_event(event["serviceUnavailableException"], context),
|
|
589
589
|
};
|
|
590
590
|
}
|
|
591
|
-
return { $unknown:
|
|
591
|
+
return { $unknown: event };
|
|
592
592
|
});
|
|
593
593
|
};
|
|
594
594
|
const de_InvokeModelWithBidirectionalStreamOutput = (output, context) => {
|
|
@@ -628,7 +628,7 @@ const de_InvokeModelWithBidirectionalStreamOutput = (output, context) => {
|
|
|
628
628
|
serviceUnavailableException: await de_ServiceUnavailableException_event(event["serviceUnavailableException"], context),
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
|
-
return { $unknown:
|
|
631
|
+
return { $unknown: event };
|
|
632
632
|
});
|
|
633
633
|
};
|
|
634
634
|
const de_ResponseStream = (output, context) => {
|
|
@@ -668,7 +668,7 @@ const de_ResponseStream = (output, context) => {
|
|
|
668
668
|
serviceUnavailableException: await de_ServiceUnavailableException_event(event["serviceUnavailableException"], context),
|
|
669
669
|
};
|
|
670
670
|
}
|
|
671
|
-
return { $unknown:
|
|
671
|
+
return { $unknown: event };
|
|
672
672
|
});
|
|
673
673
|
};
|
|
674
674
|
const de_BidirectionalOutputPayloadPart_event = async (output, context) => {
|
|
@@ -3,12 +3,12 @@ import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provi
|
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
export interface ClientInputEndpointParameters {
|
|
6
|
-
region?: string | Provider<string>;
|
|
7
|
-
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
8
|
-
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
6
|
+
region?: string | undefined | Provider<string | undefined>;
|
|
7
|
+
useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
8
|
+
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
9
9
|
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
10
10
|
}
|
|
11
|
-
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
11
|
+
export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
|
|
@@ -31,8 +31,8 @@ export declare const commonParams: {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
export interface EndpointParameters extends __EndpointParameters {
|
|
34
|
-
Region?: string;
|
|
35
|
-
UseDualStack?: boolean;
|
|
36
|
-
UseFIPS?: boolean;
|
|
37
|
-
Endpoint?: string;
|
|
34
|
+
Region?: string | undefined;
|
|
35
|
+
UseDualStack?: boolean | undefined;
|
|
36
|
+
UseFIPS?: boolean | undefined;
|
|
37
|
+
Endpoint?: string | undefined;
|
|
38
38
|
}
|
|
@@ -17,8 +17,8 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
17
17
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
18
18
|
sha256: import("@smithy/types").HashConstructor;
|
|
19
19
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
20
|
-
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean
|
|
21
|
-
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean
|
|
20
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
21
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
22
22
|
apiVersion: string;
|
|
23
23
|
cacheMiddleware?: boolean | undefined;
|
|
24
24
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -18,8 +18,8 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
18
18
|
utf8Encoder: (input: Uint8Array | string) => string;
|
|
19
19
|
disableHostPrefix: boolean;
|
|
20
20
|
serviceId: string;
|
|
21
|
-
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean
|
|
22
|
-
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean
|
|
21
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
22
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
23
23
|
region: string | import("@smithy/types").Provider<any>;
|
|
24
24
|
profile?: string;
|
|
25
25
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
Provider,
|
|
6
6
|
} from "@smithy/types";
|
|
7
7
|
export interface ClientInputEndpointParameters {
|
|
8
|
-
region?: string | Provider<string>;
|
|
9
|
-
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
10
|
-
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
8
|
+
region?: string | undefined | Provider<string | undefined>;
|
|
9
|
+
useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
10
|
+
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
11
11
|
endpoint?:
|
|
12
12
|
| string
|
|
13
13
|
| Provider<string>
|
|
@@ -16,7 +16,10 @@ export interface ClientInputEndpointParameters {
|
|
|
16
16
|
| EndpointV2
|
|
17
17
|
| Provider<EndpointV2>;
|
|
18
18
|
}
|
|
19
|
-
export type ClientResolvedEndpointParameters =
|
|
19
|
+
export type ClientResolvedEndpointParameters = Pick<
|
|
20
|
+
ClientInputEndpointParameters,
|
|
21
|
+
Exclude<keyof ClientInputEndpointParameters, "endpoint">
|
|
22
|
+
> & {
|
|
20
23
|
defaultSigningName: string;
|
|
21
24
|
};
|
|
22
25
|
export declare const resolveClientEndpointParameters: <T>(
|
|
@@ -41,8 +44,8 @@ export declare const commonParams: {
|
|
|
41
44
|
};
|
|
42
45
|
};
|
|
43
46
|
export interface EndpointParameters extends __EndpointParameters {
|
|
44
|
-
Region?: string;
|
|
45
|
-
UseDualStack?: boolean;
|
|
46
|
-
UseFIPS?: boolean;
|
|
47
|
-
Endpoint?: string;
|
|
47
|
+
Region?: string | undefined;
|
|
48
|
+
UseDualStack?: boolean | undefined;
|
|
49
|
+
UseFIPS?: boolean | undefined;
|
|
50
|
+
Endpoint?: string | undefined;
|
|
48
51
|
}
|
|
@@ -24,8 +24,10 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
24
24
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
25
25
|
sha256: import("@smithy/types").HashConstructor;
|
|
26
26
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
27
|
-
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean
|
|
28
|
-
|
|
27
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
28
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
29
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
30
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
29
31
|
apiVersion: string;
|
|
30
32
|
cacheMiddleware?: boolean | undefined;
|
|
31
33
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -20,8 +20,10 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
20
20
|
utf8Encoder: (input: Uint8Array | string) => string;
|
|
21
21
|
disableHostPrefix: boolean;
|
|
22
22
|
serviceId: string;
|
|
23
|
-
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean
|
|
24
|
-
|
|
23
|
+
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
24
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
25
|
+
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
26
|
+
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
25
27
|
region: string | import("@smithy/types").Provider<any>;
|
|
26
28
|
profile?: string;
|
|
27
29
|
defaultUserAgentProvider: (
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.835.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-runtime",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.835.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.835.0",
|
|
25
25
|
"@aws-sdk/eventstream-handler-node": "3.821.0",
|
|
26
26
|
"@aws-sdk/middleware-eventstream": "3.821.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.821.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.821.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.821.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.835.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.821.0",
|
|
32
32
|
"@aws-sdk/types": "3.821.0",
|
|
33
33
|
"@aws-sdk/util-endpoints": "3.828.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.821.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.835.0",
|
|
36
36
|
"@smithy/config-resolver": "^4.1.4",
|
|
37
37
|
"@smithy/core": "^3.5.3",
|
|
38
38
|
"@smithy/eventstream-serde-browser": "^4.0.4",
|
|
@@ -42,24 +42,24 @@
|
|
|
42
42
|
"@smithy/hash-node": "^4.0.4",
|
|
43
43
|
"@smithy/invalid-dependency": "^4.0.4",
|
|
44
44
|
"@smithy/middleware-content-length": "^4.0.4",
|
|
45
|
-
"@smithy/middleware-endpoint": "^4.1.
|
|
46
|
-
"@smithy/middleware-retry": "^4.1.
|
|
45
|
+
"@smithy/middleware-endpoint": "^4.1.12",
|
|
46
|
+
"@smithy/middleware-retry": "^4.1.13",
|
|
47
47
|
"@smithy/middleware-serde": "^4.0.8",
|
|
48
48
|
"@smithy/middleware-stack": "^4.0.4",
|
|
49
49
|
"@smithy/node-config-provider": "^4.1.3",
|
|
50
50
|
"@smithy/node-http-handler": "^4.0.6",
|
|
51
51
|
"@smithy/protocol-http": "^5.1.2",
|
|
52
|
-
"@smithy/smithy-client": "^4.4.
|
|
52
|
+
"@smithy/smithy-client": "^4.4.4",
|
|
53
53
|
"@smithy/types": "^4.3.1",
|
|
54
54
|
"@smithy/url-parser": "^4.0.4",
|
|
55
55
|
"@smithy/util-base64": "^4.0.0",
|
|
56
56
|
"@smithy/util-body-length-browser": "^4.0.0",
|
|
57
57
|
"@smithy/util-body-length-node": "^4.0.0",
|
|
58
|
-
"@smithy/util-defaults-mode-browser": "^4.0.
|
|
59
|
-
"@smithy/util-defaults-mode-node": "^4.0.
|
|
58
|
+
"@smithy/util-defaults-mode-browser": "^4.0.20",
|
|
59
|
+
"@smithy/util-defaults-mode-node": "^4.0.20",
|
|
60
60
|
"@smithy/util-endpoints": "^3.0.6",
|
|
61
61
|
"@smithy/util-middleware": "^4.0.4",
|
|
62
|
-
"@smithy/util-retry": "^4.0.
|
|
62
|
+
"@smithy/util-retry": "^4.0.6",
|
|
63
63
|
"@smithy/util-stream": "^4.2.2",
|
|
64
64
|
"@smithy/util-utf8": "^4.0.0",
|
|
65
65
|
"@types/uuid": "^9.0.1",
|