@aws-sdk/client-bedrock-runtime 3.422.1 → 3.425.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/models/models_0.js +4 -0
- package/dist-cjs/protocols/Aws_restJson1.js +12 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +12 -0
- package/dist-types/BedrockRuntimeClient.d.ts +2 -0
- package/dist-types/commands/InvokeModelCommand.d.ts +1 -1
- package/dist-types/commands/InvokeModelWithResponseStreamCommand.d.ts +4 -1
- package/dist-types/models/models_0.d.ts +21 -1
- package/dist-types/ts3.4/BedrockRuntime.d.ts +41 -24
- package/dist-types/ts3.4/BedrockRuntimeClient.d.ts +139 -174
- package/dist-types/ts3.4/commands/InvokeModelCommand.d.ts +49 -120
- package/dist-types/ts3.4/commands/InvokeModelWithResponseStreamCommand.d.ts +49 -134
- package/dist-types/ts3.4/commands/index.d.ts +2 -2
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -22
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -5
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -2
- package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -8
- package/dist-types/ts3.4/index.d.ts +6 -11
- package/dist-types/ts3.4/models/BedrockRuntimeServiceException.d.ts +8 -13
- package/dist-types/ts3.4/models/index.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +198 -355
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +32 -20
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +98 -47
- package/dist-types/ts3.4/runtimeConfig.d.ts +98 -47
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +89 -46
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -19
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -17
- package/package.json +35 -35
|
@@ -1,355 +1,198 @@
|
|
|
1
|
-
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
-
import { BedrockRuntimeServiceException as __BaseException } from "./BedrockRuntimeServiceException";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
export
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
*/
|
|
200
|
-
bytes?: Uint8Array;
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* @public
|
|
204
|
-
* <p>An error occurred while streaming the response.</p>
|
|
205
|
-
*/
|
|
206
|
-
export declare class ModelStreamErrorException extends __BaseException {
|
|
207
|
-
readonly name: "ModelStreamErrorException";
|
|
208
|
-
readonly $fault: "client";
|
|
209
|
-
/**
|
|
210
|
-
* @public
|
|
211
|
-
* <p>The original status code.</p>
|
|
212
|
-
*/
|
|
213
|
-
originalStatusCode?: number;
|
|
214
|
-
/**
|
|
215
|
-
* @public
|
|
216
|
-
* <p>The original message.</p>
|
|
217
|
-
*/
|
|
218
|
-
originalMessage?: string;
|
|
219
|
-
/**
|
|
220
|
-
* @internal
|
|
221
|
-
*/
|
|
222
|
-
constructor(opts: __ExceptionOptionType<ModelStreamErrorException, __BaseException>);
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* @public
|
|
226
|
-
* <p>Definition of content in the response stream.</p>
|
|
227
|
-
*/
|
|
228
|
-
export type ResponseStream = ResponseStream.ChunkMember | ResponseStream.InternalServerExceptionMember | ResponseStream.ModelStreamErrorExceptionMember | ResponseStream.ThrottlingExceptionMember | ResponseStream.ValidationExceptionMember | ResponseStream.$UnknownMember;
|
|
229
|
-
/**
|
|
230
|
-
* @public
|
|
231
|
-
*/
|
|
232
|
-
export declare namespace ResponseStream {
|
|
233
|
-
/**
|
|
234
|
-
* @public
|
|
235
|
-
* <p>Content included in the response.</p>
|
|
236
|
-
*/
|
|
237
|
-
interface ChunkMember {
|
|
238
|
-
chunk: PayloadPart;
|
|
239
|
-
internalServerException?: never;
|
|
240
|
-
modelStreamErrorException?: never;
|
|
241
|
-
validationException?: never;
|
|
242
|
-
throttlingException?: never;
|
|
243
|
-
$unknown?: never;
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* @public
|
|
247
|
-
* <p>An internal server error occurred. Retry your request.</p>
|
|
248
|
-
*/
|
|
249
|
-
interface InternalServerExceptionMember {
|
|
250
|
-
chunk?: never;
|
|
251
|
-
internalServerException: InternalServerException;
|
|
252
|
-
modelStreamErrorException?: never;
|
|
253
|
-
validationException?: never;
|
|
254
|
-
throttlingException?: never;
|
|
255
|
-
$unknown?: never;
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* @public
|
|
259
|
-
* <p>An error occurred while streaming the response.</p>
|
|
260
|
-
*/
|
|
261
|
-
interface ModelStreamErrorExceptionMember {
|
|
262
|
-
chunk?: never;
|
|
263
|
-
internalServerException?: never;
|
|
264
|
-
modelStreamErrorException: ModelStreamErrorException;
|
|
265
|
-
validationException?: never;
|
|
266
|
-
throttlingException?: never;
|
|
267
|
-
$unknown?: never;
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
* @public
|
|
271
|
-
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
272
|
-
*/
|
|
273
|
-
interface ValidationExceptionMember {
|
|
274
|
-
chunk?: never;
|
|
275
|
-
internalServerException?: never;
|
|
276
|
-
modelStreamErrorException?: never;
|
|
277
|
-
validationException: ValidationException;
|
|
278
|
-
throttlingException?: never;
|
|
279
|
-
$unknown?: never;
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
* @public
|
|
283
|
-
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
284
|
-
*/
|
|
285
|
-
interface ThrottlingExceptionMember {
|
|
286
|
-
chunk?: never;
|
|
287
|
-
internalServerException?: never;
|
|
288
|
-
modelStreamErrorException?: never;
|
|
289
|
-
validationException?: never;
|
|
290
|
-
throttlingException: ThrottlingException;
|
|
291
|
-
$unknown?: never;
|
|
292
|
-
}
|
|
293
|
-
/**
|
|
294
|
-
* @public
|
|
295
|
-
*/
|
|
296
|
-
interface $UnknownMember {
|
|
297
|
-
chunk?: never;
|
|
298
|
-
internalServerException?: never;
|
|
299
|
-
modelStreamErrorException?: never;
|
|
300
|
-
validationException?: never;
|
|
301
|
-
throttlingException?: never;
|
|
302
|
-
$unknown: [
|
|
303
|
-
string,
|
|
304
|
-
any
|
|
305
|
-
];
|
|
306
|
-
}
|
|
307
|
-
interface Visitor<T> {
|
|
308
|
-
chunk: (value: PayloadPart) => T;
|
|
309
|
-
internalServerException: (value: InternalServerException) => T;
|
|
310
|
-
modelStreamErrorException: (value: ModelStreamErrorException) => T;
|
|
311
|
-
validationException: (value: ValidationException) => T;
|
|
312
|
-
throttlingException: (value: ThrottlingException) => T;
|
|
313
|
-
_: (name: string, value: any) => T;
|
|
314
|
-
}
|
|
315
|
-
const visit: <T>(value: ResponseStream, visitor: Visitor<T>) => T;
|
|
316
|
-
}
|
|
317
|
-
/**
|
|
318
|
-
* @public
|
|
319
|
-
*/
|
|
320
|
-
export interface InvokeModelWithResponseStreamResponse {
|
|
321
|
-
/**
|
|
322
|
-
* @public
|
|
323
|
-
* <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>
|
|
324
|
-
*/
|
|
325
|
-
body: AsyncIterable<ResponseStream> | undefined;
|
|
326
|
-
/**
|
|
327
|
-
* @public
|
|
328
|
-
* <p>The MIME type of the inference result.</p>
|
|
329
|
-
*/
|
|
330
|
-
contentType: string | undefined;
|
|
331
|
-
}
|
|
332
|
-
/**
|
|
333
|
-
* @internal
|
|
334
|
-
*/
|
|
335
|
-
export declare const InvokeModelRequestFilterSensitiveLog: (obj: InvokeModelRequest) => any;
|
|
336
|
-
/**
|
|
337
|
-
* @internal
|
|
338
|
-
*/
|
|
339
|
-
export declare const InvokeModelResponseFilterSensitiveLog: (obj: InvokeModelResponse) => any;
|
|
340
|
-
/**
|
|
341
|
-
* @internal
|
|
342
|
-
*/
|
|
343
|
-
export declare const InvokeModelWithResponseStreamRequestFilterSensitiveLog: (obj: InvokeModelWithResponseStreamRequest) => any;
|
|
344
|
-
/**
|
|
345
|
-
* @internal
|
|
346
|
-
*/
|
|
347
|
-
export declare const PayloadPartFilterSensitiveLog: (obj: PayloadPart) => any;
|
|
348
|
-
/**
|
|
349
|
-
* @internal
|
|
350
|
-
*/
|
|
351
|
-
export declare const ResponseStreamFilterSensitiveLog: (obj: ResponseStream) => any;
|
|
352
|
-
/**
|
|
353
|
-
* @internal
|
|
354
|
-
*/
|
|
355
|
-
export declare const InvokeModelWithResponseStreamResponseFilterSensitiveLog: (obj: InvokeModelWithResponseStreamResponse) => any;
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { BedrockRuntimeServiceException as __BaseException } from "./BedrockRuntimeServiceException";
|
|
3
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
4
|
+
readonly name: "AccessDeniedException";
|
|
5
|
+
readonly $fault: "client";
|
|
6
|
+
constructor(
|
|
7
|
+
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
8
|
+
);
|
|
9
|
+
}
|
|
10
|
+
export declare class InternalServerException extends __BaseException {
|
|
11
|
+
readonly name: "InternalServerException";
|
|
12
|
+
readonly $fault: "server";
|
|
13
|
+
constructor(
|
|
14
|
+
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
export interface InvokeModelRequest {
|
|
18
|
+
body: Uint8Array | undefined;
|
|
19
|
+
contentType?: string;
|
|
20
|
+
accept?: string;
|
|
21
|
+
modelId: string | undefined;
|
|
22
|
+
}
|
|
23
|
+
export interface InvokeModelResponse {
|
|
24
|
+
body: Uint8Array | undefined;
|
|
25
|
+
contentType: string | undefined;
|
|
26
|
+
}
|
|
27
|
+
export declare class ModelErrorException extends __BaseException {
|
|
28
|
+
readonly name: "ModelErrorException";
|
|
29
|
+
readonly $fault: "client";
|
|
30
|
+
originalStatusCode?: number;
|
|
31
|
+
resourceName?: string;
|
|
32
|
+
constructor(
|
|
33
|
+
opts: __ExceptionOptionType<ModelErrorException, __BaseException>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
export declare class ModelNotReadyException extends __BaseException {
|
|
37
|
+
readonly name: "ModelNotReadyException";
|
|
38
|
+
readonly $fault: "client";
|
|
39
|
+
constructor(
|
|
40
|
+
opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
export declare class ModelTimeoutException extends __BaseException {
|
|
44
|
+
readonly name: "ModelTimeoutException";
|
|
45
|
+
readonly $fault: "client";
|
|
46
|
+
constructor(
|
|
47
|
+
opts: __ExceptionOptionType<ModelTimeoutException, __BaseException>
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
51
|
+
readonly name: "ResourceNotFoundException";
|
|
52
|
+
readonly $fault: "client";
|
|
53
|
+
constructor(
|
|
54
|
+
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
58
|
+
readonly name: "ServiceQuotaExceededException";
|
|
59
|
+
readonly $fault: "client";
|
|
60
|
+
constructor(
|
|
61
|
+
opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
export declare class ThrottlingException extends __BaseException {
|
|
65
|
+
readonly name: "ThrottlingException";
|
|
66
|
+
readonly $fault: "client";
|
|
67
|
+
constructor(
|
|
68
|
+
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
export declare class ValidationException extends __BaseException {
|
|
72
|
+
readonly name: "ValidationException";
|
|
73
|
+
readonly $fault: "client";
|
|
74
|
+
constructor(
|
|
75
|
+
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
export interface InvokeModelWithResponseStreamRequest {
|
|
79
|
+
body: Uint8Array | undefined;
|
|
80
|
+
contentType?: string;
|
|
81
|
+
accept?: string;
|
|
82
|
+
modelId: string | undefined;
|
|
83
|
+
}
|
|
84
|
+
export interface PayloadPart {
|
|
85
|
+
bytes?: Uint8Array;
|
|
86
|
+
}
|
|
87
|
+
export declare class ModelStreamErrorException extends __BaseException {
|
|
88
|
+
readonly name: "ModelStreamErrorException";
|
|
89
|
+
readonly $fault: "client";
|
|
90
|
+
originalStatusCode?: number;
|
|
91
|
+
originalMessage?: string;
|
|
92
|
+
constructor(
|
|
93
|
+
opts: __ExceptionOptionType<ModelStreamErrorException, __BaseException>
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
export type ResponseStream =
|
|
97
|
+
| ResponseStream.ChunkMember
|
|
98
|
+
| ResponseStream.InternalServerExceptionMember
|
|
99
|
+
| ResponseStream.ModelStreamErrorExceptionMember
|
|
100
|
+
| ResponseStream.ModelTimeoutExceptionMember
|
|
101
|
+
| ResponseStream.ThrottlingExceptionMember
|
|
102
|
+
| ResponseStream.ValidationExceptionMember
|
|
103
|
+
| ResponseStream.$UnknownMember;
|
|
104
|
+
export declare namespace ResponseStream {
|
|
105
|
+
interface ChunkMember {
|
|
106
|
+
chunk: PayloadPart;
|
|
107
|
+
internalServerException?: never;
|
|
108
|
+
modelStreamErrorException?: never;
|
|
109
|
+
validationException?: never;
|
|
110
|
+
throttlingException?: never;
|
|
111
|
+
modelTimeoutException?: never;
|
|
112
|
+
$unknown?: never;
|
|
113
|
+
}
|
|
114
|
+
interface InternalServerExceptionMember {
|
|
115
|
+
chunk?: never;
|
|
116
|
+
internalServerException: InternalServerException;
|
|
117
|
+
modelStreamErrorException?: never;
|
|
118
|
+
validationException?: never;
|
|
119
|
+
throttlingException?: never;
|
|
120
|
+
modelTimeoutException?: never;
|
|
121
|
+
$unknown?: never;
|
|
122
|
+
}
|
|
123
|
+
interface ModelStreamErrorExceptionMember {
|
|
124
|
+
chunk?: never;
|
|
125
|
+
internalServerException?: never;
|
|
126
|
+
modelStreamErrorException: ModelStreamErrorException;
|
|
127
|
+
validationException?: never;
|
|
128
|
+
throttlingException?: never;
|
|
129
|
+
modelTimeoutException?: never;
|
|
130
|
+
$unknown?: never;
|
|
131
|
+
}
|
|
132
|
+
interface ValidationExceptionMember {
|
|
133
|
+
chunk?: never;
|
|
134
|
+
internalServerException?: never;
|
|
135
|
+
modelStreamErrorException?: never;
|
|
136
|
+
validationException: ValidationException;
|
|
137
|
+
throttlingException?: never;
|
|
138
|
+
modelTimeoutException?: never;
|
|
139
|
+
$unknown?: never;
|
|
140
|
+
}
|
|
141
|
+
interface ThrottlingExceptionMember {
|
|
142
|
+
chunk?: never;
|
|
143
|
+
internalServerException?: never;
|
|
144
|
+
modelStreamErrorException?: never;
|
|
145
|
+
validationException?: never;
|
|
146
|
+
throttlingException: ThrottlingException;
|
|
147
|
+
modelTimeoutException?: never;
|
|
148
|
+
$unknown?: never;
|
|
149
|
+
}
|
|
150
|
+
interface ModelTimeoutExceptionMember {
|
|
151
|
+
chunk?: never;
|
|
152
|
+
internalServerException?: never;
|
|
153
|
+
modelStreamErrorException?: never;
|
|
154
|
+
validationException?: never;
|
|
155
|
+
throttlingException?: never;
|
|
156
|
+
modelTimeoutException: ModelTimeoutException;
|
|
157
|
+
$unknown?: never;
|
|
158
|
+
}
|
|
159
|
+
interface $UnknownMember {
|
|
160
|
+
chunk?: never;
|
|
161
|
+
internalServerException?: never;
|
|
162
|
+
modelStreamErrorException?: never;
|
|
163
|
+
validationException?: never;
|
|
164
|
+
throttlingException?: never;
|
|
165
|
+
modelTimeoutException?: never;
|
|
166
|
+
$unknown: [string, any];
|
|
167
|
+
}
|
|
168
|
+
interface Visitor<T> {
|
|
169
|
+
chunk: (value: PayloadPart) => T;
|
|
170
|
+
internalServerException: (value: InternalServerException) => T;
|
|
171
|
+
modelStreamErrorException: (value: ModelStreamErrorException) => T;
|
|
172
|
+
validationException: (value: ValidationException) => T;
|
|
173
|
+
throttlingException: (value: ThrottlingException) => T;
|
|
174
|
+
modelTimeoutException: (value: ModelTimeoutException) => T;
|
|
175
|
+
_: (name: string, value: any) => T;
|
|
176
|
+
}
|
|
177
|
+
const visit: <T>(value: ResponseStream, visitor: Visitor<T>) => T;
|
|
178
|
+
}
|
|
179
|
+
export interface InvokeModelWithResponseStreamResponse {
|
|
180
|
+
body: AsyncIterable<ResponseStream> | undefined;
|
|
181
|
+
contentType: string | undefined;
|
|
182
|
+
}
|
|
183
|
+
export declare const InvokeModelRequestFilterSensitiveLog: (
|
|
184
|
+
obj: InvokeModelRequest
|
|
185
|
+
) => any;
|
|
186
|
+
export declare const InvokeModelResponseFilterSensitiveLog: (
|
|
187
|
+
obj: InvokeModelResponse
|
|
188
|
+
) => any;
|
|
189
|
+
export declare const InvokeModelWithResponseStreamRequestFilterSensitiveLog: (
|
|
190
|
+
obj: InvokeModelWithResponseStreamRequest
|
|
191
|
+
) => any;
|
|
192
|
+
export declare const PayloadPartFilterSensitiveLog: (obj: PayloadPart) => any;
|
|
193
|
+
export declare const ResponseStreamFilterSensitiveLog: (
|
|
194
|
+
obj: ResponseStream
|
|
195
|
+
) => any;
|
|
196
|
+
export declare const InvokeModelWithResponseStreamResponseFilterSensitiveLog: (
|
|
197
|
+
obj: InvokeModelWithResponseStreamResponse
|
|
198
|
+
) => any;
|
|
@@ -1,20 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import {
|
|
2
|
+
HttpRequest as __HttpRequest,
|
|
3
|
+
HttpResponse as __HttpResponse,
|
|
4
|
+
} from "@smithy/protocol-http";
|
|
5
|
+
import {
|
|
6
|
+
EventStreamSerdeContext as __EventStreamSerdeContext,
|
|
7
|
+
SerdeContext as __SerdeContext,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import {
|
|
10
|
+
InvokeModelCommandInput,
|
|
11
|
+
InvokeModelCommandOutput,
|
|
12
|
+
} from "../commands/InvokeModelCommand";
|
|
13
|
+
import {
|
|
14
|
+
InvokeModelWithResponseStreamCommandInput,
|
|
15
|
+
InvokeModelWithResponseStreamCommandOutput,
|
|
16
|
+
} from "../commands/InvokeModelWithResponseStreamCommand";
|
|
17
|
+
export declare const se_InvokeModelCommand: (
|
|
18
|
+
input: InvokeModelCommandInput,
|
|
19
|
+
context: __SerdeContext
|
|
20
|
+
) => Promise<__HttpRequest>;
|
|
21
|
+
export declare const se_InvokeModelWithResponseStreamCommand: (
|
|
22
|
+
input: InvokeModelWithResponseStreamCommandInput,
|
|
23
|
+
context: __SerdeContext
|
|
24
|
+
) => Promise<__HttpRequest>;
|
|
25
|
+
export declare const de_InvokeModelCommand: (
|
|
26
|
+
output: __HttpResponse,
|
|
27
|
+
context: __SerdeContext
|
|
28
|
+
) => Promise<InvokeModelCommandOutput>;
|
|
29
|
+
export declare const de_InvokeModelWithResponseStreamCommand: (
|
|
30
|
+
output: __HttpResponse,
|
|
31
|
+
context: __SerdeContext & __EventStreamSerdeContext
|
|
32
|
+
) => Promise<InvokeModelWithResponseStreamCommandOutput>;
|