@aws-sdk/client-bedrock-runtime 3.974.0 → 3.978.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
|
@@ -1875,6 +1875,8 @@ class StartAsyncInvokeCommand extends smithyClient.Command
|
|
|
1875
1875
|
.build() {
|
|
1876
1876
|
}
|
|
1877
1877
|
|
|
1878
|
+
const paginateListAsyncInvokes = core.createPaginator(BedrockRuntimeClient, ListAsyncInvokesCommand, "nextToken", "nextToken", "maxResults");
|
|
1879
|
+
|
|
1878
1880
|
const commands = {
|
|
1879
1881
|
ApplyGuardrailCommand,
|
|
1880
1882
|
ConverseCommand,
|
|
@@ -1887,11 +1889,12 @@ const commands = {
|
|
|
1887
1889
|
ListAsyncInvokesCommand,
|
|
1888
1890
|
StartAsyncInvokeCommand,
|
|
1889
1891
|
};
|
|
1892
|
+
const paginators = {
|
|
1893
|
+
paginateListAsyncInvokes,
|
|
1894
|
+
};
|
|
1890
1895
|
class BedrockRuntime extends BedrockRuntimeClient {
|
|
1891
1896
|
}
|
|
1892
|
-
smithyClient.createAggregatedClient(commands, BedrockRuntime);
|
|
1893
|
-
|
|
1894
|
-
const paginateListAsyncInvokes = core.createPaginator(BedrockRuntimeClient, ListAsyncInvokesCommand, "nextToken", "nextToken", "maxResults");
|
|
1897
|
+
smithyClient.createAggregatedClient(commands, BedrockRuntime, { paginators });
|
|
1895
1898
|
|
|
1896
1899
|
const AsyncInvokeStatus = {
|
|
1897
1900
|
COMPLETED: "Completed",
|
|
@@ -10,6 +10,7 @@ import { InvokeModelWithBidirectionalStreamCommand, } from "./commands/InvokeMod
|
|
|
10
10
|
import { InvokeModelWithResponseStreamCommand, } from "./commands/InvokeModelWithResponseStreamCommand";
|
|
11
11
|
import { ListAsyncInvokesCommand, } from "./commands/ListAsyncInvokesCommand";
|
|
12
12
|
import { StartAsyncInvokeCommand, } from "./commands/StartAsyncInvokeCommand";
|
|
13
|
+
import { paginateListAsyncInvokes } from "./pagination/ListAsyncInvokesPaginator";
|
|
13
14
|
const commands = {
|
|
14
15
|
ApplyGuardrailCommand,
|
|
15
16
|
ConverseCommand,
|
|
@@ -22,6 +23,9 @@ const commands = {
|
|
|
22
23
|
ListAsyncInvokesCommand,
|
|
23
24
|
StartAsyncInvokeCommand,
|
|
24
25
|
};
|
|
26
|
+
const paginators = {
|
|
27
|
+
paginateListAsyncInvokes,
|
|
28
|
+
};
|
|
25
29
|
export class BedrockRuntime extends BedrockRuntimeClient {
|
|
26
30
|
}
|
|
27
|
-
createAggregatedClient(commands, BedrockRuntime);
|
|
31
|
+
createAggregatedClient(commands, BedrockRuntime, { paginators });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { BedrockRuntimeClient } from "./BedrockRuntimeClient";
|
|
3
3
|
import { ApplyGuardrailCommandInput, ApplyGuardrailCommandOutput } from "./commands/ApplyGuardrailCommand";
|
|
4
4
|
import { ConverseCommandInput, ConverseCommandOutput } from "./commands/ConverseCommand";
|
|
@@ -72,6 +72,13 @@ export interface BedrockRuntime {
|
|
|
72
72
|
startAsyncInvoke(args: StartAsyncInvokeCommandInput, options?: __HttpHandlerOptions): Promise<StartAsyncInvokeCommandOutput>;
|
|
73
73
|
startAsyncInvoke(args: StartAsyncInvokeCommandInput, cb: (err: any, data?: StartAsyncInvokeCommandOutput) => void): void;
|
|
74
74
|
startAsyncInvoke(args: StartAsyncInvokeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartAsyncInvokeCommandOutput) => void): void;
|
|
75
|
+
/**
|
|
76
|
+
* @see {@link ListAsyncInvokesCommand}
|
|
77
|
+
* @param args - command input.
|
|
78
|
+
* @param paginationConfig - optional pagination config.
|
|
79
|
+
* @returns AsyncIterable of {@link ListAsyncInvokesCommandOutput}.
|
|
80
|
+
*/
|
|
81
|
+
paginateListAsyncInvokes(args?: ListAsyncInvokesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListAsyncInvokesCommandOutput>;
|
|
75
82
|
}
|
|
76
83
|
/**
|
|
77
84
|
* <p>Describes the API operations for running inference using Amazon Bedrock models.</p>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
2
6
|
import { BedrockRuntimeClient } from "./BedrockRuntimeClient";
|
|
3
7
|
import {
|
|
4
8
|
ApplyGuardrailCommandInput,
|
|
@@ -178,6 +182,13 @@ export interface BedrockRuntime {
|
|
|
178
182
|
options: __HttpHandlerOptions,
|
|
179
183
|
cb: (err: any, data?: StartAsyncInvokeCommandOutput) => void
|
|
180
184
|
): void;
|
|
185
|
+
paginateListAsyncInvokes(
|
|
186
|
+
args?: ListAsyncInvokesCommandInput,
|
|
187
|
+
paginationConfig?: Pick<
|
|
188
|
+
PaginationConfiguration,
|
|
189
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
190
|
+
>
|
|
191
|
+
): Paginator<ListAsyncInvokesCommandOutput>;
|
|
181
192
|
}
|
|
182
193
|
export declare class BedrockRuntime
|
|
183
194
|
extends BedrockRuntimeClient
|
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.978.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
|
|
@@ -21,23 +21,23 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/eventstream-handler-node": "^3.972.
|
|
27
|
-
"@aws-sdk/middleware-eventstream": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
32
|
-
"@aws-sdk/middleware-websocket": "^3.972.
|
|
33
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
34
|
-
"@aws-sdk/token-providers": "3.
|
|
35
|
-
"@aws-sdk/types": "^3.973.
|
|
24
|
+
"@aws-sdk/core": "^3.973.4",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.2",
|
|
26
|
+
"@aws-sdk/eventstream-handler-node": "^3.972.2",
|
|
27
|
+
"@aws-sdk/middleware-eventstream": "^3.972.2",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "^3.972.2",
|
|
29
|
+
"@aws-sdk/middleware-logger": "^3.972.2",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.2",
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "^3.972.4",
|
|
32
|
+
"@aws-sdk/middleware-websocket": "^3.972.2",
|
|
33
|
+
"@aws-sdk/region-config-resolver": "^3.972.2",
|
|
34
|
+
"@aws-sdk/token-providers": "3.978.0",
|
|
35
|
+
"@aws-sdk/types": "^3.973.1",
|
|
36
36
|
"@aws-sdk/util-endpoints": "3.972.0",
|
|
37
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
38
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
37
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.2",
|
|
38
|
+
"@aws-sdk/util-user-agent-node": "^3.972.2",
|
|
39
39
|
"@smithy/config-resolver": "^4.4.6",
|
|
40
|
-
"@smithy/core": "^3.
|
|
40
|
+
"@smithy/core": "^3.22.0",
|
|
41
41
|
"@smithy/eventstream-serde-browser": "^4.2.8",
|
|
42
42
|
"@smithy/eventstream-serde-config-resolver": "^4.3.8",
|
|
43
43
|
"@smithy/eventstream-serde-node": "^4.2.8",
|
|
@@ -45,21 +45,21 @@
|
|
|
45
45
|
"@smithy/hash-node": "^4.2.8",
|
|
46
46
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
47
47
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
48
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
49
|
-
"@smithy/middleware-retry": "^4.4.
|
|
48
|
+
"@smithy/middleware-endpoint": "^4.4.12",
|
|
49
|
+
"@smithy/middleware-retry": "^4.4.29",
|
|
50
50
|
"@smithy/middleware-serde": "^4.2.9",
|
|
51
51
|
"@smithy/middleware-stack": "^4.2.8",
|
|
52
52
|
"@smithy/node-config-provider": "^4.3.8",
|
|
53
53
|
"@smithy/node-http-handler": "^4.4.8",
|
|
54
54
|
"@smithy/protocol-http": "^5.3.8",
|
|
55
|
-
"@smithy/smithy-client": "^4.
|
|
55
|
+
"@smithy/smithy-client": "^4.11.1",
|
|
56
56
|
"@smithy/types": "^4.12.0",
|
|
57
57
|
"@smithy/url-parser": "^4.2.8",
|
|
58
58
|
"@smithy/util-base64": "^4.3.0",
|
|
59
59
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
60
60
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
61
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
62
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
61
|
+
"@smithy/util-defaults-mode-browser": "^4.3.28",
|
|
62
|
+
"@smithy/util-defaults-mode-node": "^4.2.31",
|
|
63
63
|
"@smithy/util-endpoints": "^3.2.8",
|
|
64
64
|
"@smithy/util-middleware": "^4.2.8",
|
|
65
65
|
"@smithy/util-retry": "^4.2.8",
|