@aws-sdk/client-bedrock-runtime 3.529.1 → 3.535.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.
@@ -17,8 +17,8 @@ export interface BedrockRuntime {
17
17
  invokeModelWithResponseStream(args: InvokeModelWithResponseStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeModelWithResponseStreamCommandOutput) => void): void;
18
18
  }
19
19
  /**
20
- * @public
21
20
  * <p>Describes the API operations for running inference using Bedrock models.</p>
21
+ * @public
22
22
  */
23
23
  export declare class BedrockRuntime extends BedrockRuntimeClient implements BedrockRuntime {
24
24
  }
@@ -158,8 +158,8 @@ export type BedrockRuntimeClientResolvedConfigType = __SmithyResolvedConfigurati
158
158
  export interface BedrockRuntimeClientResolvedConfig extends BedrockRuntimeClientResolvedConfigType {
159
159
  }
160
160
  /**
161
- * @public
162
161
  * <p>Describes the API operations for running inference using Bedrock models.</p>
162
+ * @public
163
163
  */
164
164
  export declare class BedrockRuntimeClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, BedrockRuntimeClientResolvedConfig> {
165
165
  /**
@@ -35,10 +35,10 @@ export interface InvokeModelCommandOutput extends InvokeModelCommandOutputType,
35
35
  }
36
36
  declare const InvokeModelCommand_base: {
37
37
  new (input: InvokeModelCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeModelCommandInput, InvokeModelCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
38
+ new (__0_0: InvokeModelCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeModelCommandInput, InvokeModelCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
38
39
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
40
  };
40
41
  /**
41
- * @public
42
42
  * <p>Invokes the specified Bedrock model to run inference using the input provided in the request body.
43
43
  * You use InvokeModel to run inference for text models, image models, and embedding models.</p>
44
44
  * <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/api-methods-run.html">Run inference</a> in the Bedrock User Guide.</p>
@@ -50,7 +50,7 @@ declare const InvokeModelCommand_base: {
50
50
  * // const { BedrockRuntimeClient, InvokeModelCommand } = require("@aws-sdk/client-bedrock-runtime"); // CommonJS import
51
51
  * const client = new BedrockRuntimeClient(config);
52
52
  * const input = { // InvokeModelRequest
53
- * body: "BLOB_VALUE", // required
53
+ * body: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
54
54
  * contentType: "STRING_VALUE",
55
55
  * accept: "STRING_VALUE",
56
56
  * modelId: "STRING_VALUE", // required
@@ -58,7 +58,7 @@ declare const InvokeModelCommand_base: {
58
58
  * const command = new InvokeModelCommand(input);
59
59
  * const response = await client.send(command);
60
60
  * // { // InvokeModelResponse
61
- * // body: "BLOB_VALUE", // required
61
+ * // body: new Uint8Array(), // required
62
62
  * // contentType: "STRING_VALUE", // required
63
63
  * // };
64
64
  *
@@ -100,6 +100,7 @@ declare const InvokeModelCommand_base: {
100
100
  * @throws {@link BedrockRuntimeServiceException}
101
101
  * <p>Base exception class for all service exceptions from BedrockRuntime service.</p>
102
102
  *
103
+ * @public
103
104
  */
104
105
  export declare class InvokeModelCommand extends InvokeModelCommand_base {
105
106
  }
@@ -28,10 +28,10 @@ export interface InvokeModelWithResponseStreamCommandOutput extends InvokeModelW
28
28
  }
29
29
  declare const InvokeModelWithResponseStreamCommand_base: {
30
30
  new (input: InvokeModelWithResponseStreamCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
31
+ new (__0_0: InvokeModelWithResponseStreamCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeModelWithResponseStreamCommandInput, InvokeModelWithResponseStreamCommandOutput, BedrockRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
31
32
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
32
33
  };
33
34
  /**
34
- * @public
35
35
  * <p>Invoke the specified Bedrock model to run inference using the input provided.
36
36
  * Return the response in a stream.</p>
37
37
  * <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/api-methods-run.html">Run inference</a> in the Bedrock User Guide.</p>
@@ -43,7 +43,7 @@ declare const InvokeModelWithResponseStreamCommand_base: {
43
43
  * // const { BedrockRuntimeClient, InvokeModelWithResponseStreamCommand } = require("@aws-sdk/client-bedrock-runtime"); // CommonJS import
44
44
  * const client = new BedrockRuntimeClient(config);
45
45
  * const input = { // InvokeModelWithResponseStreamRequest
46
- * body: "BLOB_VALUE", // required
46
+ * body: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
47
47
  * contentType: "STRING_VALUE",
48
48
  * accept: "STRING_VALUE",
49
49
  * modelId: "STRING_VALUE", // required
@@ -53,7 +53,7 @@ declare const InvokeModelWithResponseStreamCommand_base: {
53
53
  * // { // InvokeModelWithResponseStreamResponse
54
54
  * // body: { // ResponseStream Union: only one key present
55
55
  * // chunk: { // PayloadPart
56
- * // bytes: "BLOB_VALUE",
56
+ * // bytes: new Uint8Array(),
57
57
  * // },
58
58
  * // internalServerException: { // InternalServerException
59
59
  * // message: "STRING_VALUE",
@@ -117,6 +117,7 @@ declare const InvokeModelWithResponseStreamCommand_base: {
117
117
  * @throws {@link BedrockRuntimeServiceException}
118
118
  * <p>Base exception class for all service exceptions from BedrockRuntime service.</p>
119
119
  *
120
+ * @public
120
121
  */
121
122
  export declare class InvokeModelWithResponseStreamCommand extends InvokeModelWithResponseStreamCommand_base {
122
123
  }
@@ -1,8 +1,8 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { BedrockRuntimeServiceException as __BaseException } from "./BedrockRuntimeServiceException";
3
3
  /**
4
- * @public
5
4
  * <p>The request is denied because of missing access permissions.</p>
5
+ * @public
6
6
  */
7
7
  export declare class AccessDeniedException extends __BaseException {
8
8
  readonly name: "AccessDeniedException";
@@ -13,8 +13,8 @@ export declare class AccessDeniedException extends __BaseException {
13
13
  constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
14
14
  }
15
15
  /**
16
- * @public
17
16
  * <p>An internal server error occurred. Retry your request.</p>
17
+ * @public
18
18
  */
19
19
  export declare class InternalServerException extends __BaseException {
20
20
  readonly name: "InternalServerException";
@@ -29,25 +29,25 @@ export declare class InternalServerException extends __BaseException {
29
29
  */
30
30
  export interface InvokeModelRequest {
31
31
  /**
32
- * @public
33
32
  * <p>Input data in the format specified in the content-type request header. To see the format and content of this field for different models, refer to <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters</a>.</p>
33
+ * @public
34
34
  */
35
35
  body: Uint8Array | undefined;
36
36
  /**
37
- * @public
38
37
  * <p>The MIME type of the input data in the request. The default value is
39
38
  * <code>application/json</code>.</p>
39
+ * @public
40
40
  */
41
41
  contentType?: string;
42
42
  /**
43
- * @public
44
43
  * <p>The desired MIME type of the inference body in the response. The default value is
45
44
  * <code>application/json</code>.</p>
45
+ * @public
46
46
  */
47
47
  accept?: string;
48
48
  /**
49
- * @public
50
49
  * <p>Identifier of the model. </p>
50
+ * @public
51
51
  */
52
52
  modelId: string | undefined;
53
53
  }
@@ -56,31 +56,31 @@ export interface InvokeModelRequest {
56
56
  */
57
57
  export interface InvokeModelResponse {
58
58
  /**
59
- * @public
60
59
  * <p>Inference response from the model in the format specified in the content-type header field. To see the format and content of this field for different models, refer to <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters</a>.</p>
60
+ * @public
61
61
  */
62
62
  body: Uint8Array | undefined;
63
63
  /**
64
- * @public
65
64
  * <p>The MIME type of the inference result.</p>
65
+ * @public
66
66
  */
67
67
  contentType: string | undefined;
68
68
  }
69
69
  /**
70
- * @public
71
70
  * <p>The request failed due to an error while processing the model.</p>
71
+ * @public
72
72
  */
73
73
  export declare class ModelErrorException extends __BaseException {
74
74
  readonly name: "ModelErrorException";
75
75
  readonly $fault: "client";
76
76
  /**
77
- * @public
78
77
  * <p>The original status code.</p>
78
+ * @public
79
79
  */
80
80
  originalStatusCode?: number;
81
81
  /**
82
- * @public
83
82
  * <p>The resource name.</p>
83
+ * @public
84
84
  */
85
85
  resourceName?: string;
86
86
  /**
@@ -89,8 +89,8 @@ export declare class ModelErrorException extends __BaseException {
89
89
  constructor(opts: __ExceptionOptionType<ModelErrorException, __BaseException>);
90
90
  }
91
91
  /**
92
- * @public
93
92
  * <p>The model specified in the request is not ready to serve inference requests.</p>
93
+ * @public
94
94
  */
95
95
  export declare class ModelNotReadyException extends __BaseException {
96
96
  readonly name: "ModelNotReadyException";
@@ -101,8 +101,8 @@ export declare class ModelNotReadyException extends __BaseException {
101
101
  constructor(opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>);
102
102
  }
103
103
  /**
104
- * @public
105
104
  * <p>The request took too long to process. Processing time exceeded the model timeout length.</p>
105
+ * @public
106
106
  */
107
107
  export declare class ModelTimeoutException extends __BaseException {
108
108
  readonly name: "ModelTimeoutException";
@@ -113,8 +113,8 @@ export declare class ModelTimeoutException extends __BaseException {
113
113
  constructor(opts: __ExceptionOptionType<ModelTimeoutException, __BaseException>);
114
114
  }
115
115
  /**
116
- * @public
117
116
  * <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
117
+ * @public
118
118
  */
119
119
  export declare class ResourceNotFoundException extends __BaseException {
120
120
  readonly name: "ResourceNotFoundException";
@@ -125,8 +125,8 @@ export declare class ResourceNotFoundException extends __BaseException {
125
125
  constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
126
126
  }
127
127
  /**
128
- * @public
129
128
  * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
129
+ * @public
130
130
  */
131
131
  export declare class ServiceQuotaExceededException extends __BaseException {
132
132
  readonly name: "ServiceQuotaExceededException";
@@ -137,8 +137,8 @@ export declare class ServiceQuotaExceededException extends __BaseException {
137
137
  constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
138
138
  }
139
139
  /**
140
- * @public
141
140
  * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
141
+ * @public
142
142
  */
143
143
  export declare class ThrottlingException extends __BaseException {
144
144
  readonly name: "ThrottlingException";
@@ -149,8 +149,8 @@ export declare class ThrottlingException extends __BaseException {
149
149
  constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
150
150
  }
151
151
  /**
152
- * @public
153
152
  * <p>Input validation failed. Check your request parameters and retry the request.</p>
153
+ * @public
154
154
  */
155
155
  export declare class ValidationException extends __BaseException {
156
156
  readonly name: "ValidationException";
@@ -165,55 +165,55 @@ export declare class ValidationException extends __BaseException {
165
165
  */
166
166
  export interface InvokeModelWithResponseStreamRequest {
167
167
  /**
168
- * @public
169
168
  * <p>Inference input in the format specified by the
170
169
  * content-type. To see the format and content of this field for different models, refer to <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters</a>.</p>
170
+ * @public
171
171
  */
172
172
  body: Uint8Array | undefined;
173
173
  /**
174
- * @public
175
174
  * <p>The MIME type of the input data in the request. The default value is
176
175
  * <code>application/json</code>.</p>
176
+ * @public
177
177
  */
178
178
  contentType?: string;
179
179
  /**
180
- * @public
181
180
  * <p>The desired MIME type of the inference body in the response. The default value is
182
181
  * <code>application/json</code>.</p>
182
+ * @public
183
183
  */
184
184
  accept?: string;
185
185
  /**
186
- * @public
187
186
  * <p>Id of the model to invoke using the streaming request.</p>
187
+ * @public
188
188
  */
189
189
  modelId: string | undefined;
190
190
  }
191
191
  /**
192
- * @public
193
192
  * <p>Payload content included in the response.</p>
193
+ * @public
194
194
  */
195
195
  export interface PayloadPart {
196
196
  /**
197
- * @public
198
197
  * <p>Base64-encoded bytes of payload data.</p>
198
+ * @public
199
199
  */
200
200
  bytes?: Uint8Array;
201
201
  }
202
202
  /**
203
- * @public
204
203
  * <p>An error occurred while streaming the response.</p>
204
+ * @public
205
205
  */
206
206
  export declare class ModelStreamErrorException extends __BaseException {
207
207
  readonly name: "ModelStreamErrorException";
208
208
  readonly $fault: "client";
209
209
  /**
210
- * @public
211
210
  * <p>The original status code.</p>
211
+ * @public
212
212
  */
213
213
  originalStatusCode?: number;
214
214
  /**
215
- * @public
216
215
  * <p>The original message.</p>
216
+ * @public
217
217
  */
218
218
  originalMessage?: string;
219
219
  /**
@@ -222,8 +222,8 @@ export declare class ModelStreamErrorException extends __BaseException {
222
222
  constructor(opts: __ExceptionOptionType<ModelStreamErrorException, __BaseException>);
223
223
  }
224
224
  /**
225
- * @public
226
225
  * <p>Definition of content in the response stream.</p>
226
+ * @public
227
227
  */
228
228
  export type ResponseStream = ResponseStream.ChunkMember | ResponseStream.InternalServerExceptionMember | ResponseStream.ModelStreamErrorExceptionMember | ResponseStream.ModelTimeoutExceptionMember | ResponseStream.ThrottlingExceptionMember | ResponseStream.ValidationExceptionMember | ResponseStream.$UnknownMember;
229
229
  /**
@@ -231,8 +231,8 @@ export type ResponseStream = ResponseStream.ChunkMember | ResponseStream.Interna
231
231
  */
232
232
  export declare namespace ResponseStream {
233
233
  /**
234
- * @public
235
234
  * <p>Content included in the response.</p>
235
+ * @public
236
236
  */
237
237
  interface ChunkMember {
238
238
  chunk: PayloadPart;
@@ -244,8 +244,8 @@ export declare namespace ResponseStream {
244
244
  $unknown?: never;
245
245
  }
246
246
  /**
247
- * @public
248
247
  * <p>An internal server error occurred. Retry your request.</p>
248
+ * @public
249
249
  */
250
250
  interface InternalServerExceptionMember {
251
251
  chunk?: never;
@@ -257,8 +257,8 @@ export declare namespace ResponseStream {
257
257
  $unknown?: never;
258
258
  }
259
259
  /**
260
- * @public
261
260
  * <p>An error occurred while streaming the response.</p>
261
+ * @public
262
262
  */
263
263
  interface ModelStreamErrorExceptionMember {
264
264
  chunk?: never;
@@ -270,8 +270,8 @@ export declare namespace ResponseStream {
270
270
  $unknown?: never;
271
271
  }
272
272
  /**
273
- * @public
274
273
  * <p>Input validation failed. Check your request parameters and retry the request.</p>
274
+ * @public
275
275
  */
276
276
  interface ValidationExceptionMember {
277
277
  chunk?: never;
@@ -283,8 +283,8 @@ export declare namespace ResponseStream {
283
283
  $unknown?: never;
284
284
  }
285
285
  /**
286
- * @public
287
286
  * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
287
+ * @public
288
288
  */
289
289
  interface ThrottlingExceptionMember {
290
290
  chunk?: never;
@@ -296,8 +296,8 @@ export declare namespace ResponseStream {
296
296
  $unknown?: never;
297
297
  }
298
298
  /**
299
- * @public
300
299
  * <p>The request took too long to process. Processing time exceeded the model timeout length.</p>
300
+ * @public
301
301
  */
302
302
  interface ModelTimeoutExceptionMember {
303
303
  chunk?: never;
@@ -336,13 +336,13 @@ export declare namespace ResponseStream {
336
336
  */
337
337
  export interface InvokeModelWithResponseStreamResponse {
338
338
  /**
339
- * @public
340
339
  * <p>Inference response from the model in the format specified by Content-Type. To see the format and content of this field for different models, refer to <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters</a>.</p>
340
+ * @public
341
341
  */
342
342
  body: AsyncIterable<ResponseStream> | undefined;
343
343
  /**
344
- * @public
345
344
  * <p>The MIME type of the inference result.</p>
345
+ * @public
346
346
  */
347
347
  contentType: string | undefined;
348
348
  }
@@ -21,9 +21,9 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
21
21
  apiVersion: string;
22
22
  urlParser: import("@smithy/types").UrlParser;
23
23
  base64Decoder: import("@smithy/types").Decoder;
24
- base64Encoder: import("@smithy/types").Encoder;
24
+ base64Encoder: (_input: string | Uint8Array) => string;
25
25
  utf8Decoder: import("@smithy/types").Decoder;
26
- utf8Encoder: import("@smithy/types").Encoder;
26
+ utf8Encoder: (input: string | Uint8Array) => string;
27
27
  disableHostPrefix: boolean;
28
28
  serviceId: string;
29
29
  logger: import("@smithy/types").Logger;
@@ -21,9 +21,9 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
21
21
  apiVersion: string;
22
22
  urlParser: import("@smithy/types").UrlParser;
23
23
  base64Decoder: import("@smithy/types").Decoder;
24
- base64Encoder: import("@smithy/types").Encoder;
24
+ base64Encoder: (_input: string | Uint8Array) => string;
25
25
  utf8Decoder: import("@smithy/types").Decoder;
26
- utf8Encoder: import("@smithy/types").Encoder;
26
+ utf8Encoder: (input: string | Uint8Array) => string;
27
27
  disableHostPrefix: boolean;
28
28
  serviceId: string;
29
29
  logger: import("@smithy/types").Logger;
@@ -11,9 +11,9 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
11
11
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
12
12
  streamCollector: import("@smithy/types").StreamCollector;
13
13
  base64Decoder: import("@smithy/types").Decoder;
14
- base64Encoder: import("@smithy/types").Encoder;
14
+ base64Encoder: (_input: string | Uint8Array) => string;
15
15
  utf8Decoder: import("@smithy/types").Decoder;
16
- utf8Encoder: import("@smithy/types").Encoder;
16
+ utf8Encoder: (input: string | Uint8Array) => string;
17
17
  disableHostPrefix: boolean;
18
18
  serviceId: string;
19
19
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
@@ -5,7 +5,7 @@ import { BedrockRuntimeClientConfig } from "./BedrockRuntimeClient";
5
5
  export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
6
6
  apiVersion: string;
7
7
  base64Decoder: import("@smithy/types").Decoder;
8
- base64Encoder: import("@smithy/types").Encoder;
8
+ base64Encoder: (_input: string | Uint8Array) => string;
9
9
  disableHostPrefix: boolean;
10
10
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
11
11
  logger?: import("@smithy/types").Logger | undefined;
@@ -17,5 +17,5 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
17
17
  serviceId: string;
18
18
  urlParser: import("@smithy/types").UrlParser;
19
19
  utf8Decoder: import("@smithy/types").Decoder;
20
- utf8Encoder: import("@smithy/types").Encoder;
20
+ utf8Encoder: (input: string | Uint8Array) => string;
21
21
  };
@@ -37,6 +37,15 @@ declare const InvokeModelCommand_base: {
37
37
  ServiceInputTypes,
38
38
  ServiceOutputTypes
39
39
  >;
40
+ new (
41
+ __0_0: InvokeModelCommandInput
42
+ ): import("@smithy/smithy-client").CommandImpl<
43
+ InvokeModelCommandInput,
44
+ InvokeModelCommandOutput,
45
+ BedrockRuntimeClientResolvedConfig,
46
+ ServiceInputTypes,
47
+ ServiceOutputTypes
48
+ >;
40
49
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
41
50
  };
42
51
  export declare class InvokeModelCommand extends InvokeModelCommand_base {}
@@ -34,6 +34,15 @@ declare const InvokeModelWithResponseStreamCommand_base: {
34
34
  ServiceInputTypes,
35
35
  ServiceOutputTypes
36
36
  >;
37
+ new (
38
+ __0_0: InvokeModelWithResponseStreamCommandInput
39
+ ): import("@smithy/smithy-client").CommandImpl<
40
+ InvokeModelWithResponseStreamCommandInput,
41
+ InvokeModelWithResponseStreamCommandOutput,
42
+ BedrockRuntimeClientResolvedConfig,
43
+ ServiceInputTypes,
44
+ ServiceOutputTypes
45
+ >;
37
46
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
47
  };
39
48
  export declare class InvokeModelWithResponseStreamCommand extends InvokeModelWithResponseStreamCommand_base {}
@@ -26,9 +26,9 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
26
26
  apiVersion: string;
27
27
  urlParser: import("@smithy/types").UrlParser;
28
28
  base64Decoder: import("@smithy/types").Decoder;
29
- base64Encoder: import("@smithy/types").Encoder;
29
+ base64Encoder: (_input: string | Uint8Array) => string;
30
30
  utf8Decoder: import("@smithy/types").Decoder;
31
- utf8Encoder: import("@smithy/types").Encoder;
31
+ utf8Encoder: (input: string | Uint8Array) => string;
32
32
  disableHostPrefix: boolean;
33
33
  serviceId: string;
34
34
  logger: import("@smithy/types").Logger;
@@ -30,9 +30,9 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
30
30
  apiVersion: string;
31
31
  urlParser: import("@smithy/types").UrlParser;
32
32
  base64Decoder: import("@smithy/types").Decoder;
33
- base64Encoder: import("@smithy/types").Encoder;
33
+ base64Encoder: (_input: string | Uint8Array) => string;
34
34
  utf8Decoder: import("@smithy/types").Decoder;
35
- utf8Encoder: import("@smithy/types").Encoder;
35
+ utf8Encoder: (input: string | Uint8Array) => string;
36
36
  disableHostPrefix: boolean;
37
37
  serviceId: string;
38
38
  logger: import("@smithy/types").Logger;
@@ -13,9 +13,9 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
13
13
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
14
14
  streamCollector: import("@smithy/types").StreamCollector;
15
15
  base64Decoder: import("@smithy/types").Decoder;
16
- base64Encoder: import("@smithy/types").Encoder;
16
+ base64Encoder: (_input: string | Uint8Array) => string;
17
17
  utf8Decoder: import("@smithy/types").Decoder;
18
- utf8Encoder: import("@smithy/types").Encoder;
18
+ utf8Encoder: (input: string | Uint8Array) => string;
19
19
  disableHostPrefix: boolean;
20
20
  serviceId: string;
21
21
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
@@ -2,7 +2,7 @@ import { BedrockRuntimeClientConfig } from "./BedrockRuntimeClient";
2
2
  export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
3
3
  apiVersion: string;
4
4
  base64Decoder: import("@smithy/types").Decoder;
5
- base64Encoder: import("@smithy/types").Encoder;
5
+ base64Encoder: (_input: string | Uint8Array) => string;
6
6
  disableHostPrefix: boolean;
7
7
  endpointProvider: (
8
8
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
@@ -17,5 +17,5 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
17
17
  serviceId: string;
18
18
  urlParser: import("@smithy/types").UrlParser;
19
19
  utf8Decoder: import("@smithy/types").Decoder;
20
- utf8Encoder: import("@smithy/types").Encoder;
20
+ utf8Encoder: (input: string | Uint8Array) => string;
21
21
  };
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.529.1",
4
+ "version": "3.535.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,51 +20,51 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.529.1",
24
- "@aws-sdk/core": "3.529.1",
25
- "@aws-sdk/credential-provider-node": "3.529.1",
26
- "@aws-sdk/middleware-host-header": "3.523.0",
27
- "@aws-sdk/middleware-logger": "3.523.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.523.0",
29
- "@aws-sdk/middleware-user-agent": "3.525.0",
30
- "@aws-sdk/region-config-resolver": "3.525.0",
31
- "@aws-sdk/types": "3.523.0",
32
- "@aws-sdk/util-endpoints": "3.525.0",
33
- "@aws-sdk/util-user-agent-browser": "3.523.0",
34
- "@aws-sdk/util-user-agent-node": "3.525.0",
35
- "@smithy/config-resolver": "^2.1.4",
36
- "@smithy/core": "^1.3.5",
37
- "@smithy/eventstream-serde-browser": "^2.1.3",
38
- "@smithy/eventstream-serde-config-resolver": "^2.1.3",
39
- "@smithy/eventstream-serde-node": "^2.1.3",
40
- "@smithy/fetch-http-handler": "^2.4.3",
41
- "@smithy/hash-node": "^2.1.3",
42
- "@smithy/invalid-dependency": "^2.1.3",
43
- "@smithy/middleware-content-length": "^2.1.3",
44
- "@smithy/middleware-endpoint": "^2.4.4",
45
- "@smithy/middleware-retry": "^2.1.4",
46
- "@smithy/middleware-serde": "^2.1.3",
47
- "@smithy/middleware-stack": "^2.1.3",
48
- "@smithy/node-config-provider": "^2.2.4",
49
- "@smithy/node-http-handler": "^2.4.1",
50
- "@smithy/protocol-http": "^3.2.1",
51
- "@smithy/smithy-client": "^2.4.2",
52
- "@smithy/types": "^2.10.1",
53
- "@smithy/url-parser": "^2.1.3",
54
- "@smithy/util-base64": "^2.1.1",
55
- "@smithy/util-body-length-browser": "^2.1.1",
56
- "@smithy/util-body-length-node": "^2.2.1",
57
- "@smithy/util-defaults-mode-browser": "^2.1.4",
58
- "@smithy/util-defaults-mode-node": "^2.2.3",
59
- "@smithy/util-endpoints": "^1.1.4",
60
- "@smithy/util-middleware": "^2.1.3",
61
- "@smithy/util-retry": "^2.1.3",
62
- "@smithy/util-stream": "^2.1.3",
63
- "@smithy/util-utf8": "^2.1.1",
64
- "tslib": "^2.5.0"
23
+ "@aws-sdk/client-sts": "3.535.0",
24
+ "@aws-sdk/core": "3.535.0",
25
+ "@aws-sdk/credential-provider-node": "3.535.0",
26
+ "@aws-sdk/middleware-host-header": "3.535.0",
27
+ "@aws-sdk/middleware-logger": "3.535.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.535.0",
29
+ "@aws-sdk/middleware-user-agent": "3.535.0",
30
+ "@aws-sdk/region-config-resolver": "3.535.0",
31
+ "@aws-sdk/types": "3.535.0",
32
+ "@aws-sdk/util-endpoints": "3.535.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.535.0",
34
+ "@aws-sdk/util-user-agent-node": "3.535.0",
35
+ "@smithy/config-resolver": "^2.2.0",
36
+ "@smithy/core": "^1.4.0",
37
+ "@smithy/eventstream-serde-browser": "^2.2.0",
38
+ "@smithy/eventstream-serde-config-resolver": "^2.2.0",
39
+ "@smithy/eventstream-serde-node": "^2.2.0",
40
+ "@smithy/fetch-http-handler": "^2.5.0",
41
+ "@smithy/hash-node": "^2.2.0",
42
+ "@smithy/invalid-dependency": "^2.2.0",
43
+ "@smithy/middleware-content-length": "^2.2.0",
44
+ "@smithy/middleware-endpoint": "^2.5.0",
45
+ "@smithy/middleware-retry": "^2.2.0",
46
+ "@smithy/middleware-serde": "^2.3.0",
47
+ "@smithy/middleware-stack": "^2.2.0",
48
+ "@smithy/node-config-provider": "^2.3.0",
49
+ "@smithy/node-http-handler": "^2.5.0",
50
+ "@smithy/protocol-http": "^3.3.0",
51
+ "@smithy/smithy-client": "^2.5.0",
52
+ "@smithy/types": "^2.12.0",
53
+ "@smithy/url-parser": "^2.2.0",
54
+ "@smithy/util-base64": "^2.3.0",
55
+ "@smithy/util-body-length-browser": "^2.2.0",
56
+ "@smithy/util-body-length-node": "^2.3.0",
57
+ "@smithy/util-defaults-mode-browser": "^2.2.0",
58
+ "@smithy/util-defaults-mode-node": "^2.3.0",
59
+ "@smithy/util-endpoints": "^1.2.0",
60
+ "@smithy/util-middleware": "^2.2.0",
61
+ "@smithy/util-retry": "^2.2.0",
62
+ "@smithy/util-stream": "^2.2.0",
63
+ "@smithy/util-utf8": "^2.3.0",
64
+ "tslib": "^2.6.2"
65
65
  },
66
66
  "devDependencies": {
67
- "@smithy/service-client-documentation-generator": "^2.1.1",
67
+ "@smithy/service-client-documentation-generator": "^2.2.0",
68
68
  "@tsconfig/node14": "1.0.3",
69
69
  "@types/node": "^14.14.31",
70
70
  "concurrently": "7.0.0",