@aws-sdk/client-bedrock-runtime 3.1087.0 → 3.1089.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 +1 -1
- package/dist-types/ts3.4/BedrockRuntime.d.ts +38 -58
- package/dist-types/ts3.4/BedrockRuntimeClient.d.ts +11 -36
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +5 -12
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +11 -15
- package/dist-types/ts3.4/commandBuilder.d.ts +8 -14
- package/dist-types/ts3.4/commands/ApplyGuardrailCommand.d.ts +4 -9
- package/dist-types/ts3.4/commands/ConverseCommand.d.ts +7 -5
- package/dist-types/ts3.4/commands/ConverseStreamCommand.d.ts +4 -9
- package/dist-types/ts3.4/commands/CountTokensCommand.d.ts +3 -5
- package/dist-types/ts3.4/commands/GetAsyncInvokeCommand.d.ts +4 -9
- package/dist-types/ts3.4/commands/InvokeGuardrailChecksCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/InvokeModelCommand.d.ts +4 -9
- package/dist-types/ts3.4/commands/InvokeModelWithBidirectionalStreamCommand.d.ts +4 -6
- package/dist-types/ts3.4/commands/InvokeModelWithResponseStreamCommand.d.ts +5 -10
- package/dist-types/ts3.4/commands/ListAsyncInvokesCommand.d.ts +3 -8
- package/dist-types/ts3.4/commands/StartAsyncInvokeCommand.d.ts +4 -9
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +1 -1
- package/dist-types/ts3.4/extensionConfiguration.d.ts +2 -1
- package/dist-types/ts3.4/models/enums.d.ts +15 -30
- package/dist-types/ts3.4/models/errors.d.ts +11 -33
- package/dist-types/ts3.4/models/models_0.d.ts +9 -27
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +1 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +13 -34
- package/dist-types/ts3.4/runtimeConfig.d.ts +13 -27
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -37
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +5 -13
- package/dist-types/ts3.4/runtimeExtensions.d.ts +1 -1
- package/package.json +43 -43
package/dist-cjs/index.js
CHANGED
|
@@ -8,18 +8,12 @@ import {
|
|
|
8
8
|
ApplyGuardrailCommandInput,
|
|
9
9
|
ApplyGuardrailCommandOutput,
|
|
10
10
|
} from "./commands/ApplyGuardrailCommand";
|
|
11
|
-
import {
|
|
12
|
-
ConverseCommandInput,
|
|
13
|
-
ConverseCommandOutput,
|
|
14
|
-
} from "./commands/ConverseCommand";
|
|
11
|
+
import { ConverseCommandInput, ConverseCommandOutput } from "./commands/ConverseCommand";
|
|
15
12
|
import {
|
|
16
13
|
ConverseStreamCommandInput,
|
|
17
14
|
ConverseStreamCommandOutput,
|
|
18
15
|
} from "./commands/ConverseStreamCommand";
|
|
19
|
-
import {
|
|
20
|
-
CountTokensCommandInput,
|
|
21
|
-
CountTokensCommandOutput,
|
|
22
|
-
} from "./commands/CountTokensCommand";
|
|
16
|
+
import { CountTokensCommandInput, CountTokensCommandOutput } from "./commands/CountTokensCommand";
|
|
23
17
|
import {
|
|
24
18
|
GetAsyncInvokeCommandInput,
|
|
25
19
|
GetAsyncInvokeCommandOutput,
|
|
@@ -28,10 +22,7 @@ import {
|
|
|
28
22
|
InvokeGuardrailChecksCommandInput,
|
|
29
23
|
InvokeGuardrailChecksCommandOutput,
|
|
30
24
|
} from "./commands/InvokeGuardrailChecksCommand";
|
|
31
|
-
import {
|
|
32
|
-
InvokeModelCommandInput,
|
|
33
|
-
InvokeModelCommandOutput,
|
|
34
|
-
} from "./commands/InvokeModelCommand";
|
|
25
|
+
import { InvokeModelCommandInput, InvokeModelCommandOutput } from "./commands/InvokeModelCommand";
|
|
35
26
|
import {
|
|
36
27
|
InvokeModelWithBidirectionalStreamCommandInput,
|
|
37
28
|
InvokeModelWithBidirectionalStreamCommandOutput,
|
|
@@ -51,162 +42,151 @@ import {
|
|
|
51
42
|
export interface BedrockRuntime {
|
|
52
43
|
applyGuardrail(
|
|
53
44
|
args: ApplyGuardrailCommandInput,
|
|
54
|
-
options?: __HttpHandlerOptions
|
|
45
|
+
options?: __HttpHandlerOptions,
|
|
55
46
|
): Promise<ApplyGuardrailCommandOutput>;
|
|
56
47
|
applyGuardrail(
|
|
57
48
|
args: ApplyGuardrailCommandInput,
|
|
58
|
-
cb: (err: any, data?: ApplyGuardrailCommandOutput) => void
|
|
49
|
+
cb: (err: any, data?: ApplyGuardrailCommandOutput) => void,
|
|
59
50
|
): void;
|
|
60
51
|
applyGuardrail(
|
|
61
52
|
args: ApplyGuardrailCommandInput,
|
|
62
53
|
options: __HttpHandlerOptions,
|
|
63
|
-
cb: (err: any, data?: ApplyGuardrailCommandOutput) => void
|
|
54
|
+
cb: (err: any, data?: ApplyGuardrailCommandOutput) => void,
|
|
64
55
|
): void;
|
|
65
56
|
converse(
|
|
66
57
|
args: ConverseCommandInput,
|
|
67
|
-
options?: __HttpHandlerOptions
|
|
58
|
+
options?: __HttpHandlerOptions,
|
|
68
59
|
): Promise<ConverseCommandOutput>;
|
|
69
|
-
converse(
|
|
70
|
-
args: ConverseCommandInput,
|
|
71
|
-
cb: (err: any, data?: ConverseCommandOutput) => void
|
|
72
|
-
): void;
|
|
60
|
+
converse(args: ConverseCommandInput, cb: (err: any, data?: ConverseCommandOutput) => void): void;
|
|
73
61
|
converse(
|
|
74
62
|
args: ConverseCommandInput,
|
|
75
63
|
options: __HttpHandlerOptions,
|
|
76
|
-
cb: (err: any, data?: ConverseCommandOutput) => void
|
|
64
|
+
cb: (err: any, data?: ConverseCommandOutput) => void,
|
|
77
65
|
): void;
|
|
78
66
|
converseStream(
|
|
79
67
|
args: ConverseStreamCommandInput,
|
|
80
|
-
options?: __HttpHandlerOptions
|
|
68
|
+
options?: __HttpHandlerOptions,
|
|
81
69
|
): Promise<ConverseStreamCommandOutput>;
|
|
82
70
|
converseStream(
|
|
83
71
|
args: ConverseStreamCommandInput,
|
|
84
|
-
cb: (err: any, data?: ConverseStreamCommandOutput) => void
|
|
72
|
+
cb: (err: any, data?: ConverseStreamCommandOutput) => void,
|
|
85
73
|
): void;
|
|
86
74
|
converseStream(
|
|
87
75
|
args: ConverseStreamCommandInput,
|
|
88
76
|
options: __HttpHandlerOptions,
|
|
89
|
-
cb: (err: any, data?: ConverseStreamCommandOutput) => void
|
|
77
|
+
cb: (err: any, data?: ConverseStreamCommandOutput) => void,
|
|
90
78
|
): void;
|
|
91
79
|
countTokens(
|
|
92
80
|
args: CountTokensCommandInput,
|
|
93
|
-
options?: __HttpHandlerOptions
|
|
81
|
+
options?: __HttpHandlerOptions,
|
|
94
82
|
): Promise<CountTokensCommandOutput>;
|
|
95
83
|
countTokens(
|
|
96
84
|
args: CountTokensCommandInput,
|
|
97
|
-
cb: (err: any, data?: CountTokensCommandOutput) => void
|
|
85
|
+
cb: (err: any, data?: CountTokensCommandOutput) => void,
|
|
98
86
|
): void;
|
|
99
87
|
countTokens(
|
|
100
88
|
args: CountTokensCommandInput,
|
|
101
89
|
options: __HttpHandlerOptions,
|
|
102
|
-
cb: (err: any, data?: CountTokensCommandOutput) => void
|
|
90
|
+
cb: (err: any, data?: CountTokensCommandOutput) => void,
|
|
103
91
|
): void;
|
|
104
92
|
getAsyncInvoke(
|
|
105
93
|
args: GetAsyncInvokeCommandInput,
|
|
106
|
-
options?: __HttpHandlerOptions
|
|
94
|
+
options?: __HttpHandlerOptions,
|
|
107
95
|
): Promise<GetAsyncInvokeCommandOutput>;
|
|
108
96
|
getAsyncInvoke(
|
|
109
97
|
args: GetAsyncInvokeCommandInput,
|
|
110
|
-
cb: (err: any, data?: GetAsyncInvokeCommandOutput) => void
|
|
98
|
+
cb: (err: any, data?: GetAsyncInvokeCommandOutput) => void,
|
|
111
99
|
): void;
|
|
112
100
|
getAsyncInvoke(
|
|
113
101
|
args: GetAsyncInvokeCommandInput,
|
|
114
102
|
options: __HttpHandlerOptions,
|
|
115
|
-
cb: (err: any, data?: GetAsyncInvokeCommandOutput) => void
|
|
103
|
+
cb: (err: any, data?: GetAsyncInvokeCommandOutput) => void,
|
|
116
104
|
): void;
|
|
117
105
|
invokeGuardrailChecks(
|
|
118
106
|
args: InvokeGuardrailChecksCommandInput,
|
|
119
|
-
options?: __HttpHandlerOptions
|
|
107
|
+
options?: __HttpHandlerOptions,
|
|
120
108
|
): Promise<InvokeGuardrailChecksCommandOutput>;
|
|
121
109
|
invokeGuardrailChecks(
|
|
122
110
|
args: InvokeGuardrailChecksCommandInput,
|
|
123
|
-
cb: (err: any, data?: InvokeGuardrailChecksCommandOutput) => void
|
|
111
|
+
cb: (err: any, data?: InvokeGuardrailChecksCommandOutput) => void,
|
|
124
112
|
): void;
|
|
125
113
|
invokeGuardrailChecks(
|
|
126
114
|
args: InvokeGuardrailChecksCommandInput,
|
|
127
115
|
options: __HttpHandlerOptions,
|
|
128
|
-
cb: (err: any, data?: InvokeGuardrailChecksCommandOutput) => void
|
|
116
|
+
cb: (err: any, data?: InvokeGuardrailChecksCommandOutput) => void,
|
|
129
117
|
): void;
|
|
130
118
|
invokeModel(
|
|
131
119
|
args: InvokeModelCommandInput,
|
|
132
|
-
options?: __HttpHandlerOptions
|
|
120
|
+
options?: __HttpHandlerOptions,
|
|
133
121
|
): Promise<InvokeModelCommandOutput>;
|
|
134
122
|
invokeModel(
|
|
135
123
|
args: InvokeModelCommandInput,
|
|
136
|
-
cb: (err: any, data?: InvokeModelCommandOutput) => void
|
|
124
|
+
cb: (err: any, data?: InvokeModelCommandOutput) => void,
|
|
137
125
|
): void;
|
|
138
126
|
invokeModel(
|
|
139
127
|
args: InvokeModelCommandInput,
|
|
140
128
|
options: __HttpHandlerOptions,
|
|
141
|
-
cb: (err: any, data?: InvokeModelCommandOutput) => void
|
|
129
|
+
cb: (err: any, data?: InvokeModelCommandOutput) => void,
|
|
142
130
|
): void;
|
|
143
131
|
invokeModelWithBidirectionalStream(
|
|
144
132
|
args: InvokeModelWithBidirectionalStreamCommandInput,
|
|
145
|
-
options?: __HttpHandlerOptions
|
|
133
|
+
options?: __HttpHandlerOptions,
|
|
146
134
|
): Promise<InvokeModelWithBidirectionalStreamCommandOutput>;
|
|
147
135
|
invokeModelWithBidirectionalStream(
|
|
148
136
|
args: InvokeModelWithBidirectionalStreamCommandInput,
|
|
149
|
-
cb: (
|
|
150
|
-
err: any,
|
|
151
|
-
data?: InvokeModelWithBidirectionalStreamCommandOutput
|
|
152
|
-
) => void
|
|
137
|
+
cb: (err: any, data?: InvokeModelWithBidirectionalStreamCommandOutput) => void,
|
|
153
138
|
): void;
|
|
154
139
|
invokeModelWithBidirectionalStream(
|
|
155
140
|
args: InvokeModelWithBidirectionalStreamCommandInput,
|
|
156
141
|
options: __HttpHandlerOptions,
|
|
157
|
-
cb: (
|
|
158
|
-
err: any,
|
|
159
|
-
data?: InvokeModelWithBidirectionalStreamCommandOutput
|
|
160
|
-
) => void
|
|
142
|
+
cb: (err: any, data?: InvokeModelWithBidirectionalStreamCommandOutput) => void,
|
|
161
143
|
): void;
|
|
162
144
|
invokeModelWithResponseStream(
|
|
163
145
|
args: InvokeModelWithResponseStreamCommandInput,
|
|
164
|
-
options?: __HttpHandlerOptions
|
|
146
|
+
options?: __HttpHandlerOptions,
|
|
165
147
|
): Promise<InvokeModelWithResponseStreamCommandOutput>;
|
|
166
148
|
invokeModelWithResponseStream(
|
|
167
149
|
args: InvokeModelWithResponseStreamCommandInput,
|
|
168
|
-
cb: (err: any, data?: InvokeModelWithResponseStreamCommandOutput) => void
|
|
150
|
+
cb: (err: any, data?: InvokeModelWithResponseStreamCommandOutput) => void,
|
|
169
151
|
): void;
|
|
170
152
|
invokeModelWithResponseStream(
|
|
171
153
|
args: InvokeModelWithResponseStreamCommandInput,
|
|
172
154
|
options: __HttpHandlerOptions,
|
|
173
|
-
cb: (err: any, data?: InvokeModelWithResponseStreamCommandOutput) => void
|
|
155
|
+
cb: (err: any, data?: InvokeModelWithResponseStreamCommandOutput) => void,
|
|
174
156
|
): void;
|
|
175
157
|
listAsyncInvokes(): Promise<ListAsyncInvokesCommandOutput>;
|
|
176
158
|
listAsyncInvokes(
|
|
177
159
|
args: ListAsyncInvokesCommandInput,
|
|
178
|
-
options?: __HttpHandlerOptions
|
|
160
|
+
options?: __HttpHandlerOptions,
|
|
179
161
|
): Promise<ListAsyncInvokesCommandOutput>;
|
|
180
162
|
listAsyncInvokes(
|
|
181
163
|
args: ListAsyncInvokesCommandInput,
|
|
182
|
-
cb: (err: any, data?: ListAsyncInvokesCommandOutput) => void
|
|
164
|
+
cb: (err: any, data?: ListAsyncInvokesCommandOutput) => void,
|
|
183
165
|
): void;
|
|
184
166
|
listAsyncInvokes(
|
|
185
167
|
args: ListAsyncInvokesCommandInput,
|
|
186
168
|
options: __HttpHandlerOptions,
|
|
187
|
-
cb: (err: any, data?: ListAsyncInvokesCommandOutput) => void
|
|
169
|
+
cb: (err: any, data?: ListAsyncInvokesCommandOutput) => void,
|
|
188
170
|
): void;
|
|
189
171
|
startAsyncInvoke(
|
|
190
172
|
args: StartAsyncInvokeCommandInput,
|
|
191
|
-
options?: __HttpHandlerOptions
|
|
173
|
+
options?: __HttpHandlerOptions,
|
|
192
174
|
): Promise<StartAsyncInvokeCommandOutput>;
|
|
193
175
|
startAsyncInvoke(
|
|
194
176
|
args: StartAsyncInvokeCommandInput,
|
|
195
|
-
cb: (err: any, data?: StartAsyncInvokeCommandOutput) => void
|
|
177
|
+
cb: (err: any, data?: StartAsyncInvokeCommandOutput) => void,
|
|
196
178
|
): void;
|
|
197
179
|
startAsyncInvoke(
|
|
198
180
|
args: StartAsyncInvokeCommandInput,
|
|
199
181
|
options: __HttpHandlerOptions,
|
|
200
|
-
cb: (err: any, data?: StartAsyncInvokeCommandOutput) => void
|
|
182
|
+
cb: (err: any, data?: StartAsyncInvokeCommandOutput) => void,
|
|
201
183
|
): void;
|
|
202
184
|
paginateListAsyncInvokes(
|
|
203
185
|
args?: ListAsyncInvokesCommandInput,
|
|
204
186
|
paginationConfig?: Pick<
|
|
205
187
|
PaginationConfiguration,
|
|
206
188
|
Exclude<keyof PaginationConfiguration, "client">
|
|
207
|
-
|
|
189
|
+
>,
|
|
208
190
|
): Paginator<ListAsyncInvokesCommandOutput>;
|
|
209
191
|
}
|
|
210
|
-
export declare class BedrockRuntime
|
|
211
|
-
extends BedrockRuntimeClient
|
|
212
|
-
implements BedrockRuntime {}
|
|
192
|
+
export declare class BedrockRuntime extends BedrockRuntimeClient implements BedrockRuntime {}
|
|
@@ -4,14 +4,8 @@ import {
|
|
|
4
4
|
UserAgentInputConfig,
|
|
5
5
|
UserAgentResolvedConfig,
|
|
6
6
|
} from "@aws-sdk/core/client";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
EventStreamResolvedConfig,
|
|
10
|
-
} from "@aws-sdk/middleware-eventstream";
|
|
11
|
-
import {
|
|
12
|
-
WebSocketInputConfig,
|
|
13
|
-
WebSocketResolvedConfig,
|
|
14
|
-
} from "@aws-sdk/middleware-websocket";
|
|
7
|
+
import { EventStreamInputConfig, EventStreamResolvedConfig } from "@aws-sdk/middleware-eventstream";
|
|
8
|
+
import { WebSocketInputConfig, WebSocketResolvedConfig } from "@aws-sdk/middleware-websocket";
|
|
15
9
|
import { EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider } from "@aws-sdk/types";
|
|
16
10
|
import {
|
|
17
11
|
DefaultsMode as __DefaultsMode,
|
|
@@ -20,10 +14,7 @@ import {
|
|
|
20
14
|
Client as __Client,
|
|
21
15
|
} from "@smithy/core/client";
|
|
22
16
|
import { RegionInputConfig, RegionResolvedConfig } from "@smithy/core/config";
|
|
23
|
-
import {
|
|
24
|
-
EndpointInputConfig,
|
|
25
|
-
EndpointResolvedConfig,
|
|
26
|
-
} from "@smithy/core/endpoints";
|
|
17
|
+
import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/core/endpoints";
|
|
27
18
|
import {
|
|
28
19
|
EventStreamSerdeInputConfig,
|
|
29
20
|
EventStreamSerdeResolvedConfig,
|
|
@@ -54,18 +45,12 @@ import {
|
|
|
54
45
|
ApplyGuardrailCommandInput,
|
|
55
46
|
ApplyGuardrailCommandOutput,
|
|
56
47
|
} from "./commands/ApplyGuardrailCommand";
|
|
57
|
-
import {
|
|
58
|
-
ConverseCommandInput,
|
|
59
|
-
ConverseCommandOutput,
|
|
60
|
-
} from "./commands/ConverseCommand";
|
|
48
|
+
import { ConverseCommandInput, ConverseCommandOutput } from "./commands/ConverseCommand";
|
|
61
49
|
import {
|
|
62
50
|
ConverseStreamCommandInput,
|
|
63
51
|
ConverseStreamCommandOutput,
|
|
64
52
|
} from "./commands/ConverseStreamCommand";
|
|
65
|
-
import {
|
|
66
|
-
CountTokensCommandInput,
|
|
67
|
-
CountTokensCommandOutput,
|
|
68
|
-
} from "./commands/CountTokensCommand";
|
|
53
|
+
import { CountTokensCommandInput, CountTokensCommandOutput } from "./commands/CountTokensCommand";
|
|
69
54
|
import {
|
|
70
55
|
GetAsyncInvokeCommandInput,
|
|
71
56
|
GetAsyncInvokeCommandOutput,
|
|
@@ -74,10 +59,7 @@ import {
|
|
|
74
59
|
InvokeGuardrailChecksCommandInput,
|
|
75
60
|
InvokeGuardrailChecksCommandOutput,
|
|
76
61
|
} from "./commands/InvokeGuardrailChecksCommand";
|
|
77
|
-
import {
|
|
78
|
-
InvokeModelCommandInput,
|
|
79
|
-
InvokeModelCommandOutput,
|
|
80
|
-
} from "./commands/InvokeModelCommand";
|
|
62
|
+
import { InvokeModelCommandInput, InvokeModelCommandOutput } from "./commands/InvokeModelCommand";
|
|
81
63
|
import {
|
|
82
64
|
InvokeModelWithBidirectionalStreamCommandInput,
|
|
83
65
|
InvokeModelWithBidirectionalStreamCommandOutput,
|
|
@@ -125,8 +107,7 @@ export type ServiceOutputTypes =
|
|
|
125
107
|
| InvokeModelWithResponseStreamCommandOutput
|
|
126
108
|
| ListAsyncInvokesCommandOutput
|
|
127
109
|
| StartAsyncInvokeCommandOutput;
|
|
128
|
-
export interface ClientDefaults
|
|
129
|
-
extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
110
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
130
111
|
requestHandler?: __HttpHandlerUserInput;
|
|
131
112
|
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
132
113
|
urlParser?: __UrlParser;
|
|
@@ -153,9 +134,7 @@ export interface ClientDefaults
|
|
|
153
134
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
154
135
|
eventStreamPayloadHandlerProvider?: __EventStreamPayloadHandlerProvider;
|
|
155
136
|
}
|
|
156
|
-
export type BedrockRuntimeClientConfigType = Partial<
|
|
157
|
-
__SmithyConfiguration<__HttpHandlerOptions>
|
|
158
|
-
> &
|
|
137
|
+
export type BedrockRuntimeClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
159
138
|
ClientDefaults &
|
|
160
139
|
UserAgentInputConfig &
|
|
161
140
|
RetryInputConfig &
|
|
@@ -167,8 +146,7 @@ export type BedrockRuntimeClientConfigType = Partial<
|
|
|
167
146
|
EventStreamInputConfig &
|
|
168
147
|
WebSocketInputConfig &
|
|
169
148
|
ClientInputEndpointParameters;
|
|
170
|
-
export interface BedrockRuntimeClientConfig
|
|
171
|
-
extends BedrockRuntimeClientConfigType {}
|
|
149
|
+
export interface BedrockRuntimeClientConfig extends BedrockRuntimeClientConfigType {}
|
|
172
150
|
export type BedrockRuntimeClientResolvedConfigType =
|
|
173
151
|
__SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
174
152
|
Required<ClientDefaults> &
|
|
@@ -183,8 +161,7 @@ export type BedrockRuntimeClientResolvedConfigType =
|
|
|
183
161
|
EventStreamResolvedConfig &
|
|
184
162
|
WebSocketResolvedConfig &
|
|
185
163
|
ClientResolvedEndpointParameters;
|
|
186
|
-
export interface BedrockRuntimeClientResolvedConfig
|
|
187
|
-
extends BedrockRuntimeClientResolvedConfigType {}
|
|
164
|
+
export interface BedrockRuntimeClientResolvedConfig extends BedrockRuntimeClientResolvedConfigType {}
|
|
188
165
|
export declare class BedrockRuntimeClient extends __Client<
|
|
189
166
|
__HttpHandlerOptions,
|
|
190
167
|
ServiceInputTypes,
|
|
@@ -192,8 +169,6 @@ export declare class BedrockRuntimeClient extends __Client<
|
|
|
192
169
|
BedrockRuntimeClientResolvedConfig
|
|
193
170
|
> {
|
|
194
171
|
readonly config: BedrockRuntimeClientResolvedConfig;
|
|
195
|
-
constructor(
|
|
196
|
-
...[configuration]: __CheckOptionalClientConfig<BedrockRuntimeClientConfig>
|
|
197
|
-
);
|
|
172
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<BedrockRuntimeClientConfig>);
|
|
198
173
|
destroy(): void;
|
|
199
174
|
}
|
|
@@ -9,17 +9,10 @@ import { BedrockRuntimeHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
|
9
9
|
export interface HttpAuthExtensionConfiguration {
|
|
10
10
|
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
11
11
|
httpAuthSchemes(): HttpAuthScheme[];
|
|
12
|
-
setHttpAuthSchemeProvider(
|
|
13
|
-
httpAuthSchemeProvider: BedrockRuntimeHttpAuthSchemeProvider
|
|
14
|
-
): void;
|
|
12
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: BedrockRuntimeHttpAuthSchemeProvider): void;
|
|
15
13
|
httpAuthSchemeProvider(): BedrockRuntimeHttpAuthSchemeProvider;
|
|
16
|
-
setCredentials(
|
|
17
|
-
|
|
18
|
-
): void;
|
|
19
|
-
credentials():
|
|
20
|
-
| AwsCredentialIdentity
|
|
21
|
-
| AwsCredentialIdentityProvider
|
|
22
|
-
| undefined;
|
|
14
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
15
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
23
16
|
setToken(token: TokenIdentity | TokenIdentityProvider): void;
|
|
24
17
|
token(): TokenIdentity | TokenIdentityProvider | undefined;
|
|
25
18
|
}
|
|
@@ -30,8 +23,8 @@ export type HttpAuthRuntimeConfig = Partial<{
|
|
|
30
23
|
token: TokenIdentity | TokenIdentityProvider;
|
|
31
24
|
}>;
|
|
32
25
|
export declare const getHttpAuthExtensionConfiguration: (
|
|
33
|
-
runtimeConfig: HttpAuthRuntimeConfig
|
|
26
|
+
runtimeConfig: HttpAuthRuntimeConfig,
|
|
34
27
|
) => HttpAuthExtensionConfiguration;
|
|
35
28
|
export declare const resolveHttpAuthRuntimeConfig: (
|
|
36
|
-
config: HttpAuthExtensionConfiguration
|
|
29
|
+
config: HttpAuthExtensionConfiguration,
|
|
37
30
|
) => HttpAuthRuntimeConfig;
|
|
@@ -14,24 +14,21 @@ import {
|
|
|
14
14
|
TokenIdentityProvider,
|
|
15
15
|
} from "@smithy/types";
|
|
16
16
|
import { BedrockRuntimeClientResolvedConfig } from "../BedrockRuntimeClient";
|
|
17
|
-
export interface BedrockRuntimeHttpAuthSchemeParameters
|
|
18
|
-
extends HttpAuthSchemeParameters {
|
|
17
|
+
export interface BedrockRuntimeHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
19
18
|
region?: string;
|
|
20
19
|
}
|
|
21
|
-
export interface BedrockRuntimeHttpAuthSchemeParametersProvider
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
> {}
|
|
20
|
+
export interface BedrockRuntimeHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<
|
|
21
|
+
BedrockRuntimeClientResolvedConfig,
|
|
22
|
+
HandlerExecutionContext,
|
|
23
|
+
BedrockRuntimeHttpAuthSchemeParameters,
|
|
24
|
+
object
|
|
25
|
+
> {}
|
|
28
26
|
export declare const defaultBedrockRuntimeHttpAuthSchemeParametersProvider: (
|
|
29
27
|
config: BedrockRuntimeClientResolvedConfig,
|
|
30
28
|
context: HandlerExecutionContext,
|
|
31
|
-
input: object
|
|
29
|
+
input: object,
|
|
32
30
|
) => Promise<BedrockRuntimeHttpAuthSchemeParameters>;
|
|
33
|
-
export interface BedrockRuntimeHttpAuthSchemeProvider
|
|
34
|
-
extends HttpAuthSchemeProvider<BedrockRuntimeHttpAuthSchemeParameters> {}
|
|
31
|
+
export interface BedrockRuntimeHttpAuthSchemeProvider extends HttpAuthSchemeProvider<BedrockRuntimeHttpAuthSchemeParameters> {}
|
|
35
32
|
export declare const defaultBedrockRuntimeHttpAuthSchemeProvider: BedrockRuntimeHttpAuthSchemeProvider;
|
|
36
33
|
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
37
34
|
authSchemePreference?: string[] | Provider<string[]>;
|
|
@@ -39,13 +36,12 @@ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
|
39
36
|
httpAuthSchemeProvider?: BedrockRuntimeHttpAuthSchemeProvider;
|
|
40
37
|
token?: TokenIdentity | TokenIdentityProvider;
|
|
41
38
|
}
|
|
42
|
-
export interface HttpAuthSchemeResolvedConfig
|
|
43
|
-
extends AwsSdkSigV4AuthResolvedConfig {
|
|
39
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
44
40
|
readonly authSchemePreference: Provider<string[]>;
|
|
45
41
|
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
46
42
|
readonly httpAuthSchemeProvider: BedrockRuntimeHttpAuthSchemeProvider;
|
|
47
43
|
readonly token?: TokenIdentityProvider;
|
|
48
44
|
}
|
|
49
45
|
export declare const resolveHttpAuthSchemeConfig: <T>(
|
|
50
|
-
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
|
|
46
|
+
config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved,
|
|
51
47
|
) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -4,22 +4,21 @@ import {
|
|
|
4
4
|
ServiceInputTypes,
|
|
5
5
|
ServiceOutputTypes,
|
|
6
6
|
} from "./BedrockRuntimeClient";
|
|
7
|
-
export declare const command: <
|
|
8
|
-
I extends ServiceInputTypes,
|
|
9
|
-
O extends ServiceOutputTypes
|
|
10
|
-
>(
|
|
7
|
+
export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(
|
|
11
8
|
added: EndpointParameterInstructions,
|
|
12
9
|
plugins: (
|
|
13
10
|
CommandCtor: any,
|
|
14
11
|
clientStack: any,
|
|
15
12
|
config: any,
|
|
16
|
-
options: any
|
|
13
|
+
options: any,
|
|
17
14
|
) => import("@smithy/types").Pluggable<any, any>[],
|
|
18
15
|
op: string,
|
|
19
16
|
$: import("@smithy/types").StaticOperationSchema,
|
|
20
|
-
smithyContext?: Record<string, unknown
|
|
17
|
+
smithyContext?: Record<string, unknown>,
|
|
21
18
|
) => {
|
|
22
|
-
new (
|
|
19
|
+
new (
|
|
20
|
+
input: I,
|
|
21
|
+
): import("@smithy/core/client").CommandImpl<
|
|
23
22
|
I,
|
|
24
23
|
O,
|
|
25
24
|
BedrockRuntimeClientResolvedConfig,
|
|
@@ -38,15 +37,10 @@ export declare const command: <
|
|
|
38
37
|
getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
39
38
|
};
|
|
40
39
|
export declare const _ep0: EndpointParameterInstructions;
|
|
41
|
-
export declare const _mw0: (
|
|
42
|
-
Command: any,
|
|
43
|
-
cs: any,
|
|
44
|
-
config: any,
|
|
45
|
-
o: any
|
|
46
|
-
) => never[];
|
|
40
|
+
export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
|
|
47
41
|
export declare const _mw1: (
|
|
48
42
|
Command: any,
|
|
49
43
|
cs: any,
|
|
50
44
|
config: any,
|
|
51
|
-
o: any
|
|
45
|
+
o: any,
|
|
52
46
|
) => import("@smithy/types").Pluggable<any, any>[];
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import {
|
|
3
|
-
ApplyGuardrailRequest,
|
|
4
|
-
ApplyGuardrailResponse,
|
|
5
|
-
} from "../models/models_0";
|
|
2
|
+
import { ApplyGuardrailRequest, ApplyGuardrailResponse } from "../models/models_0";
|
|
6
3
|
export { __MetadataBearer };
|
|
7
4
|
export interface ApplyGuardrailCommandInput extends ApplyGuardrailRequest {}
|
|
8
|
-
export interface ApplyGuardrailCommandOutput
|
|
9
|
-
extends ApplyGuardrailResponse,
|
|
10
|
-
__MetadataBearer {}
|
|
5
|
+
export interface ApplyGuardrailCommandOutput extends ApplyGuardrailResponse, __MetadataBearer {}
|
|
11
6
|
declare const ApplyGuardrailCommand_base: {
|
|
12
7
|
new (
|
|
13
|
-
input: ApplyGuardrailCommandInput
|
|
8
|
+
input: ApplyGuardrailCommandInput,
|
|
14
9
|
): import("@smithy/core/client").CommandImpl<
|
|
15
10
|
ApplyGuardrailCommandInput,
|
|
16
11
|
ApplyGuardrailCommandOutput,
|
|
@@ -19,7 +14,7 @@ declare const ApplyGuardrailCommand_base: {
|
|
|
19
14
|
import("..").ServiceOutputTypes
|
|
20
15
|
>;
|
|
21
16
|
new (
|
|
22
|
-
input: ApplyGuardrailCommandInput
|
|
17
|
+
input: ApplyGuardrailCommandInput,
|
|
23
18
|
): import("@smithy/core/client").CommandImpl<
|
|
24
19
|
ApplyGuardrailCommandInput,
|
|
25
20
|
ApplyGuardrailCommandOutput,
|
|
@@ -2,18 +2,20 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
|
2
2
|
import { ConverseRequest, ConverseResponse } from "../models/models_0";
|
|
3
3
|
export { __MetadataBearer };
|
|
4
4
|
export interface ConverseCommandInput extends ConverseRequest {}
|
|
5
|
-
export interface ConverseCommandOutput
|
|
6
|
-
extends ConverseResponse,
|
|
7
|
-
__MetadataBearer {}
|
|
5
|
+
export interface ConverseCommandOutput extends ConverseResponse, __MetadataBearer {}
|
|
8
6
|
declare const ConverseCommand_base: {
|
|
9
|
-
new (
|
|
7
|
+
new (
|
|
8
|
+
input: ConverseCommandInput,
|
|
9
|
+
): import("@smithy/core/client").CommandImpl<
|
|
10
10
|
ConverseCommandInput,
|
|
11
11
|
ConverseCommandOutput,
|
|
12
12
|
import("..").BedrockRuntimeClientResolvedConfig,
|
|
13
13
|
import("..").ServiceInputTypes,
|
|
14
14
|
import("..").ServiceOutputTypes
|
|
15
15
|
>;
|
|
16
|
-
new (
|
|
16
|
+
new (
|
|
17
|
+
input: ConverseCommandInput,
|
|
18
|
+
): import("@smithy/core/client").CommandImpl<
|
|
17
19
|
ConverseCommandInput,
|
|
18
20
|
ConverseCommandOutput,
|
|
19
21
|
import("..").BedrockRuntimeClientResolvedConfig,
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import {
|
|
3
|
-
ConverseStreamRequest,
|
|
4
|
-
ConverseStreamResponse,
|
|
5
|
-
} from "../models/models_0";
|
|
2
|
+
import { ConverseStreamRequest, ConverseStreamResponse } from "../models/models_0";
|
|
6
3
|
export { __MetadataBearer };
|
|
7
4
|
export interface ConverseStreamCommandInput extends ConverseStreamRequest {}
|
|
8
|
-
export interface ConverseStreamCommandOutput
|
|
9
|
-
extends ConverseStreamResponse,
|
|
10
|
-
__MetadataBearer {}
|
|
5
|
+
export interface ConverseStreamCommandOutput extends ConverseStreamResponse, __MetadataBearer {}
|
|
11
6
|
declare const ConverseStreamCommand_base: {
|
|
12
7
|
new (
|
|
13
|
-
input: ConverseStreamCommandInput
|
|
8
|
+
input: ConverseStreamCommandInput,
|
|
14
9
|
): import("@smithy/core/client").CommandImpl<
|
|
15
10
|
ConverseStreamCommandInput,
|
|
16
11
|
ConverseStreamCommandOutput,
|
|
@@ -19,7 +14,7 @@ declare const ConverseStreamCommand_base: {
|
|
|
19
14
|
import("..").ServiceOutputTypes
|
|
20
15
|
>;
|
|
21
16
|
new (
|
|
22
|
-
input: ConverseStreamCommandInput
|
|
17
|
+
input: ConverseStreamCommandInput,
|
|
23
18
|
): import("@smithy/core/client").CommandImpl<
|
|
24
19
|
ConverseStreamCommandInput,
|
|
25
20
|
ConverseStreamCommandOutput,
|
|
@@ -2,12 +2,10 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
|
2
2
|
import { CountTokensRequest, CountTokensResponse } from "../models/models_0";
|
|
3
3
|
export { __MetadataBearer };
|
|
4
4
|
export interface CountTokensCommandInput extends CountTokensRequest {}
|
|
5
|
-
export interface CountTokensCommandOutput
|
|
6
|
-
extends CountTokensResponse,
|
|
7
|
-
__MetadataBearer {}
|
|
5
|
+
export interface CountTokensCommandOutput extends CountTokensResponse, __MetadataBearer {}
|
|
8
6
|
declare const CountTokensCommand_base: {
|
|
9
7
|
new (
|
|
10
|
-
input: CountTokensCommandInput
|
|
8
|
+
input: CountTokensCommandInput,
|
|
11
9
|
): import("@smithy/core/client").CommandImpl<
|
|
12
10
|
CountTokensCommandInput,
|
|
13
11
|
CountTokensCommandOutput,
|
|
@@ -16,7 +14,7 @@ declare const CountTokensCommand_base: {
|
|
|
16
14
|
import("..").ServiceOutputTypes
|
|
17
15
|
>;
|
|
18
16
|
new (
|
|
19
|
-
input: CountTokensCommandInput
|
|
17
|
+
input: CountTokensCommandInput,
|
|
20
18
|
): import("@smithy/core/client").CommandImpl<
|
|
21
19
|
CountTokensCommandInput,
|
|
22
20
|
CountTokensCommandOutput,
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import {
|
|
3
|
-
GetAsyncInvokeRequest,
|
|
4
|
-
GetAsyncInvokeResponse,
|
|
5
|
-
} from "../models/models_0";
|
|
2
|
+
import { GetAsyncInvokeRequest, GetAsyncInvokeResponse } from "../models/models_0";
|
|
6
3
|
export { __MetadataBearer };
|
|
7
4
|
export interface GetAsyncInvokeCommandInput extends GetAsyncInvokeRequest {}
|
|
8
|
-
export interface GetAsyncInvokeCommandOutput
|
|
9
|
-
extends GetAsyncInvokeResponse,
|
|
10
|
-
__MetadataBearer {}
|
|
5
|
+
export interface GetAsyncInvokeCommandOutput extends GetAsyncInvokeResponse, __MetadataBearer {}
|
|
11
6
|
declare const GetAsyncInvokeCommand_base: {
|
|
12
7
|
new (
|
|
13
|
-
input: GetAsyncInvokeCommandInput
|
|
8
|
+
input: GetAsyncInvokeCommandInput,
|
|
14
9
|
): import("@smithy/core/client").CommandImpl<
|
|
15
10
|
GetAsyncInvokeCommandInput,
|
|
16
11
|
GetAsyncInvokeCommandOutput,
|
|
@@ -19,7 +14,7 @@ declare const GetAsyncInvokeCommand_base: {
|
|
|
19
14
|
import("..").ServiceOutputTypes
|
|
20
15
|
>;
|
|
21
16
|
new (
|
|
22
|
-
input: GetAsyncInvokeCommandInput
|
|
17
|
+
input: GetAsyncInvokeCommandInput,
|
|
23
18
|
): import("@smithy/core/client").CommandImpl<
|
|
24
19
|
GetAsyncInvokeCommandInput,
|
|
25
20
|
GetAsyncInvokeCommandOutput,
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import {
|
|
3
|
-
InvokeGuardrailChecksRequest,
|
|
4
|
-
InvokeGuardrailChecksResponse,
|
|
5
|
-
} from "../models/models_0";
|
|
2
|
+
import { InvokeGuardrailChecksRequest, InvokeGuardrailChecksResponse } from "../models/models_0";
|
|
6
3
|
export { __MetadataBearer };
|
|
7
|
-
export interface InvokeGuardrailChecksCommandInput
|
|
8
|
-
extends InvokeGuardrailChecksRequest {}
|
|
4
|
+
export interface InvokeGuardrailChecksCommandInput extends InvokeGuardrailChecksRequest {}
|
|
9
5
|
export interface InvokeGuardrailChecksCommandOutput
|
|
10
|
-
extends InvokeGuardrailChecksResponse,
|
|
11
|
-
__MetadataBearer {}
|
|
6
|
+
extends InvokeGuardrailChecksResponse, __MetadataBearer {}
|
|
12
7
|
declare const InvokeGuardrailChecksCommand_base: {
|
|
13
8
|
new (
|
|
14
|
-
input: InvokeGuardrailChecksCommandInput
|
|
9
|
+
input: InvokeGuardrailChecksCommandInput,
|
|
15
10
|
): import("@smithy/core/client").CommandImpl<
|
|
16
11
|
InvokeGuardrailChecksCommandInput,
|
|
17
12
|
InvokeGuardrailChecksCommandOutput,
|
|
@@ -20,7 +15,7 @@ declare const InvokeGuardrailChecksCommand_base: {
|
|
|
20
15
|
import("..").ServiceOutputTypes
|
|
21
16
|
>;
|
|
22
17
|
new (
|
|
23
|
-
input: InvokeGuardrailChecksCommandInput
|
|
18
|
+
input: InvokeGuardrailChecksCommandInput,
|
|
24
19
|
): import("@smithy/core/client").CommandImpl<
|
|
25
20
|
InvokeGuardrailChecksCommandInput,
|
|
26
21
|
InvokeGuardrailChecksCommandOutput,
|