@aws-sdk/client-bedrock-runtime 3.1148.0 → 3.1150.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
@@ -90,7 +90,7 @@ const commonParams = {
90
90
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
91
91
  };
92
92
 
93
- var version = "3.1147.0";
93
+ var version = "3.1149.0";
94
94
  var packageInfo = {
95
95
  version: version};
96
96
 
@@ -153,6 +153,7 @@ const defaultEndpointResolver = (endpointParams, context = {}) => {
153
153
  customEndpointFunctions.aws = awsEndpointFunctions;
154
154
 
155
155
  class BedrockRuntimeServiceException extends ServiceException {
156
+ static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.bedrockruntime#BedrockRuntimeServiceException";
156
157
  constructor(options) {
157
158
  super(options);
158
159
  Object.setPrototypeOf(this, BedrockRuntimeServiceException.prototype);
@@ -160,6 +161,7 @@ class BedrockRuntimeServiceException extends ServiceException {
160
161
  }
161
162
 
162
163
  class AccessDeniedException extends BedrockRuntimeServiceException {
164
+ static shapeId = "com.amazonaws.bedrockruntime#AccessDeniedException";
163
165
  name = "AccessDeniedException";
164
166
  $fault = "client";
165
167
  constructor(opts) {
@@ -172,6 +174,7 @@ class AccessDeniedException extends BedrockRuntimeServiceException {
172
174
  }
173
175
  }
174
176
  class InternalServerException extends BedrockRuntimeServiceException {
177
+ static shapeId = "com.amazonaws.bedrockruntime#InternalServerException";
175
178
  name = "InternalServerException";
176
179
  $fault = "server";
177
180
  constructor(opts) {
@@ -184,6 +187,7 @@ class InternalServerException extends BedrockRuntimeServiceException {
184
187
  }
185
188
  }
186
189
  class ThrottlingException extends BedrockRuntimeServiceException {
190
+ static shapeId = "com.amazonaws.bedrockruntime#ThrottlingException";
187
191
  name = "ThrottlingException";
188
192
  $fault = "client";
189
193
  constructor(opts) {
@@ -196,6 +200,7 @@ class ThrottlingException extends BedrockRuntimeServiceException {
196
200
  }
197
201
  }
198
202
  class ValidationException extends BedrockRuntimeServiceException {
203
+ static shapeId = "com.amazonaws.bedrockruntime#ValidationException";
199
204
  name = "ValidationException";
200
205
  $fault = "client";
201
206
  constructor(opts) {
@@ -208,6 +213,7 @@ class ValidationException extends BedrockRuntimeServiceException {
208
213
  }
209
214
  }
210
215
  class ConflictException extends BedrockRuntimeServiceException {
216
+ static shapeId = "com.amazonaws.bedrockruntime#ConflictException";
211
217
  name = "ConflictException";
212
218
  $fault = "client";
213
219
  constructor(opts) {
@@ -220,6 +226,7 @@ class ConflictException extends BedrockRuntimeServiceException {
220
226
  }
221
227
  }
222
228
  class ResourceNotFoundException extends BedrockRuntimeServiceException {
229
+ static shapeId = "com.amazonaws.bedrockruntime#ResourceNotFoundException";
223
230
  name = "ResourceNotFoundException";
224
231
  $fault = "client";
225
232
  constructor(opts) {
@@ -232,6 +239,7 @@ class ResourceNotFoundException extends BedrockRuntimeServiceException {
232
239
  }
233
240
  }
234
241
  class ServiceQuotaExceededException extends BedrockRuntimeServiceException {
242
+ static shapeId = "com.amazonaws.bedrockruntime#ServiceQuotaExceededException";
235
243
  name = "ServiceQuotaExceededException";
236
244
  $fault = "client";
237
245
  constructor(opts) {
@@ -244,6 +252,7 @@ class ServiceQuotaExceededException extends BedrockRuntimeServiceException {
244
252
  }
245
253
  }
246
254
  class ServiceUnavailableException extends BedrockRuntimeServiceException {
255
+ static shapeId = "com.amazonaws.bedrockruntime#ServiceUnavailableException";
247
256
  name = "ServiceUnavailableException";
248
257
  $fault = "server";
249
258
  constructor(opts) {
@@ -256,6 +265,7 @@ class ServiceUnavailableException extends BedrockRuntimeServiceException {
256
265
  }
257
266
  }
258
267
  class ModelErrorException extends BedrockRuntimeServiceException {
268
+ static shapeId = "com.amazonaws.bedrockruntime#ModelErrorException";
259
269
  name = "ModelErrorException";
260
270
  $fault = "client";
261
271
  originalStatusCode;
@@ -272,6 +282,7 @@ class ModelErrorException extends BedrockRuntimeServiceException {
272
282
  }
273
283
  }
274
284
  class ModelNotReadyException extends BedrockRuntimeServiceException {
285
+ static shapeId = "com.amazonaws.bedrockruntime#ModelNotReadyException";
275
286
  name = "ModelNotReadyException";
276
287
  $fault = "client";
277
288
  $retryable = {};
@@ -285,6 +296,7 @@ class ModelNotReadyException extends BedrockRuntimeServiceException {
285
296
  }
286
297
  }
287
298
  class ModelTimeoutException extends BedrockRuntimeServiceException {
299
+ static shapeId = "com.amazonaws.bedrockruntime#ModelTimeoutException";
288
300
  name = "ModelTimeoutException";
289
301
  $fault = "client";
290
302
  constructor(opts) {
@@ -297,6 +309,7 @@ class ModelTimeoutException extends BedrockRuntimeServiceException {
297
309
  }
298
310
  }
299
311
  class ModelStreamErrorException extends BedrockRuntimeServiceException {
312
+ static shapeId = "com.amazonaws.bedrockruntime#ModelStreamErrorException";
300
313
  name = "ModelStreamErrorException";
301
314
  $fault = "client";
302
315
  originalStatusCode;
@@ -1,6 +1,7 @@
1
1
  import { ServiceException as __ServiceException, } from "@smithy/core/client";
2
2
  export { __ServiceException };
3
3
  export class BedrockRuntimeServiceException extends __ServiceException {
4
+ static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.bedrockruntime#BedrockRuntimeServiceException";
4
5
  constructor(options) {
5
6
  super(options);
6
7
  Object.setPrototypeOf(this, BedrockRuntimeServiceException.prototype);
@@ -1,5 +1,6 @@
1
1
  import { BedrockRuntimeServiceException as __BaseException } from "./BedrockRuntimeServiceException";
2
2
  export class AccessDeniedException extends __BaseException {
3
+ static shapeId = "com.amazonaws.bedrockruntime#AccessDeniedException";
3
4
  name = "AccessDeniedException";
4
5
  $fault = "client";
5
6
  constructor(opts) {
@@ -12,6 +13,7 @@ export class AccessDeniedException extends __BaseException {
12
13
  }
13
14
  }
14
15
  export class InternalServerException extends __BaseException {
16
+ static shapeId = "com.amazonaws.bedrockruntime#InternalServerException";
15
17
  name = "InternalServerException";
16
18
  $fault = "server";
17
19
  constructor(opts) {
@@ -24,6 +26,7 @@ export class InternalServerException extends __BaseException {
24
26
  }
25
27
  }
26
28
  export class ThrottlingException extends __BaseException {
29
+ static shapeId = "com.amazonaws.bedrockruntime#ThrottlingException";
27
30
  name = "ThrottlingException";
28
31
  $fault = "client";
29
32
  constructor(opts) {
@@ -36,6 +39,7 @@ export class ThrottlingException extends __BaseException {
36
39
  }
37
40
  }
38
41
  export class ValidationException extends __BaseException {
42
+ static shapeId = "com.amazonaws.bedrockruntime#ValidationException";
39
43
  name = "ValidationException";
40
44
  $fault = "client";
41
45
  constructor(opts) {
@@ -48,6 +52,7 @@ export class ValidationException extends __BaseException {
48
52
  }
49
53
  }
50
54
  export class ConflictException extends __BaseException {
55
+ static shapeId = "com.amazonaws.bedrockruntime#ConflictException";
51
56
  name = "ConflictException";
52
57
  $fault = "client";
53
58
  constructor(opts) {
@@ -60,6 +65,7 @@ export class ConflictException extends __BaseException {
60
65
  }
61
66
  }
62
67
  export class ResourceNotFoundException extends __BaseException {
68
+ static shapeId = "com.amazonaws.bedrockruntime#ResourceNotFoundException";
63
69
  name = "ResourceNotFoundException";
64
70
  $fault = "client";
65
71
  constructor(opts) {
@@ -72,6 +78,7 @@ export class ResourceNotFoundException extends __BaseException {
72
78
  }
73
79
  }
74
80
  export class ServiceQuotaExceededException extends __BaseException {
81
+ static shapeId = "com.amazonaws.bedrockruntime#ServiceQuotaExceededException";
75
82
  name = "ServiceQuotaExceededException";
76
83
  $fault = "client";
77
84
  constructor(opts) {
@@ -84,6 +91,7 @@ export class ServiceQuotaExceededException extends __BaseException {
84
91
  }
85
92
  }
86
93
  export class ServiceUnavailableException extends __BaseException {
94
+ static shapeId = "com.amazonaws.bedrockruntime#ServiceUnavailableException";
87
95
  name = "ServiceUnavailableException";
88
96
  $fault = "server";
89
97
  constructor(opts) {
@@ -96,6 +104,7 @@ export class ServiceUnavailableException extends __BaseException {
96
104
  }
97
105
  }
98
106
  export class ModelErrorException extends __BaseException {
107
+ static shapeId = "com.amazonaws.bedrockruntime#ModelErrorException";
99
108
  name = "ModelErrorException";
100
109
  $fault = "client";
101
110
  originalStatusCode;
@@ -112,6 +121,7 @@ export class ModelErrorException extends __BaseException {
112
121
  }
113
122
  }
114
123
  export class ModelNotReadyException extends __BaseException {
124
+ static shapeId = "com.amazonaws.bedrockruntime#ModelNotReadyException";
115
125
  name = "ModelNotReadyException";
116
126
  $fault = "client";
117
127
  $retryable = {};
@@ -125,6 +135,7 @@ export class ModelNotReadyException extends __BaseException {
125
135
  }
126
136
  }
127
137
  export class ModelTimeoutException extends __BaseException {
138
+ static shapeId = "com.amazonaws.bedrockruntime#ModelTimeoutException";
128
139
  name = "ModelTimeoutException";
129
140
  $fault = "client";
130
141
  constructor(opts) {
@@ -137,6 +148,7 @@ export class ModelTimeoutException extends __BaseException {
137
148
  }
138
149
  }
139
150
  export class ModelStreamErrorException extends __BaseException {
151
+ static shapeId = "com.amazonaws.bedrockruntime#ModelStreamErrorException";
140
152
  name = "ModelStreamErrorException";
141
153
  $fault = "client";
142
154
  originalStatusCode;
@@ -7,6 +7,7 @@ export { __ServiceException };
7
7
  * Base exception class for all service exceptions from BedrockRuntime service.
8
8
  */
9
9
  export declare class BedrockRuntimeServiceException extends __ServiceException {
10
+ static readonly shapeId: string;
10
11
  /**
11
12
  * @internal
12
13
  */
@@ -5,6 +5,7 @@ import { BedrockRuntimeServiceException as __BaseException } from "./BedrockRunt
5
5
  * @public
6
6
  */
7
7
  export declare class AccessDeniedException extends __BaseException {
8
+ static readonly shapeId: string;
8
9
  readonly name: "AccessDeniedException";
9
10
  readonly $fault: "client";
10
11
  /**
@@ -17,6 +18,7 @@ export declare class AccessDeniedException extends __BaseException {
17
18
  * @public
18
19
  */
19
20
  export declare class InternalServerException extends __BaseException {
21
+ static readonly shapeId: string;
20
22
  readonly name: "InternalServerException";
21
23
  readonly $fault: "server";
22
24
  /**
@@ -29,6 +31,7 @@ export declare class InternalServerException extends __BaseException {
29
31
  * @public
30
32
  */
31
33
  export declare class ThrottlingException extends __BaseException {
34
+ static readonly shapeId: string;
32
35
  readonly name: "ThrottlingException";
33
36
  readonly $fault: "client";
34
37
  /**
@@ -41,6 +44,7 @@ export declare class ThrottlingException extends __BaseException {
41
44
  * @public
42
45
  */
43
46
  export declare class ValidationException extends __BaseException {
47
+ static readonly shapeId: string;
44
48
  readonly name: "ValidationException";
45
49
  readonly $fault: "client";
46
50
  /**
@@ -53,6 +57,7 @@ export declare class ValidationException extends __BaseException {
53
57
  * @public
54
58
  */
55
59
  export declare class ConflictException extends __BaseException {
60
+ static readonly shapeId: string;
56
61
  readonly name: "ConflictException";
57
62
  readonly $fault: "client";
58
63
  /**
@@ -65,6 +70,7 @@ export declare class ConflictException extends __BaseException {
65
70
  * @public
66
71
  */
67
72
  export declare class ResourceNotFoundException extends __BaseException {
73
+ static readonly shapeId: string;
68
74
  readonly name: "ResourceNotFoundException";
69
75
  readonly $fault: "client";
70
76
  /**
@@ -77,6 +83,7 @@ export declare class ResourceNotFoundException extends __BaseException {
77
83
  * @public
78
84
  */
79
85
  export declare class ServiceQuotaExceededException extends __BaseException {
86
+ static readonly shapeId: string;
80
87
  readonly name: "ServiceQuotaExceededException";
81
88
  readonly $fault: "client";
82
89
  /**
@@ -89,6 +96,7 @@ export declare class ServiceQuotaExceededException extends __BaseException {
89
96
  * @public
90
97
  */
91
98
  export declare class ServiceUnavailableException extends __BaseException {
99
+ static readonly shapeId: string;
92
100
  readonly name: "ServiceUnavailableException";
93
101
  readonly $fault: "server";
94
102
  /**
@@ -101,6 +109,7 @@ export declare class ServiceUnavailableException extends __BaseException {
101
109
  * @public
102
110
  */
103
111
  export declare class ModelErrorException extends __BaseException {
112
+ static readonly shapeId: string;
104
113
  readonly name: "ModelErrorException";
105
114
  readonly $fault: "client";
106
115
  /**
@@ -123,6 +132,7 @@ export declare class ModelErrorException extends __BaseException {
123
132
  * @public
124
133
  */
125
134
  export declare class ModelNotReadyException extends __BaseException {
135
+ static readonly shapeId: string;
126
136
  readonly name: "ModelNotReadyException";
127
137
  readonly $fault: "client";
128
138
  $retryable: {};
@@ -136,6 +146,7 @@ export declare class ModelNotReadyException extends __BaseException {
136
146
  * @public
137
147
  */
138
148
  export declare class ModelTimeoutException extends __BaseException {
149
+ static readonly shapeId: string;
139
150
  readonly name: "ModelTimeoutException";
140
151
  readonly $fault: "client";
141
152
  /**
@@ -148,6 +159,7 @@ export declare class ModelTimeoutException extends __BaseException {
148
159
  * @public
149
160
  */
150
161
  export declare class ModelStreamErrorException extends __BaseException {
162
+ static readonly shapeId: string;
151
163
  readonly name: "ModelStreamErrorException";
152
164
  readonly $fault: "client";
153
165
  /**
@@ -5,5 +5,6 @@ import {
5
5
  export { __ServiceExceptionOptions };
6
6
  export { __ServiceException };
7
7
  export declare class BedrockRuntimeServiceException extends __ServiceException {
8
+ static readonly shapeId: string;
8
9
  constructor(options: __ServiceExceptionOptions);
9
10
  }
@@ -1,46 +1,55 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
2
  import { BedrockRuntimeServiceException as __BaseException } from "./BedrockRuntimeServiceException";
3
3
  export declare class AccessDeniedException extends __BaseException {
4
+ static readonly shapeId: string;
4
5
  readonly name: "AccessDeniedException";
5
6
  readonly $fault: "client";
6
7
  constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
7
8
  }
8
9
  export declare class InternalServerException extends __BaseException {
10
+ static readonly shapeId: string;
9
11
  readonly name: "InternalServerException";
10
12
  readonly $fault: "server";
11
13
  constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
12
14
  }
13
15
  export declare class ThrottlingException extends __BaseException {
16
+ static readonly shapeId: string;
14
17
  readonly name: "ThrottlingException";
15
18
  readonly $fault: "client";
16
19
  constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
17
20
  }
18
21
  export declare class ValidationException extends __BaseException {
22
+ static readonly shapeId: string;
19
23
  readonly name: "ValidationException";
20
24
  readonly $fault: "client";
21
25
  constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
22
26
  }
23
27
  export declare class ConflictException extends __BaseException {
28
+ static readonly shapeId: string;
24
29
  readonly name: "ConflictException";
25
30
  readonly $fault: "client";
26
31
  constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
27
32
  }
28
33
  export declare class ResourceNotFoundException extends __BaseException {
34
+ static readonly shapeId: string;
29
35
  readonly name: "ResourceNotFoundException";
30
36
  readonly $fault: "client";
31
37
  constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
32
38
  }
33
39
  export declare class ServiceQuotaExceededException extends __BaseException {
40
+ static readonly shapeId: string;
34
41
  readonly name: "ServiceQuotaExceededException";
35
42
  readonly $fault: "client";
36
43
  constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
37
44
  }
38
45
  export declare class ServiceUnavailableException extends __BaseException {
46
+ static readonly shapeId: string;
39
47
  readonly name: "ServiceUnavailableException";
40
48
  readonly $fault: "server";
41
49
  constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
42
50
  }
43
51
  export declare class ModelErrorException extends __BaseException {
52
+ static readonly shapeId: string;
44
53
  readonly name: "ModelErrorException";
45
54
  readonly $fault: "client";
46
55
  originalStatusCode?: number | undefined;
@@ -48,17 +57,20 @@ export declare class ModelErrorException extends __BaseException {
48
57
  constructor(opts: __ExceptionOptionType<ModelErrorException, __BaseException>);
49
58
  }
50
59
  export declare class ModelNotReadyException extends __BaseException {
60
+ static readonly shapeId: string;
51
61
  readonly name: "ModelNotReadyException";
52
62
  readonly $fault: "client";
53
63
  $retryable: {};
54
64
  constructor(opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>);
55
65
  }
56
66
  export declare class ModelTimeoutException extends __BaseException {
67
+ static readonly shapeId: string;
57
68
  readonly name: "ModelTimeoutException";
58
69
  readonly $fault: "client";
59
70
  constructor(opts: __ExceptionOptionType<ModelTimeoutException, __BaseException>);
60
71
  }
61
72
  export declare class ModelStreamErrorException extends __BaseException {
73
+ static readonly shapeId: string;
62
74
  readonly name: "ModelStreamErrorException";
63
75
  readonly $fault: "client";
64
76
  originalStatusCode?: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-runtime",
3
- "version": "3.1148.0",
3
+ "version": "3.1150.0",
4
4
  "description": "AWS SDK for JavaScript Bedrock 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-runtime",
6
6
  "license": "Apache-2.0",
@@ -54,14 +54,14 @@
54
54
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
55
55
  },
56
56
  "dependencies": {
57
- "@aws-sdk/core": "^3.978.1",
58
- "@aws-sdk/credential-provider-node": "^3.972.84",
59
- "@aws-sdk/eventstream-handler-node": "^3.972.35",
60
- "@aws-sdk/middleware-eventstream": "^3.972.30",
61
- "@aws-sdk/middleware-websocket": "^3.972.54",
62
- "@aws-sdk/token-providers": "3.1148.0",
57
+ "@aws-sdk/core": "^3.978.3",
58
+ "@aws-sdk/credential-provider-node": "^3.972.86",
59
+ "@aws-sdk/eventstream-handler-node": "^3.972.36",
60
+ "@aws-sdk/middleware-eventstream": "^3.972.31",
61
+ "@aws-sdk/middleware-websocket": "^3.972.56",
62
+ "@aws-sdk/token-providers": "3.1150.0",
63
63
  "@aws-sdk/types": "^3.974.6",
64
- "@smithy/core": "^3.35.0",
64
+ "@smithy/core": "^3.35.2",
65
65
  "@smithy/fetch-http-handler": "^5.8.0",
66
66
  "@smithy/node-http-handler": "^4.12.1",
67
67
  "@smithy/types": "^4.19.0",