@aws-sdk/client-bedrock 3.782.0 → 3.784.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 +134 -5
- package/dist-es/models/models_0.js +91 -0
- package/dist-es/protocols/Aws_restJson1.js +4 -0
- package/dist-types/commands/CreateGuardrailCommand.d.ts +28 -2
- package/dist-types/commands/GetGuardrailCommand.d.ts +28 -2
- package/dist-types/commands/UpdateGuardrailCommand.d.ts +28 -2
- package/dist-types/models/models_0.d.ts +705 -0
- package/dist-types/ts3.4/models/models_0.d.ts +107 -0
- package/package.json +1 -1
|
@@ -529,6 +529,12 @@ export interface StopEvaluationJobRequest {
|
|
|
529
529
|
jobIdentifier: string | undefined;
|
|
530
530
|
}
|
|
531
531
|
export interface StopEvaluationJobResponse {}
|
|
532
|
+
export declare const GuardrailContentFilterAction: {
|
|
533
|
+
readonly BLOCK: "BLOCK";
|
|
534
|
+
readonly NONE: "NONE";
|
|
535
|
+
};
|
|
536
|
+
export type GuardrailContentFilterAction =
|
|
537
|
+
(typeof GuardrailContentFilterAction)[keyof typeof GuardrailContentFilterAction];
|
|
532
538
|
export declare const GuardrailModality: {
|
|
533
539
|
readonly IMAGE: "IMAGE";
|
|
534
540
|
readonly TEXT: "TEXT";
|
|
@@ -559,10 +565,20 @@ export interface GuardrailContentFilterConfig {
|
|
|
559
565
|
outputStrength: GuardrailFilterStrength | undefined;
|
|
560
566
|
inputModalities?: GuardrailModality[] | undefined;
|
|
561
567
|
outputModalities?: GuardrailModality[] | undefined;
|
|
568
|
+
inputAction?: GuardrailContentFilterAction | undefined;
|
|
569
|
+
outputAction?: GuardrailContentFilterAction | undefined;
|
|
570
|
+
inputEnabled?: boolean | undefined;
|
|
571
|
+
outputEnabled?: boolean | undefined;
|
|
562
572
|
}
|
|
563
573
|
export interface GuardrailContentPolicyConfig {
|
|
564
574
|
filtersConfig: GuardrailContentFilterConfig[] | undefined;
|
|
565
575
|
}
|
|
576
|
+
export declare const GuardrailContextualGroundingAction: {
|
|
577
|
+
readonly BLOCK: "BLOCK";
|
|
578
|
+
readonly NONE: "NONE";
|
|
579
|
+
};
|
|
580
|
+
export type GuardrailContextualGroundingAction =
|
|
581
|
+
(typeof GuardrailContextualGroundingAction)[keyof typeof GuardrailContextualGroundingAction];
|
|
566
582
|
export declare const GuardrailContextualGroundingFilterType: {
|
|
567
583
|
readonly GROUNDING: "GROUNDING";
|
|
568
584
|
readonly RELEVANCE: "RELEVANCE";
|
|
@@ -572,6 +588,8 @@ export type GuardrailContextualGroundingFilterType =
|
|
|
572
588
|
export interface GuardrailContextualGroundingFilterConfig {
|
|
573
589
|
type: GuardrailContextualGroundingFilterType | undefined;
|
|
574
590
|
threshold: number | undefined;
|
|
591
|
+
action?: GuardrailContextualGroundingAction | undefined;
|
|
592
|
+
enabled?: boolean | undefined;
|
|
575
593
|
}
|
|
576
594
|
export interface GuardrailContextualGroundingPolicyConfig {
|
|
577
595
|
filtersConfig: GuardrailContextualGroundingFilterConfig[] | undefined;
|
|
@@ -579,6 +597,7 @@ export interface GuardrailContextualGroundingPolicyConfig {
|
|
|
579
597
|
export declare const GuardrailSensitiveInformationAction: {
|
|
580
598
|
readonly ANONYMIZE: "ANONYMIZE";
|
|
581
599
|
readonly BLOCK: "BLOCK";
|
|
600
|
+
readonly NONE: "NONE";
|
|
582
601
|
};
|
|
583
602
|
export type GuardrailSensitiveInformationAction =
|
|
584
603
|
(typeof GuardrailSensitiveInformationAction)[keyof typeof GuardrailSensitiveInformationAction];
|
|
@@ -620,17 +639,31 @@ export type GuardrailPiiEntityType =
|
|
|
620
639
|
export interface GuardrailPiiEntityConfig {
|
|
621
640
|
type: GuardrailPiiEntityType | undefined;
|
|
622
641
|
action: GuardrailSensitiveInformationAction | undefined;
|
|
642
|
+
inputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
643
|
+
outputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
644
|
+
inputEnabled?: boolean | undefined;
|
|
645
|
+
outputEnabled?: boolean | undefined;
|
|
623
646
|
}
|
|
624
647
|
export interface GuardrailRegexConfig {
|
|
625
648
|
name: string | undefined;
|
|
626
649
|
description?: string | undefined;
|
|
627
650
|
pattern: string | undefined;
|
|
628
651
|
action: GuardrailSensitiveInformationAction | undefined;
|
|
652
|
+
inputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
653
|
+
outputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
654
|
+
inputEnabled?: boolean | undefined;
|
|
655
|
+
outputEnabled?: boolean | undefined;
|
|
629
656
|
}
|
|
630
657
|
export interface GuardrailSensitiveInformationPolicyConfig {
|
|
631
658
|
piiEntitiesConfig?: GuardrailPiiEntityConfig[] | undefined;
|
|
632
659
|
regexesConfig?: GuardrailRegexConfig[] | undefined;
|
|
633
660
|
}
|
|
661
|
+
export declare const GuardrailTopicAction: {
|
|
662
|
+
readonly BLOCK: "BLOCK";
|
|
663
|
+
readonly NONE: "NONE";
|
|
664
|
+
};
|
|
665
|
+
export type GuardrailTopicAction =
|
|
666
|
+
(typeof GuardrailTopicAction)[keyof typeof GuardrailTopicAction];
|
|
634
667
|
export declare const GuardrailTopicType: {
|
|
635
668
|
readonly DENY: "DENY";
|
|
636
669
|
};
|
|
@@ -641,10 +674,20 @@ export interface GuardrailTopicConfig {
|
|
|
641
674
|
definition: string | undefined;
|
|
642
675
|
examples?: string[] | undefined;
|
|
643
676
|
type: GuardrailTopicType | undefined;
|
|
677
|
+
inputAction?: GuardrailTopicAction | undefined;
|
|
678
|
+
outputAction?: GuardrailTopicAction | undefined;
|
|
679
|
+
inputEnabled?: boolean | undefined;
|
|
680
|
+
outputEnabled?: boolean | undefined;
|
|
644
681
|
}
|
|
645
682
|
export interface GuardrailTopicPolicyConfig {
|
|
646
683
|
topicsConfig: GuardrailTopicConfig[] | undefined;
|
|
647
684
|
}
|
|
685
|
+
export declare const GuardrailWordAction: {
|
|
686
|
+
readonly BLOCK: "BLOCK";
|
|
687
|
+
readonly NONE: "NONE";
|
|
688
|
+
};
|
|
689
|
+
export type GuardrailWordAction =
|
|
690
|
+
(typeof GuardrailWordAction)[keyof typeof GuardrailWordAction];
|
|
648
691
|
export declare const GuardrailManagedWordsType: {
|
|
649
692
|
readonly PROFANITY: "PROFANITY";
|
|
650
693
|
};
|
|
@@ -652,9 +695,17 @@ export type GuardrailManagedWordsType =
|
|
|
652
695
|
(typeof GuardrailManagedWordsType)[keyof typeof GuardrailManagedWordsType];
|
|
653
696
|
export interface GuardrailManagedWordsConfig {
|
|
654
697
|
type: GuardrailManagedWordsType | undefined;
|
|
698
|
+
inputAction?: GuardrailWordAction | undefined;
|
|
699
|
+
outputAction?: GuardrailWordAction | undefined;
|
|
700
|
+
inputEnabled?: boolean | undefined;
|
|
701
|
+
outputEnabled?: boolean | undefined;
|
|
655
702
|
}
|
|
656
703
|
export interface GuardrailWordConfig {
|
|
657
704
|
text: string | undefined;
|
|
705
|
+
inputAction?: GuardrailWordAction | undefined;
|
|
706
|
+
outputAction?: GuardrailWordAction | undefined;
|
|
707
|
+
inputEnabled?: boolean | undefined;
|
|
708
|
+
outputEnabled?: boolean | undefined;
|
|
658
709
|
}
|
|
659
710
|
export interface GuardrailWordPolicyConfig {
|
|
660
711
|
wordsConfig?: GuardrailWordConfig[] | undefined;
|
|
@@ -716,6 +767,10 @@ export interface GuardrailContentFilter {
|
|
|
716
767
|
outputStrength: GuardrailFilterStrength | undefined;
|
|
717
768
|
inputModalities?: GuardrailModality[] | undefined;
|
|
718
769
|
outputModalities?: GuardrailModality[] | undefined;
|
|
770
|
+
inputAction?: GuardrailContentFilterAction | undefined;
|
|
771
|
+
outputAction?: GuardrailContentFilterAction | undefined;
|
|
772
|
+
inputEnabled?: boolean | undefined;
|
|
773
|
+
outputEnabled?: boolean | undefined;
|
|
719
774
|
}
|
|
720
775
|
export interface GuardrailContentPolicy {
|
|
721
776
|
filters?: GuardrailContentFilter[] | undefined;
|
|
@@ -723,6 +778,8 @@ export interface GuardrailContentPolicy {
|
|
|
723
778
|
export interface GuardrailContextualGroundingFilter {
|
|
724
779
|
type: GuardrailContextualGroundingFilterType | undefined;
|
|
725
780
|
threshold: number | undefined;
|
|
781
|
+
action?: GuardrailContextualGroundingAction | undefined;
|
|
782
|
+
enabled?: boolean | undefined;
|
|
726
783
|
}
|
|
727
784
|
export interface GuardrailContextualGroundingPolicy {
|
|
728
785
|
filters: GuardrailContextualGroundingFilter[] | undefined;
|
|
@@ -730,12 +787,20 @@ export interface GuardrailContextualGroundingPolicy {
|
|
|
730
787
|
export interface GuardrailPiiEntity {
|
|
731
788
|
type: GuardrailPiiEntityType | undefined;
|
|
732
789
|
action: GuardrailSensitiveInformationAction | undefined;
|
|
790
|
+
inputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
791
|
+
outputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
792
|
+
inputEnabled?: boolean | undefined;
|
|
793
|
+
outputEnabled?: boolean | undefined;
|
|
733
794
|
}
|
|
734
795
|
export interface GuardrailRegex {
|
|
735
796
|
name: string | undefined;
|
|
736
797
|
description?: string | undefined;
|
|
737
798
|
pattern: string | undefined;
|
|
738
799
|
action: GuardrailSensitiveInformationAction | undefined;
|
|
800
|
+
inputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
801
|
+
outputAction?: GuardrailSensitiveInformationAction | undefined;
|
|
802
|
+
inputEnabled?: boolean | undefined;
|
|
803
|
+
outputEnabled?: boolean | undefined;
|
|
739
804
|
}
|
|
740
805
|
export interface GuardrailSensitiveInformationPolicy {
|
|
741
806
|
piiEntities?: GuardrailPiiEntity[] | undefined;
|
|
@@ -756,15 +821,27 @@ export interface GuardrailTopic {
|
|
|
756
821
|
definition: string | undefined;
|
|
757
822
|
examples?: string[] | undefined;
|
|
758
823
|
type?: GuardrailTopicType | undefined;
|
|
824
|
+
inputAction?: GuardrailTopicAction | undefined;
|
|
825
|
+
outputAction?: GuardrailTopicAction | undefined;
|
|
826
|
+
inputEnabled?: boolean | undefined;
|
|
827
|
+
outputEnabled?: boolean | undefined;
|
|
759
828
|
}
|
|
760
829
|
export interface GuardrailTopicPolicy {
|
|
761
830
|
topics: GuardrailTopic[] | undefined;
|
|
762
831
|
}
|
|
763
832
|
export interface GuardrailManagedWords {
|
|
764
833
|
type: GuardrailManagedWordsType | undefined;
|
|
834
|
+
inputAction?: GuardrailWordAction | undefined;
|
|
835
|
+
outputAction?: GuardrailWordAction | undefined;
|
|
836
|
+
inputEnabled?: boolean | undefined;
|
|
837
|
+
outputEnabled?: boolean | undefined;
|
|
765
838
|
}
|
|
766
839
|
export interface GuardrailWord {
|
|
767
840
|
text: string | undefined;
|
|
841
|
+
inputAction?: GuardrailWordAction | undefined;
|
|
842
|
+
outputAction?: GuardrailWordAction | undefined;
|
|
843
|
+
inputEnabled?: boolean | undefined;
|
|
844
|
+
outputEnabled?: boolean | undefined;
|
|
768
845
|
}
|
|
769
846
|
export interface GuardrailWordPolicy {
|
|
770
847
|
words?: GuardrailWord[] | undefined;
|
|
@@ -2254,12 +2331,27 @@ export declare const GuardrailContentFilterConfigFilterSensitiveLog: (
|
|
|
2254
2331
|
export declare const GuardrailContentPolicyConfigFilterSensitiveLog: (
|
|
2255
2332
|
obj: GuardrailContentPolicyConfig
|
|
2256
2333
|
) => any;
|
|
2334
|
+
export declare const GuardrailContextualGroundingFilterConfigFilterSensitiveLog: (
|
|
2335
|
+
obj: GuardrailContextualGroundingFilterConfig
|
|
2336
|
+
) => any;
|
|
2337
|
+
export declare const GuardrailContextualGroundingPolicyConfigFilterSensitiveLog: (
|
|
2338
|
+
obj: GuardrailContextualGroundingPolicyConfig
|
|
2339
|
+
) => any;
|
|
2257
2340
|
export declare const GuardrailTopicConfigFilterSensitiveLog: (
|
|
2258
2341
|
obj: GuardrailTopicConfig
|
|
2259
2342
|
) => any;
|
|
2260
2343
|
export declare const GuardrailTopicPolicyConfigFilterSensitiveLog: (
|
|
2261
2344
|
obj: GuardrailTopicPolicyConfig
|
|
2262
2345
|
) => any;
|
|
2346
|
+
export declare const GuardrailManagedWordsConfigFilterSensitiveLog: (
|
|
2347
|
+
obj: GuardrailManagedWordsConfig
|
|
2348
|
+
) => any;
|
|
2349
|
+
export declare const GuardrailWordConfigFilterSensitiveLog: (
|
|
2350
|
+
obj: GuardrailWordConfig
|
|
2351
|
+
) => any;
|
|
2352
|
+
export declare const GuardrailWordPolicyConfigFilterSensitiveLog: (
|
|
2353
|
+
obj: GuardrailWordPolicyConfig
|
|
2354
|
+
) => any;
|
|
2263
2355
|
export declare const CreateGuardrailRequestFilterSensitiveLog: (
|
|
2264
2356
|
obj: CreateGuardrailRequest
|
|
2265
2357
|
) => any;
|
|
@@ -2272,12 +2364,27 @@ export declare const GuardrailContentFilterFilterSensitiveLog: (
|
|
|
2272
2364
|
export declare const GuardrailContentPolicyFilterSensitiveLog: (
|
|
2273
2365
|
obj: GuardrailContentPolicy
|
|
2274
2366
|
) => any;
|
|
2367
|
+
export declare const GuardrailContextualGroundingFilterFilterSensitiveLog: (
|
|
2368
|
+
obj: GuardrailContextualGroundingFilter
|
|
2369
|
+
) => any;
|
|
2370
|
+
export declare const GuardrailContextualGroundingPolicyFilterSensitiveLog: (
|
|
2371
|
+
obj: GuardrailContextualGroundingPolicy
|
|
2372
|
+
) => any;
|
|
2275
2373
|
export declare const GuardrailTopicFilterSensitiveLog: (
|
|
2276
2374
|
obj: GuardrailTopic
|
|
2277
2375
|
) => any;
|
|
2278
2376
|
export declare const GuardrailTopicPolicyFilterSensitiveLog: (
|
|
2279
2377
|
obj: GuardrailTopicPolicy
|
|
2280
2378
|
) => any;
|
|
2379
|
+
export declare const GuardrailManagedWordsFilterSensitiveLog: (
|
|
2380
|
+
obj: GuardrailManagedWords
|
|
2381
|
+
) => any;
|
|
2382
|
+
export declare const GuardrailWordFilterSensitiveLog: (
|
|
2383
|
+
obj: GuardrailWord
|
|
2384
|
+
) => any;
|
|
2385
|
+
export declare const GuardrailWordPolicyFilterSensitiveLog: (
|
|
2386
|
+
obj: GuardrailWordPolicy
|
|
2387
|
+
) => any;
|
|
2281
2388
|
export declare const GetGuardrailResponseFilterSensitiveLog: (
|
|
2282
2389
|
obj: GetGuardrailResponse
|
|
2283
2390
|
) => any;
|
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.784.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock",
|