@aws-sdk/client-bedrock-runtime 3.935.0 → 3.938.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 CHANGED
@@ -289,6 +289,7 @@ let ModelStreamErrorException$1 = class ModelStreamErrorException extends Bedroc
289
289
  const _A = "Accept";
290
290
  const _ADE = "AccessDeniedException";
291
291
  const _AG = "ApplyGuardrail";
292
+ const _AGD = "AppliedGuardrailDetails";
292
293
  const _AGR = "ApplyGuardrailRequest";
293
294
  const _AGRp = "ApplyGuardrailResponse";
294
295
  const _AIM = "AsyncInvokeMessage";
@@ -504,6 +505,7 @@ const _XABPL = "X-Amzn-Bedrock-PerformanceConfig-Latency";
504
505
  const _XABST = "X-Amzn-Bedrock-Service-Tier";
505
506
  const _XABT = "X-Amzn-Bedrock-Trace";
506
507
  const _a = "action";
508
+ const _aGD = "appliedGuardrailDetails";
507
509
  const _aIS = "asyncInvokeSummaries";
508
510
  const _aMRF = "additionalModelRequestFields";
509
511
  const _aMRFP = "additionalModelResponseFieldPaths";
@@ -567,10 +569,14 @@ const _fS = "filterStrength";
567
569
  const _fi = "findings";
568
570
  const _fil = "filters";
569
571
  const _g = "guardrail";
572
+ const _gA = "guardrailArn";
570
573
  const _gC = "guardrailCoverage";
571
574
  const _gCu = "guardrailConfig";
572
575
  const _gCua = "guardContent";
573
- const _gI = "guardrailIdentifier";
576
+ const _gI = "guardrailId";
577
+ const _gIu = "guardrailIdentifier";
578
+ const _gO = "guardrailOrigin";
579
+ const _gOu = "guardrailOwnership";
574
580
  const _gPL = "guardrailProcessingLatency";
575
581
  const _gV = "guardrailVersion";
576
582
  const _gu = "guarded";
@@ -741,12 +747,20 @@ var AccessDeniedException = [
741
747
  ];
742
748
  schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
743
749
  var AnyToolChoice = [3, n0, _ATC, 0, [], []];
750
+ var AppliedGuardrailDetails = [
751
+ 3,
752
+ n0,
753
+ _AGD,
754
+ 0,
755
+ [_gI, _gV, _gA, _gO, _gOu],
756
+ [0, 0, 0, 64 | 0, 0],
757
+ ];
744
758
  var ApplyGuardrailRequest = [
745
759
  3,
746
760
  n0,
747
761
  _AGR,
748
762
  0,
749
- [_gI, _gV, _s, _co, _oS],
763
+ [_gIu, _gV, _s, _co, _oS],
750
764
  [[0, 1], [0, 1], 0, [() => GuardrailContentBlockList, 0], 0],
751
765
  ];
752
766
  var ApplyGuardrailResponse = [
@@ -976,7 +990,7 @@ var GuardrailAssessment = [
976
990
  n0,
977
991
  _GA,
978
992
  0,
979
- [_tP, _cP, _wP, _sIP, _cGP, _aRP, _iM],
993
+ [_tP, _cP, _wP, _sIP, _cGP, _aRP, _iM, _aGD],
980
994
  [
981
995
  () => GuardrailTopicPolicyAssessment,
982
996
  () => GuardrailContentPolicyAssessment,
@@ -985,6 +999,7 @@ var GuardrailAssessment = [
985
999
  () => GuardrailContextualGroundingPolicyAssessment,
986
1000
  [() => GuardrailAutomatedReasoningPolicyAssessment, 0],
987
1001
  () => GuardrailInvocationMetrics,
1002
+ () => AppliedGuardrailDetails,
988
1003
  ],
989
1004
  ];
990
1005
  var GuardrailAutomatedReasoningImpossibleFinding = [
@@ -1116,7 +1131,7 @@ var GuardrailAutomatedReasoningValidFinding = [
1116
1131
  [() => GuardrailAutomatedReasoningLogicWarning, 0],
1117
1132
  ],
1118
1133
  ];
1119
- var GuardrailConfiguration = [3, n0, _GC, 0, [_gI, _gV, _tr], [0, 0, 0]];
1134
+ var GuardrailConfiguration = [3, n0, _GC, 0, [_gIu, _gV, _tr], [0, 0, 0]];
1120
1135
  var GuardrailContentFilter = [3, n0, _GCF, 0, [_t, _conf, _fS, _a, _de], [0, 0, 0, 0, 2]];
1121
1136
  var GuardrailContentPolicyAssessment = [
1122
1137
  3,
@@ -1189,7 +1204,7 @@ var GuardrailSensitiveInformationPolicyAssessment = [
1189
1204
  [_pE, _re],
1190
1205
  [() => GuardrailPiiEntityFilterList, () => GuardrailRegexFilterList],
1191
1206
  ];
1192
- var GuardrailStreamConfiguration = [3, n0, _GSC, 0, [_gI, _gV, _tr, _sPM], [0, 0, 0, 0]];
1207
+ var GuardrailStreamConfiguration = [3, n0, _GSC, 0, [_gIu, _gV, _tr, _sPM], [0, 0, 0, 0]];
1193
1208
  var GuardrailTextBlock = [3, n0, _GTB, 0, [_te, _q], [0, 64 | 0]];
1194
1209
  var GuardrailTextCharactersCoverage = [3, n0, _GTCC, 0, [_gu, _to], [1, 1]];
1195
1210
  var GuardrailTopic = [3, n0, _GT, 0, [_n, _t, _a, _de], [0, 0, 0, 2]];
@@ -1244,7 +1259,7 @@ var InvokeModelRequest = [
1244
1259
  n0,
1245
1260
  _IMR,
1246
1261
  0,
1247
- [_bo, _cT, _ac, _mI, _tr, _gI, _gV, _pCL, _sTe],
1262
+ [_bo, _cT, _ac, _mI, _tr, _gIu, _gV, _pCL, _sTe],
1248
1263
  [
1249
1264
  [() => Body, 16],
1250
1265
  [
@@ -1345,7 +1360,7 @@ var InvokeModelWithResponseStreamRequest = [
1345
1360
  n0,
1346
1361
  _IMWRSR,
1347
1362
  0,
1348
- [_bo, _cT, _ac, _mI, _tr, _gI, _gV, _pCL, _sTe],
1363
+ [_bo, _cT, _ac, _mI, _tr, _gIu, _gV, _pCL, _sTe],
1349
1364
  [
1350
1365
  [() => Body, 16],
1351
1366
  [
@@ -2247,6 +2262,15 @@ const GuardrailAction = {
2247
2262
  GUARDRAIL_INTERVENED: "GUARDRAIL_INTERVENED",
2248
2263
  NONE: "NONE",
2249
2264
  };
2265
+ const GuardrailOrigin = {
2266
+ ACCOUNT_ENFORCED: "ACCOUNT_ENFORCED",
2267
+ ORGANIZATION_ENFORCED: "ORGANIZATION_ENFORCED",
2268
+ REQUEST: "REQUEST",
2269
+ };
2270
+ const GuardrailOwnership = {
2271
+ CROSS_ACCOUNT: "CROSS_ACCOUNT",
2272
+ SELF: "SELF",
2273
+ };
2250
2274
  const GuardrailAutomatedReasoningLogicWarningType = {
2251
2275
  ALWAYS_FALSE: "ALWAYS_FALSE",
2252
2276
  ALWAYS_TRUE: "ALWAYS_TRUE",
@@ -2455,7 +2479,9 @@ exports.GuardrailConverseContentQualifier = GuardrailConverseContentQualifier;
2455
2479
  exports.GuardrailConverseImageFormat = GuardrailConverseImageFormat;
2456
2480
  exports.GuardrailImageFormat = GuardrailImageFormat;
2457
2481
  exports.GuardrailManagedWordType = GuardrailManagedWordType;
2482
+ exports.GuardrailOrigin = GuardrailOrigin;
2458
2483
  exports.GuardrailOutputScope = GuardrailOutputScope;
2484
+ exports.GuardrailOwnership = GuardrailOwnership;
2459
2485
  exports.GuardrailPiiEntityType = GuardrailPiiEntityType;
2460
2486
  exports.GuardrailSensitiveInformationPolicyAction = GuardrailSensitiveInformationPolicyAction;
2461
2487
  exports.GuardrailStreamProcessingMode = GuardrailStreamProcessingMode;
@@ -31,6 +31,15 @@ export const GuardrailAction = {
31
31
  GUARDRAIL_INTERVENED: "GUARDRAIL_INTERVENED",
32
32
  NONE: "NONE",
33
33
  };
34
+ export const GuardrailOrigin = {
35
+ ACCOUNT_ENFORCED: "ACCOUNT_ENFORCED",
36
+ ORGANIZATION_ENFORCED: "ORGANIZATION_ENFORCED",
37
+ REQUEST: "REQUEST",
38
+ };
39
+ export const GuardrailOwnership = {
40
+ CROSS_ACCOUNT: "CROSS_ACCOUNT",
41
+ SELF: "SELF",
42
+ };
34
43
  export const GuardrailAutomatedReasoningLogicWarningType = {
35
44
  ALWAYS_FALSE: "ALWAYS_FALSE",
36
45
  ALWAYS_TRUE: "ALWAYS_TRUE",
@@ -1,6 +1,7 @@
1
1
  const _A = "Accept";
2
2
  const _ADE = "AccessDeniedException";
3
3
  const _AG = "ApplyGuardrail";
4
+ const _AGD = "AppliedGuardrailDetails";
4
5
  const _AGR = "ApplyGuardrailRequest";
5
6
  const _AGRp = "ApplyGuardrailResponse";
6
7
  const _AIM = "AsyncInvokeMessage";
@@ -216,6 +217,7 @@ const _XABPL = "X-Amzn-Bedrock-PerformanceConfig-Latency";
216
217
  const _XABST = "X-Amzn-Bedrock-Service-Tier";
217
218
  const _XABT = "X-Amzn-Bedrock-Trace";
218
219
  const _a = "action";
220
+ const _aGD = "appliedGuardrailDetails";
219
221
  const _aIS = "asyncInvokeSummaries";
220
222
  const _aMRF = "additionalModelRequestFields";
221
223
  const _aMRFP = "additionalModelResponseFieldPaths";
@@ -279,10 +281,14 @@ const _fS = "filterStrength";
279
281
  const _fi = "findings";
280
282
  const _fil = "filters";
281
283
  const _g = "guardrail";
284
+ const _gA = "guardrailArn";
282
285
  const _gC = "guardrailCoverage";
283
286
  const _gCu = "guardrailConfig";
284
287
  const _gCua = "guardContent";
285
- const _gI = "guardrailIdentifier";
288
+ const _gI = "guardrailId";
289
+ const _gIu = "guardrailIdentifier";
290
+ const _gO = "guardrailOrigin";
291
+ const _gOu = "guardrailOwnership";
286
292
  const _gPL = "guardrailProcessingLatency";
287
293
  const _gV = "guardrailVersion";
288
294
  const _gu = "guarded";
@@ -456,12 +462,20 @@ export var AccessDeniedException = [
456
462
  ];
457
463
  TypeRegistry.for(n0).registerError(AccessDeniedException, __AccessDeniedException);
458
464
  export var AnyToolChoice = [3, n0, _ATC, 0, [], []];
465
+ export var AppliedGuardrailDetails = [
466
+ 3,
467
+ n0,
468
+ _AGD,
469
+ 0,
470
+ [_gI, _gV, _gA, _gO, _gOu],
471
+ [0, 0, 0, 64 | 0, 0],
472
+ ];
459
473
  export var ApplyGuardrailRequest = [
460
474
  3,
461
475
  n0,
462
476
  _AGR,
463
477
  0,
464
- [_gI, _gV, _s, _co, _oS],
478
+ [_gIu, _gV, _s, _co, _oS],
465
479
  [[0, 1], [0, 1], 0, [() => GuardrailContentBlockList, 0], 0],
466
480
  ];
467
481
  export var ApplyGuardrailResponse = [
@@ -691,7 +705,7 @@ export var GuardrailAssessment = [
691
705
  n0,
692
706
  _GA,
693
707
  0,
694
- [_tP, _cP, _wP, _sIP, _cGP, _aRP, _iM],
708
+ [_tP, _cP, _wP, _sIP, _cGP, _aRP, _iM, _aGD],
695
709
  [
696
710
  () => GuardrailTopicPolicyAssessment,
697
711
  () => GuardrailContentPolicyAssessment,
@@ -700,6 +714,7 @@ export var GuardrailAssessment = [
700
714
  () => GuardrailContextualGroundingPolicyAssessment,
701
715
  [() => GuardrailAutomatedReasoningPolicyAssessment, 0],
702
716
  () => GuardrailInvocationMetrics,
717
+ () => AppliedGuardrailDetails,
703
718
  ],
704
719
  ];
705
720
  export var GuardrailAutomatedReasoningImpossibleFinding = [
@@ -831,7 +846,7 @@ export var GuardrailAutomatedReasoningValidFinding = [
831
846
  [() => GuardrailAutomatedReasoningLogicWarning, 0],
832
847
  ],
833
848
  ];
834
- export var GuardrailConfiguration = [3, n0, _GC, 0, [_gI, _gV, _tr], [0, 0, 0]];
849
+ export var GuardrailConfiguration = [3, n0, _GC, 0, [_gIu, _gV, _tr], [0, 0, 0]];
835
850
  export var GuardrailContentFilter = [3, n0, _GCF, 0, [_t, _conf, _fS, _a, _de], [0, 0, 0, 0, 2]];
836
851
  export var GuardrailContentPolicyAssessment = [
837
852
  3,
@@ -904,7 +919,7 @@ export var GuardrailSensitiveInformationPolicyAssessment = [
904
919
  [_pE, _re],
905
920
  [() => GuardrailPiiEntityFilterList, () => GuardrailRegexFilterList],
906
921
  ];
907
- export var GuardrailStreamConfiguration = [3, n0, _GSC, 0, [_gI, _gV, _tr, _sPM], [0, 0, 0, 0]];
922
+ export var GuardrailStreamConfiguration = [3, n0, _GSC, 0, [_gIu, _gV, _tr, _sPM], [0, 0, 0, 0]];
908
923
  export var GuardrailTextBlock = [3, n0, _GTB, 0, [_te, _q], [0, 64 | 0]];
909
924
  export var GuardrailTextCharactersCoverage = [3, n0, _GTCC, 0, [_gu, _to], [1, 1]];
910
925
  export var GuardrailTopic = [3, n0, _GT, 0, [_n, _t, _a, _de], [0, 0, 0, 2]];
@@ -959,7 +974,7 @@ export var InvokeModelRequest = [
959
974
  n0,
960
975
  _IMR,
961
976
  0,
962
- [_bo, _cT, _ac, _mI, _tr, _gI, _gV, _pCL, _sTe],
977
+ [_bo, _cT, _ac, _mI, _tr, _gIu, _gV, _pCL, _sTe],
963
978
  [
964
979
  [() => Body, 16],
965
980
  [
@@ -1060,7 +1075,7 @@ export var InvokeModelWithResponseStreamRequest = [
1060
1075
  n0,
1061
1076
  _IMWRSR,
1062
1077
  0,
1063
- [_bo, _cT, _ac, _mI, _tr, _gI, _gV, _pCL, _sTe],
1078
+ [_bo, _cT, _ac, _mI, _tr, _gIu, _gV, _pCL, _sTe],
1064
1079
  [
1065
1080
  [() => Body, 16],
1066
1081
  [
@@ -1425,6 +1440,7 @@ export var GuardrailContextualGroundingFilters = [
1425
1440
  export var GuardrailConverseContentQualifierList = 64 | 0;
1426
1441
  export var GuardrailCustomWordList = [1, n0, _GCWL, 0, () => GuardrailCustomWord];
1427
1442
  export var GuardrailManagedWordList = [1, n0, _GMWL, 0, () => GuardrailManagedWord];
1443
+ export var GuardrailOriginList = 64 | 0;
1428
1444
  export var GuardrailOutputContentList = [1, n0, _GOCL, 0, () => GuardrailOutputContent];
1429
1445
  export var GuardrailPiiEntityFilterList = [1, n0, _GPEFL, 0, () => GuardrailPiiEntityFilter];
1430
1446
  export var GuardrailRegexFilterList = [1, n0, _GRFL, 0, () => GuardrailRegexFilter];
@@ -329,6 +329,15 @@ declare const ApplyGuardrailCommand_base: {
329
329
  * // },
330
330
  * // },
331
331
  * // },
332
+ * // appliedGuardrailDetails: { // AppliedGuardrailDetails
333
+ * // guardrailId: "STRING_VALUE",
334
+ * // guardrailVersion: "STRING_VALUE",
335
+ * // guardrailArn: "STRING_VALUE",
336
+ * // guardrailOrigin: [ // GuardrailOriginList
337
+ * // "REQUEST" || "ACCOUNT_ENFORCED" || "ORGANIZATION_ENFORCED",
338
+ * // ],
339
+ * // guardrailOwnership: "SELF" || "CROSS_ACCOUNT",
340
+ * // },
332
341
  * // },
333
342
  * // ],
334
343
  * // guardrailCoverage: {
@@ -291,8 +291,8 @@ declare const ConverseCommand_base: {
291
291
  * },
292
292
  * },
293
293
  * guardrailConfig: { // GuardrailConfiguration
294
- * guardrailIdentifier: "STRING_VALUE", // required
295
- * guardrailVersion: "STRING_VALUE", // required
294
+ * guardrailIdentifier: "STRING_VALUE",
295
+ * guardrailVersion: "STRING_VALUE",
296
296
  * trace: "enabled" || "disabled" || "enabled_full",
297
297
  * },
298
298
  * additionalModelRequestFields: "DOCUMENT_VALUE",
@@ -782,6 +782,15 @@ declare const ConverseCommand_base: {
782
782
  * // },
783
783
  * // },
784
784
  * // },
785
+ * // appliedGuardrailDetails: { // AppliedGuardrailDetails
786
+ * // guardrailId: "STRING_VALUE",
787
+ * // guardrailVersion: "STRING_VALUE",
788
+ * // guardrailArn: "STRING_VALUE",
789
+ * // guardrailOrigin: [ // GuardrailOriginList
790
+ * // "REQUEST" || "ACCOUNT_ENFORCED" || "ORGANIZATION_ENFORCED",
791
+ * // ],
792
+ * // guardrailOwnership: "SELF" || "CROSS_ACCOUNT",
793
+ * // },
785
794
  * // },
786
795
  * // },
787
796
  * // outputAssessments: { // GuardrailAssessmentListMap
@@ -937,6 +946,15 @@ declare const ConverseCommand_base: {
937
946
  * // },
938
947
  * // },
939
948
  * // },
949
+ * // appliedGuardrailDetails: {
950
+ * // guardrailId: "STRING_VALUE",
951
+ * // guardrailVersion: "STRING_VALUE",
952
+ * // guardrailArn: "STRING_VALUE",
953
+ * // guardrailOrigin: [
954
+ * // "REQUEST" || "ACCOUNT_ENFORCED" || "ORGANIZATION_ENFORCED",
955
+ * // ],
956
+ * // guardrailOwnership: "SELF" || "CROSS_ACCOUNT",
957
+ * // },
940
958
  * // },
941
959
  * // ],
942
960
  * // },
@@ -291,8 +291,8 @@ declare const ConverseStreamCommand_base: {
291
291
  * },
292
292
  * },
293
293
  * guardrailConfig: { // GuardrailStreamConfiguration
294
- * guardrailIdentifier: "STRING_VALUE", // required
295
- * guardrailVersion: "STRING_VALUE", // required
294
+ * guardrailIdentifier: "STRING_VALUE",
295
+ * guardrailVersion: "STRING_VALUE",
296
296
  * trace: "enabled" || "disabled" || "enabled_full",
297
297
  * streamProcessingMode: "sync" || "async",
298
298
  * },
@@ -664,6 +664,15 @@ declare const ConverseStreamCommand_base: {
664
664
  * // },
665
665
  * // },
666
666
  * // },
667
+ * // appliedGuardrailDetails: { // AppliedGuardrailDetails
668
+ * // guardrailId: "STRING_VALUE",
669
+ * // guardrailVersion: "STRING_VALUE",
670
+ * // guardrailArn: "STRING_VALUE",
671
+ * // guardrailOrigin: [ // GuardrailOriginList
672
+ * // "REQUEST" || "ACCOUNT_ENFORCED" || "ORGANIZATION_ENFORCED",
673
+ * // ],
674
+ * // guardrailOwnership: "SELF" || "CROSS_ACCOUNT",
675
+ * // },
667
676
  * // },
668
677
  * // },
669
678
  * // outputAssessments: { // GuardrailAssessmentListMap
@@ -819,6 +828,15 @@ declare const ConverseStreamCommand_base: {
819
828
  * // },
820
829
  * // },
821
830
  * // },
831
+ * // appliedGuardrailDetails: {
832
+ * // guardrailId: "STRING_VALUE",
833
+ * // guardrailVersion: "STRING_VALUE",
834
+ * // guardrailArn: "STRING_VALUE",
835
+ * // guardrailOrigin: [
836
+ * // "REQUEST" || "ACCOUNT_ENFORCED" || "ORGANIZATION_ENFORCED",
837
+ * // ],
838
+ * // guardrailOwnership: "SELF" || "CROSS_ACCOUNT",
839
+ * // },
822
840
  * // },
823
841
  * // ],
824
842
  * // },
@@ -95,6 +95,31 @@ export declare const GuardrailAction: {
95
95
  * @public
96
96
  */
97
97
  export type GuardrailAction = (typeof GuardrailAction)[keyof typeof GuardrailAction];
98
+ /**
99
+ * @public
100
+ * @enum
101
+ */
102
+ export declare const GuardrailOrigin: {
103
+ readonly ACCOUNT_ENFORCED: "ACCOUNT_ENFORCED";
104
+ readonly ORGANIZATION_ENFORCED: "ORGANIZATION_ENFORCED";
105
+ readonly REQUEST: "REQUEST";
106
+ };
107
+ /**
108
+ * @public
109
+ */
110
+ export type GuardrailOrigin = (typeof GuardrailOrigin)[keyof typeof GuardrailOrigin];
111
+ /**
112
+ * @public
113
+ * @enum
114
+ */
115
+ export declare const GuardrailOwnership: {
116
+ readonly CROSS_ACCOUNT: "CROSS_ACCOUNT";
117
+ readonly SELF: "SELF";
118
+ };
119
+ /**
120
+ * @public
121
+ */
122
+ export type GuardrailOwnership = (typeof GuardrailOwnership)[keyof typeof GuardrailOwnership];
98
123
  /**
99
124
  * @public
100
125
  * @enum
@@ -1,5 +1,5 @@
1
1
  import { DocumentType as __DocumentType } from "@smithy/types";
2
- import { AsyncInvokeStatus, CachePointType, ConversationRole, DocumentFormat, GuardrailAction, GuardrailAutomatedReasoningLogicWarningType, GuardrailContentFilterConfidence, GuardrailContentFilterStrength, GuardrailContentFilterType, GuardrailContentPolicyAction, GuardrailContentQualifier, GuardrailContentSource, GuardrailContextualGroundingFilterType, GuardrailContextualGroundingPolicyAction, GuardrailConverseContentQualifier, GuardrailConverseImageFormat, GuardrailImageFormat, GuardrailManagedWordType, GuardrailOutputScope, GuardrailPiiEntityType, GuardrailSensitiveInformationPolicyAction, GuardrailStreamProcessingMode, GuardrailTopicPolicyAction, GuardrailTopicType, GuardrailTrace, GuardrailWordPolicyAction, ImageFormat, PerformanceConfigLatency, ServiceTierType, SortAsyncInvocationBy, SortOrder, StopReason, ToolResultStatus, ToolUseType, Trace, VideoFormat } from "./enums";
2
+ import { AsyncInvokeStatus, CachePointType, ConversationRole, DocumentFormat, GuardrailAction, GuardrailAutomatedReasoningLogicWarningType, GuardrailContentFilterConfidence, GuardrailContentFilterStrength, GuardrailContentFilterType, GuardrailContentPolicyAction, GuardrailContentQualifier, GuardrailContentSource, GuardrailContextualGroundingFilterType, GuardrailContextualGroundingPolicyAction, GuardrailConverseContentQualifier, GuardrailConverseImageFormat, GuardrailImageFormat, GuardrailManagedWordType, GuardrailOrigin, GuardrailOutputScope, GuardrailOwnership, GuardrailPiiEntityType, GuardrailSensitiveInformationPolicyAction, GuardrailStreamProcessingMode, GuardrailTopicPolicyAction, GuardrailTopicType, GuardrailTrace, GuardrailWordPolicyAction, ImageFormat, PerformanceConfigLatency, ServiceTierType, SortAsyncInvocationBy, SortOrder, StopReason, ToolResultStatus, ToolUseType, Trace, VideoFormat } from "./enums";
3
3
  import { InternalServerException, ModelStreamErrorException, ModelTimeoutException, ServiceUnavailableException, ThrottlingException, ValidationException } from "./errors";
4
4
  /**
5
5
  * @public
@@ -417,6 +417,37 @@ export interface ApplyGuardrailRequest {
417
417
  */
418
418
  outputScope?: GuardrailOutputScope | undefined;
419
419
  }
420
+ /**
421
+ * <p>Details about the specific guardrail that was applied during this assessment, including its identifier, version, ARN, origin, and ownership information.</p>
422
+ * @public
423
+ */
424
+ export interface AppliedGuardrailDetails {
425
+ /**
426
+ * <p>The unique ID of the guardrail that was applied.</p>
427
+ * @public
428
+ */
429
+ guardrailId?: string | undefined;
430
+ /**
431
+ * <p>The version of the guardrail that was applied.</p>
432
+ * @public
433
+ */
434
+ guardrailVersion?: string | undefined;
435
+ /**
436
+ * <p>The ARN of the guardrail that was applied.</p>
437
+ * @public
438
+ */
439
+ guardrailArn?: string | undefined;
440
+ /**
441
+ * <p>The origin of how the guardrail was applied. This can be either requested at the API level or enforced at the account or organization level as a default guardrail.</p>
442
+ * @public
443
+ */
444
+ guardrailOrigin?: GuardrailOrigin[] | undefined;
445
+ /**
446
+ * <p>The ownership type of the guardrail, indicating whether it is owned by the requesting account or is a cross-account guardrail shared from another AWS account.</p>
447
+ * @public
448
+ */
449
+ guardrailOwnership?: GuardrailOwnership | undefined;
450
+ }
420
451
  /**
421
452
  * <p>References a specific automated reasoning policy rule that was applied during evaluation.</p>
422
453
  * @public
@@ -1219,6 +1250,11 @@ export interface GuardrailAssessment {
1219
1250
  * @public
1220
1251
  */
1221
1252
  invocationMetrics?: GuardrailInvocationMetrics | undefined;
1253
+ /**
1254
+ * <p>Details about the specific guardrail that was applied during this assessment, including its identifier, version, ARN, origin, and ownership information.</p>
1255
+ * @public
1256
+ */
1257
+ appliedGuardrailDetails?: AppliedGuardrailDetails | undefined;
1222
1258
  }
1223
1259
  /**
1224
1260
  * <p>The output content produced by the guardrail.</p>
@@ -1275,12 +1311,12 @@ export interface GuardrailConfiguration {
1275
1311
  * <p>The identifier for the guardrail.</p>
1276
1312
  * @public
1277
1313
  */
1278
- guardrailIdentifier: string | undefined;
1314
+ guardrailIdentifier?: string | undefined;
1279
1315
  /**
1280
1316
  * <p>The version of the guardrail.</p>
1281
1317
  * @public
1282
1318
  */
1283
- guardrailVersion: string | undefined;
1319
+ guardrailVersion?: string | undefined;
1284
1320
  /**
1285
1321
  * <p>The trace behavior for the guardrail.</p>
1286
1322
  * @public
@@ -3128,12 +3164,12 @@ export interface GuardrailStreamConfiguration {
3128
3164
  * <p>The identifier for the guardrail.</p>
3129
3165
  * @public
3130
3166
  */
3131
- guardrailIdentifier: string | undefined;
3167
+ guardrailIdentifier?: string | undefined;
3132
3168
  /**
3133
3169
  * <p>The version of the guardrail.</p>
3134
3170
  * @public
3135
3171
  */
3136
- guardrailVersion: string | undefined;
3172
+ guardrailVersion?: string | undefined;
3137
3173
  /**
3138
3174
  * <p>The trace behavior for the guardrail.</p>
3139
3175
  * @public
@@ -7,6 +7,7 @@ export declare var ModelInputPayload: StaticSimpleSchema;
7
7
  export declare var PartBody: StaticSimpleSchema;
8
8
  export declare var AccessDeniedException: StaticErrorSchema;
9
9
  export declare var AnyToolChoice: StaticStructureSchema;
10
+ export declare var AppliedGuardrailDetails: StaticStructureSchema;
10
11
  export declare var ApplyGuardrailRequest: StaticStructureSchema;
11
12
  export declare var ApplyGuardrailResponse: StaticStructureSchema;
12
13
  export declare var AsyncInvokeS3OutputDataConfig: StaticStructureSchema;
@@ -156,6 +157,7 @@ export declare var GuardrailContextualGroundingFilters: StaticListSchema;
156
157
  export declare var GuardrailConverseContentQualifierList: number;
157
158
  export declare var GuardrailCustomWordList: StaticListSchema;
158
159
  export declare var GuardrailManagedWordList: StaticListSchema;
160
+ export declare var GuardrailOriginList: number;
159
161
  export declare var GuardrailOutputContentList: StaticListSchema;
160
162
  export declare var GuardrailPiiEntityFilterList: StaticListSchema;
161
163
  export declare var GuardrailRegexFilterList: StaticListSchema;
@@ -46,6 +46,19 @@ export declare const GuardrailAction: {
46
46
  };
47
47
  export type GuardrailAction =
48
48
  (typeof GuardrailAction)[keyof typeof GuardrailAction];
49
+ export declare const GuardrailOrigin: {
50
+ readonly ACCOUNT_ENFORCED: "ACCOUNT_ENFORCED";
51
+ readonly ORGANIZATION_ENFORCED: "ORGANIZATION_ENFORCED";
52
+ readonly REQUEST: "REQUEST";
53
+ };
54
+ export type GuardrailOrigin =
55
+ (typeof GuardrailOrigin)[keyof typeof GuardrailOrigin];
56
+ export declare const GuardrailOwnership: {
57
+ readonly CROSS_ACCOUNT: "CROSS_ACCOUNT";
58
+ readonly SELF: "SELF";
59
+ };
60
+ export type GuardrailOwnership =
61
+ (typeof GuardrailOwnership)[keyof typeof GuardrailOwnership];
49
62
  export declare const GuardrailAutomatedReasoningLogicWarningType: {
50
63
  readonly ALWAYS_FALSE: "ALWAYS_FALSE";
51
64
  readonly ALWAYS_TRUE: "ALWAYS_TRUE";
@@ -18,7 +18,9 @@ import {
18
18
  GuardrailConverseImageFormat,
19
19
  GuardrailImageFormat,
20
20
  GuardrailManagedWordType,
21
+ GuardrailOrigin,
21
22
  GuardrailOutputScope,
23
+ GuardrailOwnership,
22
24
  GuardrailPiiEntityType,
23
25
  GuardrailSensitiveInformationPolicyAction,
24
26
  GuardrailStreamProcessingMode,
@@ -177,6 +179,13 @@ export interface ApplyGuardrailRequest {
177
179
  content: GuardrailContentBlock[] | undefined;
178
180
  outputScope?: GuardrailOutputScope | undefined;
179
181
  }
182
+ export interface AppliedGuardrailDetails {
183
+ guardrailId?: string | undefined;
184
+ guardrailVersion?: string | undefined;
185
+ guardrailArn?: string | undefined;
186
+ guardrailOrigin?: GuardrailOrigin[] | undefined;
187
+ guardrailOwnership?: GuardrailOwnership | undefined;
188
+ }
180
189
  export interface GuardrailAutomatedReasoningRule {
181
190
  identifier?: string | undefined;
182
191
  policyVersionArn?: string | undefined;
@@ -449,6 +458,7 @@ export interface GuardrailAssessment {
449
458
  | GuardrailAutomatedReasoningPolicyAssessment
450
459
  | undefined;
451
460
  invocationMetrics?: GuardrailInvocationMetrics | undefined;
461
+ appliedGuardrailDetails?: AppliedGuardrailDetails | undefined;
452
462
  }
453
463
  export interface GuardrailOutputContent {
454
464
  text?: string | undefined;
@@ -462,8 +472,8 @@ export interface ApplyGuardrailResponse {
462
472
  guardrailCoverage?: GuardrailCoverage | undefined;
463
473
  }
464
474
  export interface GuardrailConfiguration {
465
- guardrailIdentifier: string | undefined;
466
- guardrailVersion: string | undefined;
475
+ guardrailIdentifier?: string | undefined;
476
+ guardrailVersion?: string | undefined;
467
477
  trace?: GuardrailTrace | undefined;
468
478
  }
469
479
  export interface InferenceConfiguration {
@@ -1367,8 +1377,8 @@ export interface ConverseResponse {
1367
1377
  serviceTier?: ServiceTier | undefined;
1368
1378
  }
1369
1379
  export interface GuardrailStreamConfiguration {
1370
- guardrailIdentifier: string | undefined;
1371
- guardrailVersion: string | undefined;
1380
+ guardrailIdentifier?: string | undefined;
1381
+ guardrailVersion?: string | undefined;
1372
1382
  trace?: GuardrailTrace | undefined;
1373
1383
  streamProcessingMode?: GuardrailStreamProcessingMode | undefined;
1374
1384
  }
@@ -14,6 +14,7 @@ export declare var ModelInputPayload: StaticSimpleSchema;
14
14
  export declare var PartBody: StaticSimpleSchema;
15
15
  export declare var AccessDeniedException: StaticErrorSchema;
16
16
  export declare var AnyToolChoice: StaticStructureSchema;
17
+ export declare var AppliedGuardrailDetails: StaticStructureSchema;
17
18
  export declare var ApplyGuardrailRequest: StaticStructureSchema;
18
19
  export declare var ApplyGuardrailResponse: StaticStructureSchema;
19
20
  export declare var AsyncInvokeS3OutputDataConfig: StaticStructureSchema;
@@ -163,6 +164,7 @@ export declare var GuardrailContextualGroundingFilters: StaticListSchema;
163
164
  export declare var GuardrailConverseContentQualifierList: number;
164
165
  export declare var GuardrailCustomWordList: StaticListSchema;
165
166
  export declare var GuardrailManagedWordList: StaticListSchema;
167
+ export declare var GuardrailOriginList: number;
166
168
  export declare var GuardrailOutputContentList: StaticListSchema;
167
169
  export declare var GuardrailPiiEntityFilterList: StaticListSchema;
168
170
  export declare var GuardrailRegexFilterList: StaticListSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.935.0",
4
+ "version": "3.938.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-runtime",
@@ -20,21 +20,21 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.935.0",
24
- "@aws-sdk/credential-provider-node": "3.935.0",
25
- "@aws-sdk/eventstream-handler-node": "3.930.0",
26
- "@aws-sdk/middleware-eventstream": "3.930.0",
27
- "@aws-sdk/middleware-host-header": "3.930.0",
28
- "@aws-sdk/middleware-logger": "3.930.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.933.0",
30
- "@aws-sdk/middleware-user-agent": "3.935.0",
31
- "@aws-sdk/middleware-websocket": "3.930.0",
32
- "@aws-sdk/region-config-resolver": "3.930.0",
33
- "@aws-sdk/token-providers": "3.935.0",
34
- "@aws-sdk/types": "3.930.0",
35
- "@aws-sdk/util-endpoints": "3.930.0",
36
- "@aws-sdk/util-user-agent-browser": "3.930.0",
37
- "@aws-sdk/util-user-agent-node": "3.935.0",
23
+ "@aws-sdk/core": "3.936.0",
24
+ "@aws-sdk/credential-provider-node": "3.936.0",
25
+ "@aws-sdk/eventstream-handler-node": "3.936.0",
26
+ "@aws-sdk/middleware-eventstream": "3.936.0",
27
+ "@aws-sdk/middleware-host-header": "3.936.0",
28
+ "@aws-sdk/middleware-logger": "3.936.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.936.0",
30
+ "@aws-sdk/middleware-user-agent": "3.936.0",
31
+ "@aws-sdk/middleware-websocket": "3.936.0",
32
+ "@aws-sdk/region-config-resolver": "3.936.0",
33
+ "@aws-sdk/token-providers": "3.936.0",
34
+ "@aws-sdk/types": "3.936.0",
35
+ "@aws-sdk/util-endpoints": "3.936.0",
36
+ "@aws-sdk/util-user-agent-browser": "3.936.0",
37
+ "@aws-sdk/util-user-agent-node": "3.936.0",
38
38
  "@smithy/config-resolver": "^4.4.3",
39
39
  "@smithy/core": "^3.18.5",
40
40
  "@smithy/eventstream-serde-browser": "^4.2.5",