@aws-sdk/client-bedrock-agentcore 3.1044.0 → 3.1046.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/README.md +77 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +4 -4
- package/dist-cjs/endpoint/bdd.js +2 -2
- package/dist-cjs/endpoint/endpointResolver.js +4 -4
- package/dist-cjs/index.js +343 -127
- package/dist-cjs/models/BedrockAgentCoreServiceException.js +3 -3
- package/dist-cjs/runtimeConfig.browser.js +14 -16
- package/dist-cjs/runtimeConfig.js +20 -24
- package/dist-cjs/runtimeConfig.shared.js +10 -12
- package/dist-cjs/schemas/schemas_0.js +458 -33
- package/dist-es/BedrockAgentCore.js +27 -1
- package/dist-es/BedrockAgentCoreClient.js +6 -6
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/commands/BatchCreateMemoryRecordsCommand.js +2 -2
- package/dist-es/commands/BatchDeleteMemoryRecordsCommand.js +2 -2
- package/dist-es/commands/BatchUpdateMemoryRecordsCommand.js +2 -2
- package/dist-es/commands/CompleteResourceTokenAuthCommand.js +2 -2
- package/dist-es/commands/CreateABTestCommand.js +2 -2
- package/dist-es/commands/CreateEventCommand.js +2 -2
- package/dist-es/commands/CreatePaymentInstrumentCommand.js +16 -0
- package/dist-es/commands/CreatePaymentSessionCommand.js +16 -0
- package/dist-es/commands/DeleteABTestCommand.js +2 -2
- package/dist-es/commands/DeleteBatchEvaluationCommand.js +2 -2
- package/dist-es/commands/DeleteEventCommand.js +2 -2
- package/dist-es/commands/DeleteMemoryRecordCommand.js +2 -2
- package/dist-es/commands/DeletePaymentInstrumentCommand.js +16 -0
- package/dist-es/commands/DeletePaymentSessionCommand.js +16 -0
- package/dist-es/commands/DeleteRecommendationCommand.js +2 -2
- package/dist-es/commands/EvaluateCommand.js +2 -2
- package/dist-es/commands/GetABTestCommand.js +2 -2
- package/dist-es/commands/GetAgentCardCommand.js +2 -2
- package/dist-es/commands/GetBatchEvaluationCommand.js +2 -2
- package/dist-es/commands/GetBrowserSessionCommand.js +2 -2
- package/dist-es/commands/GetCodeInterpreterSessionCommand.js +2 -2
- package/dist-es/commands/GetEventCommand.js +2 -2
- package/dist-es/commands/GetMemoryRecordCommand.js +2 -2
- package/dist-es/commands/GetPaymentInstrumentBalanceCommand.js +16 -0
- package/dist-es/commands/GetPaymentInstrumentCommand.js +16 -0
- package/dist-es/commands/GetPaymentSessionCommand.js +16 -0
- package/dist-es/commands/GetRecommendationCommand.js +2 -2
- package/dist-es/commands/GetResourceApiKeyCommand.js +2 -2
- package/dist-es/commands/GetResourceOauth2TokenCommand.js +2 -2
- package/dist-es/commands/GetResourcePaymentTokenCommand.js +16 -0
- package/dist-es/commands/GetWorkloadAccessTokenCommand.js +2 -2
- package/dist-es/commands/GetWorkloadAccessTokenForJWTCommand.js +2 -2
- package/dist-es/commands/GetWorkloadAccessTokenForUserIdCommand.js +2 -2
- package/dist-es/commands/InvokeAgentRuntimeCommand.js +2 -2
- package/dist-es/commands/InvokeAgentRuntimeCommandCommand.js +2 -2
- package/dist-es/commands/InvokeBrowserCommand.js +2 -2
- package/dist-es/commands/InvokeCodeInterpreterCommand.js +2 -2
- package/dist-es/commands/InvokeHarnessCommand.js +2 -2
- package/dist-es/commands/ListABTestsCommand.js +2 -2
- package/dist-es/commands/ListActorsCommand.js +2 -2
- package/dist-es/commands/ListBatchEvaluationsCommand.js +2 -2
- package/dist-es/commands/ListBrowserSessionsCommand.js +2 -2
- package/dist-es/commands/ListCodeInterpreterSessionsCommand.js +2 -2
- package/dist-es/commands/ListEventsCommand.js +2 -2
- package/dist-es/commands/ListMemoryExtractionJobsCommand.js +2 -2
- package/dist-es/commands/ListMemoryRecordsCommand.js +2 -2
- package/dist-es/commands/ListPaymentInstrumentsCommand.js +16 -0
- package/dist-es/commands/ListPaymentSessionsCommand.js +16 -0
- package/dist-es/commands/ListRecommendationsCommand.js +2 -2
- package/dist-es/commands/ListSessionsCommand.js +2 -2
- package/dist-es/commands/ProcessPaymentCommand.js +16 -0
- package/dist-es/commands/RetrieveMemoryRecordsCommand.js +2 -2
- package/dist-es/commands/SaveBrowserSessionProfileCommand.js +2 -2
- package/dist-es/commands/SearchRegistryRecordsCommand.js +2 -2
- package/dist-es/commands/StartBatchEvaluationCommand.js +2 -2
- package/dist-es/commands/StartBrowserSessionCommand.js +2 -2
- package/dist-es/commands/StartCodeInterpreterSessionCommand.js +2 -2
- package/dist-es/commands/StartMemoryExtractionJobCommand.js +2 -2
- package/dist-es/commands/StartRecommendationCommand.js +2 -2
- package/dist-es/commands/StopBatchEvaluationCommand.js +2 -2
- package/dist-es/commands/StopBrowserSessionCommand.js +2 -2
- package/dist-es/commands/StopCodeInterpreterSessionCommand.js +2 -2
- package/dist-es/commands/StopRuntimeSessionCommand.js +2 -2
- package/dist-es/commands/UpdateABTestCommand.js +2 -2
- package/dist-es/commands/UpdateBrowserStreamCommand.js +2 -2
- package/dist-es/commands/index.js +11 -0
- package/dist-es/endpoint/bdd.js +1 -1
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/models/BedrockAgentCoreServiceException.js +1 -1
- package/dist-es/models/enums.js +45 -0
- package/dist-es/pagination/ListPaymentInstrumentsPaginator.js +4 -0
- package/dist-es/pagination/ListPaymentSessionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/runtimeConfig.browser.js +5 -7
- package/dist-es/runtimeConfig.js +5 -9
- package/dist-es/runtimeConfig.shared.js +3 -5
- package/dist-es/runtimeExtensions.js +2 -2
- package/dist-es/schemas/schemas_0.js +449 -25
- package/dist-types/BedrockAgentCore.d.ts +91 -0
- package/dist-types/BedrockAgentCoreClient.d.ts +19 -8
- package/dist-types/commands/BatchCreateMemoryRecordsCommand.d.ts +6 -4
- package/dist-types/commands/BatchDeleteMemoryRecordsCommand.d.ts +6 -4
- package/dist-types/commands/BatchUpdateMemoryRecordsCommand.d.ts +6 -4
- package/dist-types/commands/CompleteResourceTokenAuthCommand.d.ts +6 -4
- package/dist-types/commands/CreateABTestCommand.d.ts +6 -4
- package/dist-types/commands/CreateEventCommand.d.ts +6 -4
- package/dist-types/commands/CreatePaymentInstrumentCommand.d.ts +214 -0
- package/dist-types/commands/CreatePaymentSessionCommand.d.ts +124 -0
- package/dist-types/commands/DeleteABTestCommand.d.ts +6 -4
- package/dist-types/commands/DeleteBatchEvaluationCommand.d.ts +6 -4
- package/dist-types/commands/DeleteEventCommand.d.ts +6 -4
- package/dist-types/commands/DeleteMemoryRecordCommand.d.ts +6 -4
- package/dist-types/commands/DeletePaymentInstrumentCommand.d.ts +112 -0
- package/dist-types/commands/DeletePaymentSessionCommand.d.ts +107 -0
- package/dist-types/commands/DeleteRecommendationCommand.d.ts +6 -4
- package/dist-types/commands/EvaluateCommand.d.ts +6 -4
- package/dist-types/commands/GetABTestCommand.d.ts +6 -4
- package/dist-types/commands/GetAgentCardCommand.d.ts +6 -4
- package/dist-types/commands/GetBatchEvaluationCommand.d.ts +6 -4
- package/dist-types/commands/GetBrowserSessionCommand.d.ts +6 -4
- package/dist-types/commands/GetCodeInterpreterSessionCommand.d.ts +6 -4
- package/dist-types/commands/GetEventCommand.d.ts +6 -4
- package/dist-types/commands/GetMemoryRecordCommand.d.ts +6 -4
- package/dist-types/commands/GetPaymentInstrumentBalanceCommand.d.ts +104 -0
- package/dist-types/commands/GetPaymentInstrumentCommand.d.ts +157 -0
- package/dist-types/commands/GetPaymentSessionCommand.d.ts +114 -0
- package/dist-types/commands/GetRecommendationCommand.d.ts +6 -4
- package/dist-types/commands/GetResourceApiKeyCommand.d.ts +6 -4
- package/dist-types/commands/GetResourceOauth2TokenCommand.d.ts +6 -4
- package/dist-types/commands/GetResourcePaymentTokenCommand.d.ts +121 -0
- package/dist-types/commands/GetWorkloadAccessTokenCommand.d.ts +6 -4
- package/dist-types/commands/GetWorkloadAccessTokenForJWTCommand.d.ts +6 -4
- package/dist-types/commands/GetWorkloadAccessTokenForUserIdCommand.d.ts +6 -4
- package/dist-types/commands/InvokeAgentRuntimeCommand.d.ts +6 -4
- package/dist-types/commands/InvokeAgentRuntimeCommandCommand.d.ts +6 -4
- package/dist-types/commands/InvokeBrowserCommand.d.ts +6 -4
- package/dist-types/commands/InvokeCodeInterpreterCommand.d.ts +6 -4
- package/dist-types/commands/InvokeHarnessCommand.d.ts +7 -5
- package/dist-types/commands/ListABTestsCommand.d.ts +6 -4
- package/dist-types/commands/ListActorsCommand.d.ts +6 -4
- package/dist-types/commands/ListBatchEvaluationsCommand.d.ts +6 -4
- package/dist-types/commands/ListBrowserSessionsCommand.d.ts +6 -4
- package/dist-types/commands/ListCodeInterpreterSessionsCommand.d.ts +6 -4
- package/dist-types/commands/ListEventsCommand.d.ts +6 -4
- package/dist-types/commands/ListMemoryExtractionJobsCommand.d.ts +6 -4
- package/dist-types/commands/ListMemoryRecordsCommand.d.ts +6 -4
- package/dist-types/commands/ListPaymentInstrumentsCommand.d.ts +105 -0
- package/dist-types/commands/ListPaymentSessionsCommand.d.ts +102 -0
- package/dist-types/commands/ListRecommendationsCommand.d.ts +6 -4
- package/dist-types/commands/ListSessionsCommand.d.ts +6 -4
- package/dist-types/commands/ProcessPaymentCommand.d.ts +119 -0
- package/dist-types/commands/RetrieveMemoryRecordsCommand.d.ts +7 -5
- package/dist-types/commands/SaveBrowserSessionProfileCommand.d.ts +6 -4
- package/dist-types/commands/SearchRegistryRecordsCommand.d.ts +7 -6
- package/dist-types/commands/StartBatchEvaluationCommand.d.ts +6 -4
- package/dist-types/commands/StartBrowserSessionCommand.d.ts +6 -4
- package/dist-types/commands/StartCodeInterpreterSessionCommand.d.ts +6 -4
- package/dist-types/commands/StartMemoryExtractionJobCommand.d.ts +7 -5
- package/dist-types/commands/StartRecommendationCommand.d.ts +6 -4
- package/dist-types/commands/StopBatchEvaluationCommand.d.ts +6 -4
- package/dist-types/commands/StopBrowserSessionCommand.d.ts +6 -4
- package/dist-types/commands/StopCodeInterpreterSessionCommand.d.ts +6 -4
- package/dist-types/commands/StopRuntimeSessionCommand.d.ts +6 -4
- package/dist-types/commands/UpdateABTestCommand.d.ts +6 -4
- package/dist-types/commands/UpdateBrowserStreamCommand.d.ts +6 -4
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/endpoint/bdd.d.ts +1 -1
- package/dist-types/extensionConfiguration.d.ts +1 -1
- package/dist-types/models/BedrockAgentCoreServiceException.d.ts +1 -1
- package/dist-types/models/enums.d.ts +140 -0
- package/dist-types/models/errors.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +222 -154
- package/dist-types/models/models_1.d.ts +1321 -2
- package/dist-types/pagination/ListPaymentInstrumentsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPaymentSessionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/schemas/schemas_0.d.ts +59 -0
- package/dist-types/ts3.4/BedrockAgentCore.d.ts +201 -0
- package/dist-types/ts3.4/BedrockAgentCoreClient.d.ts +78 -18
- package/dist-types/ts3.4/commands/BatchCreateMemoryRecordsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/BatchDeleteMemoryRecordsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/BatchUpdateMemoryRecordsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CompleteResourceTokenAuthCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateABTestCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreateEventCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/CreatePaymentInstrumentCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/CreatePaymentSessionCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/DeleteABTestCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteBatchEvaluationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteEventCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeleteMemoryRecordCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DeletePaymentInstrumentCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/DeletePaymentSessionCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/DeleteRecommendationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/EvaluateCommand.d.ts +6 -8
- package/dist-types/ts3.4/commands/GetABTestCommand.d.ts +6 -8
- package/dist-types/ts3.4/commands/GetAgentCardCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetBatchEvaluationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetBrowserSessionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetCodeInterpreterSessionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetEventCommand.d.ts +6 -8
- package/dist-types/ts3.4/commands/GetMemoryRecordCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetPaymentInstrumentBalanceCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetPaymentInstrumentCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetPaymentSessionCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetRecommendationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetResourceApiKeyCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetResourceOauth2TokenCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetResourcePaymentTokenCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetWorkloadAccessTokenCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetWorkloadAccessTokenForJWTCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetWorkloadAccessTokenForUserIdCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/InvokeAgentRuntimeCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/InvokeAgentRuntimeCommandCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/InvokeBrowserCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/InvokeCodeInterpreterCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/InvokeHarnessCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListABTestsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListActorsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListBatchEvaluationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListBrowserSessionsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListCodeInterpreterSessionsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListEventsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListMemoryExtractionJobsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListMemoryRecordsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListPaymentInstrumentsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListPaymentSessionsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListRecommendationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ProcessPaymentCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/RetrieveMemoryRecordsCommand.d.ts +7 -5
- package/dist-types/ts3.4/commands/SaveBrowserSessionProfileCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/SearchRegistryRecordsCommand.d.ts +10 -6
- package/dist-types/ts3.4/commands/StartBatchEvaluationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StartBrowserSessionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StartCodeInterpreterSessionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StartMemoryExtractionJobCommand.d.ts +7 -5
- package/dist-types/ts3.4/commands/StartRecommendationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StopBatchEvaluationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StopBrowserSessionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StopCodeInterpreterSessionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/StopRuntimeSessionCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateABTestCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateBrowserStreamCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/models/BedrockAgentCoreServiceException.d.ts +1 -1
- package/dist-types/ts3.4/models/enums.d.ts +62 -0
- package/dist-types/ts3.4/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +84 -38
- package/dist-types/ts3.4/models/models_1.d.ts +423 -2
- package/dist-types/ts3.4/pagination/ListPaymentInstrumentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPaymentSessionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +59 -0
- package/package.json +13 -38
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
|
|
4
4
|
import type { GetMemoryRecordInput, GetMemoryRecordOutput } from "../models/models_0";
|
|
@@ -22,9 +22,11 @@ export interface GetMemoryRecordCommandInput extends GetMemoryRecordInput {
|
|
|
22
22
|
export interface GetMemoryRecordCommandOutput extends GetMemoryRecordOutput, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const GetMemoryRecordCommand_base: {
|
|
25
|
-
new (input: GetMemoryRecordCommandInput): import("@smithy/
|
|
26
|
-
new (input: GetMemoryRecordCommandInput): import("@smithy/
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: GetMemoryRecordCommandInput): import("@smithy/core/client").CommandImpl<GetMemoryRecordCommandInput, GetMemoryRecordCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetMemoryRecordCommandInput): import("@smithy/core/client").CommandImpl<GetMemoryRecordCommandInput, GetMemoryRecordCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* <p>Retrieves a specific memory record from an AgentCore Memory resource.</p> <p>To use this operation, you must have the <code>bedrock-agentcore:GetMemoryRecord</code> permission.</p>
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
|
|
4
|
+
import type { GetPaymentInstrumentBalanceRequest, GetPaymentInstrumentBalanceResponse } from "../models/models_1";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetPaymentInstrumentBalanceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetPaymentInstrumentBalanceCommandInput extends GetPaymentInstrumentBalanceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetPaymentInstrumentBalanceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetPaymentInstrumentBalanceCommandOutput extends GetPaymentInstrumentBalanceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetPaymentInstrumentBalanceCommand_base: {
|
|
25
|
+
new (input: GetPaymentInstrumentBalanceCommandInput): import("@smithy/core/client").CommandImpl<GetPaymentInstrumentBalanceCommandInput, GetPaymentInstrumentBalanceCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetPaymentInstrumentBalanceCommandInput): import("@smithy/core/client").CommandImpl<GetPaymentInstrumentBalanceCommandInput, GetPaymentInstrumentBalanceCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Get the balance of a payment instrument
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { BedrockAgentCoreClient, GetPaymentInstrumentBalanceCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
|
|
37
|
+
* // const { BedrockAgentCoreClient, GetPaymentInstrumentBalanceCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
|
|
38
|
+
* // import type { BedrockAgentCoreClientConfig } from "@aws-sdk/client-bedrock-agentcore";
|
|
39
|
+
* const config = {}; // type is BedrockAgentCoreClientConfig
|
|
40
|
+
* const client = new BedrockAgentCoreClient(config);
|
|
41
|
+
* const input = { // GetPaymentInstrumentBalanceRequest
|
|
42
|
+
* userId: "STRING_VALUE",
|
|
43
|
+
* agentName: "STRING_VALUE",
|
|
44
|
+
* paymentManagerArn: "STRING_VALUE", // required
|
|
45
|
+
* paymentConnectorId: "STRING_VALUE", // required
|
|
46
|
+
* paymentInstrumentId: "STRING_VALUE", // required
|
|
47
|
+
* chain: "BASE" || "BASE_SEPOLIA" || "ETHEREUM" || "SOLANA" || "SOLANA_DEVNET", // required
|
|
48
|
+
* token: "USDC", // required
|
|
49
|
+
* };
|
|
50
|
+
* const command = new GetPaymentInstrumentBalanceCommand(input);
|
|
51
|
+
* const response = await client.send(command);
|
|
52
|
+
* // { // GetPaymentInstrumentBalanceResponse
|
|
53
|
+
* // paymentInstrumentId: "STRING_VALUE", // required
|
|
54
|
+
* // tokenBalance: { // TokenBalance
|
|
55
|
+
* // amount: "STRING_VALUE", // required
|
|
56
|
+
* // decimals: Number("int"), // required
|
|
57
|
+
* // token: "USDC", // required
|
|
58
|
+
* // network: "ETHEREUM" || "SOLANA", // required
|
|
59
|
+
* // chain: "BASE" || "BASE_SEPOLIA" || "ETHEREUM" || "SOLANA" || "SOLANA_DEVNET", // required
|
|
60
|
+
* // },
|
|
61
|
+
* // };
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* @param GetPaymentInstrumentBalanceCommandInput - {@link GetPaymentInstrumentBalanceCommandInput}
|
|
66
|
+
* @returns {@link GetPaymentInstrumentBalanceCommandOutput}
|
|
67
|
+
* @see {@link GetPaymentInstrumentBalanceCommandInput} for command's `input` shape.
|
|
68
|
+
* @see {@link GetPaymentInstrumentBalanceCommandOutput} for command's `response` shape.
|
|
69
|
+
* @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
72
|
+
* <p>The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link InternalServerException} (server fault)
|
|
75
|
+
* <p>The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
78
|
+
* <p>The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
81
|
+
* <p>The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ValidationException} (client fault)
|
|
84
|
+
* <p>The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link BedrockAgentCoreServiceException}
|
|
87
|
+
* <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
|
|
88
|
+
*
|
|
89
|
+
*
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
92
|
+
export declare class GetPaymentInstrumentBalanceCommand extends GetPaymentInstrumentBalanceCommand_base {
|
|
93
|
+
/** @internal type navigation helper, not in runtime. */
|
|
94
|
+
protected static __types: {
|
|
95
|
+
api: {
|
|
96
|
+
input: GetPaymentInstrumentBalanceRequest;
|
|
97
|
+
output: GetPaymentInstrumentBalanceResponse;
|
|
98
|
+
};
|
|
99
|
+
sdk: {
|
|
100
|
+
input: GetPaymentInstrumentBalanceCommandInput;
|
|
101
|
+
output: GetPaymentInstrumentBalanceCommandOutput;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
|
|
4
|
+
import type { GetPaymentInstrumentRequest, GetPaymentInstrumentResponse } from "../models/models_1";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetPaymentInstrumentCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetPaymentInstrumentCommandInput extends GetPaymentInstrumentRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetPaymentInstrumentCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetPaymentInstrumentCommandOutput extends GetPaymentInstrumentResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetPaymentInstrumentCommand_base: {
|
|
25
|
+
new (input: GetPaymentInstrumentCommandInput): import("@smithy/core/client").CommandImpl<GetPaymentInstrumentCommandInput, GetPaymentInstrumentCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetPaymentInstrumentCommandInput): import("@smithy/core/client").CommandImpl<GetPaymentInstrumentCommandInput, GetPaymentInstrumentCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Get a payment instrument by ID
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { BedrockAgentCoreClient, GetPaymentInstrumentCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
|
|
37
|
+
* // const { BedrockAgentCoreClient, GetPaymentInstrumentCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
|
|
38
|
+
* // import type { BedrockAgentCoreClientConfig } from "@aws-sdk/client-bedrock-agentcore";
|
|
39
|
+
* const config = {}; // type is BedrockAgentCoreClientConfig
|
|
40
|
+
* const client = new BedrockAgentCoreClient(config);
|
|
41
|
+
* const input = { // GetPaymentInstrumentRequest
|
|
42
|
+
* userId: "STRING_VALUE",
|
|
43
|
+
* agentName: "STRING_VALUE",
|
|
44
|
+
* paymentManagerArn: "STRING_VALUE", // required
|
|
45
|
+
* paymentConnectorId: "STRING_VALUE",
|
|
46
|
+
* paymentInstrumentId: "STRING_VALUE", // required
|
|
47
|
+
* };
|
|
48
|
+
* const command = new GetPaymentInstrumentCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* // { // GetPaymentInstrumentResponse
|
|
51
|
+
* // paymentInstrument: { // PaymentInstrument
|
|
52
|
+
* // paymentInstrumentId: "STRING_VALUE", // required
|
|
53
|
+
* // paymentManagerArn: "STRING_VALUE", // required
|
|
54
|
+
* // paymentConnectorId: "STRING_VALUE", // required
|
|
55
|
+
* // userId: "STRING_VALUE", // required
|
|
56
|
+
* // paymentInstrumentType: "EMBEDDED_CRYPTO_WALLET", // required
|
|
57
|
+
* // paymentInstrumentDetails: { // PaymentInstrumentDetails Union: only one key present
|
|
58
|
+
* // embeddedCryptoWallet: { // EmbeddedCryptoWallet
|
|
59
|
+
* // network: "ETHEREUM" || "SOLANA", // required
|
|
60
|
+
* // linkedAccounts: [ // LinkedAccountList // required
|
|
61
|
+
* // { // LinkedAccount Union: only one key present
|
|
62
|
+
* // email: { // LinkedAccountEmail
|
|
63
|
+
* // emailAddress: "STRING_VALUE", // required
|
|
64
|
+
* // },
|
|
65
|
+
* // sms: { // LinkedAccountSms
|
|
66
|
+
* // phoneNumber: "STRING_VALUE", // required
|
|
67
|
+
* // },
|
|
68
|
+
* // developerJwt: { // LinkedAccountDeveloperJwt
|
|
69
|
+
* // kid: "STRING_VALUE", // required
|
|
70
|
+
* // sub: "STRING_VALUE", // required
|
|
71
|
+
* // },
|
|
72
|
+
* // oAuth2: { // LinkedAccountOAuth2 Union: only one key present
|
|
73
|
+
* // google: { // OAuth2Authentication
|
|
74
|
+
* // sub: "STRING_VALUE", // required
|
|
75
|
+
* // emailAddress: "STRING_VALUE",
|
|
76
|
+
* // name: "STRING_VALUE",
|
|
77
|
+
* // username: "STRING_VALUE",
|
|
78
|
+
* // },
|
|
79
|
+
* // apple: {
|
|
80
|
+
* // sub: "STRING_VALUE", // required
|
|
81
|
+
* // emailAddress: "STRING_VALUE",
|
|
82
|
+
* // name: "STRING_VALUE",
|
|
83
|
+
* // username: "STRING_VALUE",
|
|
84
|
+
* // },
|
|
85
|
+
* // x: {
|
|
86
|
+
* // sub: "STRING_VALUE", // required
|
|
87
|
+
* // emailAddress: "STRING_VALUE",
|
|
88
|
+
* // name: "STRING_VALUE",
|
|
89
|
+
* // username: "STRING_VALUE",
|
|
90
|
+
* // },
|
|
91
|
+
* // telegram: {
|
|
92
|
+
* // sub: "STRING_VALUE", // required
|
|
93
|
+
* // emailAddress: "STRING_VALUE",
|
|
94
|
+
* // name: "STRING_VALUE",
|
|
95
|
+
* // username: "STRING_VALUE",
|
|
96
|
+
* // },
|
|
97
|
+
* // github: {
|
|
98
|
+
* // sub: "STRING_VALUE", // required
|
|
99
|
+
* // emailAddress: "STRING_VALUE",
|
|
100
|
+
* // name: "STRING_VALUE",
|
|
101
|
+
* // username: "STRING_VALUE",
|
|
102
|
+
* // },
|
|
103
|
+
* // },
|
|
104
|
+
* // },
|
|
105
|
+
* // ],
|
|
106
|
+
* // walletAddress: "STRING_VALUE",
|
|
107
|
+
* // redirectUrl: "STRING_VALUE",
|
|
108
|
+
* // },
|
|
109
|
+
* // },
|
|
110
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
111
|
+
* // status: "INITIATED" || "ACTIVE" || "FAILED" || "DELETED", // required
|
|
112
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
113
|
+
* // },
|
|
114
|
+
* // };
|
|
115
|
+
*
|
|
116
|
+
* ```
|
|
117
|
+
*
|
|
118
|
+
* @param GetPaymentInstrumentCommandInput - {@link GetPaymentInstrumentCommandInput}
|
|
119
|
+
* @returns {@link GetPaymentInstrumentCommandOutput}
|
|
120
|
+
* @see {@link GetPaymentInstrumentCommandInput} for command's `input` shape.
|
|
121
|
+
* @see {@link GetPaymentInstrumentCommandOutput} for command's `response` shape.
|
|
122
|
+
* @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
125
|
+
* <p>The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.</p>
|
|
126
|
+
*
|
|
127
|
+
* @throws {@link InternalServerException} (server fault)
|
|
128
|
+
* <p>The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
|
|
129
|
+
*
|
|
130
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
131
|
+
* <p>The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.</p>
|
|
132
|
+
*
|
|
133
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
134
|
+
* <p>The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.</p>
|
|
135
|
+
*
|
|
136
|
+
* @throws {@link ValidationException} (client fault)
|
|
137
|
+
* <p>The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.</p>
|
|
138
|
+
*
|
|
139
|
+
* @throws {@link BedrockAgentCoreServiceException}
|
|
140
|
+
* <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
|
|
141
|
+
*
|
|
142
|
+
*
|
|
143
|
+
* @public
|
|
144
|
+
*/
|
|
145
|
+
export declare class GetPaymentInstrumentCommand extends GetPaymentInstrumentCommand_base {
|
|
146
|
+
/** @internal type navigation helper, not in runtime. */
|
|
147
|
+
protected static __types: {
|
|
148
|
+
api: {
|
|
149
|
+
input: GetPaymentInstrumentRequest;
|
|
150
|
+
output: GetPaymentInstrumentResponse;
|
|
151
|
+
};
|
|
152
|
+
sdk: {
|
|
153
|
+
input: GetPaymentInstrumentCommandInput;
|
|
154
|
+
output: GetPaymentInstrumentCommandOutput;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
|
|
4
|
+
import type { GetPaymentSessionRequest, GetPaymentSessionResponse } from "../models/models_1";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetPaymentSessionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetPaymentSessionCommandInput extends GetPaymentSessionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetPaymentSessionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetPaymentSessionCommandOutput extends GetPaymentSessionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetPaymentSessionCommand_base: {
|
|
25
|
+
new (input: GetPaymentSessionCommandInput): import("@smithy/core/client").CommandImpl<GetPaymentSessionCommandInput, GetPaymentSessionCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetPaymentSessionCommandInput): import("@smithy/core/client").CommandImpl<GetPaymentSessionCommandInput, GetPaymentSessionCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Get a payment session
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { BedrockAgentCoreClient, GetPaymentSessionCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
|
|
37
|
+
* // const { BedrockAgentCoreClient, GetPaymentSessionCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
|
|
38
|
+
* // import type { BedrockAgentCoreClientConfig } from "@aws-sdk/client-bedrock-agentcore";
|
|
39
|
+
* const config = {}; // type is BedrockAgentCoreClientConfig
|
|
40
|
+
* const client = new BedrockAgentCoreClient(config);
|
|
41
|
+
* const input = { // GetPaymentSessionRequest
|
|
42
|
+
* userId: "STRING_VALUE",
|
|
43
|
+
* agentName: "STRING_VALUE",
|
|
44
|
+
* paymentManagerArn: "STRING_VALUE", // required
|
|
45
|
+
* paymentSessionId: "STRING_VALUE", // required
|
|
46
|
+
* };
|
|
47
|
+
* const command = new GetPaymentSessionCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // GetPaymentSessionResponse
|
|
50
|
+
* // paymentSession: { // PaymentSession
|
|
51
|
+
* // paymentSessionId: "STRING_VALUE", // required
|
|
52
|
+
* // paymentManagerArn: "STRING_VALUE", // required
|
|
53
|
+
* // limits: { // SessionLimits
|
|
54
|
+
* // maxSpendAmount: { // Amount
|
|
55
|
+
* // value: "STRING_VALUE", // required
|
|
56
|
+
* // currency: "USD", // required
|
|
57
|
+
* // },
|
|
58
|
+
* // },
|
|
59
|
+
* // userId: "STRING_VALUE", // required
|
|
60
|
+
* // expiryTimeInMinutes: Number("int"), // required
|
|
61
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
62
|
+
* // availableLimits: { // AvailableLimits
|
|
63
|
+
* // availableSpendAmount: {
|
|
64
|
+
* // value: "STRING_VALUE", // required
|
|
65
|
+
* // currency: "USD", // required
|
|
66
|
+
* // },
|
|
67
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
68
|
+
* // },
|
|
69
|
+
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
70
|
+
* // },
|
|
71
|
+
* // };
|
|
72
|
+
*
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* @param GetPaymentSessionCommandInput - {@link GetPaymentSessionCommandInput}
|
|
76
|
+
* @returns {@link GetPaymentSessionCommandOutput}
|
|
77
|
+
* @see {@link GetPaymentSessionCommandInput} for command's `input` shape.
|
|
78
|
+
* @see {@link GetPaymentSessionCommandOutput} for command's `response` shape.
|
|
79
|
+
* @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
82
|
+
* <p>The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link InternalServerException} (server fault)
|
|
85
|
+
* <p>The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
88
|
+
* <p>The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
91
|
+
* <p>The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link ValidationException} (client fault)
|
|
94
|
+
* <p>The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link BedrockAgentCoreServiceException}
|
|
97
|
+
* <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
|
|
98
|
+
*
|
|
99
|
+
*
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
export declare class GetPaymentSessionCommand extends GetPaymentSessionCommand_base {
|
|
103
|
+
/** @internal type navigation helper, not in runtime. */
|
|
104
|
+
protected static __types: {
|
|
105
|
+
api: {
|
|
106
|
+
input: GetPaymentSessionRequest;
|
|
107
|
+
output: GetPaymentSessionResponse;
|
|
108
|
+
};
|
|
109
|
+
sdk: {
|
|
110
|
+
input: GetPaymentSessionCommandInput;
|
|
111
|
+
output: GetPaymentSessionCommandOutput;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
|
|
4
4
|
import type { GetRecommendationRequest, GetRecommendationResponse } from "../models/models_0";
|
|
@@ -22,9 +22,11 @@ export interface GetRecommendationCommandInput extends GetRecommendationRequest
|
|
|
22
22
|
export interface GetRecommendationCommandOutput extends GetRecommendationResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const GetRecommendationCommand_base: {
|
|
25
|
-
new (input: GetRecommendationCommandInput): import("@smithy/
|
|
26
|
-
new (input: GetRecommendationCommandInput): import("@smithy/
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: GetRecommendationCommandInput): import("@smithy/core/client").CommandImpl<GetRecommendationCommandInput, GetRecommendationCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetRecommendationCommandInput): import("@smithy/core/client").CommandImpl<GetRecommendationCommandInput, GetRecommendationCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* <p>Retrieves detailed information about a recommendation, including its configuration, status, and results.</p>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
|
|
4
4
|
import type { GetResourceApiKeyRequest, GetResourceApiKeyResponse } from "../models/models_0";
|
|
@@ -22,9 +22,11 @@ export interface GetResourceApiKeyCommandInput extends GetResourceApiKeyRequest
|
|
|
22
22
|
export interface GetResourceApiKeyCommandOutput extends GetResourceApiKeyResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const GetResourceApiKeyCommand_base: {
|
|
25
|
-
new (input: GetResourceApiKeyCommandInput): import("@smithy/
|
|
26
|
-
new (input: GetResourceApiKeyCommandInput): import("@smithy/
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: GetResourceApiKeyCommandInput): import("@smithy/core/client").CommandImpl<GetResourceApiKeyCommandInput, GetResourceApiKeyCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetResourceApiKeyCommandInput): import("@smithy/core/client").CommandImpl<GetResourceApiKeyCommandInput, GetResourceApiKeyCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* <p>Retrieves the API key associated with an API key credential provider.</p>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
|
|
4
4
|
import type { GetResourceOauth2TokenRequest, GetResourceOauth2TokenResponse } from "../models/models_0";
|
|
@@ -22,9 +22,11 @@ export interface GetResourceOauth2TokenCommandInput extends GetResourceOauth2Tok
|
|
|
22
22
|
export interface GetResourceOauth2TokenCommandOutput extends GetResourceOauth2TokenResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const GetResourceOauth2TokenCommand_base: {
|
|
25
|
-
new (input: GetResourceOauth2TokenCommandInput): import("@smithy/
|
|
26
|
-
new (input: GetResourceOauth2TokenCommandInput): import("@smithy/
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: GetResourceOauth2TokenCommandInput): import("@smithy/core/client").CommandImpl<GetResourceOauth2TokenCommandInput, GetResourceOauth2TokenCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetResourceOauth2TokenCommandInput): import("@smithy/core/client").CommandImpl<GetResourceOauth2TokenCommandInput, GetResourceOauth2TokenCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* <p>Returns the OAuth 2.0 token of the provided resource.</p>
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
|
|
4
|
+
import type { GetResourcePaymentTokenRequest, GetResourcePaymentTokenResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetResourcePaymentTokenCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetResourcePaymentTokenCommandInput extends GetResourcePaymentTokenRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetResourcePaymentTokenCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetResourcePaymentTokenCommandOutput extends GetResourcePaymentTokenResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetResourcePaymentTokenCommand_base: {
|
|
25
|
+
new (input: GetResourcePaymentTokenCommandInput): import("@smithy/core/client").CommandImpl<GetResourcePaymentTokenCommandInput, GetResourcePaymentTokenCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetResourcePaymentTokenCommandInput): import("@smithy/core/client").CommandImpl<GetResourcePaymentTokenCommandInput, GetResourcePaymentTokenCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Generates authentication tokens for payment providers that use vendor-specific authentication mechanisms.
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { BedrockAgentCoreClient, GetResourcePaymentTokenCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
|
|
37
|
+
* // const { BedrockAgentCoreClient, GetResourcePaymentTokenCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
|
|
38
|
+
* // import type { BedrockAgentCoreClientConfig } from "@aws-sdk/client-bedrock-agentcore";
|
|
39
|
+
* const config = {}; // type is BedrockAgentCoreClientConfig
|
|
40
|
+
* const client = new BedrockAgentCoreClient(config);
|
|
41
|
+
* const input = { // GetResourcePaymentTokenRequest
|
|
42
|
+
* workloadIdentityToken: "STRING_VALUE", // required
|
|
43
|
+
* resourceCredentialProviderName: "STRING_VALUE", // required
|
|
44
|
+
* paymentTokenRequest: { // PaymentTokenRequestInput Union: only one key present
|
|
45
|
+
* coinbaseCdpTokenRequest: { // CoinbaseCdpTokenRequestInput
|
|
46
|
+
* requestMethod: "GET" || "POST" || "PUT" || "DELETE" || "PATCH", // required
|
|
47
|
+
* requestHost: "STRING_VALUE",
|
|
48
|
+
* requestPath: "STRING_VALUE", // required
|
|
49
|
+
* includeWalletAuthToken: true || false,
|
|
50
|
+
* requestBody: "STRING_VALUE",
|
|
51
|
+
* },
|
|
52
|
+
* stripePrivyTokenRequest: { // StripePrivyTokenRequestInput
|
|
53
|
+
* requestHost: "STRING_VALUE",
|
|
54
|
+
* requestPath: "STRING_VALUE", // required
|
|
55
|
+
* requestBody: "STRING_VALUE", // required
|
|
56
|
+
* includeAuthorizationSignature: true || false,
|
|
57
|
+
* },
|
|
58
|
+
* },
|
|
59
|
+
* };
|
|
60
|
+
* const command = new GetResourcePaymentTokenCommand(input);
|
|
61
|
+
* const response = await client.send(command);
|
|
62
|
+
* // { // GetResourcePaymentTokenResponse
|
|
63
|
+
* // paymentTokenResponse: { // PaymentTokenResponseOutput Union: only one key present
|
|
64
|
+
* // coinbaseCdpTokenResponse: { // CoinbaseCdpTokenResponseOutput
|
|
65
|
+
* // bearerToken: "STRING_VALUE", // required
|
|
66
|
+
* // walletAuthToken: "STRING_VALUE",
|
|
67
|
+
* // },
|
|
68
|
+
* // stripePrivyTokenResponse: { // StripePrivyTokenResponseOutput
|
|
69
|
+
* // authorizationSignature: "STRING_VALUE",
|
|
70
|
+
* // requestExpiry: Number("long"),
|
|
71
|
+
* // appId: "STRING_VALUE", // required
|
|
72
|
+
* // basicAuthToken: "STRING_VALUE", // required
|
|
73
|
+
* // },
|
|
74
|
+
* // },
|
|
75
|
+
* // };
|
|
76
|
+
*
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* @param GetResourcePaymentTokenCommandInput - {@link GetResourcePaymentTokenCommandInput}
|
|
80
|
+
* @returns {@link GetResourcePaymentTokenCommandOutput}
|
|
81
|
+
* @see {@link GetResourcePaymentTokenCommandInput} for command's `input` shape.
|
|
82
|
+
* @see {@link GetResourcePaymentTokenCommandOutput} for command's `response` shape.
|
|
83
|
+
* @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
86
|
+
* <p>The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link InternalServerException} (server fault)
|
|
89
|
+
* <p>The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
92
|
+
* <p>The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.</p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
95
|
+
* <p>The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.</p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
98
|
+
* <p>This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access</p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ValidationException} (client fault)
|
|
101
|
+
* <p>The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.</p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link BedrockAgentCoreServiceException}
|
|
104
|
+
* <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
|
|
105
|
+
*
|
|
106
|
+
*
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
export declare class GetResourcePaymentTokenCommand extends GetResourcePaymentTokenCommand_base {
|
|
110
|
+
/** @internal type navigation helper, not in runtime. */
|
|
111
|
+
protected static __types: {
|
|
112
|
+
api: {
|
|
113
|
+
input: GetResourcePaymentTokenRequest;
|
|
114
|
+
output: GetResourcePaymentTokenResponse;
|
|
115
|
+
};
|
|
116
|
+
sdk: {
|
|
117
|
+
input: GetResourcePaymentTokenCommandInput;
|
|
118
|
+
output: GetResourcePaymentTokenCommandOutput;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
|
|
4
4
|
import type { GetWorkloadAccessTokenRequest, GetWorkloadAccessTokenResponse } from "../models/models_0";
|
|
@@ -22,9 +22,11 @@ export interface GetWorkloadAccessTokenCommandInput extends GetWorkloadAccessTok
|
|
|
22
22
|
export interface GetWorkloadAccessTokenCommandOutput extends GetWorkloadAccessTokenResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const GetWorkloadAccessTokenCommand_base: {
|
|
25
|
-
new (input: GetWorkloadAccessTokenCommandInput): import("@smithy/
|
|
26
|
-
new (input: GetWorkloadAccessTokenCommandInput): import("@smithy/
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: GetWorkloadAccessTokenCommandInput): import("@smithy/core/client").CommandImpl<GetWorkloadAccessTokenCommandInput, GetWorkloadAccessTokenCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetWorkloadAccessTokenCommandInput): import("@smithy/core/client").CommandImpl<GetWorkloadAccessTokenCommandInput, GetWorkloadAccessTokenCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* <p>Obtains a workload access token for agentic workloads not acting on behalf of a user.</p>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
|
|
4
4
|
import type { GetWorkloadAccessTokenForJWTRequest, GetWorkloadAccessTokenForJWTResponse } from "../models/models_0";
|
|
@@ -22,9 +22,11 @@ export interface GetWorkloadAccessTokenForJWTCommandInput extends GetWorkloadAcc
|
|
|
22
22
|
export interface GetWorkloadAccessTokenForJWTCommandOutput extends GetWorkloadAccessTokenForJWTResponse, __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const GetWorkloadAccessTokenForJWTCommand_base: {
|
|
25
|
-
new (input: GetWorkloadAccessTokenForJWTCommandInput): import("@smithy/
|
|
26
|
-
new (input: GetWorkloadAccessTokenForJWTCommandInput): import("@smithy/
|
|
27
|
-
getEndpointParameterInstructions():
|
|
25
|
+
new (input: GetWorkloadAccessTokenForJWTCommandInput): import("@smithy/core/client").CommandImpl<GetWorkloadAccessTokenForJWTCommandInput, GetWorkloadAccessTokenForJWTCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetWorkloadAccessTokenForJWTCommandInput): import("@smithy/core/client").CommandImpl<GetWorkloadAccessTokenForJWTCommandInput, GetWorkloadAccessTokenForJWTCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* <p>Obtains a workload access token for agentic workloads acting on behalf of a user, using a JWT token.</p>
|