@aws-sdk/client-bedrock-runtime 3.859.0 → 3.861.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 +323 -3
- package/dist-es/commands/ApplyGuardrailCommand.js +2 -2
- package/dist-es/models/models_0.js +161 -1
- package/dist-es/protocols/Aws_restJson1.js +118 -0
- package/dist-types/commands/ApplyGuardrailCommand.d.ts +160 -0
- package/dist-types/commands/ConverseCommand.d.ts +218 -0
- package/dist-types/commands/ConverseStreamCommand.d.ts +218 -0
- package/dist-types/models/models_0.d.ts +485 -0
- package/dist-types/ts3.4/models/models_0.d.ts +241 -0
- package/package.json +1 -1
|
@@ -241,6 +241,185 @@ export declare const GuardrailAction: {
|
|
|
241
241
|
};
|
|
242
242
|
export type GuardrailAction =
|
|
243
243
|
(typeof GuardrailAction)[keyof typeof GuardrailAction];
|
|
244
|
+
export interface GuardrailAutomatedReasoningRule {
|
|
245
|
+
identifier?: string | undefined;
|
|
246
|
+
policyVersionArn?: string | undefined;
|
|
247
|
+
}
|
|
248
|
+
export interface GuardrailAutomatedReasoningStatement {
|
|
249
|
+
logic?: string | undefined;
|
|
250
|
+
naturalLanguage?: string | undefined;
|
|
251
|
+
}
|
|
252
|
+
export declare const GuardrailAutomatedReasoningLogicWarningType: {
|
|
253
|
+
readonly ALWAYS_FALSE: "ALWAYS_FALSE";
|
|
254
|
+
readonly ALWAYS_TRUE: "ALWAYS_TRUE";
|
|
255
|
+
};
|
|
256
|
+
export type GuardrailAutomatedReasoningLogicWarningType =
|
|
257
|
+
(typeof GuardrailAutomatedReasoningLogicWarningType)[keyof typeof GuardrailAutomatedReasoningLogicWarningType];
|
|
258
|
+
export interface GuardrailAutomatedReasoningLogicWarning {
|
|
259
|
+
type?: GuardrailAutomatedReasoningLogicWarningType | undefined;
|
|
260
|
+
premises?: GuardrailAutomatedReasoningStatement[] | undefined;
|
|
261
|
+
claims?: GuardrailAutomatedReasoningStatement[] | undefined;
|
|
262
|
+
}
|
|
263
|
+
export interface GuardrailAutomatedReasoningInputTextReference {
|
|
264
|
+
text?: string | undefined;
|
|
265
|
+
}
|
|
266
|
+
export interface GuardrailAutomatedReasoningTranslation {
|
|
267
|
+
premises?: GuardrailAutomatedReasoningStatement[] | undefined;
|
|
268
|
+
claims?: GuardrailAutomatedReasoningStatement[] | undefined;
|
|
269
|
+
untranslatedPremises?:
|
|
270
|
+
| GuardrailAutomatedReasoningInputTextReference[]
|
|
271
|
+
| undefined;
|
|
272
|
+
untranslatedClaims?:
|
|
273
|
+
| GuardrailAutomatedReasoningInputTextReference[]
|
|
274
|
+
| undefined;
|
|
275
|
+
confidence?: number | undefined;
|
|
276
|
+
}
|
|
277
|
+
export interface GuardrailAutomatedReasoningImpossibleFinding {
|
|
278
|
+
translation?: GuardrailAutomatedReasoningTranslation | undefined;
|
|
279
|
+
contradictingRules?: GuardrailAutomatedReasoningRule[] | undefined;
|
|
280
|
+
logicWarning?: GuardrailAutomatedReasoningLogicWarning | undefined;
|
|
281
|
+
}
|
|
282
|
+
export interface GuardrailAutomatedReasoningInvalidFinding {
|
|
283
|
+
translation?: GuardrailAutomatedReasoningTranslation | undefined;
|
|
284
|
+
contradictingRules?: GuardrailAutomatedReasoningRule[] | undefined;
|
|
285
|
+
logicWarning?: GuardrailAutomatedReasoningLogicWarning | undefined;
|
|
286
|
+
}
|
|
287
|
+
export interface GuardrailAutomatedReasoningNoTranslationsFinding {}
|
|
288
|
+
export interface GuardrailAutomatedReasoningScenario {
|
|
289
|
+
statements?: GuardrailAutomatedReasoningStatement[] | undefined;
|
|
290
|
+
}
|
|
291
|
+
export interface GuardrailAutomatedReasoningSatisfiableFinding {
|
|
292
|
+
translation?: GuardrailAutomatedReasoningTranslation | undefined;
|
|
293
|
+
claimsTrueScenario?: GuardrailAutomatedReasoningScenario | undefined;
|
|
294
|
+
claimsFalseScenario?: GuardrailAutomatedReasoningScenario | undefined;
|
|
295
|
+
logicWarning?: GuardrailAutomatedReasoningLogicWarning | undefined;
|
|
296
|
+
}
|
|
297
|
+
export interface GuardrailAutomatedReasoningTooComplexFinding {}
|
|
298
|
+
export interface GuardrailAutomatedReasoningTranslationOption {
|
|
299
|
+
translations?: GuardrailAutomatedReasoningTranslation[] | undefined;
|
|
300
|
+
}
|
|
301
|
+
export interface GuardrailAutomatedReasoningTranslationAmbiguousFinding {
|
|
302
|
+
options?: GuardrailAutomatedReasoningTranslationOption[] | undefined;
|
|
303
|
+
differenceScenarios?: GuardrailAutomatedReasoningScenario[] | undefined;
|
|
304
|
+
}
|
|
305
|
+
export interface GuardrailAutomatedReasoningValidFinding {
|
|
306
|
+
translation?: GuardrailAutomatedReasoningTranslation | undefined;
|
|
307
|
+
claimsTrueScenario?: GuardrailAutomatedReasoningScenario | undefined;
|
|
308
|
+
supportingRules?: GuardrailAutomatedReasoningRule[] | undefined;
|
|
309
|
+
logicWarning?: GuardrailAutomatedReasoningLogicWarning | undefined;
|
|
310
|
+
}
|
|
311
|
+
export type GuardrailAutomatedReasoningFinding =
|
|
312
|
+
| GuardrailAutomatedReasoningFinding.ImpossibleMember
|
|
313
|
+
| GuardrailAutomatedReasoningFinding.InvalidMember
|
|
314
|
+
| GuardrailAutomatedReasoningFinding.NoTranslationsMember
|
|
315
|
+
| GuardrailAutomatedReasoningFinding.SatisfiableMember
|
|
316
|
+
| GuardrailAutomatedReasoningFinding.TooComplexMember
|
|
317
|
+
| GuardrailAutomatedReasoningFinding.TranslationAmbiguousMember
|
|
318
|
+
| GuardrailAutomatedReasoningFinding.ValidMember
|
|
319
|
+
| GuardrailAutomatedReasoningFinding.$UnknownMember;
|
|
320
|
+
export declare namespace GuardrailAutomatedReasoningFinding {
|
|
321
|
+
interface ValidMember {
|
|
322
|
+
valid: GuardrailAutomatedReasoningValidFinding;
|
|
323
|
+
invalid?: never;
|
|
324
|
+
satisfiable?: never;
|
|
325
|
+
impossible?: never;
|
|
326
|
+
translationAmbiguous?: never;
|
|
327
|
+
tooComplex?: never;
|
|
328
|
+
noTranslations?: never;
|
|
329
|
+
$unknown?: never;
|
|
330
|
+
}
|
|
331
|
+
interface InvalidMember {
|
|
332
|
+
valid?: never;
|
|
333
|
+
invalid: GuardrailAutomatedReasoningInvalidFinding;
|
|
334
|
+
satisfiable?: never;
|
|
335
|
+
impossible?: never;
|
|
336
|
+
translationAmbiguous?: never;
|
|
337
|
+
tooComplex?: never;
|
|
338
|
+
noTranslations?: never;
|
|
339
|
+
$unknown?: never;
|
|
340
|
+
}
|
|
341
|
+
interface SatisfiableMember {
|
|
342
|
+
valid?: never;
|
|
343
|
+
invalid?: never;
|
|
344
|
+
satisfiable: GuardrailAutomatedReasoningSatisfiableFinding;
|
|
345
|
+
impossible?: never;
|
|
346
|
+
translationAmbiguous?: never;
|
|
347
|
+
tooComplex?: never;
|
|
348
|
+
noTranslations?: never;
|
|
349
|
+
$unknown?: never;
|
|
350
|
+
}
|
|
351
|
+
interface ImpossibleMember {
|
|
352
|
+
valid?: never;
|
|
353
|
+
invalid?: never;
|
|
354
|
+
satisfiable?: never;
|
|
355
|
+
impossible: GuardrailAutomatedReasoningImpossibleFinding;
|
|
356
|
+
translationAmbiguous?: never;
|
|
357
|
+
tooComplex?: never;
|
|
358
|
+
noTranslations?: never;
|
|
359
|
+
$unknown?: never;
|
|
360
|
+
}
|
|
361
|
+
interface TranslationAmbiguousMember {
|
|
362
|
+
valid?: never;
|
|
363
|
+
invalid?: never;
|
|
364
|
+
satisfiable?: never;
|
|
365
|
+
impossible?: never;
|
|
366
|
+
translationAmbiguous: GuardrailAutomatedReasoningTranslationAmbiguousFinding;
|
|
367
|
+
tooComplex?: never;
|
|
368
|
+
noTranslations?: never;
|
|
369
|
+
$unknown?: never;
|
|
370
|
+
}
|
|
371
|
+
interface TooComplexMember {
|
|
372
|
+
valid?: never;
|
|
373
|
+
invalid?: never;
|
|
374
|
+
satisfiable?: never;
|
|
375
|
+
impossible?: never;
|
|
376
|
+
translationAmbiguous?: never;
|
|
377
|
+
tooComplex: GuardrailAutomatedReasoningTooComplexFinding;
|
|
378
|
+
noTranslations?: never;
|
|
379
|
+
$unknown?: never;
|
|
380
|
+
}
|
|
381
|
+
interface NoTranslationsMember {
|
|
382
|
+
valid?: never;
|
|
383
|
+
invalid?: never;
|
|
384
|
+
satisfiable?: never;
|
|
385
|
+
impossible?: never;
|
|
386
|
+
translationAmbiguous?: never;
|
|
387
|
+
tooComplex?: never;
|
|
388
|
+
noTranslations: GuardrailAutomatedReasoningNoTranslationsFinding;
|
|
389
|
+
$unknown?: never;
|
|
390
|
+
}
|
|
391
|
+
interface $UnknownMember {
|
|
392
|
+
valid?: never;
|
|
393
|
+
invalid?: never;
|
|
394
|
+
satisfiable?: never;
|
|
395
|
+
impossible?: never;
|
|
396
|
+
translationAmbiguous?: never;
|
|
397
|
+
tooComplex?: never;
|
|
398
|
+
noTranslations?: never;
|
|
399
|
+
$unknown: [string, any];
|
|
400
|
+
}
|
|
401
|
+
interface Visitor<T> {
|
|
402
|
+
valid: (value: GuardrailAutomatedReasoningValidFinding) => T;
|
|
403
|
+
invalid: (value: GuardrailAutomatedReasoningInvalidFinding) => T;
|
|
404
|
+
satisfiable: (value: GuardrailAutomatedReasoningSatisfiableFinding) => T;
|
|
405
|
+
impossible: (value: GuardrailAutomatedReasoningImpossibleFinding) => T;
|
|
406
|
+
translationAmbiguous: (
|
|
407
|
+
value: GuardrailAutomatedReasoningTranslationAmbiguousFinding
|
|
408
|
+
) => T;
|
|
409
|
+
tooComplex: (value: GuardrailAutomatedReasoningTooComplexFinding) => T;
|
|
410
|
+
noTranslations: (
|
|
411
|
+
value: GuardrailAutomatedReasoningNoTranslationsFinding
|
|
412
|
+
) => T;
|
|
413
|
+
_: (name: string, value: any) => T;
|
|
414
|
+
}
|
|
415
|
+
const visit: <T>(
|
|
416
|
+
value: GuardrailAutomatedReasoningFinding,
|
|
417
|
+
visitor: Visitor<T>
|
|
418
|
+
) => T;
|
|
419
|
+
}
|
|
420
|
+
export interface GuardrailAutomatedReasoningPolicyAssessment {
|
|
421
|
+
findings?: GuardrailAutomatedReasoningFinding[] | undefined;
|
|
422
|
+
}
|
|
244
423
|
export declare const GuardrailContentPolicyAction: {
|
|
245
424
|
readonly BLOCKED: "BLOCKED";
|
|
246
425
|
readonly NONE: "NONE";
|
|
@@ -325,6 +504,8 @@ export interface GuardrailUsage {
|
|
|
325
504
|
sensitiveInformationPolicyFreeUnits: number | undefined;
|
|
326
505
|
contextualGroundingPolicyUnits: number | undefined;
|
|
327
506
|
contentPolicyImageUnits?: number | undefined;
|
|
507
|
+
automatedReasoningPolicyUnits?: number | undefined;
|
|
508
|
+
automatedReasoningPolicies?: number | undefined;
|
|
328
509
|
}
|
|
329
510
|
export interface GuardrailInvocationMetrics {
|
|
330
511
|
guardrailProcessingLatency?: number | undefined;
|
|
@@ -446,6 +627,9 @@ export interface GuardrailAssessment {
|
|
|
446
627
|
contextualGroundingPolicy?:
|
|
447
628
|
| GuardrailContextualGroundingPolicyAssessment
|
|
448
629
|
| undefined;
|
|
630
|
+
automatedReasoningPolicy?:
|
|
631
|
+
| GuardrailAutomatedReasoningPolicyAssessment
|
|
632
|
+
| undefined;
|
|
449
633
|
invocationMetrics?: GuardrailInvocationMetrics | undefined;
|
|
450
634
|
}
|
|
451
635
|
export interface GuardrailOutputContent {
|
|
@@ -2076,6 +2260,51 @@ export declare const GuardrailContentBlockFilterSensitiveLog: (
|
|
|
2076
2260
|
export declare const ApplyGuardrailRequestFilterSensitiveLog: (
|
|
2077
2261
|
obj: ApplyGuardrailRequest
|
|
2078
2262
|
) => any;
|
|
2263
|
+
export declare const GuardrailAutomatedReasoningStatementFilterSensitiveLog: (
|
|
2264
|
+
obj: GuardrailAutomatedReasoningStatement
|
|
2265
|
+
) => any;
|
|
2266
|
+
export declare const GuardrailAutomatedReasoningLogicWarningFilterSensitiveLog: (
|
|
2267
|
+
obj: GuardrailAutomatedReasoningLogicWarning
|
|
2268
|
+
) => any;
|
|
2269
|
+
export declare const GuardrailAutomatedReasoningInputTextReferenceFilterSensitiveLog: (
|
|
2270
|
+
obj: GuardrailAutomatedReasoningInputTextReference
|
|
2271
|
+
) => any;
|
|
2272
|
+
export declare const GuardrailAutomatedReasoningTranslationFilterSensitiveLog: (
|
|
2273
|
+
obj: GuardrailAutomatedReasoningTranslation
|
|
2274
|
+
) => any;
|
|
2275
|
+
export declare const GuardrailAutomatedReasoningImpossibleFindingFilterSensitiveLog: (
|
|
2276
|
+
obj: GuardrailAutomatedReasoningImpossibleFinding
|
|
2277
|
+
) => any;
|
|
2278
|
+
export declare const GuardrailAutomatedReasoningInvalidFindingFilterSensitiveLog: (
|
|
2279
|
+
obj: GuardrailAutomatedReasoningInvalidFinding
|
|
2280
|
+
) => any;
|
|
2281
|
+
export declare const GuardrailAutomatedReasoningScenarioFilterSensitiveLog: (
|
|
2282
|
+
obj: GuardrailAutomatedReasoningScenario
|
|
2283
|
+
) => any;
|
|
2284
|
+
export declare const GuardrailAutomatedReasoningSatisfiableFindingFilterSensitiveLog: (
|
|
2285
|
+
obj: GuardrailAutomatedReasoningSatisfiableFinding
|
|
2286
|
+
) => any;
|
|
2287
|
+
export declare const GuardrailAutomatedReasoningTranslationOptionFilterSensitiveLog: (
|
|
2288
|
+
obj: GuardrailAutomatedReasoningTranslationOption
|
|
2289
|
+
) => any;
|
|
2290
|
+
export declare const GuardrailAutomatedReasoningTranslationAmbiguousFindingFilterSensitiveLog: (
|
|
2291
|
+
obj: GuardrailAutomatedReasoningTranslationAmbiguousFinding
|
|
2292
|
+
) => any;
|
|
2293
|
+
export declare const GuardrailAutomatedReasoningValidFindingFilterSensitiveLog: (
|
|
2294
|
+
obj: GuardrailAutomatedReasoningValidFinding
|
|
2295
|
+
) => any;
|
|
2296
|
+
export declare const GuardrailAutomatedReasoningFindingFilterSensitiveLog: (
|
|
2297
|
+
obj: GuardrailAutomatedReasoningFinding
|
|
2298
|
+
) => any;
|
|
2299
|
+
export declare const GuardrailAutomatedReasoningPolicyAssessmentFilterSensitiveLog: (
|
|
2300
|
+
obj: GuardrailAutomatedReasoningPolicyAssessment
|
|
2301
|
+
) => any;
|
|
2302
|
+
export declare const GuardrailAssessmentFilterSensitiveLog: (
|
|
2303
|
+
obj: GuardrailAssessment
|
|
2304
|
+
) => any;
|
|
2305
|
+
export declare const ApplyGuardrailResponseFilterSensitiveLog: (
|
|
2306
|
+
obj: ApplyGuardrailResponse
|
|
2307
|
+
) => any;
|
|
2079
2308
|
export declare const GuardrailConverseImageSourceFilterSensitiveLog: (
|
|
2080
2309
|
obj: GuardrailConverseImageSource
|
|
2081
2310
|
) => any;
|
|
@@ -2102,6 +2331,12 @@ export declare const ConverseRequestFilterSensitiveLog: (
|
|
|
2102
2331
|
export declare const ConverseOutputFilterSensitiveLog: (
|
|
2103
2332
|
obj: ConverseOutput
|
|
2104
2333
|
) => any;
|
|
2334
|
+
export declare const GuardrailTraceAssessmentFilterSensitiveLog: (
|
|
2335
|
+
obj: GuardrailTraceAssessment
|
|
2336
|
+
) => any;
|
|
2337
|
+
export declare const ConverseTraceFilterSensitiveLog: (
|
|
2338
|
+
obj: ConverseTrace
|
|
2339
|
+
) => any;
|
|
2105
2340
|
export declare const ConverseResponseFilterSensitiveLog: (
|
|
2106
2341
|
obj: ConverseResponse
|
|
2107
2342
|
) => any;
|
|
@@ -2117,6 +2352,12 @@ export declare const ContentBlockDeltaFilterSensitiveLog: (
|
|
|
2117
2352
|
export declare const ContentBlockDeltaEventFilterSensitiveLog: (
|
|
2118
2353
|
obj: ContentBlockDeltaEvent
|
|
2119
2354
|
) => any;
|
|
2355
|
+
export declare const ConverseStreamTraceFilterSensitiveLog: (
|
|
2356
|
+
obj: ConverseStreamTrace
|
|
2357
|
+
) => any;
|
|
2358
|
+
export declare const ConverseStreamMetadataEventFilterSensitiveLog: (
|
|
2359
|
+
obj: ConverseStreamMetadataEvent
|
|
2360
|
+
) => any;
|
|
2120
2361
|
export declare const ConverseStreamOutputFilterSensitiveLog: (
|
|
2121
2362
|
obj: ConverseStreamOutput
|
|
2122
2363
|
) => any;
|
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.
|
|
4
|
+
"version": "3.861.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",
|