@aws-sdk/client-bedrock 3.995.0 → 3.996.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist-cjs/index.js +21 -18
  2. package/dist-cjs/schemas/schemas_0.js +220 -49
  3. package/dist-es/models/enums.js +4 -0
  4. package/dist-es/schemas/schemas_0.js +209 -38
  5. package/dist-types/commands/CreateInferenceProfileCommand.d.ts +1 -1
  6. package/dist-types/commands/GetAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +1 -1
  7. package/dist-types/commands/GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand.d.ts +85 -1
  8. package/dist-types/commands/GetGuardrailCommand.d.ts +2 -1
  9. package/dist-types/commands/ListAutomatedReasoningPolicyBuildWorkflowsCommand.d.ts +1 -1
  10. package/dist-types/commands/ListGuardrailsCommand.d.ts +1 -1
  11. package/dist-types/commands/StartAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +11 -1
  12. package/dist-types/commands/UpdateGuardrailCommand.d.ts +1 -1
  13. package/dist-types/models/enums.d.ts +4 -0
  14. package/dist-types/models/models_0.d.ts +447 -533
  15. package/dist-types/models/models_1.d.ts +506 -2
  16. package/dist-types/schemas/schemas_0.d.ts +14 -0
  17. package/dist-types/ts3.4/commands/CreateInferenceProfileCommand.d.ts +1 -1
  18. package/dist-types/ts3.4/commands/GetGuardrailCommand.d.ts +2 -1
  19. package/dist-types/ts3.4/commands/ListGuardrailsCommand.d.ts +1 -1
  20. package/dist-types/ts3.4/commands/UpdateGuardrailCommand.d.ts +1 -1
  21. package/dist-types/ts3.4/models/enums.d.ts +4 -0
  22. package/dist-types/ts3.4/models/models_0.d.ts +178 -131
  23. package/dist-types/ts3.4/models/models_1.d.ts +147 -0
  24. package/dist-types/ts3.4/schemas/schemas_0.d.ts +14 -0
  25. package/package.json +7 -7
@@ -39,7 +39,8 @@ declare const GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand_base:
39
39
  * const input = { // GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest
40
40
  * policyArn: "STRING_VALUE", // required
41
41
  * buildWorkflowId: "STRING_VALUE", // required
42
- * assetType: "BUILD_LOG" || "QUALITY_REPORT" || "POLICY_DEFINITION" || "GENERATED_TEST_CASES" || "POLICY_SCENARIOS", // required
42
+ * assetType: "BUILD_LOG" || "QUALITY_REPORT" || "POLICY_DEFINITION" || "GENERATED_TEST_CASES" || "POLICY_SCENARIOS" || "FIDELITY_REPORT" || "ASSET_MANIFEST" || "SOURCE_DOCUMENT", // required
43
+ * assetId: "STRING_VALUE",
43
44
  * };
44
45
  * const command = new GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand(input);
45
46
  * const response = await client.send(command);
@@ -283,6 +284,89 @@ declare const GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand_base:
283
284
  * // },
284
285
  * // ],
285
286
  * // },
287
+ * // assetManifest: { // AutomatedReasoningPolicyBuildResultAssetManifest
288
+ * // entries: [ // AutomatedReasoningPolicyBuildResultAssetManifestList // required
289
+ * // { // AutomatedReasoningPolicyBuildResultAssetManifestEntry
290
+ * // assetType: "BUILD_LOG" || "QUALITY_REPORT" || "POLICY_DEFINITION" || "GENERATED_TEST_CASES" || "POLICY_SCENARIOS" || "FIDELITY_REPORT" || "ASSET_MANIFEST" || "SOURCE_DOCUMENT", // required
291
+ * // assetName: "STRING_VALUE",
292
+ * // assetId: "STRING_VALUE",
293
+ * // },
294
+ * // ],
295
+ * // },
296
+ * // document: { // AutomatedReasoningPolicySourceDocument
297
+ * // document: new Uint8Array(), // required
298
+ * // documentContentType: "pdf" || "txt", // required
299
+ * // documentName: "STRING_VALUE", // required
300
+ * // documentDescription: "STRING_VALUE",
301
+ * // documentHash: "STRING_VALUE", // required
302
+ * // },
303
+ * // fidelityReport: { // AutomatedReasoningPolicyFidelityReport
304
+ * // coverageScore: Number("double"), // required
305
+ * // accuracyScore: Number("double"), // required
306
+ * // ruleReports: { // AutomatedReasoningPolicyRuleReportMap // required
307
+ * // "<keys>": { // AutomatedReasoningPolicyRuleReport
308
+ * // rule: "STRING_VALUE", // required
309
+ * // groundingStatements: [ // AutomatedReasoningPolicyStatementReferenceList
310
+ * // { // AutomatedReasoningPolicyStatementReference
311
+ * // documentId: "STRING_VALUE", // required
312
+ * // statementId: "STRING_VALUE", // required
313
+ * // },
314
+ * // ],
315
+ * // groundingJustifications: [ // AutomatedReasoningPolicyJustificationList
316
+ * // "STRING_VALUE",
317
+ * // ],
318
+ * // accuracyScore: Number("double"),
319
+ * // accuracyJustification: "STRING_VALUE",
320
+ * // },
321
+ * // },
322
+ * // variableReports: { // AutomatedReasoningPolicyVariableReportMap // required
323
+ * // "<keys>": { // AutomatedReasoningPolicyVariableReport
324
+ * // policyVariable: "STRING_VALUE", // required
325
+ * // groundingStatements: [
326
+ * // {
327
+ * // documentId: "STRING_VALUE", // required
328
+ * // statementId: "STRING_VALUE", // required
329
+ * // },
330
+ * // ],
331
+ * // groundingJustifications: [
332
+ * // "STRING_VALUE",
333
+ * // ],
334
+ * // accuracyScore: Number("double"),
335
+ * // accuracyJustification: "STRING_VALUE",
336
+ * // },
337
+ * // },
338
+ * // documentSources: [ // AutomatedReasoningPolicyReportSourceDocumentList // required
339
+ * // { // AutomatedReasoningPolicyReportSourceDocument
340
+ * // documentName: "STRING_VALUE", // required
341
+ * // documentHash: "STRING_VALUE", // required
342
+ * // documentId: "STRING_VALUE", // required
343
+ * // atomicStatements: [ // AutomatedReasoningPolicyAtomicStatementList // required
344
+ * // { // AutomatedReasoningPolicyAtomicStatement
345
+ * // id: "STRING_VALUE", // required
346
+ * // text: "STRING_VALUE", // required
347
+ * // location: { // AutomatedReasoningPolicyStatementLocation
348
+ * // lines: [ // AutomatedReasoningPolicyLineNumberList // required
349
+ * // Number("int"),
350
+ * // ],
351
+ * // },
352
+ * // },
353
+ * // ],
354
+ * // documentContent: [ // AutomatedReasoningPolicyAnnotatedChunkList // required
355
+ * // { // AutomatedReasoningPolicyAnnotatedChunk
356
+ * // pageNumber: Number("int"),
357
+ * // content: [ // AutomatedReasoningPolicyAnnotatedContentList // required
358
+ * // { // AutomatedReasoningPolicyAnnotatedContent Union: only one key present
359
+ * // line: { // AutomatedReasoningPolicyAnnotatedLine
360
+ * // lineNumber: Number("int"),
361
+ * // lineText: "STRING_VALUE",
362
+ * // },
363
+ * // },
364
+ * // ],
365
+ * // },
366
+ * // ],
367
+ * // },
368
+ * // ],
369
+ * // },
286
370
  * // },
287
371
  * // };
288
372
  *
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
4
- import type { GetGuardrailRequest, GetGuardrailResponse } from "../models/models_0";
4
+ import type { GetGuardrailRequest } from "../models/models_0";
5
+ import type { GetGuardrailResponse } from "../models/models_1";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -49,7 +49,7 @@ declare const ListAutomatedReasoningPolicyBuildWorkflowsCommand_base: {
49
49
  * // policyArn: "STRING_VALUE", // required
50
50
  * // buildWorkflowId: "STRING_VALUE", // required
51
51
  * // status: "SCHEDULED" || "CANCEL_REQUESTED" || "PREPROCESSING" || "BUILDING" || "TESTING" || "COMPLETED" || "FAILED" || "CANCELLED", // required
52
- * // buildWorkflowType: "INGEST_CONTENT" || "REFINE_POLICY" || "IMPORT_POLICY", // required
52
+ * // buildWorkflowType: "INGEST_CONTENT" || "REFINE_POLICY" || "IMPORT_POLICY" || "GENERATE_FIDELITY_REPORT", // required
53
53
  * // createdAt: new Date("TIMESTAMP"), // required
54
54
  * // updatedAt: new Date("TIMESTAMP"), // required
55
55
  * // },
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
4
- import type { ListGuardrailsRequest, ListGuardrailsResponse } from "../models/models_0";
4
+ import type { ListGuardrailsRequest, ListGuardrailsResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -38,7 +38,7 @@ declare const StartAutomatedReasoningPolicyBuildWorkflowCommand_base: {
38
38
  * const client = new BedrockClient(config);
39
39
  * const input = { // StartAutomatedReasoningPolicyBuildWorkflowRequest
40
40
  * policyArn: "STRING_VALUE", // required
41
- * buildWorkflowType: "INGEST_CONTENT" || "REFINE_POLICY" || "IMPORT_POLICY", // required
41
+ * buildWorkflowType: "INGEST_CONTENT" || "REFINE_POLICY" || "IMPORT_POLICY" || "GENERATE_FIDELITY_REPORT", // required
42
42
  * clientRequestToken: "STRING_VALUE",
43
43
  * sourceContent: { // AutomatedReasoningPolicyBuildWorkflowSource
44
44
  * policyDefinition: { // AutomatedReasoningPolicyDefinition
@@ -161,6 +161,16 @@ declare const StartAutomatedReasoningPolicyBuildWorkflowCommand_base: {
161
161
  * },
162
162
  * ],
163
163
  * },
164
+ * generateFidelityReportContent: { // AutomatedReasoningPolicyGenerateFidelityReportContent Union: only one key present
165
+ * documents: [ // AutomatedReasoningPolicyGenerateFidelityReportDocumentList
166
+ * {
167
+ * document: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
168
+ * documentContentType: "pdf" || "txt", // required
169
+ * documentName: "STRING_VALUE", // required
170
+ * documentDescription: "STRING_VALUE",
171
+ * },
172
+ * ],
173
+ * },
164
174
  * },
165
175
  * },
166
176
  * };
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
4
- import type { UpdateGuardrailRequest, UpdateGuardrailResponse } from "../models/models_0";
4
+ import type { UpdateGuardrailRequest, UpdateGuardrailResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -60,6 +60,7 @@ export type AutomatedReasoningCheckResult = (typeof AutomatedReasoningCheckResul
60
60
  * @enum
61
61
  */
62
62
  export declare const AutomatedReasoningPolicyBuildWorkflowType: {
63
+ readonly GENERATE_FIDELITY_REPORT: "GENERATE_FIDELITY_REPORT";
63
64
  readonly IMPORT_POLICY: "IMPORT_POLICY";
64
65
  readonly INGEST_CONTENT: "INGEST_CONTENT";
65
66
  readonly REFINE_POLICY: "REFINE_POLICY";
@@ -103,11 +104,14 @@ export type AutomatedReasoningPolicyBuildWorkflowStatus = (typeof AutomatedReaso
103
104
  * @enum
104
105
  */
105
106
  export declare const AutomatedReasoningPolicyBuildResultAssetType: {
107
+ readonly ASSET_MANIFEST: "ASSET_MANIFEST";
106
108
  readonly BUILD_LOG: "BUILD_LOG";
109
+ readonly FIDELITY_REPORT: "FIDELITY_REPORT";
107
110
  readonly GENERATED_TEST_CASES: "GENERATED_TEST_CASES";
108
111
  readonly POLICY_DEFINITION: "POLICY_DEFINITION";
109
112
  readonly POLICY_SCENARIOS: "POLICY_SCENARIOS";
110
113
  readonly QUALITY_REPORT: "QUALITY_REPORT";
114
+ readonly SOURCE_DOCUMENT: "SOURCE_DOCUMENT";
111
115
  };
112
116
  /**
113
117
  * @public