@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
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { Uint8ArrayBlobAdapter } from "@smithy/core/serde";
|
|
2
|
-
import {
|
|
3
|
-
BlobPayloadInputTypes,
|
|
4
|
-
MetadataBearer as __MetadataBearer,
|
|
5
|
-
} from "@smithy/types";
|
|
2
|
+
import { BlobPayloadInputTypes, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
6
3
|
import { InvokeModelRequest, InvokeModelResponse } from "../models/models_0";
|
|
7
4
|
export { __MetadataBearer };
|
|
8
5
|
export type InvokeModelCommandInputType = Pick<
|
|
@@ -18,12 +15,10 @@ export type InvokeModelCommandOutputType = Pick<
|
|
|
18
15
|
> & {
|
|
19
16
|
body: Uint8ArrayBlobAdapter;
|
|
20
17
|
};
|
|
21
|
-
export interface InvokeModelCommandOutput
|
|
22
|
-
extends InvokeModelCommandOutputType,
|
|
23
|
-
__MetadataBearer {}
|
|
18
|
+
export interface InvokeModelCommandOutput extends InvokeModelCommandOutputType, __MetadataBearer {}
|
|
24
19
|
declare const InvokeModelCommand_base: {
|
|
25
20
|
new (
|
|
26
|
-
input: InvokeModelCommandInput
|
|
21
|
+
input: InvokeModelCommandInput,
|
|
27
22
|
): import("@smithy/core/client").CommandImpl<
|
|
28
23
|
InvokeModelCommandInput,
|
|
29
24
|
InvokeModelCommandOutput,
|
|
@@ -32,7 +27,7 @@ declare const InvokeModelCommand_base: {
|
|
|
32
27
|
import("..").ServiceOutputTypes
|
|
33
28
|
>;
|
|
34
29
|
new (
|
|
35
|
-
input: InvokeModelCommandInput
|
|
30
|
+
input: InvokeModelCommandInput,
|
|
36
31
|
): import("@smithy/core/client").CommandImpl<
|
|
37
32
|
InvokeModelCommandInput,
|
|
38
33
|
InvokeModelCommandOutput,
|
|
@@ -4,14 +4,12 @@ import {
|
|
|
4
4
|
InvokeModelWithBidirectionalStreamResponse,
|
|
5
5
|
} from "../models/models_0";
|
|
6
6
|
export { __MetadataBearer };
|
|
7
|
-
export interface InvokeModelWithBidirectionalStreamCommandInput
|
|
8
|
-
extends InvokeModelWithBidirectionalStreamRequest {}
|
|
7
|
+
export interface InvokeModelWithBidirectionalStreamCommandInput extends InvokeModelWithBidirectionalStreamRequest {}
|
|
9
8
|
export interface InvokeModelWithBidirectionalStreamCommandOutput
|
|
10
|
-
extends InvokeModelWithBidirectionalStreamResponse,
|
|
11
|
-
__MetadataBearer {}
|
|
9
|
+
extends InvokeModelWithBidirectionalStreamResponse, __MetadataBearer {}
|
|
12
10
|
declare const InvokeModelWithBidirectionalStreamCommand_base: {
|
|
13
11
|
new (
|
|
14
|
-
input: InvokeModelWithBidirectionalStreamCommandInput
|
|
12
|
+
input: InvokeModelWithBidirectionalStreamCommandInput,
|
|
15
13
|
): import("@smithy/core/client").CommandImpl<
|
|
16
14
|
InvokeModelWithBidirectionalStreamCommandInput,
|
|
17
15
|
InvokeModelWithBidirectionalStreamCommandOutput,
|
|
@@ -20,7 +18,7 @@ declare const InvokeModelWithBidirectionalStreamCommand_base: {
|
|
|
20
18
|
import("..").ServiceOutputTypes
|
|
21
19
|
>;
|
|
22
20
|
new (
|
|
23
|
-
input: InvokeModelWithBidirectionalStreamCommandInput
|
|
21
|
+
input: InvokeModelWithBidirectionalStreamCommandInput,
|
|
24
22
|
): import("@smithy/core/client").CommandImpl<
|
|
25
23
|
InvokeModelWithBidirectionalStreamCommandInput,
|
|
26
24
|
InvokeModelWithBidirectionalStreamCommandOutput,
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BlobPayloadInputTypes,
|
|
3
|
-
MetadataBearer as __MetadataBearer,
|
|
4
|
-
} from "@smithy/types";
|
|
1
|
+
import { BlobPayloadInputTypes, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
2
|
import {
|
|
6
3
|
InvokeModelWithResponseStreamRequest,
|
|
7
4
|
InvokeModelWithResponseStreamResponse,
|
|
@@ -13,14 +10,12 @@ export type InvokeModelWithResponseStreamCommandInputType = Pick<
|
|
|
13
10
|
> & {
|
|
14
11
|
body?: BlobPayloadInputTypes;
|
|
15
12
|
};
|
|
16
|
-
export interface InvokeModelWithResponseStreamCommandInput
|
|
17
|
-
extends InvokeModelWithResponseStreamCommandInputType {}
|
|
13
|
+
export interface InvokeModelWithResponseStreamCommandInput extends InvokeModelWithResponseStreamCommandInputType {}
|
|
18
14
|
export interface InvokeModelWithResponseStreamCommandOutput
|
|
19
|
-
extends InvokeModelWithResponseStreamResponse,
|
|
20
|
-
__MetadataBearer {}
|
|
15
|
+
extends InvokeModelWithResponseStreamResponse, __MetadataBearer {}
|
|
21
16
|
declare const InvokeModelWithResponseStreamCommand_base: {
|
|
22
17
|
new (
|
|
23
|
-
input: InvokeModelWithResponseStreamCommandInput
|
|
18
|
+
input: InvokeModelWithResponseStreamCommandInput,
|
|
24
19
|
): import("@smithy/core/client").CommandImpl<
|
|
25
20
|
InvokeModelWithResponseStreamCommandInput,
|
|
26
21
|
InvokeModelWithResponseStreamCommandOutput,
|
|
@@ -29,7 +24,7 @@ declare const InvokeModelWithResponseStreamCommand_base: {
|
|
|
29
24
|
import("..").ServiceOutputTypes
|
|
30
25
|
>;
|
|
31
26
|
new (
|
|
32
|
-
input: InvokeModelWithResponseStreamCommandInput
|
|
27
|
+
input: InvokeModelWithResponseStreamCommandInput,
|
|
33
28
|
): import("@smithy/core/client").CommandImpl<
|
|
34
29
|
InvokeModelWithResponseStreamCommandInput,
|
|
35
30
|
InvokeModelWithResponseStreamCommandOutput,
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import {
|
|
3
|
-
ListAsyncInvokesRequest,
|
|
4
|
-
ListAsyncInvokesResponse,
|
|
5
|
-
} from "../models/models_0";
|
|
2
|
+
import { ListAsyncInvokesRequest, ListAsyncInvokesResponse } from "../models/models_0";
|
|
6
3
|
export { __MetadataBearer };
|
|
7
4
|
export interface ListAsyncInvokesCommandInput extends ListAsyncInvokesRequest {}
|
|
8
|
-
export interface ListAsyncInvokesCommandOutput
|
|
9
|
-
extends ListAsyncInvokesResponse,
|
|
10
|
-
__MetadataBearer {}
|
|
5
|
+
export interface ListAsyncInvokesCommandOutput extends ListAsyncInvokesResponse, __MetadataBearer {}
|
|
11
6
|
declare const ListAsyncInvokesCommand_base: {
|
|
12
7
|
new (
|
|
13
|
-
input: ListAsyncInvokesCommandInput
|
|
8
|
+
input: ListAsyncInvokesCommandInput,
|
|
14
9
|
): import("@smithy/core/client").CommandImpl<
|
|
15
10
|
ListAsyncInvokesCommandInput,
|
|
16
11
|
ListAsyncInvokesCommandOutput,
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import {
|
|
3
|
-
StartAsyncInvokeRequest,
|
|
4
|
-
StartAsyncInvokeResponse,
|
|
5
|
-
} from "../models/models_0";
|
|
2
|
+
import { StartAsyncInvokeRequest, StartAsyncInvokeResponse } from "../models/models_0";
|
|
6
3
|
export { __MetadataBearer };
|
|
7
4
|
export interface StartAsyncInvokeCommandInput extends StartAsyncInvokeRequest {}
|
|
8
|
-
export interface StartAsyncInvokeCommandOutput
|
|
9
|
-
extends StartAsyncInvokeResponse,
|
|
10
|
-
__MetadataBearer {}
|
|
5
|
+
export interface StartAsyncInvokeCommandOutput extends StartAsyncInvokeResponse, __MetadataBearer {}
|
|
11
6
|
declare const StartAsyncInvokeCommand_base: {
|
|
12
7
|
new (
|
|
13
|
-
input: StartAsyncInvokeCommandInput
|
|
8
|
+
input: StartAsyncInvokeCommandInput,
|
|
14
9
|
): import("@smithy/core/client").CommandImpl<
|
|
15
10
|
StartAsyncInvokeCommandInput,
|
|
16
11
|
StartAsyncInvokeCommandOutput,
|
|
@@ -19,7 +14,7 @@ declare const StartAsyncInvokeCommand_base: {
|
|
|
19
14
|
import("..").ServiceOutputTypes
|
|
20
15
|
>;
|
|
21
16
|
new (
|
|
22
|
-
input: StartAsyncInvokeCommandInput
|
|
17
|
+
input: StartAsyncInvokeCommandInput,
|
|
23
18
|
): import("@smithy/core/client").CommandImpl<
|
|
24
19
|
StartAsyncInvokeCommandInput,
|
|
25
20
|
StartAsyncInvokeCommandOutput,
|
|
@@ -23,7 +23,7 @@ export type ClientResolvedEndpointParameters = Pick<
|
|
|
23
23
|
defaultSigningName: string;
|
|
24
24
|
};
|
|
25
25
|
export declare const resolveClientEndpointParameters: <T>(
|
|
26
|
-
options: T & ClientInputEndpointParameters
|
|
26
|
+
options: T & ClientInputEndpointParameters,
|
|
27
27
|
) => T & ClientResolvedEndpointParameters;
|
|
28
28
|
export declare const commonParams: {
|
|
29
29
|
readonly UseFIPS: {
|
|
@@ -3,7 +3,8 @@ import { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
|
|
|
3
3
|
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
4
|
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
5
5
|
export interface BedrockRuntimeExtensionConfiguration
|
|
6
|
-
extends
|
|
6
|
+
extends
|
|
7
|
+
HttpHandlerExtensionConfiguration,
|
|
7
8
|
DefaultExtensionConfiguration,
|
|
8
9
|
AwsRegionExtensionConfiguration,
|
|
9
10
|
HttpAuthExtensionConfiguration {}
|
|
@@ -3,8 +3,7 @@ export declare const AsyncInvokeStatus: {
|
|
|
3
3
|
readonly FAILED: "Failed";
|
|
4
4
|
readonly IN_PROGRESS: "InProgress";
|
|
5
5
|
};
|
|
6
|
-
export type AsyncInvokeStatus =
|
|
7
|
-
(typeof AsyncInvokeStatus)[keyof typeof AsyncInvokeStatus];
|
|
6
|
+
export type AsyncInvokeStatus = (typeof AsyncInvokeStatus)[keyof typeof AsyncInvokeStatus];
|
|
8
7
|
export declare const SortAsyncInvocationBy: {
|
|
9
8
|
readonly SUBMISSION_TIME: "SubmissionTime";
|
|
10
9
|
};
|
|
@@ -19,8 +18,7 @@ export declare const GuardrailImageFormat: {
|
|
|
19
18
|
readonly JPEG: "jpeg";
|
|
20
19
|
readonly PNG: "png";
|
|
21
20
|
};
|
|
22
|
-
export type GuardrailImageFormat =
|
|
23
|
-
(typeof GuardrailImageFormat)[keyof typeof GuardrailImageFormat];
|
|
21
|
+
export type GuardrailImageFormat = (typeof GuardrailImageFormat)[keyof typeof GuardrailImageFormat];
|
|
24
22
|
export declare const GuardrailContentQualifier: {
|
|
25
23
|
readonly GROUNDING_SOURCE: "grounding_source";
|
|
26
24
|
readonly GUARD_CONTENT: "guard_content";
|
|
@@ -32,8 +30,7 @@ export declare const GuardrailOutputScope: {
|
|
|
32
30
|
readonly FULL: "FULL";
|
|
33
31
|
readonly INTERVENTIONS: "INTERVENTIONS";
|
|
34
32
|
};
|
|
35
|
-
export type GuardrailOutputScope =
|
|
36
|
-
(typeof GuardrailOutputScope)[keyof typeof GuardrailOutputScope];
|
|
33
|
+
export type GuardrailOutputScope = (typeof GuardrailOutputScope)[keyof typeof GuardrailOutputScope];
|
|
37
34
|
export declare const GuardrailContentSource: {
|
|
38
35
|
readonly INPUT: "INPUT";
|
|
39
36
|
readonly OUTPUT: "OUTPUT";
|
|
@@ -44,21 +41,18 @@ export declare const GuardrailAction: {
|
|
|
44
41
|
readonly GUARDRAIL_INTERVENED: "GUARDRAIL_INTERVENED";
|
|
45
42
|
readonly NONE: "NONE";
|
|
46
43
|
};
|
|
47
|
-
export type GuardrailAction =
|
|
48
|
-
(typeof GuardrailAction)[keyof typeof GuardrailAction];
|
|
44
|
+
export type GuardrailAction = (typeof GuardrailAction)[keyof typeof GuardrailAction];
|
|
49
45
|
export declare const GuardrailOrigin: {
|
|
50
46
|
readonly ACCOUNT_ENFORCED: "ACCOUNT_ENFORCED";
|
|
51
47
|
readonly ORGANIZATION_ENFORCED: "ORGANIZATION_ENFORCED";
|
|
52
48
|
readonly REQUEST: "REQUEST";
|
|
53
49
|
};
|
|
54
|
-
export type GuardrailOrigin =
|
|
55
|
-
(typeof GuardrailOrigin)[keyof typeof GuardrailOrigin];
|
|
50
|
+
export type GuardrailOrigin = (typeof GuardrailOrigin)[keyof typeof GuardrailOrigin];
|
|
56
51
|
export declare const GuardrailOwnership: {
|
|
57
52
|
readonly CROSS_ACCOUNT: "CROSS_ACCOUNT";
|
|
58
53
|
readonly SELF: "SELF";
|
|
59
54
|
};
|
|
60
|
-
export type GuardrailOwnership =
|
|
61
|
-
(typeof GuardrailOwnership)[keyof typeof GuardrailOwnership];
|
|
55
|
+
export type GuardrailOwnership = (typeof GuardrailOwnership)[keyof typeof GuardrailOwnership];
|
|
62
56
|
export declare const GuardrailAutomatedReasoningLogicWarningType: {
|
|
63
57
|
readonly ALWAYS_FALSE: "ALWAYS_FALSE";
|
|
64
58
|
readonly ALWAYS_TRUE: "ALWAYS_TRUE";
|
|
@@ -160,8 +154,7 @@ export type GuardrailTopicPolicyAction =
|
|
|
160
154
|
export declare const GuardrailTopicType: {
|
|
161
155
|
readonly DENY: "DENY";
|
|
162
156
|
};
|
|
163
|
-
export type GuardrailTopicType =
|
|
164
|
-
(typeof GuardrailTopicType)[keyof typeof GuardrailTopicType];
|
|
157
|
+
export type GuardrailTopicType = (typeof GuardrailTopicType)[keyof typeof GuardrailTopicType];
|
|
165
158
|
export declare const GuardrailWordPolicyAction: {
|
|
166
159
|
readonly BLOCKED: "BLOCKED";
|
|
167
160
|
readonly NONE: "NONE";
|
|
@@ -229,15 +222,13 @@ export declare const GuardrailChecksRole: {
|
|
|
229
222
|
readonly SYSTEM: "system";
|
|
230
223
|
readonly USER: "user";
|
|
231
224
|
};
|
|
232
|
-
export type GuardrailChecksRole =
|
|
233
|
-
(typeof GuardrailChecksRole)[keyof typeof GuardrailChecksRole];
|
|
225
|
+
export type GuardrailChecksRole = (typeof GuardrailChecksRole)[keyof typeof GuardrailChecksRole];
|
|
234
226
|
export declare const GuardrailTrace: {
|
|
235
227
|
readonly DISABLED: "disabled";
|
|
236
228
|
readonly ENABLED: "enabled";
|
|
237
229
|
readonly ENABLED_FULL: "enabled_full";
|
|
238
230
|
};
|
|
239
|
-
export type GuardrailTrace =
|
|
240
|
-
(typeof GuardrailTrace)[keyof typeof GuardrailTrace];
|
|
231
|
+
export type GuardrailTrace = (typeof GuardrailTrace)[keyof typeof GuardrailTrace];
|
|
241
232
|
export declare const AudioFormat: {
|
|
242
233
|
readonly AAC: "aac";
|
|
243
234
|
readonly FLAC: "flac";
|
|
@@ -264,8 +255,7 @@ export type CacheTTL = (typeof CacheTTL)[keyof typeof CacheTTL];
|
|
|
264
255
|
export declare const CachePointType: {
|
|
265
256
|
readonly DEFAULT: "default";
|
|
266
257
|
};
|
|
267
|
-
export type CachePointType =
|
|
268
|
-
(typeof CachePointType)[keyof typeof CachePointType];
|
|
258
|
+
export type CachePointType = (typeof CachePointType)[keyof typeof CachePointType];
|
|
269
259
|
export declare const DocumentFormat: {
|
|
270
260
|
readonly CSV: "csv";
|
|
271
261
|
readonly DOC: "doc";
|
|
@@ -277,8 +267,7 @@ export declare const DocumentFormat: {
|
|
|
277
267
|
readonly XLS: "xls";
|
|
278
268
|
readonly XLSX: "xlsx";
|
|
279
269
|
};
|
|
280
|
-
export type DocumentFormat =
|
|
281
|
-
(typeof DocumentFormat)[keyof typeof DocumentFormat];
|
|
270
|
+
export type DocumentFormat = (typeof DocumentFormat)[keyof typeof DocumentFormat];
|
|
282
271
|
export declare const GuardrailConverseImageFormat: {
|
|
283
272
|
readonly JPEG: "jpeg";
|
|
284
273
|
readonly PNG: "png";
|
|
@@ -315,8 +304,7 @@ export declare const ToolResultStatus: {
|
|
|
315
304
|
readonly ERROR: "error";
|
|
316
305
|
readonly SUCCESS: "success";
|
|
317
306
|
};
|
|
318
|
-
export type ToolResultStatus =
|
|
319
|
-
(typeof ToolResultStatus)[keyof typeof ToolResultStatus];
|
|
307
|
+
export type ToolResultStatus = (typeof ToolResultStatus)[keyof typeof ToolResultStatus];
|
|
320
308
|
export declare const ToolUseType: {
|
|
321
309
|
readonly SERVER_TOOL_USE: "server_tool_use";
|
|
322
310
|
};
|
|
@@ -326,13 +314,11 @@ export declare const ConversationRole: {
|
|
|
326
314
|
readonly SYSTEM: "system";
|
|
327
315
|
readonly USER: "user";
|
|
328
316
|
};
|
|
329
|
-
export type ConversationRole =
|
|
330
|
-
(typeof ConversationRole)[keyof typeof ConversationRole];
|
|
317
|
+
export type ConversationRole = (typeof ConversationRole)[keyof typeof ConversationRole];
|
|
331
318
|
export declare const OutputFormatType: {
|
|
332
319
|
readonly JSON_SCHEMA: "json_schema";
|
|
333
320
|
};
|
|
334
|
-
export type OutputFormatType =
|
|
335
|
-
(typeof OutputFormatType)[keyof typeof OutputFormatType];
|
|
321
|
+
export type OutputFormatType = (typeof OutputFormatType)[keyof typeof OutputFormatType];
|
|
336
322
|
export declare const PerformanceConfigLatency: {
|
|
337
323
|
readonly OPTIMIZED: "optimized";
|
|
338
324
|
readonly STANDARD: "standard";
|
|
@@ -345,8 +331,7 @@ export declare const ServiceTierType: {
|
|
|
345
331
|
readonly PRIORITY: "priority";
|
|
346
332
|
readonly RESERVED: "reserved";
|
|
347
333
|
};
|
|
348
|
-
export type ServiceTierType =
|
|
349
|
-
(typeof ServiceTierType)[keyof typeof ServiceTierType];
|
|
334
|
+
export type ServiceTierType = (typeof ServiceTierType)[keyof typeof ServiceTierType];
|
|
350
335
|
export declare const StopReason: {
|
|
351
336
|
readonly CONTENT_FILTERED: "content_filtered";
|
|
352
337
|
readonly END_TURN: "end_turn";
|
|
@@ -3,30 +3,22 @@ import { BedrockRuntimeServiceException as __BaseException } from "./BedrockRunt
|
|
|
3
3
|
export declare class AccessDeniedException extends __BaseException {
|
|
4
4
|
readonly name: "AccessDeniedException";
|
|
5
5
|
readonly $fault: "client";
|
|
6
|
-
constructor(
|
|
7
|
-
opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
|
|
8
|
-
);
|
|
6
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
9
7
|
}
|
|
10
8
|
export declare class InternalServerException extends __BaseException {
|
|
11
9
|
readonly name: "InternalServerException";
|
|
12
10
|
readonly $fault: "server";
|
|
13
|
-
constructor(
|
|
14
|
-
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
15
|
-
);
|
|
11
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
16
12
|
}
|
|
17
13
|
export declare class ThrottlingException extends __BaseException {
|
|
18
14
|
readonly name: "ThrottlingException";
|
|
19
15
|
readonly $fault: "client";
|
|
20
|
-
constructor(
|
|
21
|
-
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
22
|
-
);
|
|
16
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
23
17
|
}
|
|
24
18
|
export declare class ValidationException extends __BaseException {
|
|
25
19
|
readonly name: "ValidationException";
|
|
26
20
|
readonly $fault: "client";
|
|
27
|
-
constructor(
|
|
28
|
-
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
29
|
-
);
|
|
21
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
30
22
|
}
|
|
31
23
|
export declare class ConflictException extends __BaseException {
|
|
32
24
|
readonly name: "ConflictException";
|
|
@@ -36,54 +28,40 @@ export declare class ConflictException extends __BaseException {
|
|
|
36
28
|
export declare class ResourceNotFoundException extends __BaseException {
|
|
37
29
|
readonly name: "ResourceNotFoundException";
|
|
38
30
|
readonly $fault: "client";
|
|
39
|
-
constructor(
|
|
40
|
-
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
41
|
-
);
|
|
31
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
42
32
|
}
|
|
43
33
|
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
44
34
|
readonly name: "ServiceQuotaExceededException";
|
|
45
35
|
readonly $fault: "client";
|
|
46
|
-
constructor(
|
|
47
|
-
opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
|
|
48
|
-
);
|
|
36
|
+
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
49
37
|
}
|
|
50
38
|
export declare class ServiceUnavailableException extends __BaseException {
|
|
51
39
|
readonly name: "ServiceUnavailableException";
|
|
52
40
|
readonly $fault: "server";
|
|
53
|
-
constructor(
|
|
54
|
-
opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
|
|
55
|
-
);
|
|
41
|
+
constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
|
|
56
42
|
}
|
|
57
43
|
export declare class ModelErrorException extends __BaseException {
|
|
58
44
|
readonly name: "ModelErrorException";
|
|
59
45
|
readonly $fault: "client";
|
|
60
46
|
originalStatusCode?: number | undefined;
|
|
61
47
|
resourceName?: string | undefined;
|
|
62
|
-
constructor(
|
|
63
|
-
opts: __ExceptionOptionType<ModelErrorException, __BaseException>
|
|
64
|
-
);
|
|
48
|
+
constructor(opts: __ExceptionOptionType<ModelErrorException, __BaseException>);
|
|
65
49
|
}
|
|
66
50
|
export declare class ModelNotReadyException extends __BaseException {
|
|
67
51
|
readonly name: "ModelNotReadyException";
|
|
68
52
|
readonly $fault: "client";
|
|
69
53
|
$retryable: {};
|
|
70
|
-
constructor(
|
|
71
|
-
opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>
|
|
72
|
-
);
|
|
54
|
+
constructor(opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>);
|
|
73
55
|
}
|
|
74
56
|
export declare class ModelTimeoutException extends __BaseException {
|
|
75
57
|
readonly name: "ModelTimeoutException";
|
|
76
58
|
readonly $fault: "client";
|
|
77
|
-
constructor(
|
|
78
|
-
opts: __ExceptionOptionType<ModelTimeoutException, __BaseException>
|
|
79
|
-
);
|
|
59
|
+
constructor(opts: __ExceptionOptionType<ModelTimeoutException, __BaseException>);
|
|
80
60
|
}
|
|
81
61
|
export declare class ModelStreamErrorException extends __BaseException {
|
|
82
62
|
readonly name: "ModelStreamErrorException";
|
|
83
63
|
readonly $fault: "client";
|
|
84
64
|
originalStatusCode?: number | undefined;
|
|
85
65
|
originalMessage?: string | undefined;
|
|
86
|
-
constructor(
|
|
87
|
-
opts: __ExceptionOptionType<ModelStreamErrorException, __BaseException>
|
|
88
|
-
);
|
|
66
|
+
constructor(opts: __ExceptionOptionType<ModelStreamErrorException, __BaseException>);
|
|
89
67
|
}
|
|
@@ -212,12 +212,8 @@ export interface GuardrailAutomatedReasoningInputTextReference {
|
|
|
212
212
|
export interface GuardrailAutomatedReasoningTranslation {
|
|
213
213
|
premises?: GuardrailAutomatedReasoningStatement[] | undefined;
|
|
214
214
|
claims?: GuardrailAutomatedReasoningStatement[] | undefined;
|
|
215
|
-
untranslatedPremises?:
|
|
216
|
-
|
|
217
|
-
| undefined;
|
|
218
|
-
untranslatedClaims?:
|
|
219
|
-
| GuardrailAutomatedReasoningInputTextReference[]
|
|
220
|
-
| undefined;
|
|
215
|
+
untranslatedPremises?: GuardrailAutomatedReasoningInputTextReference[] | undefined;
|
|
216
|
+
untranslatedClaims?: GuardrailAutomatedReasoningInputTextReference[] | undefined;
|
|
221
217
|
confidence?: number | undefined;
|
|
222
218
|
}
|
|
223
219
|
export interface GuardrailAutomatedReasoningImpossibleFinding {
|
|
@@ -349,13 +345,9 @@ export declare namespace GuardrailAutomatedReasoningFinding {
|
|
|
349
345
|
invalid: (value: GuardrailAutomatedReasoningInvalidFinding) => T;
|
|
350
346
|
satisfiable: (value: GuardrailAutomatedReasoningSatisfiableFinding) => T;
|
|
351
347
|
impossible: (value: GuardrailAutomatedReasoningImpossibleFinding) => T;
|
|
352
|
-
translationAmbiguous: (
|
|
353
|
-
value: GuardrailAutomatedReasoningTranslationAmbiguousFinding
|
|
354
|
-
) => T;
|
|
348
|
+
translationAmbiguous: (value: GuardrailAutomatedReasoningTranslationAmbiguousFinding) => T;
|
|
355
349
|
tooComplex: (value: GuardrailAutomatedReasoningTooComplexFinding) => T;
|
|
356
|
-
noTranslations: (
|
|
357
|
-
value: GuardrailAutomatedReasoningNoTranslationsFinding
|
|
358
|
-
) => T;
|
|
350
|
+
noTranslations: (value: GuardrailAutomatedReasoningNoTranslationsFinding) => T;
|
|
359
351
|
_: (name: string, value: any) => T;
|
|
360
352
|
}
|
|
361
353
|
}
|
|
@@ -455,15 +447,9 @@ export interface GuardrailAssessment {
|
|
|
455
447
|
topicPolicy?: GuardrailTopicPolicyAssessment | undefined;
|
|
456
448
|
contentPolicy?: GuardrailContentPolicyAssessment | undefined;
|
|
457
449
|
wordPolicy?: GuardrailWordPolicyAssessment | undefined;
|
|
458
|
-
sensitiveInformationPolicy?:
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
contextualGroundingPolicy?:
|
|
462
|
-
| GuardrailContextualGroundingPolicyAssessment
|
|
463
|
-
| undefined;
|
|
464
|
-
automatedReasoningPolicy?:
|
|
465
|
-
| GuardrailAutomatedReasoningPolicyAssessment
|
|
466
|
-
| undefined;
|
|
450
|
+
sensitiveInformationPolicy?: GuardrailSensitiveInformationPolicyAssessment | undefined;
|
|
451
|
+
contextualGroundingPolicy?: GuardrailContextualGroundingPolicyAssessment | undefined;
|
|
452
|
+
automatedReasoningPolicy?: GuardrailAutomatedReasoningPolicyAssessment | undefined;
|
|
467
453
|
invocationMetrics?: GuardrailInvocationMetrics | undefined;
|
|
468
454
|
appliedGuardrailDetails?: AppliedGuardrailDetails | undefined;
|
|
469
455
|
}
|
|
@@ -1447,9 +1433,7 @@ export declare namespace ToolChoice {
|
|
|
1447
1433
|
export interface SystemTool {
|
|
1448
1434
|
name: string | undefined;
|
|
1449
1435
|
}
|
|
1450
|
-
export type ToolInputSchema =
|
|
1451
|
-
| ToolInputSchema.JsonMember
|
|
1452
|
-
| ToolInputSchema.$UnknownMember;
|
|
1436
|
+
export type ToolInputSchema = ToolInputSchema.JsonMember | ToolInputSchema.$UnknownMember;
|
|
1453
1437
|
export declare namespace ToolInputSchema {
|
|
1454
1438
|
interface JsonMember {
|
|
1455
1439
|
json: __DocumentType;
|
|
@@ -1529,9 +1513,7 @@ export interface ConverseRequest {
|
|
|
1529
1513
|
export interface ConverseMetrics {
|
|
1530
1514
|
latencyMs: number | undefined;
|
|
1531
1515
|
}
|
|
1532
|
-
export type ConverseOutput =
|
|
1533
|
-
| ConverseOutput.MessageMember
|
|
1534
|
-
| ConverseOutput.$UnknownMember;
|
|
1516
|
+
export type ConverseOutput = ConverseOutput.MessageMember | ConverseOutput.$UnknownMember;
|
|
1535
1517
|
export declare namespace ConverseOutput {
|
|
1536
1518
|
interface MessageMember {
|
|
1537
1519
|
message: Message;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PaginationConfiguration } from "@smithy/types";
|
|
2
2
|
import { BedrockRuntimeClient } from "../BedrockRuntimeClient";
|
|
3
|
-
export interface BedrockRuntimePaginationConfiguration
|
|
4
|
-
extends PaginationConfiguration {
|
|
3
|
+
export interface BedrockRuntimePaginationConfiguration extends PaginationConfiguration {
|
|
5
4
|
client: BedrockRuntimeClient;
|
|
6
5
|
}
|
|
@@ -8,11 +8,9 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
8
8
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
9
9
|
credentialDefaultProvider:
|
|
10
10
|
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
|
|
11
|
-
| ((
|
|
12
|
-
_: unknown
|
|
13
|
-
) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
11
|
+
| ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
|
|
14
12
|
defaultUserAgentProvider: (
|
|
15
|
-
config?: import("@aws-sdk/core/client").PreviouslyResolved
|
|
13
|
+
config?: import("@aws-sdk/core/client").PreviouslyResolved,
|
|
16
14
|
) => Promise<import("@smithy/types").UserAgent>;
|
|
17
15
|
eventStreamPayloadHandlerProvider: import("@smithy/types").EventStreamPayloadHandlerProvider;
|
|
18
16
|
eventStreamSerdeProvider: import("@smithy/types").EventStreamSerdeProvider;
|
|
@@ -21,11 +19,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
21
19
|
requestHandler: WebSocketRequestHandler;
|
|
22
20
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
23
21
|
streamCollector: (
|
|
24
|
-
stream:
|
|
25
|
-
| import("stream").Readable
|
|
26
|
-
| import("stream/web").ReadableStream
|
|
27
|
-
| ReadableStream
|
|
28
|
-
| Blob
|
|
22
|
+
stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob,
|
|
29
23
|
) => Promise<Uint8Array>;
|
|
30
24
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
31
25
|
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
@@ -53,13 +47,8 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
53
47
|
logger: import("@smithy/types").Logger;
|
|
54
48
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
55
49
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
56
|
-
userAgentAppId?:
|
|
57
|
-
|
|
58
|
-
| undefined
|
|
59
|
-
| import("@smithy/types").Provider<string | undefined>;
|
|
60
|
-
retryStrategy?:
|
|
61
|
-
| import("@smithy/types").RetryStrategy
|
|
62
|
-
| import("@smithy/types").RetryStrategyV2;
|
|
50
|
+
userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
|
|
51
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
|
|
63
52
|
endpoint?:
|
|
64
53
|
| ((
|
|
65
54
|
| string
|
|
@@ -81,7 +70,7 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
81
70
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
82
71
|
context?: {
|
|
83
72
|
logger?: import("@smithy/types").Logger;
|
|
84
|
-
}
|
|
73
|
+
},
|
|
85
74
|
) => import("@smithy/types").EndpointV2;
|
|
86
75
|
tls?: boolean;
|
|
87
76
|
serviceConfiguredEndpoint?: never;
|
|
@@ -90,43 +79,33 @@ export declare const getRuntimeConfig: (config: BedrockRuntimeClientConfig) => {
|
|
|
90
79
|
| {
|
|
91
80
|
schemeId: string;
|
|
92
81
|
identityProvider: (
|
|
93
|
-
ipc: import("@smithy/types").IdentityProviderConfig
|
|
94
|
-
) =>
|
|
95
|
-
| import("@smithy/types").IdentityProvider<
|
|
96
|
-
import("@smithy/types").Identity
|
|
97
|
-
>
|
|
98
|
-
| undefined;
|
|
82
|
+
ipc: import("@smithy/types").IdentityProviderConfig,
|
|
83
|
+
) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
99
84
|
signer: import("@aws-sdk/core/httpAuthSchemes").AwsSdkSigV4Signer;
|
|
100
85
|
}
|
|
101
86
|
| {
|
|
102
87
|
schemeId: string;
|
|
103
88
|
identityProvider: (
|
|
104
|
-
ipc: import("@smithy/types").IdentityProviderConfig
|
|
105
|
-
) =>
|
|
106
|
-
| import("@smithy/types").IdentityProvider<
|
|
107
|
-
import("@smithy/types").Identity
|
|
108
|
-
>
|
|
109
|
-
| undefined;
|
|
89
|
+
ipc: import("@smithy/types").IdentityProviderConfig,
|
|
90
|
+
) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
|
|
110
91
|
signer: import("@smithy/core").HttpBearerAuthSigner;
|
|
111
92
|
}
|
|
112
93
|
)[];
|
|
113
94
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BedrockRuntimeHttpAuthSchemeProvider;
|
|
114
|
-
token?:
|
|
115
|
-
| import("@smithy/types").TokenIdentity
|
|
116
|
-
| import("@smithy/types").TokenIdentityProvider;
|
|
95
|
+
token?: import("@smithy/types").TokenIdentity | import("@smithy/types").TokenIdentityProvider;
|
|
117
96
|
credentials?:
|
|
118
97
|
| import("@smithy/types").AwsCredentialIdentity
|
|
119
98
|
| import("@smithy/types").AwsCredentialIdentityProvider;
|
|
120
99
|
signer?:
|
|
121
100
|
| import("@smithy/types").RequestSigner
|
|
122
101
|
| ((
|
|
123
|
-
authScheme?: import("@smithy/types").AuthScheme
|
|
102
|
+
authScheme?: import("@smithy/types").AuthScheme,
|
|
124
103
|
) => Promise<import("@smithy/types").RequestSigner>);
|
|
125
104
|
signingEscapePath?: boolean;
|
|
126
105
|
systemClockOffset?: number;
|
|
127
106
|
signingRegion?: string;
|
|
128
107
|
signerConstructor?: new (
|
|
129
108
|
options: import("@smithy/signature-v4").SignatureV4Init &
|
|
130
|
-
import("@smithy/signature-v4").SignatureV4CryptoInit
|
|
109
|
+
import("@smithy/signature-v4").SignatureV4CryptoInit,
|
|
131
110
|
) => import("@smithy/types").RequestSigner;
|
|
132
111
|
};
|