@aws-sdk/client-bedrock-runtime 3.1067.0 → 3.1069.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/README.md +7 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +11 -17
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +147 -99
- package/dist-cjs/models/BedrockRuntimeServiceException.js +4 -8
- package/dist-cjs/models/errors.js +25 -40
- package/dist-cjs/runtimeConfig.browser.js +27 -31
- package/dist-cjs/runtimeConfig.js +40 -44
- package/dist-cjs/runtimeConfig.native.js +6 -9
- package/dist-cjs/runtimeConfig.shared.js +22 -26
- package/dist-cjs/schemas/schemas_0.js +688 -315
- package/dist-es/BedrockRuntime.js +2 -0
- package/dist-es/commands/InvokeGuardrailChecksCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +50 -0
- package/dist-es/schemas/schemas_0.js +204 -16
- package/dist-types/BedrockRuntime.d.ts +7 -0
- package/dist-types/BedrockRuntimeClient.d.ts +3 -2
- package/dist-types/commands/InvokeGuardrailChecksCommand.d.ts +164 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +82 -0
- package/dist-types/models/models_0.d.ts +348 -1
- package/dist-types/schemas/schemas_0.d.ts +23 -0
- package/dist-types/ts3.4/BedrockRuntime.d.ts +17 -0
- package/dist-types/ts3.4/BedrockRuntimeClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/InvokeGuardrailChecksCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +58 -0
- package/dist-types/ts3.4/models/models_0.d.ts +101 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +23 -0
- package/package.json +18 -18
|
@@ -24,6 +24,10 @@ import {
|
|
|
24
24
|
GetAsyncInvokeCommandInput,
|
|
25
25
|
GetAsyncInvokeCommandOutput,
|
|
26
26
|
} from "./commands/GetAsyncInvokeCommand";
|
|
27
|
+
import {
|
|
28
|
+
InvokeGuardrailChecksCommandInput,
|
|
29
|
+
InvokeGuardrailChecksCommandOutput,
|
|
30
|
+
} from "./commands/InvokeGuardrailChecksCommand";
|
|
27
31
|
import {
|
|
28
32
|
InvokeModelCommandInput,
|
|
29
33
|
InvokeModelCommandOutput,
|
|
@@ -110,6 +114,19 @@ export interface BedrockRuntime {
|
|
|
110
114
|
options: __HttpHandlerOptions,
|
|
111
115
|
cb: (err: any, data?: GetAsyncInvokeCommandOutput) => void
|
|
112
116
|
): void;
|
|
117
|
+
invokeGuardrailChecks(
|
|
118
|
+
args: InvokeGuardrailChecksCommandInput,
|
|
119
|
+
options?: __HttpHandlerOptions
|
|
120
|
+
): Promise<InvokeGuardrailChecksCommandOutput>;
|
|
121
|
+
invokeGuardrailChecks(
|
|
122
|
+
args: InvokeGuardrailChecksCommandInput,
|
|
123
|
+
cb: (err: any, data?: InvokeGuardrailChecksCommandOutput) => void
|
|
124
|
+
): void;
|
|
125
|
+
invokeGuardrailChecks(
|
|
126
|
+
args: InvokeGuardrailChecksCommandInput,
|
|
127
|
+
options: __HttpHandlerOptions,
|
|
128
|
+
cb: (err: any, data?: InvokeGuardrailChecksCommandOutput) => void
|
|
129
|
+
): void;
|
|
113
130
|
invokeModel(
|
|
114
131
|
args: InvokeModelCommandInput,
|
|
115
132
|
options?: __HttpHandlerOptions
|
|
@@ -70,6 +70,10 @@ import {
|
|
|
70
70
|
GetAsyncInvokeCommandInput,
|
|
71
71
|
GetAsyncInvokeCommandOutput,
|
|
72
72
|
} from "./commands/GetAsyncInvokeCommand";
|
|
73
|
+
import {
|
|
74
|
+
InvokeGuardrailChecksCommandInput,
|
|
75
|
+
InvokeGuardrailChecksCommandOutput,
|
|
76
|
+
} from "./commands/InvokeGuardrailChecksCommand";
|
|
73
77
|
import {
|
|
74
78
|
InvokeModelCommandInput,
|
|
75
79
|
InvokeModelCommandOutput,
|
|
@@ -103,6 +107,7 @@ export type ServiceInputTypes =
|
|
|
103
107
|
| ConverseStreamCommandInput
|
|
104
108
|
| CountTokensCommandInput
|
|
105
109
|
| GetAsyncInvokeCommandInput
|
|
110
|
+
| InvokeGuardrailChecksCommandInput
|
|
106
111
|
| InvokeModelCommandInput
|
|
107
112
|
| InvokeModelWithBidirectionalStreamCommandInput
|
|
108
113
|
| InvokeModelWithResponseStreamCommandInput
|
|
@@ -114,6 +119,7 @@ export type ServiceOutputTypes =
|
|
|
114
119
|
| ConverseStreamCommandOutput
|
|
115
120
|
| CountTokensCommandOutput
|
|
116
121
|
| GetAsyncInvokeCommandOutput
|
|
122
|
+
| InvokeGuardrailChecksCommandOutput
|
|
117
123
|
| InvokeModelCommandOutput
|
|
118
124
|
| InvokeModelWithBidirectionalStreamCommandOutput
|
|
119
125
|
| InvokeModelWithResponseStreamCommandOutput
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
BedrockRuntimeClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../BedrockRuntimeClient";
|
|
8
|
+
import {
|
|
9
|
+
InvokeGuardrailChecksRequest,
|
|
10
|
+
InvokeGuardrailChecksResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface InvokeGuardrailChecksCommandInput
|
|
15
|
+
extends InvokeGuardrailChecksRequest {}
|
|
16
|
+
export interface InvokeGuardrailChecksCommandOutput
|
|
17
|
+
extends InvokeGuardrailChecksResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const InvokeGuardrailChecksCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: InvokeGuardrailChecksCommandInput
|
|
22
|
+
): import("@smithy/core/client").CommandImpl<
|
|
23
|
+
InvokeGuardrailChecksCommandInput,
|
|
24
|
+
InvokeGuardrailChecksCommandOutput,
|
|
25
|
+
BedrockRuntimeClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
input: InvokeGuardrailChecksCommandInput
|
|
31
|
+
): import("@smithy/core/client").CommandImpl<
|
|
32
|
+
InvokeGuardrailChecksCommandInput,
|
|
33
|
+
InvokeGuardrailChecksCommandOutput,
|
|
34
|
+
BedrockRuntimeClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export declare class InvokeGuardrailChecksCommand extends InvokeGuardrailChecksCommand_base {
|
|
43
|
+
protected static __types: {
|
|
44
|
+
api: {
|
|
45
|
+
input: InvokeGuardrailChecksRequest;
|
|
46
|
+
output: InvokeGuardrailChecksResponse;
|
|
47
|
+
};
|
|
48
|
+
sdk: {
|
|
49
|
+
input: InvokeGuardrailChecksCommandInput;
|
|
50
|
+
output: InvokeGuardrailChecksCommandOutput;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -3,6 +3,7 @@ export * from "./ConverseCommand";
|
|
|
3
3
|
export * from "./ConverseStreamCommand";
|
|
4
4
|
export * from "./CountTokensCommand";
|
|
5
5
|
export * from "./GetAsyncInvokeCommand";
|
|
6
|
+
export * from "./InvokeGuardrailChecksCommand";
|
|
6
7
|
export * from "./InvokeModelCommand";
|
|
7
8
|
export * from "./InvokeModelWithBidirectionalStreamCommand";
|
|
8
9
|
export * from "./InvokeModelWithResponseStreamCommand";
|
|
@@ -173,6 +173,64 @@ export declare const GuardrailManagedWordType: {
|
|
|
173
173
|
};
|
|
174
174
|
export type GuardrailManagedWordType =
|
|
175
175
|
(typeof GuardrailManagedWordType)[keyof typeof GuardrailManagedWordType];
|
|
176
|
+
export declare const GuardrailChecksContentFilterCategory: {
|
|
177
|
+
readonly HATE: "HATE";
|
|
178
|
+
readonly INSULTS: "INSULTS";
|
|
179
|
+
readonly MISCONDUCT: "MISCONDUCT";
|
|
180
|
+
readonly SEXUAL: "SEXUAL";
|
|
181
|
+
readonly VIOLENCE: "VIOLENCE";
|
|
182
|
+
};
|
|
183
|
+
export type GuardrailChecksContentFilterCategory =
|
|
184
|
+
(typeof GuardrailChecksContentFilterCategory)[keyof typeof GuardrailChecksContentFilterCategory];
|
|
185
|
+
export declare const GuardrailChecksPromptAttackCategory: {
|
|
186
|
+
readonly JAILBREAK: "JAILBREAK";
|
|
187
|
+
readonly PROMPT_INJECTION: "PROMPT_INJECTION";
|
|
188
|
+
readonly PROMPT_LEAKAGE: "PROMPT_LEAKAGE";
|
|
189
|
+
};
|
|
190
|
+
export type GuardrailChecksPromptAttackCategory =
|
|
191
|
+
(typeof GuardrailChecksPromptAttackCategory)[keyof typeof GuardrailChecksPromptAttackCategory];
|
|
192
|
+
export declare const GuardrailChecksSensitiveInformationEntityType: {
|
|
193
|
+
readonly ADDRESS: "ADDRESS";
|
|
194
|
+
readonly AGE: "AGE";
|
|
195
|
+
readonly AWS_ACCESS_KEY: "AWS_ACCESS_KEY";
|
|
196
|
+
readonly AWS_SECRET_KEY: "AWS_SECRET_KEY";
|
|
197
|
+
readonly CA_HEALTH_NUMBER: "CA_HEALTH_NUMBER";
|
|
198
|
+
readonly CA_SOCIAL_INSURANCE_NUMBER: "CA_SOCIAL_INSURANCE_NUMBER";
|
|
199
|
+
readonly CREDIT_DEBIT_CARD_CVV: "CREDIT_DEBIT_CARD_CVV";
|
|
200
|
+
readonly CREDIT_DEBIT_CARD_EXPIRY: "CREDIT_DEBIT_CARD_EXPIRY";
|
|
201
|
+
readonly CREDIT_DEBIT_CARD_NUMBER: "CREDIT_DEBIT_CARD_NUMBER";
|
|
202
|
+
readonly DRIVER_ID: "DRIVER_ID";
|
|
203
|
+
readonly EMAIL: "EMAIL";
|
|
204
|
+
readonly INTERNATIONAL_BANK_ACCOUNT_NUMBER: "INTERNATIONAL_BANK_ACCOUNT_NUMBER";
|
|
205
|
+
readonly IP_ADDRESS: "IP_ADDRESS";
|
|
206
|
+
readonly LICENSE_PLATE: "LICENSE_PLATE";
|
|
207
|
+
readonly MAC_ADDRESS: "MAC_ADDRESS";
|
|
208
|
+
readonly NAME: "NAME";
|
|
209
|
+
readonly PASSWORD: "PASSWORD";
|
|
210
|
+
readonly PHONE: "PHONE";
|
|
211
|
+
readonly PIN: "PIN";
|
|
212
|
+
readonly SWIFT_CODE: "SWIFT_CODE";
|
|
213
|
+
readonly UK_NATIONAL_HEALTH_SERVICE_NUMBER: "UK_NATIONAL_HEALTH_SERVICE_NUMBER";
|
|
214
|
+
readonly UK_NATIONAL_INSURANCE_NUMBER: "UK_NATIONAL_INSURANCE_NUMBER";
|
|
215
|
+
readonly UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER";
|
|
216
|
+
readonly URL: "URL";
|
|
217
|
+
readonly USERNAME: "USERNAME";
|
|
218
|
+
readonly US_BANK_ACCOUNT_NUMBER: "US_BANK_ACCOUNT_NUMBER";
|
|
219
|
+
readonly US_BANK_ROUTING_NUMBER: "US_BANK_ROUTING_NUMBER";
|
|
220
|
+
readonly US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER";
|
|
221
|
+
readonly US_PASSPORT_NUMBER: "US_PASSPORT_NUMBER";
|
|
222
|
+
readonly US_SOCIAL_SECURITY_NUMBER: "US_SOCIAL_SECURITY_NUMBER";
|
|
223
|
+
readonly VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER";
|
|
224
|
+
};
|
|
225
|
+
export type GuardrailChecksSensitiveInformationEntityType =
|
|
226
|
+
(typeof GuardrailChecksSensitiveInformationEntityType)[keyof typeof GuardrailChecksSensitiveInformationEntityType];
|
|
227
|
+
export declare const GuardrailChecksRole: {
|
|
228
|
+
readonly ASSISTANT: "assistant";
|
|
229
|
+
readonly SYSTEM: "system";
|
|
230
|
+
readonly USER: "user";
|
|
231
|
+
};
|
|
232
|
+
export type GuardrailChecksRole =
|
|
233
|
+
(typeof GuardrailChecksRole)[keyof typeof GuardrailChecksRole];
|
|
176
234
|
export declare const GuardrailTrace: {
|
|
177
235
|
readonly DISABLED: "disabled";
|
|
178
236
|
readonly ENABLED: "enabled";
|
|
@@ -8,6 +8,10 @@ import {
|
|
|
8
8
|
DocumentFormat,
|
|
9
9
|
GuardrailAction,
|
|
10
10
|
GuardrailAutomatedReasoningLogicWarningType,
|
|
11
|
+
GuardrailChecksContentFilterCategory,
|
|
12
|
+
GuardrailChecksPromptAttackCategory,
|
|
13
|
+
GuardrailChecksRole,
|
|
14
|
+
GuardrailChecksSensitiveInformationEntityType,
|
|
11
15
|
GuardrailContentFilterConfidence,
|
|
12
16
|
GuardrailContentFilterStrength,
|
|
13
17
|
GuardrailContentFilterType,
|
|
@@ -474,6 +478,103 @@ export interface ApplyGuardrailResponse {
|
|
|
474
478
|
assessments: GuardrailAssessment[] | undefined;
|
|
475
479
|
guardrailCoverage?: GuardrailCoverage | undefined;
|
|
476
480
|
}
|
|
481
|
+
export interface GuardrailChecksContentFilterCategoryConfig {
|
|
482
|
+
category: GuardrailChecksContentFilterCategory | undefined;
|
|
483
|
+
}
|
|
484
|
+
export interface GuardrailChecksContentFilterConfig {
|
|
485
|
+
categories: GuardrailChecksContentFilterCategoryConfig[] | undefined;
|
|
486
|
+
}
|
|
487
|
+
export interface GuardrailChecksPromptAttackCategoryConfig {
|
|
488
|
+
category: GuardrailChecksPromptAttackCategory | undefined;
|
|
489
|
+
}
|
|
490
|
+
export interface GuardrailChecksPromptAttackConfig {
|
|
491
|
+
categories: GuardrailChecksPromptAttackCategoryConfig[] | undefined;
|
|
492
|
+
}
|
|
493
|
+
export interface GuardrailChecksSensitiveInformationEntityConfig {
|
|
494
|
+
type: GuardrailChecksSensitiveInformationEntityType | undefined;
|
|
495
|
+
}
|
|
496
|
+
export interface GuardrailChecksSensitiveInformationConfig {
|
|
497
|
+
entities: GuardrailChecksSensitiveInformationEntityConfig[] | undefined;
|
|
498
|
+
}
|
|
499
|
+
export interface GuardrailChecksConfig {
|
|
500
|
+
contentFilter?: GuardrailChecksContentFilterConfig | undefined;
|
|
501
|
+
promptAttack?: GuardrailChecksPromptAttackConfig | undefined;
|
|
502
|
+
sensitiveInformation?: GuardrailChecksSensitiveInformationConfig | undefined;
|
|
503
|
+
}
|
|
504
|
+
export type GuardrailChecksContentBlock =
|
|
505
|
+
| GuardrailChecksContentBlock.TextMember
|
|
506
|
+
| GuardrailChecksContentBlock.$UnknownMember;
|
|
507
|
+
export declare namespace GuardrailChecksContentBlock {
|
|
508
|
+
interface TextMember {
|
|
509
|
+
text: string;
|
|
510
|
+
$unknown?: never;
|
|
511
|
+
}
|
|
512
|
+
interface $UnknownMember {
|
|
513
|
+
text?: never;
|
|
514
|
+
$unknown: [string, any];
|
|
515
|
+
}
|
|
516
|
+
interface Visitor<T> {
|
|
517
|
+
text: (value: string) => T;
|
|
518
|
+
_: (name: string, value: any) => T;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
export interface GuardrailChecksMessage {
|
|
522
|
+
role: GuardrailChecksRole | undefined;
|
|
523
|
+
content: GuardrailChecksContentBlock[] | undefined;
|
|
524
|
+
}
|
|
525
|
+
export interface InvokeGuardrailChecksRequest {
|
|
526
|
+
messages: GuardrailChecksMessage[] | undefined;
|
|
527
|
+
checks: GuardrailChecksConfig | undefined;
|
|
528
|
+
}
|
|
529
|
+
export interface GuardrailChecksContentFilterResultEntry {
|
|
530
|
+
category: GuardrailChecksContentFilterCategory | undefined;
|
|
531
|
+
severityScore: number | undefined;
|
|
532
|
+
}
|
|
533
|
+
export interface GuardrailChecksContentFilterResult {
|
|
534
|
+
results: GuardrailChecksContentFilterResultEntry[] | undefined;
|
|
535
|
+
}
|
|
536
|
+
export interface GuardrailChecksPromptAttackResultEntry {
|
|
537
|
+
category: GuardrailChecksPromptAttackCategory | undefined;
|
|
538
|
+
severityScore: number | undefined;
|
|
539
|
+
}
|
|
540
|
+
export interface GuardrailChecksPromptAttackResult {
|
|
541
|
+
results: GuardrailChecksPromptAttackResultEntry[] | undefined;
|
|
542
|
+
}
|
|
543
|
+
export interface GuardrailChecksSensitiveInformationResultEntry {
|
|
544
|
+
type: GuardrailChecksSensitiveInformationEntityType | undefined;
|
|
545
|
+
confidenceScore: number | undefined;
|
|
546
|
+
beginOffset: number | undefined;
|
|
547
|
+
endOffset: number | undefined;
|
|
548
|
+
messageIndex: number | undefined;
|
|
549
|
+
contentIndex: number | undefined;
|
|
550
|
+
}
|
|
551
|
+
export interface GuardrailChecksSensitiveInformationResult {
|
|
552
|
+
results: GuardrailChecksSensitiveInformationResultEntry[] | undefined;
|
|
553
|
+
truncated?: boolean | undefined;
|
|
554
|
+
}
|
|
555
|
+
export interface GuardrailChecksResults {
|
|
556
|
+
contentFilter?: GuardrailChecksContentFilterResult | undefined;
|
|
557
|
+
promptAttack?: GuardrailChecksPromptAttackResult | undefined;
|
|
558
|
+
sensitiveInformation?: GuardrailChecksSensitiveInformationResult | undefined;
|
|
559
|
+
}
|
|
560
|
+
export interface GuardrailChecksContentFilterUsage {
|
|
561
|
+
textUnits: number | undefined;
|
|
562
|
+
}
|
|
563
|
+
export interface GuardrailChecksPromptAttackUsage {
|
|
564
|
+
textUnits: number | undefined;
|
|
565
|
+
}
|
|
566
|
+
export interface GuardrailChecksSensitiveInformationUsage {
|
|
567
|
+
textUnits: number | undefined;
|
|
568
|
+
}
|
|
569
|
+
export interface GuardrailChecksUsageResults {
|
|
570
|
+
contentFilter?: GuardrailChecksContentFilterUsage | undefined;
|
|
571
|
+
promptAttack?: GuardrailChecksPromptAttackUsage | undefined;
|
|
572
|
+
sensitiveInformation?: GuardrailChecksSensitiveInformationUsage | undefined;
|
|
573
|
+
}
|
|
574
|
+
export interface InvokeGuardrailChecksResponse {
|
|
575
|
+
results: GuardrailChecksResults | undefined;
|
|
576
|
+
usage: GuardrailChecksUsageResults | undefined;
|
|
577
|
+
}
|
|
477
578
|
export interface GuardrailConfiguration {
|
|
478
579
|
guardrailIdentifier?: string | undefined;
|
|
479
580
|
guardrailVersion?: string | undefined;
|
|
@@ -74,6 +74,25 @@ export declare var GuardrailAutomatedReasoningTranslation$: StaticStructureSchem
|
|
|
74
74
|
export declare var GuardrailAutomatedReasoningTranslationAmbiguousFinding$: StaticStructureSchema;
|
|
75
75
|
export declare var GuardrailAutomatedReasoningTranslationOption$: StaticStructureSchema;
|
|
76
76
|
export declare var GuardrailAutomatedReasoningValidFinding$: StaticStructureSchema;
|
|
77
|
+
export declare var GuardrailChecksConfig$: StaticStructureSchema;
|
|
78
|
+
export declare var GuardrailChecksContentFilterCategoryConfig$: StaticStructureSchema;
|
|
79
|
+
export declare var GuardrailChecksContentFilterConfig$: StaticStructureSchema;
|
|
80
|
+
export declare var GuardrailChecksContentFilterResult$: StaticStructureSchema;
|
|
81
|
+
export declare var GuardrailChecksContentFilterResultEntry$: StaticStructureSchema;
|
|
82
|
+
export declare var GuardrailChecksContentFilterUsage$: StaticStructureSchema;
|
|
83
|
+
export declare var GuardrailChecksMessage$: StaticStructureSchema;
|
|
84
|
+
export declare var GuardrailChecksPromptAttackCategoryConfig$: StaticStructureSchema;
|
|
85
|
+
export declare var GuardrailChecksPromptAttackConfig$: StaticStructureSchema;
|
|
86
|
+
export declare var GuardrailChecksPromptAttackResult$: StaticStructureSchema;
|
|
87
|
+
export declare var GuardrailChecksPromptAttackResultEntry$: StaticStructureSchema;
|
|
88
|
+
export declare var GuardrailChecksPromptAttackUsage$: StaticStructureSchema;
|
|
89
|
+
export declare var GuardrailChecksResults$: StaticStructureSchema;
|
|
90
|
+
export declare var GuardrailChecksSensitiveInformationConfig$: StaticStructureSchema;
|
|
91
|
+
export declare var GuardrailChecksSensitiveInformationEntityConfig$: StaticStructureSchema;
|
|
92
|
+
export declare var GuardrailChecksSensitiveInformationResult$: StaticStructureSchema;
|
|
93
|
+
export declare var GuardrailChecksSensitiveInformationResultEntry$: StaticStructureSchema;
|
|
94
|
+
export declare var GuardrailChecksSensitiveInformationUsage$: StaticStructureSchema;
|
|
95
|
+
export declare var GuardrailChecksUsageResults$: StaticStructureSchema;
|
|
77
96
|
export declare var GuardrailConfiguration$: StaticStructureSchema;
|
|
78
97
|
export declare var GuardrailContentFilter$: StaticStructureSchema;
|
|
79
98
|
export declare var GuardrailContentPolicyAssessment$: StaticStructureSchema;
|
|
@@ -103,6 +122,8 @@ export declare var ImageBlock$: StaticStructureSchema;
|
|
|
103
122
|
export declare var ImageBlockDelta$: StaticStructureSchema;
|
|
104
123
|
export declare var ImageBlockStart$: StaticStructureSchema;
|
|
105
124
|
export declare var InferenceConfiguration$: StaticStructureSchema;
|
|
125
|
+
export declare var InvokeGuardrailChecksRequest$: StaticStructureSchema;
|
|
126
|
+
export declare var InvokeGuardrailChecksResponse$: StaticStructureSchema;
|
|
106
127
|
export declare var InvokeModelRequest$: StaticStructureSchema;
|
|
107
128
|
export declare var InvokeModelResponse$: StaticStructureSchema;
|
|
108
129
|
export declare var InvokeModelTokensRequest$: StaticStructureSchema;
|
|
@@ -156,6 +177,7 @@ export declare var CountTokensInput$: StaticUnionSchema;
|
|
|
156
177
|
export declare var DocumentContentBlock$: StaticUnionSchema;
|
|
157
178
|
export declare var DocumentSource$: StaticUnionSchema;
|
|
158
179
|
export declare var GuardrailAutomatedReasoningFinding$: StaticUnionSchema;
|
|
180
|
+
export declare var GuardrailChecksContentBlock$: StaticUnionSchema;
|
|
159
181
|
export declare var GuardrailContentBlock$: StaticUnionSchema;
|
|
160
182
|
export declare var GuardrailConverseContentBlock$: StaticUnionSchema;
|
|
161
183
|
export declare var GuardrailConverseImageSource$: StaticUnionSchema;
|
|
@@ -180,6 +202,7 @@ export declare var Converse$: StaticOperationSchema;
|
|
|
180
202
|
export declare var ConverseStream$: StaticOperationSchema;
|
|
181
203
|
export declare var CountTokens$: StaticOperationSchema;
|
|
182
204
|
export declare var GetAsyncInvoke$: StaticOperationSchema;
|
|
205
|
+
export declare var InvokeGuardrailChecks$: StaticOperationSchema;
|
|
183
206
|
export declare var InvokeModel$: StaticOperationSchema;
|
|
184
207
|
export declare var InvokeModelWithBidirectionalStream$: StaticOperationSchema;
|
|
185
208
|
export declare var InvokeModelWithResponseStream$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
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.
|
|
4
|
+
"version": "3.1069.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
8
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
8
|
+
"build:es": "premove dist-es && tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
10
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
10
|
+
"build:types": "premove dist-types && tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "premove dist-cjs dist-es dist-types
|
|
12
|
+
"clean": "premove dist-cjs dist-es dist-types",
|
|
13
13
|
"extract:docs": "api-extractor run --local",
|
|
14
|
-
"generate:client": "node ../../scripts/generate-clients/single-service
|
|
14
|
+
"generate:client": "node ../../scripts/generate-clients/single-service",
|
|
15
15
|
"test": "yarn g:vitest run --passWithNoTests",
|
|
16
|
-
"test:
|
|
17
|
-
"test:
|
|
16
|
+
"test:watch": "yarn g:vitest watch --passWithNoTests",
|
|
17
|
+
"test:integration": "yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts",
|
|
18
|
+
"test:integration:watch": "yarn g:vitest watch --passWithNoTests -c vitest.config.integ.mts",
|
|
18
19
|
"test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts",
|
|
19
20
|
"test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts",
|
|
20
|
-
"test:
|
|
21
|
-
"test:
|
|
22
|
-
"test:
|
|
23
|
-
"test:watch": "yarn g:vitest watch --passWithNoTests"
|
|
21
|
+
"test:browser": "yarn g:vitest run -c vitest.config.browser.e2e.mts",
|
|
22
|
+
"test:browser:watch": "yarn g:vitest watch -c vitest.config.browser.e2e.mts",
|
|
23
|
+
"test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
|
|
24
24
|
},
|
|
25
25
|
"main": "./dist-cjs/index.js",
|
|
26
26
|
"types": "./dist-types/index.d.ts",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
31
31
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
32
|
-
"@aws-sdk/core": "^3.974.
|
|
33
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
34
|
-
"@aws-sdk/eventstream-handler-node": "^3.972.
|
|
35
|
-
"@aws-sdk/middleware-eventstream": "^3.972.
|
|
36
|
-
"@aws-sdk/middleware-websocket": "^3.972.
|
|
37
|
-
"@aws-sdk/token-providers": "3.
|
|
38
|
-
"@aws-sdk/types": "^3.973.
|
|
32
|
+
"@aws-sdk/core": "^3.974.21",
|
|
33
|
+
"@aws-sdk/credential-provider-node": "^3.972.56",
|
|
34
|
+
"@aws-sdk/eventstream-handler-node": "^3.972.22",
|
|
35
|
+
"@aws-sdk/middleware-eventstream": "^3.972.18",
|
|
36
|
+
"@aws-sdk/middleware-websocket": "^3.972.29",
|
|
37
|
+
"@aws-sdk/token-providers": "3.1069.0",
|
|
38
|
+
"@aws-sdk/types": "^3.973.13",
|
|
39
39
|
"@smithy/core": "^3.24.6",
|
|
40
40
|
"@smithy/fetch-http-handler": "^5.4.6",
|
|
41
41
|
"@smithy/node-http-handler": "^4.7.6",
|