@aws-sdk/client-bedrock-runtime 3.779.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 CHANGED
@@ -76,6 +76,7 @@ __export(index_exports, {
76
76
  GuardrailImageSource: () => GuardrailImageSource,
77
77
  GuardrailImageSourceFilterSensitiveLog: () => GuardrailImageSourceFilterSensitiveLog,
78
78
  GuardrailManagedWordType: () => GuardrailManagedWordType,
79
+ GuardrailOutputScope: () => GuardrailOutputScope,
79
80
  GuardrailPiiEntityType: () => GuardrailPiiEntityType,
80
81
  GuardrailSensitiveInformationPolicyAction: () => GuardrailSensitiveInformationPolicyAction,
81
82
  GuardrailStreamProcessingMode: () => GuardrailStreamProcessingMode,
@@ -491,6 +492,10 @@ var GuardrailContentBlock;
491
492
  return visitor._(value.$unknown[0], value.$unknown[1]);
492
493
  }, "visit");
493
494
  })(GuardrailContentBlock || (GuardrailContentBlock = {}));
495
+ var GuardrailOutputScope = {
496
+ FULL: "FULL",
497
+ INTERVENTIONS: "INTERVENTIONS"
498
+ };
494
499
  var GuardrailContentSource = {
495
500
  INPUT: "INPUT",
496
501
  OUTPUT: "OUTPUT"
@@ -500,7 +505,8 @@ var GuardrailAction = {
500
505
  NONE: "NONE"
501
506
  };
502
507
  var GuardrailContentPolicyAction = {
503
- BLOCKED: "BLOCKED"
508
+ BLOCKED: "BLOCKED",
509
+ NONE: "NONE"
504
510
  };
505
511
  var GuardrailContentFilterConfidence = {
506
512
  HIGH: "HIGH",
@@ -532,7 +538,8 @@ var GuardrailContextualGroundingFilterType = {
532
538
  };
533
539
  var GuardrailSensitiveInformationPolicyAction = {
534
540
  ANONYMIZED: "ANONYMIZED",
535
- BLOCKED: "BLOCKED"
541
+ BLOCKED: "BLOCKED",
542
+ NONE: "NONE"
536
543
  };
537
544
  var GuardrailPiiEntityType = {
538
545
  ADDRESS: "ADDRESS",
@@ -568,20 +575,23 @@ var GuardrailPiiEntityType = {
568
575
  VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER"
569
576
  };
570
577
  var GuardrailTopicPolicyAction = {
571
- BLOCKED: "BLOCKED"
578
+ BLOCKED: "BLOCKED",
579
+ NONE: "NONE"
572
580
  };
573
581
  var GuardrailTopicType = {
574
582
  DENY: "DENY"
575
583
  };
576
584
  var GuardrailWordPolicyAction = {
577
- BLOCKED: "BLOCKED"
585
+ BLOCKED: "BLOCKED",
586
+ NONE: "NONE"
578
587
  };
579
588
  var GuardrailManagedWordType = {
580
589
  PROFANITY: "PROFANITY"
581
590
  };
582
591
  var GuardrailTrace = {
583
592
  DISABLED: "disabled",
584
- ENABLED: "enabled"
593
+ ENABLED: "enabled",
594
+ ENABLED_FULL: "enabled_full"
585
595
  };
586
596
  var CachePointType = {
587
597
  DEFAULT: "default"
@@ -909,7 +919,8 @@ var ConverseStreamOutput;
909
919
  })(ConverseStreamOutput || (ConverseStreamOutput = {}));
910
920
  var Trace = {
911
921
  DISABLED: "DISABLED",
912
- ENABLED: "ENABLED"
922
+ ENABLED: "ENABLED",
923
+ ENABLED_FULL: "ENABLED_FULL"
913
924
  };
914
925
  var ResponseStream;
915
926
  ((ResponseStream3) => {
@@ -1119,6 +1130,7 @@ var se_ApplyGuardrailCommand = /* @__PURE__ */ __name(async (input, context) =>
1119
1130
  body = JSON.stringify(
1120
1131
  (0, import_smithy_client.take)(input, {
1121
1132
  content: /* @__PURE__ */ __name((_) => se_GuardrailContentBlockList(_, context), "content"),
1133
+ outputScope: [],
1122
1134
  source: []
1123
1135
  })
1124
1136
  );
@@ -1268,6 +1280,7 @@ var de_ApplyGuardrailCommand = /* @__PURE__ */ __name(async (output, context) =>
1268
1280
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1269
1281
  const doc = (0, import_smithy_client.take)(data, {
1270
1282
  action: import_smithy_client.expectString,
1283
+ actionReason: import_smithy_client.expectString,
1271
1284
  assessments: /* @__PURE__ */ __name((_) => de_GuardrailAssessmentList(_, context), "assessments"),
1272
1285
  guardrailCoverage: import_smithy_client._json,
1273
1286
  outputs: import_smithy_client._json,
@@ -2171,6 +2184,7 @@ var de_GuardrailAssessmentMap = /* @__PURE__ */ __name((output, context) => {
2171
2184
  var de_GuardrailContextualGroundingFilter = /* @__PURE__ */ __name((output, context) => {
2172
2185
  return (0, import_smithy_client.take)(output, {
2173
2186
  action: import_smithy_client.expectString,
2187
+ detected: import_smithy_client.expectBoolean,
2174
2188
  score: import_smithy_client.limitedParseDouble,
2175
2189
  threshold: import_smithy_client.limitedParseDouble,
2176
2190
  type: import_smithy_client.expectString
@@ -2216,6 +2230,7 @@ var de_GuardrailConverseImageSource = /* @__PURE__ */ __name((output, context) =
2216
2230
  }, "de_GuardrailConverseImageSource");
2217
2231
  var de_GuardrailTraceAssessment = /* @__PURE__ */ __name((output, context) => {
2218
2232
  return (0, import_smithy_client.take)(output, {
2233
+ actionReason: import_smithy_client.expectString,
2219
2234
  inputAssessment: /* @__PURE__ */ __name((_) => de_GuardrailAssessmentMap(_, context), "inputAssessment"),
2220
2235
  modelOutput: import_smithy_client._json,
2221
2236
  outputAssessments: /* @__PURE__ */ __name((_) => de_GuardrailAssessmentListMap(_, context), "outputAssessments")
@@ -2559,6 +2574,7 @@ var paginateListAsyncInvokes = (0, import_core.createPaginator)(BedrockRuntimeCl
2559
2574
  GuardrailImageSource,
2560
2575
  GuardrailContentQualifier,
2561
2576
  GuardrailContentBlock,
2577
+ GuardrailOutputScope,
2562
2578
  GuardrailContentSource,
2563
2579
  GuardrailAction,
2564
2580
  GuardrailContentPolicyAction,
@@ -143,6 +143,10 @@ export var GuardrailContentBlock;
143
143
  return visitor._(value.$unknown[0], value.$unknown[1]);
144
144
  };
145
145
  })(GuardrailContentBlock || (GuardrailContentBlock = {}));
146
+ export const GuardrailOutputScope = {
147
+ FULL: "FULL",
148
+ INTERVENTIONS: "INTERVENTIONS",
149
+ };
146
150
  export const GuardrailContentSource = {
147
151
  INPUT: "INPUT",
148
152
  OUTPUT: "OUTPUT",
@@ -153,6 +157,7 @@ export const GuardrailAction = {
153
157
  };
154
158
  export const GuardrailContentPolicyAction = {
155
159
  BLOCKED: "BLOCKED",
160
+ NONE: "NONE",
156
161
  };
157
162
  export const GuardrailContentFilterConfidence = {
158
163
  HIGH: "HIGH",
@@ -185,6 +190,7 @@ export const GuardrailContextualGroundingFilterType = {
185
190
  export const GuardrailSensitiveInformationPolicyAction = {
186
191
  ANONYMIZED: "ANONYMIZED",
187
192
  BLOCKED: "BLOCKED",
193
+ NONE: "NONE",
188
194
  };
189
195
  export const GuardrailPiiEntityType = {
190
196
  ADDRESS: "ADDRESS",
@@ -221,12 +227,14 @@ export const GuardrailPiiEntityType = {
221
227
  };
222
228
  export const GuardrailTopicPolicyAction = {
223
229
  BLOCKED: "BLOCKED",
230
+ NONE: "NONE",
224
231
  };
225
232
  export const GuardrailTopicType = {
226
233
  DENY: "DENY",
227
234
  };
228
235
  export const GuardrailWordPolicyAction = {
229
236
  BLOCKED: "BLOCKED",
237
+ NONE: "NONE",
230
238
  };
231
239
  export const GuardrailManagedWordType = {
232
240
  PROFANITY: "PROFANITY",
@@ -234,6 +242,7 @@ export const GuardrailManagedWordType = {
234
242
  export const GuardrailTrace = {
235
243
  DISABLED: "disabled",
236
244
  ENABLED: "enabled",
245
+ ENABLED_FULL: "enabled_full",
237
246
  };
238
247
  export const CachePointType = {
239
248
  DEFAULT: "default",
@@ -571,6 +580,7 @@ export var ConverseStreamOutput;
571
580
  export const Trace = {
572
581
  DISABLED: "DISABLED",
573
582
  ENABLED: "ENABLED",
583
+ ENABLED_FULL: "ENABLED_FULL",
574
584
  };
575
585
  export var ResponseStream;
576
586
  (function (ResponseStream) {
@@ -1,6 +1,6 @@
1
1
  import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { BedrockRuntimeServiceException as __BaseException } from "../models/BedrockRuntimeServiceException";
6
6
  import { AccessDeniedException, ConflictException, ContentBlock, DocumentSource, GuardrailContentBlock, GuardrailConverseContentBlock, GuardrailConverseImageSource, GuardrailImageSource, ImageSource, InternalServerException, ModelErrorException, ModelNotReadyException, ModelStreamErrorException, ModelTimeoutException, ReasoningContentBlock, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, SystemContentBlock, ThrottlingException, Tool, ToolInputSchema, ToolResultContentBlock, ValidationException, VideoSource, } from "../models/models_0";
@@ -15,6 +15,7 @@ export const se_ApplyGuardrailCommand = async (input, context) => {
15
15
  let body;
16
16
  body = JSON.stringify(take(input, {
17
17
  content: (_) => se_GuardrailContentBlockList(_, context),
18
+ outputScope: [],
18
19
  source: [],
19
20
  }));
20
21
  b.m("POST").h(headers).b(body);
@@ -157,6 +158,7 @@ export const de_ApplyGuardrailCommand = async (output, context) => {
157
158
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
158
159
  const doc = take(data, {
159
160
  action: __expectString,
161
+ actionReason: __expectString,
160
162
  assessments: (_) => de_GuardrailAssessmentList(_, context),
161
163
  guardrailCoverage: _json,
162
164
  outputs: _json,
@@ -1066,6 +1068,7 @@ const de_GuardrailAssessmentMap = (output, context) => {
1066
1068
  const de_GuardrailContextualGroundingFilter = (output, context) => {
1067
1069
  return take(output, {
1068
1070
  action: __expectString,
1071
+ detected: __expectBoolean,
1069
1072
  score: __limitedParseDouble,
1070
1073
  threshold: __limitedParseDouble,
1071
1074
  type: __expectString,
@@ -1113,6 +1116,7 @@ const de_GuardrailConverseImageSource = (output, context) => {
1113
1116
  };
1114
1117
  const de_GuardrailTraceAssessment = (output, context) => {
1115
1118
  return take(output, {
1119
+ actionReason: __expectString,
1116
1120
  inputAssessment: (_) => de_GuardrailAssessmentMap(_, context),
1117
1121
  modelOutput: _json,
1118
1122
  outputAssessments: (_) => de_GuardrailAssessmentListMap(_, context),
@@ -56,6 +56,7 @@ declare const ApplyGuardrailCommand_base: {
56
56
  * },
57
57
  * },
58
58
  * ],
59
+ * outputScope: "INTERVENTIONS" || "FULL",
59
60
  * };
60
61
  * const command = new ApplyGuardrailCommand(input);
61
62
  * const response = await client.send(command);
@@ -70,6 +71,7 @@ declare const ApplyGuardrailCommand_base: {
70
71
  * // contentPolicyImageUnits: Number("int"),
71
72
  * // },
72
73
  * // action: "NONE" || "GUARDRAIL_INTERVENED", // required
74
+ * // actionReason: "STRING_VALUE",
73
75
  * // outputs: [ // GuardrailOutputContentList // required
74
76
  * // { // GuardrailOutputContent
75
77
  * // text: "STRING_VALUE",
@@ -82,7 +84,8 @@ declare const ApplyGuardrailCommand_base: {
82
84
  * // { // GuardrailTopic
83
85
  * // name: "STRING_VALUE", // required
84
86
  * // type: "DENY", // required
85
- * // action: "BLOCKED", // required
87
+ * // action: "BLOCKED" || "NONE", // required
88
+ * // detected: true || false,
86
89
  * // },
87
90
  * // ],
88
91
  * // },
@@ -92,7 +95,8 @@ declare const ApplyGuardrailCommand_base: {
92
95
  * // type: "INSULTS" || "HATE" || "SEXUAL" || "VIOLENCE" || "MISCONDUCT" || "PROMPT_ATTACK", // required
93
96
  * // confidence: "NONE" || "LOW" || "MEDIUM" || "HIGH", // required
94
97
  * // filterStrength: "NONE" || "LOW" || "MEDIUM" || "HIGH",
95
- * // action: "BLOCKED", // required
98
+ * // action: "BLOCKED" || "NONE", // required
99
+ * // detected: true || false,
96
100
  * // },
97
101
  * // ],
98
102
  * // },
@@ -100,14 +104,16 @@ declare const ApplyGuardrailCommand_base: {
100
104
  * // customWords: [ // GuardrailCustomWordList // required
101
105
  * // { // GuardrailCustomWord
102
106
  * // match: "STRING_VALUE", // required
103
- * // action: "BLOCKED", // required
107
+ * // action: "BLOCKED" || "NONE", // required
108
+ * // detected: true || false,
104
109
  * // },
105
110
  * // ],
106
111
  * // managedWordLists: [ // GuardrailManagedWordList // required
107
112
  * // { // GuardrailManagedWord
108
113
  * // match: "STRING_VALUE", // required
109
114
  * // type: "PROFANITY", // required
110
- * // action: "BLOCKED", // required
115
+ * // action: "BLOCKED" || "NONE", // required
116
+ * // detected: true || false,
111
117
  * // },
112
118
  * // ],
113
119
  * // },
@@ -116,7 +122,8 @@ declare const ApplyGuardrailCommand_base: {
116
122
  * // { // GuardrailPiiEntityFilter
117
123
  * // match: "STRING_VALUE", // required
118
124
  * // type: "ADDRESS" || "AGE" || "AWS_ACCESS_KEY" || "AWS_SECRET_KEY" || "CA_HEALTH_NUMBER" || "CA_SOCIAL_INSURANCE_NUMBER" || "CREDIT_DEBIT_CARD_CVV" || "CREDIT_DEBIT_CARD_EXPIRY" || "CREDIT_DEBIT_CARD_NUMBER" || "DRIVER_ID" || "EMAIL" || "INTERNATIONAL_BANK_ACCOUNT_NUMBER" || "IP_ADDRESS" || "LICENSE_PLATE" || "MAC_ADDRESS" || "NAME" || "PASSWORD" || "PHONE" || "PIN" || "SWIFT_CODE" || "UK_NATIONAL_HEALTH_SERVICE_NUMBER" || "UK_NATIONAL_INSURANCE_NUMBER" || "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER" || "URL" || "USERNAME" || "US_BANK_ACCOUNT_NUMBER" || "US_BANK_ROUTING_NUMBER" || "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" || "US_PASSPORT_NUMBER" || "US_SOCIAL_SECURITY_NUMBER" || "VEHICLE_IDENTIFICATION_NUMBER", // required
119
- * // action: "ANONYMIZED" || "BLOCKED", // required
125
+ * // action: "ANONYMIZED" || "BLOCKED" || "NONE", // required
126
+ * // detected: true || false,
120
127
  * // },
121
128
  * // ],
122
129
  * // regexes: [ // GuardrailRegexFilterList // required
@@ -124,7 +131,8 @@ declare const ApplyGuardrailCommand_base: {
124
131
  * // name: "STRING_VALUE",
125
132
  * // match: "STRING_VALUE",
126
133
  * // regex: "STRING_VALUE",
127
- * // action: "ANONYMIZED" || "BLOCKED", // required
134
+ * // action: "ANONYMIZED" || "BLOCKED" || "NONE", // required
135
+ * // detected: true || false,
128
136
  * // },
129
137
  * // ],
130
138
  * // },
@@ -135,6 +143,7 @@ declare const ApplyGuardrailCommand_base: {
135
143
  * // threshold: Number("double"), // required
136
144
  * // score: Number("double"), // required
137
145
  * // action: "BLOCKED" || "NONE", // required
146
+ * // detected: true || false,
138
147
  * // },
139
148
  * // ],
140
149
  * // },
@@ -208,7 +208,7 @@ declare const ConverseCommand_base: {
208
208
  * guardrailConfig: { // GuardrailConfiguration
209
209
  * guardrailIdentifier: "STRING_VALUE", // required
210
210
  * guardrailVersion: "STRING_VALUE", // required
211
- * trace: "enabled" || "disabled",
211
+ * trace: "enabled" || "disabled" || "enabled_full",
212
212
  * },
213
213
  * additionalModelRequestFields: "DOCUMENT_VALUE",
214
214
  * promptVariables: { // PromptVariableMap
@@ -348,7 +348,8 @@ declare const ConverseCommand_base: {
348
348
  * // { // GuardrailTopic
349
349
  * // name: "STRING_VALUE", // required
350
350
  * // type: "DENY", // required
351
- * // action: "BLOCKED", // required
351
+ * // action: "BLOCKED" || "NONE", // required
352
+ * // detected: true || false,
352
353
  * // },
353
354
  * // ],
354
355
  * // },
@@ -358,7 +359,8 @@ declare const ConverseCommand_base: {
358
359
  * // type: "INSULTS" || "HATE" || "SEXUAL" || "VIOLENCE" || "MISCONDUCT" || "PROMPT_ATTACK", // required
359
360
  * // confidence: "NONE" || "LOW" || "MEDIUM" || "HIGH", // required
360
361
  * // filterStrength: "NONE" || "LOW" || "MEDIUM" || "HIGH",
361
- * // action: "BLOCKED", // required
362
+ * // action: "BLOCKED" || "NONE", // required
363
+ * // detected: true || false,
362
364
  * // },
363
365
  * // ],
364
366
  * // },
@@ -366,14 +368,16 @@ declare const ConverseCommand_base: {
366
368
  * // customWords: [ // GuardrailCustomWordList // required
367
369
  * // { // GuardrailCustomWord
368
370
  * // match: "STRING_VALUE", // required
369
- * // action: "BLOCKED", // required
371
+ * // action: "BLOCKED" || "NONE", // required
372
+ * // detected: true || false,
370
373
  * // },
371
374
  * // ],
372
375
  * // managedWordLists: [ // GuardrailManagedWordList // required
373
376
  * // { // GuardrailManagedWord
374
377
  * // match: "STRING_VALUE", // required
375
378
  * // type: "PROFANITY", // required
376
- * // action: "BLOCKED", // required
379
+ * // action: "BLOCKED" || "NONE", // required
380
+ * // detected: true || false,
377
381
  * // },
378
382
  * // ],
379
383
  * // },
@@ -382,7 +386,8 @@ declare const ConverseCommand_base: {
382
386
  * // { // GuardrailPiiEntityFilter
383
387
  * // match: "STRING_VALUE", // required
384
388
  * // type: "ADDRESS" || "AGE" || "AWS_ACCESS_KEY" || "AWS_SECRET_KEY" || "CA_HEALTH_NUMBER" || "CA_SOCIAL_INSURANCE_NUMBER" || "CREDIT_DEBIT_CARD_CVV" || "CREDIT_DEBIT_CARD_EXPIRY" || "CREDIT_DEBIT_CARD_NUMBER" || "DRIVER_ID" || "EMAIL" || "INTERNATIONAL_BANK_ACCOUNT_NUMBER" || "IP_ADDRESS" || "LICENSE_PLATE" || "MAC_ADDRESS" || "NAME" || "PASSWORD" || "PHONE" || "PIN" || "SWIFT_CODE" || "UK_NATIONAL_HEALTH_SERVICE_NUMBER" || "UK_NATIONAL_INSURANCE_NUMBER" || "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER" || "URL" || "USERNAME" || "US_BANK_ACCOUNT_NUMBER" || "US_BANK_ROUTING_NUMBER" || "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" || "US_PASSPORT_NUMBER" || "US_SOCIAL_SECURITY_NUMBER" || "VEHICLE_IDENTIFICATION_NUMBER", // required
385
- * // action: "ANONYMIZED" || "BLOCKED", // required
389
+ * // action: "ANONYMIZED" || "BLOCKED" || "NONE", // required
390
+ * // detected: true || false,
386
391
  * // },
387
392
  * // ],
388
393
  * // regexes: [ // GuardrailRegexFilterList // required
@@ -390,7 +395,8 @@ declare const ConverseCommand_base: {
390
395
  * // name: "STRING_VALUE",
391
396
  * // match: "STRING_VALUE",
392
397
  * // regex: "STRING_VALUE",
393
- * // action: "ANONYMIZED" || "BLOCKED", // required
398
+ * // action: "ANONYMIZED" || "BLOCKED" || "NONE", // required
399
+ * // detected: true || false,
394
400
  * // },
395
401
  * // ],
396
402
  * // },
@@ -401,6 +407,7 @@ declare const ConverseCommand_base: {
401
407
  * // threshold: Number("double"), // required
402
408
  * // score: Number("double"), // required
403
409
  * // action: "BLOCKED" || "NONE", // required
410
+ * // detected: true || false,
404
411
  * // },
405
412
  * // ],
406
413
  * // },
@@ -436,7 +443,8 @@ declare const ConverseCommand_base: {
436
443
  * // {
437
444
  * // name: "STRING_VALUE", // required
438
445
  * // type: "DENY", // required
439
- * // action: "BLOCKED", // required
446
+ * // action: "BLOCKED" || "NONE", // required
447
+ * // detected: true || false,
440
448
  * // },
441
449
  * // ],
442
450
  * // },
@@ -446,7 +454,8 @@ declare const ConverseCommand_base: {
446
454
  * // type: "INSULTS" || "HATE" || "SEXUAL" || "VIOLENCE" || "MISCONDUCT" || "PROMPT_ATTACK", // required
447
455
  * // confidence: "NONE" || "LOW" || "MEDIUM" || "HIGH", // required
448
456
  * // filterStrength: "NONE" || "LOW" || "MEDIUM" || "HIGH",
449
- * // action: "BLOCKED", // required
457
+ * // action: "BLOCKED" || "NONE", // required
458
+ * // detected: true || false,
450
459
  * // },
451
460
  * // ],
452
461
  * // },
@@ -454,14 +463,16 @@ declare const ConverseCommand_base: {
454
463
  * // customWords: [ // required
455
464
  * // {
456
465
  * // match: "STRING_VALUE", // required
457
- * // action: "BLOCKED", // required
466
+ * // action: "BLOCKED" || "NONE", // required
467
+ * // detected: true || false,
458
468
  * // },
459
469
  * // ],
460
470
  * // managedWordLists: [ // required
461
471
  * // {
462
472
  * // match: "STRING_VALUE", // required
463
473
  * // type: "PROFANITY", // required
464
- * // action: "BLOCKED", // required
474
+ * // action: "BLOCKED" || "NONE", // required
475
+ * // detected: true || false,
465
476
  * // },
466
477
  * // ],
467
478
  * // },
@@ -470,7 +481,8 @@ declare const ConverseCommand_base: {
470
481
  * // {
471
482
  * // match: "STRING_VALUE", // required
472
483
  * // type: "ADDRESS" || "AGE" || "AWS_ACCESS_KEY" || "AWS_SECRET_KEY" || "CA_HEALTH_NUMBER" || "CA_SOCIAL_INSURANCE_NUMBER" || "CREDIT_DEBIT_CARD_CVV" || "CREDIT_DEBIT_CARD_EXPIRY" || "CREDIT_DEBIT_CARD_NUMBER" || "DRIVER_ID" || "EMAIL" || "INTERNATIONAL_BANK_ACCOUNT_NUMBER" || "IP_ADDRESS" || "LICENSE_PLATE" || "MAC_ADDRESS" || "NAME" || "PASSWORD" || "PHONE" || "PIN" || "SWIFT_CODE" || "UK_NATIONAL_HEALTH_SERVICE_NUMBER" || "UK_NATIONAL_INSURANCE_NUMBER" || "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER" || "URL" || "USERNAME" || "US_BANK_ACCOUNT_NUMBER" || "US_BANK_ROUTING_NUMBER" || "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" || "US_PASSPORT_NUMBER" || "US_SOCIAL_SECURITY_NUMBER" || "VEHICLE_IDENTIFICATION_NUMBER", // required
473
- * // action: "ANONYMIZED" || "BLOCKED", // required
484
+ * // action: "ANONYMIZED" || "BLOCKED" || "NONE", // required
485
+ * // detected: true || false,
474
486
  * // },
475
487
  * // ],
476
488
  * // regexes: [ // required
@@ -478,7 +490,8 @@ declare const ConverseCommand_base: {
478
490
  * // name: "STRING_VALUE",
479
491
  * // match: "STRING_VALUE",
480
492
  * // regex: "STRING_VALUE",
481
- * // action: "ANONYMIZED" || "BLOCKED", // required
493
+ * // action: "ANONYMIZED" || "BLOCKED" || "NONE", // required
494
+ * // detected: true || false,
482
495
  * // },
483
496
  * // ],
484
497
  * // },
@@ -489,6 +502,7 @@ declare const ConverseCommand_base: {
489
502
  * // threshold: Number("double"), // required
490
503
  * // score: Number("double"), // required
491
504
  * // action: "BLOCKED" || "NONE", // required
505
+ * // detected: true || false,
492
506
  * // },
493
507
  * // ],
494
508
  * // },
@@ -517,6 +531,7 @@ declare const ConverseCommand_base: {
517
531
  * // },
518
532
  * // ],
519
533
  * // },
534
+ * // actionReason: "STRING_VALUE",
520
535
  * // },
521
536
  * // promptRouter: { // PromptRouterTrace
522
537
  * // invokedModelId: "STRING_VALUE",
@@ -214,7 +214,7 @@ declare const ConverseStreamCommand_base: {
214
214
  * guardrailConfig: { // GuardrailStreamConfiguration
215
215
  * guardrailIdentifier: "STRING_VALUE", // required
216
216
  * guardrailVersion: "STRING_VALUE", // required
217
- * trace: "enabled" || "disabled",
217
+ * trace: "enabled" || "disabled" || "enabled_full",
218
218
  * streamProcessingMode: "sync" || "async",
219
219
  * },
220
220
  * additionalModelRequestFields: "DOCUMENT_VALUE",
@@ -293,7 +293,8 @@ declare const ConverseStreamCommand_base: {
293
293
  * // { // GuardrailTopic
294
294
  * // name: "STRING_VALUE", // required
295
295
  * // type: "DENY", // required
296
- * // action: "BLOCKED", // required
296
+ * // action: "BLOCKED" || "NONE", // required
297
+ * // detected: true || false,
297
298
  * // },
298
299
  * // ],
299
300
  * // },
@@ -303,7 +304,8 @@ declare const ConverseStreamCommand_base: {
303
304
  * // type: "INSULTS" || "HATE" || "SEXUAL" || "VIOLENCE" || "MISCONDUCT" || "PROMPT_ATTACK", // required
304
305
  * // confidence: "NONE" || "LOW" || "MEDIUM" || "HIGH", // required
305
306
  * // filterStrength: "NONE" || "LOW" || "MEDIUM" || "HIGH",
306
- * // action: "BLOCKED", // required
307
+ * // action: "BLOCKED" || "NONE", // required
308
+ * // detected: true || false,
307
309
  * // },
308
310
  * // ],
309
311
  * // },
@@ -311,14 +313,16 @@ declare const ConverseStreamCommand_base: {
311
313
  * // customWords: [ // GuardrailCustomWordList // required
312
314
  * // { // GuardrailCustomWord
313
315
  * // match: "STRING_VALUE", // required
314
- * // action: "BLOCKED", // required
316
+ * // action: "BLOCKED" || "NONE", // required
317
+ * // detected: true || false,
315
318
  * // },
316
319
  * // ],
317
320
  * // managedWordLists: [ // GuardrailManagedWordList // required
318
321
  * // { // GuardrailManagedWord
319
322
  * // match: "STRING_VALUE", // required
320
323
  * // type: "PROFANITY", // required
321
- * // action: "BLOCKED", // required
324
+ * // action: "BLOCKED" || "NONE", // required
325
+ * // detected: true || false,
322
326
  * // },
323
327
  * // ],
324
328
  * // },
@@ -327,7 +331,8 @@ declare const ConverseStreamCommand_base: {
327
331
  * // { // GuardrailPiiEntityFilter
328
332
  * // match: "STRING_VALUE", // required
329
333
  * // type: "ADDRESS" || "AGE" || "AWS_ACCESS_KEY" || "AWS_SECRET_KEY" || "CA_HEALTH_NUMBER" || "CA_SOCIAL_INSURANCE_NUMBER" || "CREDIT_DEBIT_CARD_CVV" || "CREDIT_DEBIT_CARD_EXPIRY" || "CREDIT_DEBIT_CARD_NUMBER" || "DRIVER_ID" || "EMAIL" || "INTERNATIONAL_BANK_ACCOUNT_NUMBER" || "IP_ADDRESS" || "LICENSE_PLATE" || "MAC_ADDRESS" || "NAME" || "PASSWORD" || "PHONE" || "PIN" || "SWIFT_CODE" || "UK_NATIONAL_HEALTH_SERVICE_NUMBER" || "UK_NATIONAL_INSURANCE_NUMBER" || "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER" || "URL" || "USERNAME" || "US_BANK_ACCOUNT_NUMBER" || "US_BANK_ROUTING_NUMBER" || "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" || "US_PASSPORT_NUMBER" || "US_SOCIAL_SECURITY_NUMBER" || "VEHICLE_IDENTIFICATION_NUMBER", // required
330
- * // action: "ANONYMIZED" || "BLOCKED", // required
334
+ * // action: "ANONYMIZED" || "BLOCKED" || "NONE", // required
335
+ * // detected: true || false,
331
336
  * // },
332
337
  * // ],
333
338
  * // regexes: [ // GuardrailRegexFilterList // required
@@ -335,7 +340,8 @@ declare const ConverseStreamCommand_base: {
335
340
  * // name: "STRING_VALUE",
336
341
  * // match: "STRING_VALUE",
337
342
  * // regex: "STRING_VALUE",
338
- * // action: "ANONYMIZED" || "BLOCKED", // required
343
+ * // action: "ANONYMIZED" || "BLOCKED" || "NONE", // required
344
+ * // detected: true || false,
339
345
  * // },
340
346
  * // ],
341
347
  * // },
@@ -346,6 +352,7 @@ declare const ConverseStreamCommand_base: {
346
352
  * // threshold: Number("double"), // required
347
353
  * // score: Number("double"), // required
348
354
  * // action: "BLOCKED" || "NONE", // required
355
+ * // detected: true || false,
349
356
  * // },
350
357
  * // ],
351
358
  * // },
@@ -381,7 +388,8 @@ declare const ConverseStreamCommand_base: {
381
388
  * // {
382
389
  * // name: "STRING_VALUE", // required
383
390
  * // type: "DENY", // required
384
- * // action: "BLOCKED", // required
391
+ * // action: "BLOCKED" || "NONE", // required
392
+ * // detected: true || false,
385
393
  * // },
386
394
  * // ],
387
395
  * // },
@@ -391,7 +399,8 @@ declare const ConverseStreamCommand_base: {
391
399
  * // type: "INSULTS" || "HATE" || "SEXUAL" || "VIOLENCE" || "MISCONDUCT" || "PROMPT_ATTACK", // required
392
400
  * // confidence: "NONE" || "LOW" || "MEDIUM" || "HIGH", // required
393
401
  * // filterStrength: "NONE" || "LOW" || "MEDIUM" || "HIGH",
394
- * // action: "BLOCKED", // required
402
+ * // action: "BLOCKED" || "NONE", // required
403
+ * // detected: true || false,
395
404
  * // },
396
405
  * // ],
397
406
  * // },
@@ -399,14 +408,16 @@ declare const ConverseStreamCommand_base: {
399
408
  * // customWords: [ // required
400
409
  * // {
401
410
  * // match: "STRING_VALUE", // required
402
- * // action: "BLOCKED", // required
411
+ * // action: "BLOCKED" || "NONE", // required
412
+ * // detected: true || false,
403
413
  * // },
404
414
  * // ],
405
415
  * // managedWordLists: [ // required
406
416
  * // {
407
417
  * // match: "STRING_VALUE", // required
408
418
  * // type: "PROFANITY", // required
409
- * // action: "BLOCKED", // required
419
+ * // action: "BLOCKED" || "NONE", // required
420
+ * // detected: true || false,
410
421
  * // },
411
422
  * // ],
412
423
  * // },
@@ -415,7 +426,8 @@ declare const ConverseStreamCommand_base: {
415
426
  * // {
416
427
  * // match: "STRING_VALUE", // required
417
428
  * // type: "ADDRESS" || "AGE" || "AWS_ACCESS_KEY" || "AWS_SECRET_KEY" || "CA_HEALTH_NUMBER" || "CA_SOCIAL_INSURANCE_NUMBER" || "CREDIT_DEBIT_CARD_CVV" || "CREDIT_DEBIT_CARD_EXPIRY" || "CREDIT_DEBIT_CARD_NUMBER" || "DRIVER_ID" || "EMAIL" || "INTERNATIONAL_BANK_ACCOUNT_NUMBER" || "IP_ADDRESS" || "LICENSE_PLATE" || "MAC_ADDRESS" || "NAME" || "PASSWORD" || "PHONE" || "PIN" || "SWIFT_CODE" || "UK_NATIONAL_HEALTH_SERVICE_NUMBER" || "UK_NATIONAL_INSURANCE_NUMBER" || "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER" || "URL" || "USERNAME" || "US_BANK_ACCOUNT_NUMBER" || "US_BANK_ROUTING_NUMBER" || "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" || "US_PASSPORT_NUMBER" || "US_SOCIAL_SECURITY_NUMBER" || "VEHICLE_IDENTIFICATION_NUMBER", // required
418
- * // action: "ANONYMIZED" || "BLOCKED", // required
429
+ * // action: "ANONYMIZED" || "BLOCKED" || "NONE", // required
430
+ * // detected: true || false,
419
431
  * // },
420
432
  * // ],
421
433
  * // regexes: [ // required
@@ -423,7 +435,8 @@ declare const ConverseStreamCommand_base: {
423
435
  * // name: "STRING_VALUE",
424
436
  * // match: "STRING_VALUE",
425
437
  * // regex: "STRING_VALUE",
426
- * // action: "ANONYMIZED" || "BLOCKED", // required
438
+ * // action: "ANONYMIZED" || "BLOCKED" || "NONE", // required
439
+ * // detected: true || false,
427
440
  * // },
428
441
  * // ],
429
442
  * // },
@@ -434,6 +447,7 @@ declare const ConverseStreamCommand_base: {
434
447
  * // threshold: Number("double"), // required
435
448
  * // score: Number("double"), // required
436
449
  * // action: "BLOCKED" || "NONE", // required
450
+ * // detected: true || false,
437
451
  * // },
438
452
  * // ],
439
453
  * // },
@@ -462,6 +476,7 @@ declare const ConverseStreamCommand_base: {
462
476
  * // },
463
477
  * // ],
464
478
  * // },
479
+ * // actionReason: "STRING_VALUE",
465
480
  * // },
466
481
  * // promptRouter: { // PromptRouterTrace
467
482
  * // invokedModelId: "STRING_VALUE",
@@ -65,7 +65,7 @@ declare const InvokeModelCommand_base: {
65
65
  * contentType: "STRING_VALUE",
66
66
  * accept: "STRING_VALUE",
67
67
  * modelId: "STRING_VALUE", // required
68
- * trace: "ENABLED" || "DISABLED",
68
+ * trace: "ENABLED" || "DISABLED" || "ENABLED_FULL",
69
69
  * guardrailIdentifier: "STRING_VALUE",
70
70
  * guardrailVersion: "STRING_VALUE",
71
71
  * performanceConfigLatency: "standard" || "optimized",
@@ -63,7 +63,7 @@ declare const InvokeModelWithResponseStreamCommand_base: {
63
63
  * contentType: "STRING_VALUE",
64
64
  * accept: "STRING_VALUE",
65
65
  * modelId: "STRING_VALUE", // required
66
- * trace: "ENABLED" || "DISABLED",
66
+ * trace: "ENABLED" || "DISABLED" || "ENABLED_FULL",
67
67
  * guardrailIdentifier: "STRING_VALUE",
68
68
  * guardrailVersion: "STRING_VALUE",
69
69
  * performanceConfigLatency: "standard" || "optimized",
@@ -541,6 +541,18 @@ export declare namespace GuardrailContentBlock {
541
541
  }
542
542
  const visit: <T>(value: GuardrailContentBlock, visitor: Visitor<T>) => T;
543
543
  }
544
+ /**
545
+ * @public
546
+ * @enum
547
+ */
548
+ export declare const GuardrailOutputScope: {
549
+ readonly FULL: "FULL";
550
+ readonly INTERVENTIONS: "INTERVENTIONS";
551
+ };
552
+ /**
553
+ * @public
554
+ */
555
+ export type GuardrailOutputScope = (typeof GuardrailOutputScope)[keyof typeof GuardrailOutputScope];
544
556
  /**
545
557
  * @public
546
558
  * @enum
@@ -577,6 +589,12 @@ export interface ApplyGuardrailRequest {
577
589
  * @public
578
590
  */
579
591
  content: GuardrailContentBlock[] | undefined;
592
+ /**
593
+ * <p>Specifies the scope of the output that you get in the response. Set to <code>FULL</code> to return the entire output, including any detected and non-detected entries in the response for enhanced debugging.</p>
594
+ * <p>Note that the full output scope doesn't apply to word filters or regex in sensitive information filters. It does apply to all other filtering policies, including sensitive information with filters that can detect personally identifiable information (PII).</p>
595
+ * @public
596
+ */
597
+ outputScope?: GuardrailOutputScope | undefined;
580
598
  }
581
599
  /**
582
600
  * @public
@@ -596,6 +614,7 @@ export type GuardrailAction = (typeof GuardrailAction)[keyof typeof GuardrailAct
596
614
  */
597
615
  export declare const GuardrailContentPolicyAction: {
598
616
  readonly BLOCKED: "BLOCKED";
617
+ readonly NONE: "NONE";
599
618
  };
600
619
  /**
601
620
  * @public
@@ -670,6 +689,11 @@ export interface GuardrailContentFilter {
670
689
  * @public
671
690
  */
672
691
  action: GuardrailContentPolicyAction | undefined;
692
+ /**
693
+ * <p>Indicates whether content that breaches the guardrail configuration is detected.</p>
694
+ * @public
695
+ */
696
+ detected?: boolean | undefined;
673
697
  }
674
698
  /**
675
699
  * <p>An assessment of a content policy for a guardrail.</p>
@@ -731,6 +755,11 @@ export interface GuardrailContextualGroundingFilter {
731
755
  * @public
732
756
  */
733
757
  action: GuardrailContextualGroundingPolicyAction | undefined;
758
+ /**
759
+ * <p>Indicates whether content that fails the contextual grounding evaluation (grounding or relevance score less than the corresponding threshold) was detected.</p>
760
+ * @public
761
+ */
762
+ detected?: boolean | undefined;
734
763
  }
735
764
  /**
736
765
  * <p>The policy assessment details for the guardrails contextual grounding filter.</p>
@@ -860,6 +889,7 @@ export interface GuardrailInvocationMetrics {
860
889
  export declare const GuardrailSensitiveInformationPolicyAction: {
861
890
  readonly ANONYMIZED: "ANONYMIZED";
862
891
  readonly BLOCKED: "BLOCKED";
892
+ readonly NONE: "NONE";
863
893
  };
864
894
  /**
865
895
  * @public
@@ -926,6 +956,11 @@ export interface GuardrailPiiEntityFilter {
926
956
  * @public
927
957
  */
928
958
  action: GuardrailSensitiveInformationPolicyAction | undefined;
959
+ /**
960
+ * <p>Indicates whether personally identifiable information (PII) that breaches the guardrail configuration is detected.</p>
961
+ * @public
962
+ */
963
+ detected?: boolean | undefined;
929
964
  }
930
965
  /**
931
966
  * <p>A Regex filter configured in a guardrail.</p>
@@ -952,6 +987,11 @@ export interface GuardrailRegexFilter {
952
987
  * @public
953
988
  */
954
989
  action: GuardrailSensitiveInformationPolicyAction | undefined;
990
+ /**
991
+ * <p>Indicates whether custom regex entities that breach the guardrail configuration are detected.</p>
992
+ * @public
993
+ */
994
+ detected?: boolean | undefined;
955
995
  }
956
996
  /**
957
997
  * <p>The assessment for aPersonally Identifiable Information (PII) policy. </p>
@@ -975,6 +1015,7 @@ export interface GuardrailSensitiveInformationPolicyAssessment {
975
1015
  */
976
1016
  export declare const GuardrailTopicPolicyAction: {
977
1017
  readonly BLOCKED: "BLOCKED";
1018
+ readonly NONE: "NONE";
978
1019
  };
979
1020
  /**
980
1021
  * @public
@@ -1011,6 +1052,11 @@ export interface GuardrailTopic {
1011
1052
  * @public
1012
1053
  */
1013
1054
  action: GuardrailTopicPolicyAction | undefined;
1055
+ /**
1056
+ * <p>Indicates whether topic content that breaches the guardrail configuration is detected.</p>
1057
+ * @public
1058
+ */
1059
+ detected?: boolean | undefined;
1014
1060
  }
1015
1061
  /**
1016
1062
  * <p>A behavior assessment of a topic policy.</p>
@@ -1029,6 +1075,7 @@ export interface GuardrailTopicPolicyAssessment {
1029
1075
  */
1030
1076
  export declare const GuardrailWordPolicyAction: {
1031
1077
  readonly BLOCKED: "BLOCKED";
1078
+ readonly NONE: "NONE";
1032
1079
  };
1033
1080
  /**
1034
1081
  * @public
@@ -1049,6 +1096,11 @@ export interface GuardrailCustomWord {
1049
1096
  * @public
1050
1097
  */
1051
1098
  action: GuardrailWordPolicyAction | undefined;
1099
+ /**
1100
+ * <p>Indicates whether custom word content that breaches the guardrail configuration is detected.</p>
1101
+ * @public
1102
+ */
1103
+ detected?: boolean | undefined;
1052
1104
  }
1053
1105
  /**
1054
1106
  * @public
@@ -1081,6 +1133,11 @@ export interface GuardrailManagedWord {
1081
1133
  * @public
1082
1134
  */
1083
1135
  action: GuardrailWordPolicyAction | undefined;
1136
+ /**
1137
+ * <p>Indicates whether managed word content that breaches the guardrail configuration is detected.</p>
1138
+ * @public
1139
+ */
1140
+ detected?: boolean | undefined;
1084
1141
  }
1085
1142
  /**
1086
1143
  * <p>The word policy assessment.</p>
@@ -1159,6 +1216,11 @@ export interface ApplyGuardrailResponse {
1159
1216
  * @public
1160
1217
  */
1161
1218
  action: GuardrailAction | undefined;
1219
+ /**
1220
+ * <p>The reason for the action taken when harmful content is detected.</p>
1221
+ * @public
1222
+ */
1223
+ actionReason?: string | undefined;
1162
1224
  /**
1163
1225
  * <p>The output details in the response from the guardrail.</p>
1164
1226
  * @public
@@ -1182,6 +1244,7 @@ export interface ApplyGuardrailResponse {
1182
1244
  export declare const GuardrailTrace: {
1183
1245
  readonly DISABLED: "disabled";
1184
1246
  readonly ENABLED: "enabled";
1247
+ readonly ENABLED_FULL: "enabled_full";
1185
1248
  };
1186
1249
  /**
1187
1250
  * @public
@@ -2572,6 +2635,11 @@ export interface GuardrailTraceAssessment {
2572
2635
  * @public
2573
2636
  */
2574
2637
  outputAssessments?: Record<string, GuardrailAssessment[]> | undefined;
2638
+ /**
2639
+ * <p>Provides the reason for the action taken when harmful content is detected.</p>
2640
+ * @public
2641
+ */
2642
+ actionReason?: string | undefined;
2575
2643
  }
2576
2644
  /**
2577
2645
  * <p>A prompt router trace.</p>
@@ -3434,6 +3502,7 @@ export interface ConverseStreamResponse {
3434
3502
  export declare const Trace: {
3435
3503
  readonly DISABLED: "DISABLED";
3436
3504
  readonly ENABLED: "ENABLED";
3505
+ readonly ENABLED_FULL: "ENABLED_FULL";
3437
3506
  };
3438
3507
  /**
3439
3508
  * @public
@@ -216,6 +216,12 @@ export declare namespace GuardrailContentBlock {
216
216
  }
217
217
  const visit: <T>(value: GuardrailContentBlock, visitor: Visitor<T>) => T;
218
218
  }
219
+ export declare const GuardrailOutputScope: {
220
+ readonly FULL: "FULL";
221
+ readonly INTERVENTIONS: "INTERVENTIONS";
222
+ };
223
+ export type GuardrailOutputScope =
224
+ (typeof GuardrailOutputScope)[keyof typeof GuardrailOutputScope];
219
225
  export declare const GuardrailContentSource: {
220
226
  readonly INPUT: "INPUT";
221
227
  readonly OUTPUT: "OUTPUT";
@@ -227,6 +233,7 @@ export interface ApplyGuardrailRequest {
227
233
  guardrailVersion: string | undefined;
228
234
  source: GuardrailContentSource | undefined;
229
235
  content: GuardrailContentBlock[] | undefined;
236
+ outputScope?: GuardrailOutputScope | undefined;
230
237
  }
231
238
  export declare const GuardrailAction: {
232
239
  readonly GUARDRAIL_INTERVENED: "GUARDRAIL_INTERVENED";
@@ -236,6 +243,7 @@ export type GuardrailAction =
236
243
  (typeof GuardrailAction)[keyof typeof GuardrailAction];
237
244
  export declare const GuardrailContentPolicyAction: {
238
245
  readonly BLOCKED: "BLOCKED";
246
+ readonly NONE: "NONE";
239
247
  };
240
248
  export type GuardrailContentPolicyAction =
241
249
  (typeof GuardrailContentPolicyAction)[keyof typeof GuardrailContentPolicyAction];
@@ -270,6 +278,7 @@ export interface GuardrailContentFilter {
270
278
  confidence: GuardrailContentFilterConfidence | undefined;
271
279
  filterStrength?: GuardrailContentFilterStrength | undefined;
272
280
  action: GuardrailContentPolicyAction | undefined;
281
+ detected?: boolean | undefined;
273
282
  }
274
283
  export interface GuardrailContentPolicyAssessment {
275
284
  filters: GuardrailContentFilter[] | undefined;
@@ -291,6 +300,7 @@ export interface GuardrailContextualGroundingFilter {
291
300
  threshold: number | undefined;
292
301
  score: number | undefined;
293
302
  action: GuardrailContextualGroundingPolicyAction | undefined;
303
+ detected?: boolean | undefined;
294
304
  }
295
305
  export interface GuardrailContextualGroundingPolicyAssessment {
296
306
  filters?: GuardrailContextualGroundingFilter[] | undefined;
@@ -324,6 +334,7 @@ export interface GuardrailInvocationMetrics {
324
334
  export declare const GuardrailSensitiveInformationPolicyAction: {
325
335
  readonly ANONYMIZED: "ANONYMIZED";
326
336
  readonly BLOCKED: "BLOCKED";
337
+ readonly NONE: "NONE";
327
338
  };
328
339
  export type GuardrailSensitiveInformationPolicyAction =
329
340
  (typeof GuardrailSensitiveInformationPolicyAction)[keyof typeof GuardrailSensitiveInformationPolicyAction];
@@ -366,12 +377,14 @@ export interface GuardrailPiiEntityFilter {
366
377
  match: string | undefined;
367
378
  type: GuardrailPiiEntityType | undefined;
368
379
  action: GuardrailSensitiveInformationPolicyAction | undefined;
380
+ detected?: boolean | undefined;
369
381
  }
370
382
  export interface GuardrailRegexFilter {
371
383
  name?: string | undefined;
372
384
  match?: string | undefined;
373
385
  regex?: string | undefined;
374
386
  action: GuardrailSensitiveInformationPolicyAction | undefined;
387
+ detected?: boolean | undefined;
375
388
  }
376
389
  export interface GuardrailSensitiveInformationPolicyAssessment {
377
390
  piiEntities: GuardrailPiiEntityFilter[] | undefined;
@@ -379,6 +392,7 @@ export interface GuardrailSensitiveInformationPolicyAssessment {
379
392
  }
380
393
  export declare const GuardrailTopicPolicyAction: {
381
394
  readonly BLOCKED: "BLOCKED";
395
+ readonly NONE: "NONE";
382
396
  };
383
397
  export type GuardrailTopicPolicyAction =
384
398
  (typeof GuardrailTopicPolicyAction)[keyof typeof GuardrailTopicPolicyAction];
@@ -391,18 +405,21 @@ export interface GuardrailTopic {
391
405
  name: string | undefined;
392
406
  type: GuardrailTopicType | undefined;
393
407
  action: GuardrailTopicPolicyAction | undefined;
408
+ detected?: boolean | undefined;
394
409
  }
395
410
  export interface GuardrailTopicPolicyAssessment {
396
411
  topics: GuardrailTopic[] | undefined;
397
412
  }
398
413
  export declare const GuardrailWordPolicyAction: {
399
414
  readonly BLOCKED: "BLOCKED";
415
+ readonly NONE: "NONE";
400
416
  };
401
417
  export type GuardrailWordPolicyAction =
402
418
  (typeof GuardrailWordPolicyAction)[keyof typeof GuardrailWordPolicyAction];
403
419
  export interface GuardrailCustomWord {
404
420
  match: string | undefined;
405
421
  action: GuardrailWordPolicyAction | undefined;
422
+ detected?: boolean | undefined;
406
423
  }
407
424
  export declare const GuardrailManagedWordType: {
408
425
  readonly PROFANITY: "PROFANITY";
@@ -413,6 +430,7 @@ export interface GuardrailManagedWord {
413
430
  match: string | undefined;
414
431
  type: GuardrailManagedWordType | undefined;
415
432
  action: GuardrailWordPolicyAction | undefined;
433
+ detected?: boolean | undefined;
416
434
  }
417
435
  export interface GuardrailWordPolicyAssessment {
418
436
  customWords: GuardrailCustomWord[] | undefined;
@@ -436,6 +454,7 @@ export interface GuardrailOutputContent {
436
454
  export interface ApplyGuardrailResponse {
437
455
  usage: GuardrailUsage | undefined;
438
456
  action: GuardrailAction | undefined;
457
+ actionReason?: string | undefined;
439
458
  outputs: GuardrailOutputContent[] | undefined;
440
459
  assessments: GuardrailAssessment[] | undefined;
441
460
  guardrailCoverage?: GuardrailCoverage | undefined;
@@ -443,6 +462,7 @@ export interface ApplyGuardrailResponse {
443
462
  export declare const GuardrailTrace: {
444
463
  readonly DISABLED: "disabled";
445
464
  readonly ENABLED: "enabled";
465
+ readonly ENABLED_FULL: "enabled_full";
446
466
  };
447
467
  export type GuardrailTrace =
448
468
  (typeof GuardrailTrace)[keyof typeof GuardrailTrace];
@@ -1125,6 +1145,7 @@ export interface GuardrailTraceAssessment {
1125
1145
  modelOutput?: string[] | undefined;
1126
1146
  inputAssessment?: Record<string, GuardrailAssessment> | undefined;
1127
1147
  outputAssessments?: Record<string, GuardrailAssessment[]> | undefined;
1148
+ actionReason?: string | undefined;
1128
1149
  }
1129
1150
  export interface PromptRouterTrace {
1130
1151
  invokedModelId?: string | undefined;
@@ -1543,6 +1564,7 @@ export interface ConverseStreamResponse {
1543
1564
  export declare const Trace: {
1544
1565
  readonly DISABLED: "DISABLED";
1545
1566
  readonly ENABLED: "ENABLED";
1567
+ readonly ENABLED_FULL: "ENABLED_FULL";
1546
1568
  };
1547
1569
  export type Trace = (typeof Trace)[keyof typeof Trace];
1548
1570
  export interface InvokeModelRequest {
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.779.0",
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-runtime",
@@ -21,16 +21,16 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.775.0",
24
- "@aws-sdk/credential-provider-node": "3.777.0",
24
+ "@aws-sdk/credential-provider-node": "3.782.0",
25
25
  "@aws-sdk/middleware-host-header": "3.775.0",
26
26
  "@aws-sdk/middleware-logger": "3.775.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.775.0",
28
- "@aws-sdk/middleware-user-agent": "3.775.0",
28
+ "@aws-sdk/middleware-user-agent": "3.782.0",
29
29
  "@aws-sdk/region-config-resolver": "3.775.0",
30
30
  "@aws-sdk/types": "3.775.0",
31
- "@aws-sdk/util-endpoints": "3.775.0",
31
+ "@aws-sdk/util-endpoints": "3.782.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.775.0",
33
- "@aws-sdk/util-user-agent-node": "3.775.0",
33
+ "@aws-sdk/util-user-agent-node": "3.782.0",
34
34
  "@smithy/config-resolver": "^4.1.0",
35
35
  "@smithy/core": "^3.2.0",
36
36
  "@smithy/eventstream-serde-browser": "^4.0.2",