@aws-sdk/client-bedrock 3.995.0 → 3.996.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 +21 -18
- package/dist-cjs/schemas/schemas_0.js +220 -49
- package/dist-es/models/enums.js +4 -0
- package/dist-es/schemas/schemas_0.js +209 -38
- package/dist-types/commands/CreateInferenceProfileCommand.d.ts +1 -1
- package/dist-types/commands/GetAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +1 -1
- package/dist-types/commands/GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand.d.ts +85 -1
- package/dist-types/commands/GetGuardrailCommand.d.ts +2 -1
- package/dist-types/commands/ListAutomatedReasoningPolicyBuildWorkflowsCommand.d.ts +1 -1
- package/dist-types/commands/ListGuardrailsCommand.d.ts +1 -1
- package/dist-types/commands/StartAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +11 -1
- package/dist-types/commands/UpdateGuardrailCommand.d.ts +1 -1
- package/dist-types/models/enums.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +447 -533
- package/dist-types/models/models_1.d.ts +506 -2
- package/dist-types/schemas/schemas_0.d.ts +14 -0
- package/dist-types/ts3.4/commands/CreateInferenceProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetGuardrailCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListGuardrailsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateGuardrailCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/enums.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +178 -131
- package/dist-types/ts3.4/models/models_1.d.ts +147 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +14 -0
- package/package.json +7 -7
|
@@ -31,12 +31,10 @@ import {
|
|
|
31
31
|
GuardrailModality,
|
|
32
32
|
GuardrailPiiEntityType,
|
|
33
33
|
GuardrailSensitiveInformationAction,
|
|
34
|
-
GuardrailStatus,
|
|
35
34
|
GuardrailTopicAction,
|
|
36
35
|
GuardrailTopicsTierName,
|
|
37
36
|
GuardrailTopicType,
|
|
38
37
|
GuardrailWordAction,
|
|
39
|
-
InferenceProfileStatus,
|
|
40
38
|
InputTags,
|
|
41
39
|
ModelStatus,
|
|
42
40
|
PerformanceConfigLatency,
|
|
@@ -595,6 +593,15 @@ export interface GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest {
|
|
|
595
593
|
policyArn: string | undefined;
|
|
596
594
|
buildWorkflowId: string | undefined;
|
|
597
595
|
assetType: AutomatedReasoningPolicyBuildResultAssetType | undefined;
|
|
596
|
+
assetId?: string | undefined;
|
|
597
|
+
}
|
|
598
|
+
export interface AutomatedReasoningPolicyBuildResultAssetManifestEntry {
|
|
599
|
+
assetType: AutomatedReasoningPolicyBuildResultAssetType | undefined;
|
|
600
|
+
assetName?: string | undefined;
|
|
601
|
+
assetId?: string | undefined;
|
|
602
|
+
}
|
|
603
|
+
export interface AutomatedReasoningPolicyBuildResultAssetManifest {
|
|
604
|
+
entries: AutomatedReasoningPolicyBuildResultAssetManifestEntry[] | undefined;
|
|
598
605
|
}
|
|
599
606
|
export interface AutomatedReasoningPolicyAddRuleMutation {
|
|
600
607
|
rule: AutomatedReasoningPolicyDefinitionRule | undefined;
|
|
@@ -855,6 +862,86 @@ export interface AutomatedReasoningPolicyBuildLogEntry {
|
|
|
855
862
|
export interface AutomatedReasoningPolicyBuildLog {
|
|
856
863
|
entries: AutomatedReasoningPolicyBuildLogEntry[] | undefined;
|
|
857
864
|
}
|
|
865
|
+
export interface AutomatedReasoningPolicySourceDocument {
|
|
866
|
+
document: Uint8Array | undefined;
|
|
867
|
+
documentContentType:
|
|
868
|
+
| AutomatedReasoningPolicyBuildDocumentContentType
|
|
869
|
+
| undefined;
|
|
870
|
+
documentName: string | undefined;
|
|
871
|
+
documentDescription?: string | undefined;
|
|
872
|
+
documentHash: string | undefined;
|
|
873
|
+
}
|
|
874
|
+
export interface AutomatedReasoningPolicyStatementLocation {
|
|
875
|
+
lines: number[] | undefined;
|
|
876
|
+
}
|
|
877
|
+
export interface AutomatedReasoningPolicyAtomicStatement {
|
|
878
|
+
id: string | undefined;
|
|
879
|
+
text: string | undefined;
|
|
880
|
+
location: AutomatedReasoningPolicyStatementLocation | undefined;
|
|
881
|
+
}
|
|
882
|
+
export interface AutomatedReasoningPolicyAnnotatedLine {
|
|
883
|
+
lineNumber?: number | undefined;
|
|
884
|
+
lineText?: string | undefined;
|
|
885
|
+
}
|
|
886
|
+
export type AutomatedReasoningPolicyAnnotatedContent =
|
|
887
|
+
| AutomatedReasoningPolicyAnnotatedContent.LineMember
|
|
888
|
+
| AutomatedReasoningPolicyAnnotatedContent.$UnknownMember;
|
|
889
|
+
export declare namespace AutomatedReasoningPolicyAnnotatedContent {
|
|
890
|
+
interface LineMember {
|
|
891
|
+
line: AutomatedReasoningPolicyAnnotatedLine;
|
|
892
|
+
$unknown?: never;
|
|
893
|
+
}
|
|
894
|
+
interface $UnknownMember {
|
|
895
|
+
line?: never;
|
|
896
|
+
$unknown: [string, any];
|
|
897
|
+
}
|
|
898
|
+
interface Visitor<T> {
|
|
899
|
+
line: (value: AutomatedReasoningPolicyAnnotatedLine) => T;
|
|
900
|
+
_: (name: string, value: any) => T;
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
export interface AutomatedReasoningPolicyAnnotatedChunk {
|
|
904
|
+
pageNumber?: number | undefined;
|
|
905
|
+
content: AutomatedReasoningPolicyAnnotatedContent[] | undefined;
|
|
906
|
+
}
|
|
907
|
+
export interface AutomatedReasoningPolicyReportSourceDocument {
|
|
908
|
+
documentName: string | undefined;
|
|
909
|
+
documentHash: string | undefined;
|
|
910
|
+
documentId: string | undefined;
|
|
911
|
+
atomicStatements: AutomatedReasoningPolicyAtomicStatement[] | undefined;
|
|
912
|
+
documentContent: AutomatedReasoningPolicyAnnotatedChunk[] | undefined;
|
|
913
|
+
}
|
|
914
|
+
export interface AutomatedReasoningPolicyStatementReference {
|
|
915
|
+
documentId: string | undefined;
|
|
916
|
+
statementId: string | undefined;
|
|
917
|
+
}
|
|
918
|
+
export interface AutomatedReasoningPolicyRuleReport {
|
|
919
|
+
rule: string | undefined;
|
|
920
|
+
groundingStatements?:
|
|
921
|
+
| AutomatedReasoningPolicyStatementReference[]
|
|
922
|
+
| undefined;
|
|
923
|
+
groundingJustifications?: string[] | undefined;
|
|
924
|
+
accuracyScore?: number | undefined;
|
|
925
|
+
accuracyJustification?: string | undefined;
|
|
926
|
+
}
|
|
927
|
+
export interface AutomatedReasoningPolicyVariableReport {
|
|
928
|
+
policyVariable: string | undefined;
|
|
929
|
+
groundingStatements?:
|
|
930
|
+
| AutomatedReasoningPolicyStatementReference[]
|
|
931
|
+
| undefined;
|
|
932
|
+
groundingJustifications?: string[] | undefined;
|
|
933
|
+
accuracyScore?: number | undefined;
|
|
934
|
+
accuracyJustification?: string | undefined;
|
|
935
|
+
}
|
|
936
|
+
export interface AutomatedReasoningPolicyFidelityReport {
|
|
937
|
+
coverageScore: number | undefined;
|
|
938
|
+
accuracyScore: number | undefined;
|
|
939
|
+
ruleReports: Record<string, AutomatedReasoningPolicyRuleReport> | undefined;
|
|
940
|
+
variableReports:
|
|
941
|
+
| Record<string, AutomatedReasoningPolicyVariableReport>
|
|
942
|
+
| undefined;
|
|
943
|
+
documentSources: AutomatedReasoningPolicyReportSourceDocument[] | undefined;
|
|
944
|
+
}
|
|
858
945
|
export interface AutomatedReasoningPolicyGeneratedTestCase {
|
|
859
946
|
queryContent: string | undefined;
|
|
860
947
|
guardContent: string | undefined;
|
|
@@ -893,7 +980,10 @@ export interface AutomatedReasoningPolicyDefinitionQualityReport {
|
|
|
893
980
|
disjointRuleSets: AutomatedReasoningPolicyDisjointRuleSet[] | undefined;
|
|
894
981
|
}
|
|
895
982
|
export type AutomatedReasoningPolicyBuildResultAssets =
|
|
983
|
+
| AutomatedReasoningPolicyBuildResultAssets.AssetManifestMember
|
|
896
984
|
| AutomatedReasoningPolicyBuildResultAssets.BuildLogMember
|
|
985
|
+
| AutomatedReasoningPolicyBuildResultAssets.DocumentMember
|
|
986
|
+
| AutomatedReasoningPolicyBuildResultAssets.FidelityReportMember
|
|
897
987
|
| AutomatedReasoningPolicyBuildResultAssets.GeneratedTestCasesMember
|
|
898
988
|
| AutomatedReasoningPolicyBuildResultAssets.PolicyDefinitionMember
|
|
899
989
|
| AutomatedReasoningPolicyBuildResultAssets.PolicyScenariosMember
|
|
@@ -906,6 +996,9 @@ export declare namespace AutomatedReasoningPolicyBuildResultAssets {
|
|
|
906
996
|
buildLog?: never;
|
|
907
997
|
generatedTestCases?: never;
|
|
908
998
|
policyScenarios?: never;
|
|
999
|
+
assetManifest?: never;
|
|
1000
|
+
document?: never;
|
|
1001
|
+
fidelityReport?: never;
|
|
909
1002
|
$unknown?: never;
|
|
910
1003
|
}
|
|
911
1004
|
interface QualityReportMember {
|
|
@@ -914,6 +1007,9 @@ export declare namespace AutomatedReasoningPolicyBuildResultAssets {
|
|
|
914
1007
|
buildLog?: never;
|
|
915
1008
|
generatedTestCases?: never;
|
|
916
1009
|
policyScenarios?: never;
|
|
1010
|
+
assetManifest?: never;
|
|
1011
|
+
document?: never;
|
|
1012
|
+
fidelityReport?: never;
|
|
917
1013
|
$unknown?: never;
|
|
918
1014
|
}
|
|
919
1015
|
interface BuildLogMember {
|
|
@@ -922,6 +1018,9 @@ export declare namespace AutomatedReasoningPolicyBuildResultAssets {
|
|
|
922
1018
|
buildLog: AutomatedReasoningPolicyBuildLog;
|
|
923
1019
|
generatedTestCases?: never;
|
|
924
1020
|
policyScenarios?: never;
|
|
1021
|
+
assetManifest?: never;
|
|
1022
|
+
document?: never;
|
|
1023
|
+
fidelityReport?: never;
|
|
925
1024
|
$unknown?: never;
|
|
926
1025
|
}
|
|
927
1026
|
interface GeneratedTestCasesMember {
|
|
@@ -930,6 +1029,9 @@ export declare namespace AutomatedReasoningPolicyBuildResultAssets {
|
|
|
930
1029
|
buildLog?: never;
|
|
931
1030
|
generatedTestCases: AutomatedReasoningPolicyGeneratedTestCases;
|
|
932
1031
|
policyScenarios?: never;
|
|
1032
|
+
assetManifest?: never;
|
|
1033
|
+
document?: never;
|
|
1034
|
+
fidelityReport?: never;
|
|
933
1035
|
$unknown?: never;
|
|
934
1036
|
}
|
|
935
1037
|
interface PolicyScenariosMember {
|
|
@@ -938,6 +1040,42 @@ export declare namespace AutomatedReasoningPolicyBuildResultAssets {
|
|
|
938
1040
|
buildLog?: never;
|
|
939
1041
|
generatedTestCases?: never;
|
|
940
1042
|
policyScenarios: AutomatedReasoningPolicyScenarios;
|
|
1043
|
+
assetManifest?: never;
|
|
1044
|
+
document?: never;
|
|
1045
|
+
fidelityReport?: never;
|
|
1046
|
+
$unknown?: never;
|
|
1047
|
+
}
|
|
1048
|
+
interface AssetManifestMember {
|
|
1049
|
+
policyDefinition?: never;
|
|
1050
|
+
qualityReport?: never;
|
|
1051
|
+
buildLog?: never;
|
|
1052
|
+
generatedTestCases?: never;
|
|
1053
|
+
policyScenarios?: never;
|
|
1054
|
+
assetManifest: AutomatedReasoningPolicyBuildResultAssetManifest;
|
|
1055
|
+
document?: never;
|
|
1056
|
+
fidelityReport?: never;
|
|
1057
|
+
$unknown?: never;
|
|
1058
|
+
}
|
|
1059
|
+
interface DocumentMember {
|
|
1060
|
+
policyDefinition?: never;
|
|
1061
|
+
qualityReport?: never;
|
|
1062
|
+
buildLog?: never;
|
|
1063
|
+
generatedTestCases?: never;
|
|
1064
|
+
policyScenarios?: never;
|
|
1065
|
+
assetManifest?: never;
|
|
1066
|
+
document: AutomatedReasoningPolicySourceDocument;
|
|
1067
|
+
fidelityReport?: never;
|
|
1068
|
+
$unknown?: never;
|
|
1069
|
+
}
|
|
1070
|
+
interface FidelityReportMember {
|
|
1071
|
+
policyDefinition?: never;
|
|
1072
|
+
qualityReport?: never;
|
|
1073
|
+
buildLog?: never;
|
|
1074
|
+
generatedTestCases?: never;
|
|
1075
|
+
policyScenarios?: never;
|
|
1076
|
+
assetManifest?: never;
|
|
1077
|
+
document?: never;
|
|
1078
|
+
fidelityReport: AutomatedReasoningPolicyFidelityReport;
|
|
941
1079
|
$unknown?: never;
|
|
942
1080
|
}
|
|
943
1081
|
interface $UnknownMember {
|
|
@@ -946,6 +1084,9 @@ export declare namespace AutomatedReasoningPolicyBuildResultAssets {
|
|
|
946
1084
|
buildLog?: never;
|
|
947
1085
|
generatedTestCases?: never;
|
|
948
1086
|
policyScenarios?: never;
|
|
1087
|
+
assetManifest?: never;
|
|
1088
|
+
document?: never;
|
|
1089
|
+
fidelityReport?: never;
|
|
949
1090
|
$unknown: [string, any];
|
|
950
1091
|
}
|
|
951
1092
|
interface Visitor<T> {
|
|
@@ -958,6 +1099,11 @@ export declare namespace AutomatedReasoningPolicyBuildResultAssets {
|
|
|
958
1099
|
value: AutomatedReasoningPolicyGeneratedTestCases
|
|
959
1100
|
) => T;
|
|
960
1101
|
policyScenarios: (value: AutomatedReasoningPolicyScenarios) => T;
|
|
1102
|
+
assetManifest: (
|
|
1103
|
+
value: AutomatedReasoningPolicyBuildResultAssetManifest
|
|
1104
|
+
) => T;
|
|
1105
|
+
document: (value: AutomatedReasoningPolicySourceDocument) => T;
|
|
1106
|
+
fidelityReport: (value: AutomatedReasoningPolicyFidelityReport) => T;
|
|
961
1107
|
_: (name: string, value: any) => T;
|
|
962
1108
|
}
|
|
963
1109
|
}
|
|
@@ -1236,27 +1382,54 @@ export interface AutomatedReasoningPolicyBuildWorkflowDocument {
|
|
|
1236
1382
|
documentName: string | undefined;
|
|
1237
1383
|
documentDescription?: string | undefined;
|
|
1238
1384
|
}
|
|
1385
|
+
export type AutomatedReasoningPolicyGenerateFidelityReportContent =
|
|
1386
|
+
| AutomatedReasoningPolicyGenerateFidelityReportContent.DocumentsMember
|
|
1387
|
+
| AutomatedReasoningPolicyGenerateFidelityReportContent.$UnknownMember;
|
|
1388
|
+
export declare namespace AutomatedReasoningPolicyGenerateFidelityReportContent {
|
|
1389
|
+
interface DocumentsMember {
|
|
1390
|
+
documents: AutomatedReasoningPolicyBuildWorkflowDocument[];
|
|
1391
|
+
$unknown?: never;
|
|
1392
|
+
}
|
|
1393
|
+
interface $UnknownMember {
|
|
1394
|
+
documents?: never;
|
|
1395
|
+
$unknown: [string, any];
|
|
1396
|
+
}
|
|
1397
|
+
interface Visitor<T> {
|
|
1398
|
+
documents: (value: AutomatedReasoningPolicyBuildWorkflowDocument[]) => T;
|
|
1399
|
+
_: (name: string, value: any) => T;
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1239
1402
|
export interface AutomatedReasoningPolicyBuildWorkflowRepairContent {
|
|
1240
1403
|
annotations: AutomatedReasoningPolicyAnnotation[] | undefined;
|
|
1241
1404
|
}
|
|
1242
1405
|
export type AutomatedReasoningPolicyWorkflowTypeContent =
|
|
1243
1406
|
| AutomatedReasoningPolicyWorkflowTypeContent.DocumentsMember
|
|
1407
|
+
| AutomatedReasoningPolicyWorkflowTypeContent.GenerateFidelityReportContentMember
|
|
1244
1408
|
| AutomatedReasoningPolicyWorkflowTypeContent.PolicyRepairAssetsMember
|
|
1245
1409
|
| AutomatedReasoningPolicyWorkflowTypeContent.$UnknownMember;
|
|
1246
1410
|
export declare namespace AutomatedReasoningPolicyWorkflowTypeContent {
|
|
1247
1411
|
interface DocumentsMember {
|
|
1248
1412
|
documents: AutomatedReasoningPolicyBuildWorkflowDocument[];
|
|
1249
1413
|
policyRepairAssets?: never;
|
|
1414
|
+
generateFidelityReportContent?: never;
|
|
1250
1415
|
$unknown?: never;
|
|
1251
1416
|
}
|
|
1252
1417
|
interface PolicyRepairAssetsMember {
|
|
1253
1418
|
documents?: never;
|
|
1254
1419
|
policyRepairAssets: AutomatedReasoningPolicyBuildWorkflowRepairContent;
|
|
1420
|
+
generateFidelityReportContent?: never;
|
|
1421
|
+
$unknown?: never;
|
|
1422
|
+
}
|
|
1423
|
+
interface GenerateFidelityReportContentMember {
|
|
1424
|
+
documents?: never;
|
|
1425
|
+
policyRepairAssets?: never;
|
|
1426
|
+
generateFidelityReportContent: AutomatedReasoningPolicyGenerateFidelityReportContent;
|
|
1255
1427
|
$unknown?: never;
|
|
1256
1428
|
}
|
|
1257
1429
|
interface $UnknownMember {
|
|
1258
1430
|
documents?: never;
|
|
1259
1431
|
policyRepairAssets?: never;
|
|
1432
|
+
generateFidelityReportContent?: never;
|
|
1260
1433
|
$unknown: [string, any];
|
|
1261
1434
|
}
|
|
1262
1435
|
interface Visitor<T> {
|
|
@@ -1264,6 +1437,9 @@ export declare namespace AutomatedReasoningPolicyWorkflowTypeContent {
|
|
|
1264
1437
|
policyRepairAssets: (
|
|
1265
1438
|
value: AutomatedReasoningPolicyBuildWorkflowRepairContent
|
|
1266
1439
|
) => T;
|
|
1440
|
+
generateFidelityReportContent: (
|
|
1441
|
+
value: AutomatedReasoningPolicyGenerateFidelityReportContent
|
|
1442
|
+
) => T;
|
|
1267
1443
|
_: (name: string, value: any) => T;
|
|
1268
1444
|
}
|
|
1269
1445
|
}
|
|
@@ -2369,132 +2545,3 @@ export interface GuardrailSensitiveInformationPolicy {
|
|
|
2369
2545
|
export interface GuardrailTopicsTier {
|
|
2370
2546
|
tierName: GuardrailTopicsTierName | undefined;
|
|
2371
2547
|
}
|
|
2372
|
-
export interface GuardrailTopic {
|
|
2373
|
-
name: string | undefined;
|
|
2374
|
-
definition: string | undefined;
|
|
2375
|
-
examples?: string[] | undefined;
|
|
2376
|
-
type?: GuardrailTopicType | undefined;
|
|
2377
|
-
inputAction?: GuardrailTopicAction | undefined;
|
|
2378
|
-
outputAction?: GuardrailTopicAction | undefined;
|
|
2379
|
-
inputEnabled?: boolean | undefined;
|
|
2380
|
-
outputEnabled?: boolean | undefined;
|
|
2381
|
-
}
|
|
2382
|
-
export interface GuardrailTopicPolicy {
|
|
2383
|
-
topics: GuardrailTopic[] | undefined;
|
|
2384
|
-
tier?: GuardrailTopicsTier | undefined;
|
|
2385
|
-
}
|
|
2386
|
-
export interface GuardrailManagedWords {
|
|
2387
|
-
type: GuardrailManagedWordsType | undefined;
|
|
2388
|
-
inputAction?: GuardrailWordAction | undefined;
|
|
2389
|
-
outputAction?: GuardrailWordAction | undefined;
|
|
2390
|
-
inputEnabled?: boolean | undefined;
|
|
2391
|
-
outputEnabled?: boolean | undefined;
|
|
2392
|
-
}
|
|
2393
|
-
export interface GuardrailWord {
|
|
2394
|
-
text: string | undefined;
|
|
2395
|
-
inputAction?: GuardrailWordAction | undefined;
|
|
2396
|
-
outputAction?: GuardrailWordAction | undefined;
|
|
2397
|
-
inputEnabled?: boolean | undefined;
|
|
2398
|
-
outputEnabled?: boolean | undefined;
|
|
2399
|
-
}
|
|
2400
|
-
export interface GuardrailWordPolicy {
|
|
2401
|
-
words?: GuardrailWord[] | undefined;
|
|
2402
|
-
managedWordLists?: GuardrailManagedWords[] | undefined;
|
|
2403
|
-
}
|
|
2404
|
-
export interface GetGuardrailResponse {
|
|
2405
|
-
name: string | undefined;
|
|
2406
|
-
description?: string | undefined;
|
|
2407
|
-
guardrailId: string | undefined;
|
|
2408
|
-
guardrailArn: string | undefined;
|
|
2409
|
-
version: string | undefined;
|
|
2410
|
-
status: GuardrailStatus | undefined;
|
|
2411
|
-
topicPolicy?: GuardrailTopicPolicy | undefined;
|
|
2412
|
-
contentPolicy?: GuardrailContentPolicy | undefined;
|
|
2413
|
-
wordPolicy?: GuardrailWordPolicy | undefined;
|
|
2414
|
-
sensitiveInformationPolicy?: GuardrailSensitiveInformationPolicy | undefined;
|
|
2415
|
-
contextualGroundingPolicy?: GuardrailContextualGroundingPolicy | undefined;
|
|
2416
|
-
automatedReasoningPolicy?: GuardrailAutomatedReasoningPolicy | undefined;
|
|
2417
|
-
crossRegionDetails?: GuardrailCrossRegionDetails | undefined;
|
|
2418
|
-
createdAt: Date | undefined;
|
|
2419
|
-
updatedAt: Date | undefined;
|
|
2420
|
-
statusReasons?: string[] | undefined;
|
|
2421
|
-
failureRecommendations?: string[] | undefined;
|
|
2422
|
-
blockedInputMessaging: string | undefined;
|
|
2423
|
-
blockedOutputsMessaging: string | undefined;
|
|
2424
|
-
kmsKeyArn?: string | undefined;
|
|
2425
|
-
}
|
|
2426
|
-
export interface ListGuardrailsRequest {
|
|
2427
|
-
guardrailIdentifier?: string | undefined;
|
|
2428
|
-
maxResults?: number | undefined;
|
|
2429
|
-
nextToken?: string | undefined;
|
|
2430
|
-
}
|
|
2431
|
-
export interface GuardrailSummary {
|
|
2432
|
-
id: string | undefined;
|
|
2433
|
-
arn: string | undefined;
|
|
2434
|
-
status: GuardrailStatus | undefined;
|
|
2435
|
-
name: string | undefined;
|
|
2436
|
-
description?: string | undefined;
|
|
2437
|
-
version: string | undefined;
|
|
2438
|
-
createdAt: Date | undefined;
|
|
2439
|
-
updatedAt: Date | undefined;
|
|
2440
|
-
crossRegionDetails?: GuardrailCrossRegionDetails | undefined;
|
|
2441
|
-
}
|
|
2442
|
-
export interface ListGuardrailsResponse {
|
|
2443
|
-
guardrails: GuardrailSummary[] | undefined;
|
|
2444
|
-
nextToken?: string | undefined;
|
|
2445
|
-
}
|
|
2446
|
-
export interface UpdateGuardrailRequest {
|
|
2447
|
-
guardrailIdentifier: string | undefined;
|
|
2448
|
-
name: string | undefined;
|
|
2449
|
-
description?: string | undefined;
|
|
2450
|
-
topicPolicyConfig?: GuardrailTopicPolicyConfig | undefined;
|
|
2451
|
-
contentPolicyConfig?: GuardrailContentPolicyConfig | undefined;
|
|
2452
|
-
wordPolicyConfig?: GuardrailWordPolicyConfig | undefined;
|
|
2453
|
-
sensitiveInformationPolicyConfig?:
|
|
2454
|
-
| GuardrailSensitiveInformationPolicyConfig
|
|
2455
|
-
| undefined;
|
|
2456
|
-
contextualGroundingPolicyConfig?:
|
|
2457
|
-
| GuardrailContextualGroundingPolicyConfig
|
|
2458
|
-
| undefined;
|
|
2459
|
-
automatedReasoningPolicyConfig?:
|
|
2460
|
-
| GuardrailAutomatedReasoningPolicyConfig
|
|
2461
|
-
| undefined;
|
|
2462
|
-
crossRegionConfig?: GuardrailCrossRegionConfig | undefined;
|
|
2463
|
-
blockedInputMessaging: string | undefined;
|
|
2464
|
-
blockedOutputsMessaging: string | undefined;
|
|
2465
|
-
kmsKeyId?: string | undefined;
|
|
2466
|
-
}
|
|
2467
|
-
export interface UpdateGuardrailResponse {
|
|
2468
|
-
guardrailId: string | undefined;
|
|
2469
|
-
guardrailArn: string | undefined;
|
|
2470
|
-
version: string | undefined;
|
|
2471
|
-
updatedAt: Date | undefined;
|
|
2472
|
-
}
|
|
2473
|
-
export type InferenceProfileModelSource =
|
|
2474
|
-
| InferenceProfileModelSource.CopyFromMember
|
|
2475
|
-
| InferenceProfileModelSource.$UnknownMember;
|
|
2476
|
-
export declare namespace InferenceProfileModelSource {
|
|
2477
|
-
interface CopyFromMember {
|
|
2478
|
-
copyFrom: string;
|
|
2479
|
-
$unknown?: never;
|
|
2480
|
-
}
|
|
2481
|
-
interface $UnknownMember {
|
|
2482
|
-
copyFrom?: never;
|
|
2483
|
-
$unknown: [string, any];
|
|
2484
|
-
}
|
|
2485
|
-
interface Visitor<T> {
|
|
2486
|
-
copyFrom: (value: string) => T;
|
|
2487
|
-
_: (name: string, value: any) => T;
|
|
2488
|
-
}
|
|
2489
|
-
}
|
|
2490
|
-
export interface CreateInferenceProfileRequest {
|
|
2491
|
-
inferenceProfileName: string | undefined;
|
|
2492
|
-
description?: string | undefined;
|
|
2493
|
-
clientRequestToken?: string | undefined;
|
|
2494
|
-
modelSource: InferenceProfileModelSource | undefined;
|
|
2495
|
-
tags?: Tag[] | undefined;
|
|
2496
|
-
}
|
|
2497
|
-
export interface CreateInferenceProfileResponse {
|
|
2498
|
-
inferenceProfileArn: string | undefined;
|
|
2499
|
-
status?: InferenceProfileStatus | undefined;
|
|
2500
|
-
}
|
|
@@ -8,6 +8,11 @@ import {
|
|
|
8
8
|
EvaluationJobType,
|
|
9
9
|
FineTuningJobStatus,
|
|
10
10
|
FoundationModelLifecycleStatus,
|
|
11
|
+
GuardrailManagedWordsType,
|
|
12
|
+
GuardrailStatus,
|
|
13
|
+
GuardrailTopicAction,
|
|
14
|
+
GuardrailTopicType,
|
|
15
|
+
GuardrailWordAction,
|
|
11
16
|
InferenceProfileStatus,
|
|
12
17
|
InferenceProfileType,
|
|
13
18
|
InferenceType,
|
|
@@ -38,6 +43,19 @@ import {
|
|
|
38
43
|
EvaluationOutputDataConfig,
|
|
39
44
|
ExternalSourcesRetrieveAndGenerateConfiguration,
|
|
40
45
|
GenerationConfiguration,
|
|
46
|
+
GuardrailAutomatedReasoningPolicy,
|
|
47
|
+
GuardrailAutomatedReasoningPolicyConfig,
|
|
48
|
+
GuardrailContentPolicy,
|
|
49
|
+
GuardrailContentPolicyConfig,
|
|
50
|
+
GuardrailContextualGroundingPolicy,
|
|
51
|
+
GuardrailContextualGroundingPolicyConfig,
|
|
52
|
+
GuardrailCrossRegionConfig,
|
|
53
|
+
GuardrailCrossRegionDetails,
|
|
54
|
+
GuardrailSensitiveInformationPolicy,
|
|
55
|
+
GuardrailSensitiveInformationPolicyConfig,
|
|
56
|
+
GuardrailTopicPolicyConfig,
|
|
57
|
+
GuardrailTopicsTier,
|
|
58
|
+
GuardrailWordPolicyConfig,
|
|
41
59
|
ImplicitFilterConfiguration,
|
|
42
60
|
ModelDataSource,
|
|
43
61
|
OrchestrationConfiguration,
|
|
@@ -53,6 +71,135 @@ import {
|
|
|
53
71
|
Tag,
|
|
54
72
|
ValidatorMetric,
|
|
55
73
|
} from "./models_0";
|
|
74
|
+
export interface GuardrailTopic {
|
|
75
|
+
name: string | undefined;
|
|
76
|
+
definition: string | undefined;
|
|
77
|
+
examples?: string[] | undefined;
|
|
78
|
+
type?: GuardrailTopicType | undefined;
|
|
79
|
+
inputAction?: GuardrailTopicAction | undefined;
|
|
80
|
+
outputAction?: GuardrailTopicAction | undefined;
|
|
81
|
+
inputEnabled?: boolean | undefined;
|
|
82
|
+
outputEnabled?: boolean | undefined;
|
|
83
|
+
}
|
|
84
|
+
export interface GuardrailTopicPolicy {
|
|
85
|
+
topics: GuardrailTopic[] | undefined;
|
|
86
|
+
tier?: GuardrailTopicsTier | undefined;
|
|
87
|
+
}
|
|
88
|
+
export interface GuardrailManagedWords {
|
|
89
|
+
type: GuardrailManagedWordsType | undefined;
|
|
90
|
+
inputAction?: GuardrailWordAction | undefined;
|
|
91
|
+
outputAction?: GuardrailWordAction | undefined;
|
|
92
|
+
inputEnabled?: boolean | undefined;
|
|
93
|
+
outputEnabled?: boolean | undefined;
|
|
94
|
+
}
|
|
95
|
+
export interface GuardrailWord {
|
|
96
|
+
text: string | undefined;
|
|
97
|
+
inputAction?: GuardrailWordAction | undefined;
|
|
98
|
+
outputAction?: GuardrailWordAction | undefined;
|
|
99
|
+
inputEnabled?: boolean | undefined;
|
|
100
|
+
outputEnabled?: boolean | undefined;
|
|
101
|
+
}
|
|
102
|
+
export interface GuardrailWordPolicy {
|
|
103
|
+
words?: GuardrailWord[] | undefined;
|
|
104
|
+
managedWordLists?: GuardrailManagedWords[] | undefined;
|
|
105
|
+
}
|
|
106
|
+
export interface GetGuardrailResponse {
|
|
107
|
+
name: string | undefined;
|
|
108
|
+
description?: string | undefined;
|
|
109
|
+
guardrailId: string | undefined;
|
|
110
|
+
guardrailArn: string | undefined;
|
|
111
|
+
version: string | undefined;
|
|
112
|
+
status: GuardrailStatus | undefined;
|
|
113
|
+
topicPolicy?: GuardrailTopicPolicy | undefined;
|
|
114
|
+
contentPolicy?: GuardrailContentPolicy | undefined;
|
|
115
|
+
wordPolicy?: GuardrailWordPolicy | undefined;
|
|
116
|
+
sensitiveInformationPolicy?: GuardrailSensitiveInformationPolicy | undefined;
|
|
117
|
+
contextualGroundingPolicy?: GuardrailContextualGroundingPolicy | undefined;
|
|
118
|
+
automatedReasoningPolicy?: GuardrailAutomatedReasoningPolicy | undefined;
|
|
119
|
+
crossRegionDetails?: GuardrailCrossRegionDetails | undefined;
|
|
120
|
+
createdAt: Date | undefined;
|
|
121
|
+
updatedAt: Date | undefined;
|
|
122
|
+
statusReasons?: string[] | undefined;
|
|
123
|
+
failureRecommendations?: string[] | undefined;
|
|
124
|
+
blockedInputMessaging: string | undefined;
|
|
125
|
+
blockedOutputsMessaging: string | undefined;
|
|
126
|
+
kmsKeyArn?: string | undefined;
|
|
127
|
+
}
|
|
128
|
+
export interface ListGuardrailsRequest {
|
|
129
|
+
guardrailIdentifier?: string | undefined;
|
|
130
|
+
maxResults?: number | undefined;
|
|
131
|
+
nextToken?: string | undefined;
|
|
132
|
+
}
|
|
133
|
+
export interface GuardrailSummary {
|
|
134
|
+
id: string | undefined;
|
|
135
|
+
arn: string | undefined;
|
|
136
|
+
status: GuardrailStatus | undefined;
|
|
137
|
+
name: string | undefined;
|
|
138
|
+
description?: string | undefined;
|
|
139
|
+
version: string | undefined;
|
|
140
|
+
createdAt: Date | undefined;
|
|
141
|
+
updatedAt: Date | undefined;
|
|
142
|
+
crossRegionDetails?: GuardrailCrossRegionDetails | undefined;
|
|
143
|
+
}
|
|
144
|
+
export interface ListGuardrailsResponse {
|
|
145
|
+
guardrails: GuardrailSummary[] | undefined;
|
|
146
|
+
nextToken?: string | undefined;
|
|
147
|
+
}
|
|
148
|
+
export interface UpdateGuardrailRequest {
|
|
149
|
+
guardrailIdentifier: string | undefined;
|
|
150
|
+
name: string | undefined;
|
|
151
|
+
description?: string | undefined;
|
|
152
|
+
topicPolicyConfig?: GuardrailTopicPolicyConfig | undefined;
|
|
153
|
+
contentPolicyConfig?: GuardrailContentPolicyConfig | undefined;
|
|
154
|
+
wordPolicyConfig?: GuardrailWordPolicyConfig | undefined;
|
|
155
|
+
sensitiveInformationPolicyConfig?:
|
|
156
|
+
| GuardrailSensitiveInformationPolicyConfig
|
|
157
|
+
| undefined;
|
|
158
|
+
contextualGroundingPolicyConfig?:
|
|
159
|
+
| GuardrailContextualGroundingPolicyConfig
|
|
160
|
+
| undefined;
|
|
161
|
+
automatedReasoningPolicyConfig?:
|
|
162
|
+
| GuardrailAutomatedReasoningPolicyConfig
|
|
163
|
+
| undefined;
|
|
164
|
+
crossRegionConfig?: GuardrailCrossRegionConfig | undefined;
|
|
165
|
+
blockedInputMessaging: string | undefined;
|
|
166
|
+
blockedOutputsMessaging: string | undefined;
|
|
167
|
+
kmsKeyId?: string | undefined;
|
|
168
|
+
}
|
|
169
|
+
export interface UpdateGuardrailResponse {
|
|
170
|
+
guardrailId: string | undefined;
|
|
171
|
+
guardrailArn: string | undefined;
|
|
172
|
+
version: string | undefined;
|
|
173
|
+
updatedAt: Date | undefined;
|
|
174
|
+
}
|
|
175
|
+
export type InferenceProfileModelSource =
|
|
176
|
+
| InferenceProfileModelSource.CopyFromMember
|
|
177
|
+
| InferenceProfileModelSource.$UnknownMember;
|
|
178
|
+
export declare namespace InferenceProfileModelSource {
|
|
179
|
+
interface CopyFromMember {
|
|
180
|
+
copyFrom: string;
|
|
181
|
+
$unknown?: never;
|
|
182
|
+
}
|
|
183
|
+
interface $UnknownMember {
|
|
184
|
+
copyFrom?: never;
|
|
185
|
+
$unknown: [string, any];
|
|
186
|
+
}
|
|
187
|
+
interface Visitor<T> {
|
|
188
|
+
copyFrom: (value: string) => T;
|
|
189
|
+
_: (name: string, value: any) => T;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
export interface CreateInferenceProfileRequest {
|
|
193
|
+
inferenceProfileName: string | undefined;
|
|
194
|
+
description?: string | undefined;
|
|
195
|
+
clientRequestToken?: string | undefined;
|
|
196
|
+
modelSource: InferenceProfileModelSource | undefined;
|
|
197
|
+
tags?: Tag[] | undefined;
|
|
198
|
+
}
|
|
199
|
+
export interface CreateInferenceProfileResponse {
|
|
200
|
+
inferenceProfileArn: string | undefined;
|
|
201
|
+
status?: InferenceProfileStatus | undefined;
|
|
202
|
+
}
|
|
56
203
|
export interface DeleteInferenceProfileRequest {
|
|
57
204
|
inferenceProfileIdentifier: string | undefined;
|
|
58
205
|
}
|
|
@@ -44,8 +44,13 @@ export declare var AutomatedReasoningPolicyAddTypeMutation$: StaticStructureSche
|
|
|
44
44
|
export declare var AutomatedReasoningPolicyAddTypeValue$: StaticStructureSchema;
|
|
45
45
|
export declare var AutomatedReasoningPolicyAddVariableAnnotation$: StaticStructureSchema;
|
|
46
46
|
export declare var AutomatedReasoningPolicyAddVariableMutation$: StaticStructureSchema;
|
|
47
|
+
export declare var AutomatedReasoningPolicyAnnotatedChunk$: StaticStructureSchema;
|
|
48
|
+
export declare var AutomatedReasoningPolicyAnnotatedLine$: StaticStructureSchema;
|
|
49
|
+
export declare var AutomatedReasoningPolicyAtomicStatement$: StaticStructureSchema;
|
|
47
50
|
export declare var AutomatedReasoningPolicyBuildLog$: StaticStructureSchema;
|
|
48
51
|
export declare var AutomatedReasoningPolicyBuildLogEntry$: StaticStructureSchema;
|
|
52
|
+
export declare var AutomatedReasoningPolicyBuildResultAssetManifest$: StaticStructureSchema;
|
|
53
|
+
export declare var AutomatedReasoningPolicyBuildResultAssetManifestEntry$: StaticStructureSchema;
|
|
49
54
|
export declare var AutomatedReasoningPolicyBuildStep$: StaticStructureSchema;
|
|
50
55
|
export declare var AutomatedReasoningPolicyBuildStepMessage$: StaticStructureSchema;
|
|
51
56
|
export declare var AutomatedReasoningPolicyBuildWorkflowDocument$: StaticStructureSchema;
|
|
@@ -67,12 +72,18 @@ export declare var AutomatedReasoningPolicyDeleteTypeValue$: StaticStructureSche
|
|
|
67
72
|
export declare var AutomatedReasoningPolicyDeleteVariableAnnotation$: StaticStructureSchema;
|
|
68
73
|
export declare var AutomatedReasoningPolicyDeleteVariableMutation$: StaticStructureSchema;
|
|
69
74
|
export declare var AutomatedReasoningPolicyDisjointRuleSet$: StaticStructureSchema;
|
|
75
|
+
export declare var AutomatedReasoningPolicyFidelityReport$: StaticStructureSchema;
|
|
70
76
|
export declare var AutomatedReasoningPolicyGeneratedTestCase$: StaticStructureSchema;
|
|
71
77
|
export declare var AutomatedReasoningPolicyGeneratedTestCases$: StaticStructureSchema;
|
|
72
78
|
export declare var AutomatedReasoningPolicyIngestContentAnnotation$: StaticStructureSchema;
|
|
73
79
|
export declare var AutomatedReasoningPolicyPlanning$: StaticStructureSchema;
|
|
80
|
+
export declare var AutomatedReasoningPolicyReportSourceDocument$: StaticStructureSchema;
|
|
81
|
+
export declare var AutomatedReasoningPolicyRuleReport$: StaticStructureSchema;
|
|
74
82
|
export declare var AutomatedReasoningPolicyScenario$: StaticStructureSchema;
|
|
75
83
|
export declare var AutomatedReasoningPolicyScenarios$: StaticStructureSchema;
|
|
84
|
+
export declare var AutomatedReasoningPolicySourceDocument$: StaticStructureSchema;
|
|
85
|
+
export declare var AutomatedReasoningPolicyStatementLocation$: StaticStructureSchema;
|
|
86
|
+
export declare var AutomatedReasoningPolicyStatementReference$: StaticStructureSchema;
|
|
76
87
|
export declare var AutomatedReasoningPolicySummary$: StaticStructureSchema;
|
|
77
88
|
export declare var AutomatedReasoningPolicyTestCase$: StaticStructureSchema;
|
|
78
89
|
export declare var AutomatedReasoningPolicyTestResult$: StaticStructureSchema;
|
|
@@ -85,6 +96,7 @@ export declare var AutomatedReasoningPolicyUpdateTypeMutation$: StaticStructureS
|
|
|
85
96
|
export declare var AutomatedReasoningPolicyUpdateTypeValue$: StaticStructureSchema;
|
|
86
97
|
export declare var AutomatedReasoningPolicyUpdateVariableAnnotation$: StaticStructureSchema;
|
|
87
98
|
export declare var AutomatedReasoningPolicyUpdateVariableMutation$: StaticStructureSchema;
|
|
99
|
+
export declare var AutomatedReasoningPolicyVariableReport$: StaticStructureSchema;
|
|
88
100
|
export declare var BatchDeleteEvaluationJobError$: StaticStructureSchema;
|
|
89
101
|
export declare var BatchDeleteEvaluationJobItem$: StaticStructureSchema;
|
|
90
102
|
export declare var BatchDeleteEvaluationJobRequest$: StaticStructureSchema;
|
|
@@ -416,10 +428,12 @@ export declare var VectorSearchRerankingConfiguration$: StaticStructureSchema;
|
|
|
416
428
|
export declare var VpcConfig$: StaticStructureSchema;
|
|
417
429
|
export declare var AutomatedEvaluationCustomMetricSource$: StaticUnionSchema;
|
|
418
430
|
export declare var AutomatedReasoningCheckFinding$: StaticUnionSchema;
|
|
431
|
+
export declare var AutomatedReasoningPolicyAnnotatedContent$: StaticUnionSchema;
|
|
419
432
|
export declare var AutomatedReasoningPolicyAnnotation$: StaticUnionSchema;
|
|
420
433
|
export declare var AutomatedReasoningPolicyBuildResultAssets$: StaticUnionSchema;
|
|
421
434
|
export declare var AutomatedReasoningPolicyBuildStepContext$: StaticUnionSchema;
|
|
422
435
|
export declare var AutomatedReasoningPolicyDefinitionElement$: StaticUnionSchema;
|
|
436
|
+
export declare var AutomatedReasoningPolicyGenerateFidelityReportContent$: StaticUnionSchema;
|
|
423
437
|
export declare var AutomatedReasoningPolicyMutation$: StaticUnionSchema;
|
|
424
438
|
export declare var AutomatedReasoningPolicyTypeValueAnnotation$: StaticUnionSchema;
|
|
425
439
|
export declare var AutomatedReasoningPolicyWorkflowTypeContent$: StaticUnionSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.996.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 client-bedrock",
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.973.12",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.11",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
27
27
|
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.12",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
31
|
-
"@aws-sdk/token-providers": "3.
|
|
31
|
+
"@aws-sdk/token-providers": "3.996.0",
|
|
32
32
|
"@aws-sdk/types": "^3.973.1",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.996.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "^3.972.11",
|
|
36
36
|
"@smithy/config-resolver": "^4.4.6",
|
|
37
37
|
"@smithy/core": "^3.23.2",
|
|
38
38
|
"@smithy/fetch-http-handler": "^5.3.9",
|