@aws-sdk/client-bedrock 3.943.0 → 3.946.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 (163) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +306 -1079
  3. package/dist-cjs/runtimeConfig.browser.js +2 -2
  4. package/dist-cjs/runtimeConfig.js +3 -4
  5. package/dist-es/Bedrock.js +2 -0
  6. package/dist-es/BedrockClient.js +2 -2
  7. package/dist-es/commands/UpdateCustomModelDeploymentCommand.js +16 -0
  8. package/dist-es/commands/index.js +1 -0
  9. package/dist-es/models/enums.js +11 -0
  10. package/dist-es/runtimeConfig.browser.js +2 -2
  11. package/dist-es/runtimeConfig.js +2 -3
  12. package/dist-es/schemas/schemas_0.js +279 -1079
  13. package/dist-types/Bedrock.d.ts +8 -1
  14. package/dist-types/BedrockClient.d.ts +13 -12
  15. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
  16. package/dist-types/auth/httpAuthSchemeProvider.d.ts +2 -2
  17. package/dist-types/commands/BatchDeleteEvaluationJobCommand.d.ts +3 -3
  18. package/dist-types/commands/CancelAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +3 -3
  19. package/dist-types/commands/CreateAutomatedReasoningPolicyCommand.d.ts +3 -3
  20. package/dist-types/commands/CreateAutomatedReasoningPolicyTestCaseCommand.d.ts +3 -3
  21. package/dist-types/commands/CreateAutomatedReasoningPolicyVersionCommand.d.ts +3 -3
  22. package/dist-types/commands/CreateCustomModelCommand.d.ts +3 -3
  23. package/dist-types/commands/CreateCustomModelDeploymentCommand.d.ts +3 -3
  24. package/dist-types/commands/CreateEvaluationJobCommand.d.ts +4 -4
  25. package/dist-types/commands/CreateFoundationModelAgreementCommand.d.ts +3 -3
  26. package/dist-types/commands/CreateGuardrailCommand.d.ts +3 -3
  27. package/dist-types/commands/CreateGuardrailVersionCommand.d.ts +3 -3
  28. package/dist-types/commands/CreateInferenceProfileCommand.d.ts +3 -3
  29. package/dist-types/commands/CreateMarketplaceModelEndpointCommand.d.ts +3 -3
  30. package/dist-types/commands/CreateModelCopyJobCommand.d.ts +3 -3
  31. package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +21 -4
  32. package/dist-types/commands/CreateModelImportJobCommand.d.ts +3 -3
  33. package/dist-types/commands/CreateModelInvocationJobCommand.d.ts +3 -3
  34. package/dist-types/commands/CreatePromptRouterCommand.d.ts +3 -3
  35. package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +3 -3
  36. package/dist-types/commands/DeleteAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +3 -3
  37. package/dist-types/commands/DeleteAutomatedReasoningPolicyCommand.d.ts +3 -3
  38. package/dist-types/commands/DeleteAutomatedReasoningPolicyTestCaseCommand.d.ts +3 -3
  39. package/dist-types/commands/DeleteCustomModelCommand.d.ts +3 -3
  40. package/dist-types/commands/DeleteCustomModelDeploymentCommand.d.ts +3 -3
  41. package/dist-types/commands/DeleteEnforcedGuardrailConfigurationCommand.d.ts +3 -3
  42. package/dist-types/commands/DeleteFoundationModelAgreementCommand.d.ts +3 -3
  43. package/dist-types/commands/DeleteGuardrailCommand.d.ts +3 -3
  44. package/dist-types/commands/DeleteImportedModelCommand.d.ts +3 -3
  45. package/dist-types/commands/DeleteInferenceProfileCommand.d.ts +4 -3
  46. package/dist-types/commands/DeleteMarketplaceModelEndpointCommand.d.ts +3 -3
  47. package/dist-types/commands/DeleteModelInvocationLoggingConfigurationCommand.d.ts +3 -3
  48. package/dist-types/commands/DeletePromptRouterCommand.d.ts +3 -3
  49. package/dist-types/commands/DeleteProvisionedModelThroughputCommand.d.ts +3 -3
  50. package/dist-types/commands/DeregisterMarketplaceModelEndpointCommand.d.ts +3 -3
  51. package/dist-types/commands/ExportAutomatedReasoningPolicyVersionCommand.d.ts +3 -3
  52. package/dist-types/commands/GetAutomatedReasoningPolicyAnnotationsCommand.d.ts +3 -3
  53. package/dist-types/commands/GetAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +3 -3
  54. package/dist-types/commands/GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand.d.ts +3 -3
  55. package/dist-types/commands/GetAutomatedReasoningPolicyCommand.d.ts +3 -3
  56. package/dist-types/commands/GetAutomatedReasoningPolicyNextScenarioCommand.d.ts +3 -3
  57. package/dist-types/commands/GetAutomatedReasoningPolicyTestCaseCommand.d.ts +3 -3
  58. package/dist-types/commands/GetAutomatedReasoningPolicyTestResultCommand.d.ts +3 -3
  59. package/dist-types/commands/GetCustomModelCommand.d.ts +21 -4
  60. package/dist-types/commands/GetCustomModelDeploymentCommand.d.ts +7 -3
  61. package/dist-types/commands/GetEvaluationJobCommand.d.ts +4 -4
  62. package/dist-types/commands/GetFoundationModelAvailabilityCommand.d.ts +3 -3
  63. package/dist-types/commands/GetFoundationModelCommand.d.ts +3 -3
  64. package/dist-types/commands/GetGuardrailCommand.d.ts +3 -3
  65. package/dist-types/commands/GetImportedModelCommand.d.ts +3 -3
  66. package/dist-types/commands/GetInferenceProfileCommand.d.ts +3 -3
  67. package/dist-types/commands/GetMarketplaceModelEndpointCommand.d.ts +3 -3
  68. package/dist-types/commands/GetModelCopyJobCommand.d.ts +3 -3
  69. package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +21 -4
  70. package/dist-types/commands/GetModelImportJobCommand.d.ts +3 -3
  71. package/dist-types/commands/GetModelInvocationJobCommand.d.ts +3 -3
  72. package/dist-types/commands/GetModelInvocationLoggingConfigurationCommand.d.ts +3 -3
  73. package/dist-types/commands/GetPromptRouterCommand.d.ts +3 -3
  74. package/dist-types/commands/GetProvisionedModelThroughputCommand.d.ts +3 -3
  75. package/dist-types/commands/GetUseCaseForModelAccessCommand.d.ts +3 -3
  76. package/dist-types/commands/ListAutomatedReasoningPoliciesCommand.d.ts +3 -3
  77. package/dist-types/commands/ListAutomatedReasoningPolicyBuildWorkflowsCommand.d.ts +3 -3
  78. package/dist-types/commands/ListAutomatedReasoningPolicyTestCasesCommand.d.ts +3 -3
  79. package/dist-types/commands/ListAutomatedReasoningPolicyTestResultsCommand.d.ts +3 -3
  80. package/dist-types/commands/ListCustomModelDeploymentsCommand.d.ts +3 -3
  81. package/dist-types/commands/ListCustomModelsCommand.d.ts +4 -4
  82. package/dist-types/commands/ListEnforcedGuardrailsConfigurationCommand.d.ts +3 -3
  83. package/dist-types/commands/ListEvaluationJobsCommand.d.ts +3 -3
  84. package/dist-types/commands/ListFoundationModelAgreementOffersCommand.d.ts +3 -3
  85. package/dist-types/commands/ListFoundationModelsCommand.d.ts +3 -3
  86. package/dist-types/commands/ListGuardrailsCommand.d.ts +3 -3
  87. package/dist-types/commands/ListImportedModelsCommand.d.ts +3 -3
  88. package/dist-types/commands/ListInferenceProfilesCommand.d.ts +3 -3
  89. package/dist-types/commands/ListMarketplaceModelEndpointsCommand.d.ts +3 -3
  90. package/dist-types/commands/ListModelCopyJobsCommand.d.ts +3 -3
  91. package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +4 -4
  92. package/dist-types/commands/ListModelImportJobsCommand.d.ts +3 -3
  93. package/dist-types/commands/ListModelInvocationJobsCommand.d.ts +3 -3
  94. package/dist-types/commands/ListPromptRoutersCommand.d.ts +3 -3
  95. package/dist-types/commands/ListProvisionedModelThroughputsCommand.d.ts +3 -3
  96. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -3
  97. package/dist-types/commands/PutEnforcedGuardrailConfigurationCommand.d.ts +3 -3
  98. package/dist-types/commands/PutModelInvocationLoggingConfigurationCommand.d.ts +3 -3
  99. package/dist-types/commands/PutUseCaseForModelAccessCommand.d.ts +3 -3
  100. package/dist-types/commands/RegisterMarketplaceModelEndpointCommand.d.ts +3 -3
  101. package/dist-types/commands/StartAutomatedReasoningPolicyBuildWorkflowCommand.d.ts +3 -3
  102. package/dist-types/commands/StartAutomatedReasoningPolicyTestWorkflowCommand.d.ts +3 -3
  103. package/dist-types/commands/StopEvaluationJobCommand.d.ts +3 -3
  104. package/dist-types/commands/StopModelCustomizationJobCommand.d.ts +3 -3
  105. package/dist-types/commands/StopModelInvocationJobCommand.d.ts +3 -3
  106. package/dist-types/commands/TagResourceCommand.d.ts +3 -3
  107. package/dist-types/commands/UntagResourceCommand.d.ts +3 -3
  108. package/dist-types/commands/UpdateAutomatedReasoningPolicyAnnotationsCommand.d.ts +3 -3
  109. package/dist-types/commands/UpdateAutomatedReasoningPolicyCommand.d.ts +3 -3
  110. package/dist-types/commands/UpdateAutomatedReasoningPolicyTestCaseCommand.d.ts +3 -3
  111. package/dist-types/commands/UpdateCustomModelDeploymentCommand.d.ts +90 -0
  112. package/dist-types/commands/UpdateGuardrailCommand.d.ts +3 -3
  113. package/dist-types/commands/UpdateMarketplaceModelEndpointCommand.d.ts +3 -3
  114. package/dist-types/commands/UpdateProvisionedModelThroughputCommand.d.ts +3 -3
  115. package/dist-types/commands/index.d.ts +1 -0
  116. package/dist-types/endpoint/EndpointParameters.d.ts +13 -1
  117. package/dist-types/endpoint/endpointResolver.d.ts +5 -2
  118. package/dist-types/extensionConfiguration.d.ts +4 -4
  119. package/dist-types/models/BedrockServiceException.d.ts +1 -1
  120. package/dist-types/models/enums.d.ts +27 -0
  121. package/dist-types/models/errors.d.ts +1 -1
  122. package/dist-types/models/models_0.d.ts +166 -164
  123. package/dist-types/models/models_1.d.ts +164 -2
  124. package/dist-types/pagination/Interfaces.d.ts +1 -1
  125. package/dist-types/pagination/ListAutomatedReasoningPoliciesPaginator.d.ts +1 -1
  126. package/dist-types/pagination/ListAutomatedReasoningPolicyBuildWorkflowsPaginator.d.ts +1 -1
  127. package/dist-types/pagination/ListAutomatedReasoningPolicyTestCasesPaginator.d.ts +1 -1
  128. package/dist-types/pagination/ListAutomatedReasoningPolicyTestResultsPaginator.d.ts +1 -1
  129. package/dist-types/pagination/ListCustomModelDeploymentsPaginator.d.ts +1 -1
  130. package/dist-types/pagination/ListCustomModelsPaginator.d.ts +1 -1
  131. package/dist-types/pagination/ListEnforcedGuardrailsConfigurationPaginator.d.ts +1 -1
  132. package/dist-types/pagination/ListEvaluationJobsPaginator.d.ts +1 -1
  133. package/dist-types/pagination/ListGuardrailsPaginator.d.ts +1 -1
  134. package/dist-types/pagination/ListImportedModelsPaginator.d.ts +1 -1
  135. package/dist-types/pagination/ListInferenceProfilesPaginator.d.ts +1 -1
  136. package/dist-types/pagination/ListMarketplaceModelEndpointsPaginator.d.ts +1 -1
  137. package/dist-types/pagination/ListModelCopyJobsPaginator.d.ts +1 -1
  138. package/dist-types/pagination/ListModelCustomizationJobsPaginator.d.ts +1 -1
  139. package/dist-types/pagination/ListModelImportJobsPaginator.d.ts +1 -1
  140. package/dist-types/pagination/ListModelInvocationJobsPaginator.d.ts +1 -1
  141. package/dist-types/pagination/ListPromptRoutersPaginator.d.ts +1 -1
  142. package/dist-types/pagination/ListProvisionedModelThroughputsPaginator.d.ts +1 -1
  143. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  144. package/dist-types/runtimeConfig.d.ts +2 -2
  145. package/dist-types/runtimeConfig.native.d.ts +1 -1
  146. package/dist-types/runtimeConfig.shared.d.ts +2 -2
  147. package/dist-types/runtimeExtensions.d.ts +1 -1
  148. package/dist-types/schemas/schemas_0.d.ts +9 -1
  149. package/dist-types/ts3.4/Bedrock.d.ts +17 -0
  150. package/dist-types/ts3.4/BedrockClient.d.ts +9 -3
  151. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  152. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +1 -1
  153. package/dist-types/ts3.4/commands/DeleteInferenceProfileCommand.d.ts +2 -4
  154. package/dist-types/ts3.4/commands/GetInferenceProfileCommand.d.ts +1 -1
  155. package/dist-types/ts3.4/commands/ListInferenceProfilesCommand.d.ts +1 -1
  156. package/dist-types/ts3.4/commands/UpdateCustomModelDeploymentCommand.d.ts +51 -0
  157. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  158. package/dist-types/ts3.4/models/BedrockServiceException.d.ts +1 -1
  159. package/dist-types/ts3.4/models/enums.d.ts +15 -0
  160. package/dist-types/ts3.4/models/models_0.d.ts +57 -39
  161. package/dist-types/ts3.4/models/models_1.d.ts +45 -5
  162. package/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -0
  163. package/package.json +14 -13
@@ -172,6 +172,7 @@ export declare var CustomMetricBedrockEvaluatorModel: StaticStructureSchema;
172
172
  export declare var CustomMetricDefinition: StaticStructureSchema;
173
173
  export declare var CustomMetricEvaluatorModelConfig: StaticStructureSchema;
174
174
  export declare var CustomModelDeploymentSummary: StaticStructureSchema;
175
+ export declare var CustomModelDeploymentUpdateDetails: StaticStructureSchema;
175
176
  export declare var CustomModelSummary: StaticStructureSchema;
176
177
  export declare var CustomModelUnits: StaticStructureSchema;
177
178
  export declare var DataProcessingDetails: StaticStructureSchema;
@@ -324,6 +325,7 @@ export declare var KbInferenceConfig: StaticStructureSchema;
324
325
  export declare var KnowledgeBaseRetrievalConfiguration: StaticStructureSchema;
325
326
  export declare var KnowledgeBaseRetrieveAndGenerateConfiguration: StaticStructureSchema;
326
327
  export declare var KnowledgeBaseVectorSearchConfiguration: StaticStructureSchema;
328
+ export declare var LambdaGraderConfig: StaticStructureSchema;
327
329
  export declare var LegalTerm: StaticStructureSchema;
328
330
  export declare var ListAutomatedReasoningPoliciesRequest: StaticStructureSchema;
329
331
  export declare var ListAutomatedReasoningPoliciesResponse: StaticStructureSchema;
@@ -402,6 +404,8 @@ export declare var ResourceInUseException: StaticErrorSchema;
402
404
  export declare var ResourceNotFoundException: StaticErrorSchema;
403
405
  export declare var RetrieveAndGenerateConfiguration: StaticStructureSchema;
404
406
  export declare var RetrieveConfig: StaticStructureSchema;
407
+ export declare var RFTConfig: StaticStructureSchema;
408
+ export declare var RFTHyperParameters: StaticStructureSchema;
405
409
  export declare var RoutingCriteria: StaticStructureSchema;
406
410
  export declare var S3Config: StaticStructureSchema;
407
411
  export declare var S3DataSource: StaticStructureSchema;
@@ -440,6 +444,8 @@ export declare var UpdateAutomatedReasoningPolicyRequest: StaticStructureSchema;
440
444
  export declare var UpdateAutomatedReasoningPolicyResponse: StaticStructureSchema;
441
445
  export declare var UpdateAutomatedReasoningPolicyTestCaseRequest: StaticStructureSchema;
442
446
  export declare var UpdateAutomatedReasoningPolicyTestCaseResponse: StaticStructureSchema;
447
+ export declare var UpdateCustomModelDeploymentRequest: StaticStructureSchema;
448
+ export declare var UpdateCustomModelDeploymentResponse: StaticStructureSchema;
443
449
  export declare var UpdateGuardrailRequest: StaticStructureSchema;
444
450
  export declare var UpdateGuardrailResponse: StaticStructureSchema;
445
451
  export declare var UpdateMarketplaceModelEndpointRequest: StaticStructureSchema;
@@ -580,6 +586,7 @@ export declare var EvaluationInferenceConfig: StaticStructureSchema;
580
586
  export declare var EvaluationModelConfig: StaticStructureSchema;
581
587
  export declare var EvaluationPrecomputedRagSourceConfig: StaticStructureSchema;
582
588
  export declare var EvaluatorModelConfig: StaticStructureSchema;
589
+ export declare var GraderConfig: StaticStructureSchema;
583
590
  export declare var InferenceProfileModelSource: StaticStructureSchema;
584
591
  export declare var InvocationLogSource: StaticStructureSchema;
585
592
  export declare var KnowledgeBaseConfig: StaticStructureSchema;
@@ -685,6 +692,7 @@ export declare var UntagResource: StaticOperationSchema;
685
692
  export declare var UpdateAutomatedReasoningPolicy: StaticOperationSchema;
686
693
  export declare var UpdateAutomatedReasoningPolicyAnnotations: StaticOperationSchema;
687
694
  export declare var UpdateAutomatedReasoningPolicyTestCase: StaticOperationSchema;
695
+ export declare var UpdateCustomModelDeployment: StaticOperationSchema;
688
696
  export declare var UpdateGuardrail: StaticOperationSchema;
689
697
  export declare var UpdateMarketplaceModelEndpoint: StaticOperationSchema;
690
698
  export declare var UpdateProvisionedModelThroughput: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock",
3
3
  "description": "AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",
4
- "version": "3.943.0",
4
+ "version": "3.946.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",
@@ -11,7 +11,8 @@
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
12
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
13
13
  "extract:docs": "api-extractor run --local",
14
- "generate:client": "node ../../scripts/generate-clients/single-service --solo bedrock"
14
+ "generate:client": "node ../../scripts/generate-clients/single-service --solo bedrock",
15
+ "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
15
16
  },
16
17
  "main": "./dist-cjs/index.js",
17
18
  "types": "./dist-types/index.d.ts",
@@ -20,39 +21,39 @@
20
21
  "dependencies": {
21
22
  "@aws-crypto/sha256-browser": "5.2.0",
22
23
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.943.0",
24
- "@aws-sdk/credential-provider-node": "3.943.0",
24
+ "@aws-sdk/core": "3.946.0",
25
+ "@aws-sdk/credential-provider-node": "3.946.0",
25
26
  "@aws-sdk/middleware-host-header": "3.936.0",
26
27
  "@aws-sdk/middleware-logger": "3.936.0",
27
28
  "@aws-sdk/middleware-recursion-detection": "3.936.0",
28
- "@aws-sdk/middleware-user-agent": "3.943.0",
29
+ "@aws-sdk/middleware-user-agent": "3.946.0",
29
30
  "@aws-sdk/region-config-resolver": "3.936.0",
30
- "@aws-sdk/token-providers": "3.943.0",
31
+ "@aws-sdk/token-providers": "3.946.0",
31
32
  "@aws-sdk/types": "3.936.0",
32
33
  "@aws-sdk/util-endpoints": "3.936.0",
33
34
  "@aws-sdk/util-user-agent-browser": "3.936.0",
34
- "@aws-sdk/util-user-agent-node": "3.943.0",
35
+ "@aws-sdk/util-user-agent-node": "3.946.0",
35
36
  "@smithy/config-resolver": "^4.4.3",
36
- "@smithy/core": "^3.18.5",
37
+ "@smithy/core": "^3.18.7",
37
38
  "@smithy/fetch-http-handler": "^5.3.6",
38
39
  "@smithy/hash-node": "^4.2.5",
39
40
  "@smithy/invalid-dependency": "^4.2.5",
40
41
  "@smithy/middleware-content-length": "^4.2.5",
41
- "@smithy/middleware-endpoint": "^4.3.12",
42
- "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-endpoint": "^4.3.14",
43
+ "@smithy/middleware-retry": "^4.4.14",
43
44
  "@smithy/middleware-serde": "^4.2.6",
44
45
  "@smithy/middleware-stack": "^4.2.5",
45
46
  "@smithy/node-config-provider": "^4.3.5",
46
47
  "@smithy/node-http-handler": "^4.4.5",
47
48
  "@smithy/protocol-http": "^5.3.5",
48
- "@smithy/smithy-client": "^4.9.8",
49
+ "@smithy/smithy-client": "^4.9.10",
49
50
  "@smithy/types": "^4.9.0",
50
51
  "@smithy/url-parser": "^4.2.5",
51
52
  "@smithy/util-base64": "^4.3.0",
52
53
  "@smithy/util-body-length-browser": "^4.2.0",
53
54
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.11",
55
- "@smithy/util-defaults-mode-node": "^4.2.14",
55
+ "@smithy/util-defaults-mode-browser": "^4.3.13",
56
+ "@smithy/util-defaults-mode-node": "^4.2.16",
56
57
  "@smithy/util-endpoints": "^3.2.5",
57
58
  "@smithy/util-middleware": "^4.2.5",
58
59
  "@smithy/util-retry": "^4.2.5",