@aws-sdk/client-bedrock-agentcore 3.907.0 → 3.909.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 (27) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +106 -16
  3. package/dist-es/BedrockAgentCore.js +2 -0
  4. package/dist-es/commands/CompleteResourceTokenAuthCommand.js +23 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/models_0.js +28 -0
  7. package/dist-es/protocols/Aws_restJson1.js +56 -16
  8. package/dist-types/BedrockAgentCore.d.ts +7 -0
  9. package/dist-types/BedrockAgentCoreClient.d.ts +3 -2
  10. package/dist-types/commands/CompleteResourceTokenAuthCommand.d.ts +94 -0
  11. package/dist-types/commands/GetResourceOauth2TokenCommand.d.ts +4 -0
  12. package/dist-types/commands/InvokeAgentRuntimeCommand.d.ts +2 -1
  13. package/dist-types/commands/InvokeCodeInterpreterCommand.d.ts +2 -0
  14. package/dist-types/commands/StartBrowserSessionCommand.d.ts +2 -0
  15. package/dist-types/commands/StartCodeInterpreterSessionCommand.d.ts +2 -0
  16. package/dist-types/commands/StopBrowserSessionCommand.d.ts +2 -0
  17. package/dist-types/commands/StopCodeInterpreterSessionCommand.d.ts +2 -0
  18. package/dist-types/commands/index.d.ts +1 -0
  19. package/dist-types/models/models_0.d.ts +157 -0
  20. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  21. package/dist-types/ts3.4/BedrockAgentCore.d.ts +17 -0
  22. package/dist-types/ts3.4/BedrockAgentCoreClient.d.ts +6 -0
  23. package/dist-types/ts3.4/commands/CompleteResourceTokenAuthCommand.d.ts +51 -0
  24. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  25. package/dist-types/ts3.4/models/models_0.d.ts +58 -0
  26. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  27. package/package.json +15 -15
@@ -0,0 +1,94 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
4
+ import { CompleteResourceTokenAuthRequest, CompleteResourceTokenAuthResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CompleteResourceTokenAuthCommand}.
14
+ */
15
+ export interface CompleteResourceTokenAuthCommandInput extends CompleteResourceTokenAuthRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CompleteResourceTokenAuthCommand}.
21
+ */
22
+ export interface CompleteResourceTokenAuthCommandOutput extends CompleteResourceTokenAuthResponse, __MetadataBearer {
23
+ }
24
+ declare const CompleteResourceTokenAuthCommand_base: {
25
+ new (input: CompleteResourceTokenAuthCommandInput): import("@smithy/smithy-client").CommandImpl<CompleteResourceTokenAuthCommandInput, CompleteResourceTokenAuthCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CompleteResourceTokenAuthCommandInput): import("@smithy/smithy-client").CommandImpl<CompleteResourceTokenAuthCommandInput, CompleteResourceTokenAuthCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Confirms the user authentication session for obtaining OAuth2.0 tokens for a resource.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentCoreClient, CompleteResourceTokenAuthCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
35
+ * // const { BedrockAgentCoreClient, CompleteResourceTokenAuthCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
36
+ * // import type { BedrockAgentCoreClientConfig } from "@aws-sdk/client-bedrock-agentcore";
37
+ * const config = {}; // type is BedrockAgentCoreClientConfig
38
+ * const client = new BedrockAgentCoreClient(config);
39
+ * const input = { // CompleteResourceTokenAuthRequest
40
+ * userIdentifier: { // UserIdentifier Union: only one key present
41
+ * userToken: "STRING_VALUE",
42
+ * userId: "STRING_VALUE",
43
+ * },
44
+ * sessionUri: "STRING_VALUE", // required
45
+ * };
46
+ * const command = new CompleteResourceTokenAuthCommand(input);
47
+ * const response = await client.send(command);
48
+ * // {};
49
+ *
50
+ * ```
51
+ *
52
+ * @param CompleteResourceTokenAuthCommandInput - {@link CompleteResourceTokenAuthCommandInput}
53
+ * @returns {@link CompleteResourceTokenAuthCommandOutput}
54
+ * @see {@link CompleteResourceTokenAuthCommandInput} for command's `input` shape.
55
+ * @see {@link CompleteResourceTokenAuthCommandOutput} for command's `response` shape.
56
+ * @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
57
+ *
58
+ * @throws {@link AccessDeniedException} (client fault)
59
+ * <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>
60
+ *
61
+ * @throws {@link InternalServerException} (server fault)
62
+ * <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>
63
+ *
64
+ * @throws {@link ResourceNotFoundException} (client fault)
65
+ * <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>
66
+ *
67
+ * @throws {@link ThrottlingException} (client fault)
68
+ * <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>
69
+ *
70
+ * @throws {@link UnauthorizedException} (client fault)
71
+ * <p>This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access</p>
72
+ *
73
+ * @throws {@link ValidationException} (client fault)
74
+ * <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>
75
+ *
76
+ * @throws {@link BedrockAgentCoreServiceException}
77
+ * <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
78
+ *
79
+ *
80
+ * @public
81
+ */
82
+ export declare class CompleteResourceTokenAuthCommand extends CompleteResourceTokenAuthCommand_base {
83
+ /** @internal type navigation helper, not in runtime. */
84
+ protected static __types: {
85
+ api: {
86
+ input: CompleteResourceTokenAuthRequest;
87
+ output: {};
88
+ };
89
+ sdk: {
90
+ input: CompleteResourceTokenAuthCommandInput;
91
+ output: CompleteResourceTokenAuthCommandOutput;
92
+ };
93
+ };
94
+ }
@@ -43,17 +43,21 @@ declare const GetResourceOauth2TokenCommand_base: {
43
43
  * "STRING_VALUE",
44
44
  * ],
45
45
  * oauth2Flow: "USER_FEDERATION" || "M2M", // required
46
+ * sessionUri: "STRING_VALUE",
46
47
  * resourceOauth2ReturnUrl: "STRING_VALUE",
47
48
  * forceAuthentication: true || false,
48
49
  * customParameters: { // CustomRequestParametersType
49
50
  * "<keys>": "STRING_VALUE",
50
51
  * },
52
+ * customState: "STRING_VALUE",
51
53
  * };
52
54
  * const command = new GetResourceOauth2TokenCommand(input);
53
55
  * const response = await client.send(command);
54
56
  * // { // GetResourceOauth2TokenResponse
55
57
  * // authorizationUrl: "STRING_VALUE",
56
58
  * // accessToken: "STRING_VALUE",
59
+ * // sessionUri: "STRING_VALUE",
60
+ * // sessionStatus: "IN_PROGRESS" || "FAILED",
57
61
  * // };
58
62
  *
59
63
  * ```
@@ -34,7 +34,7 @@ declare const InvokeAgentRuntimeCommand_base: {
34
34
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
35
35
  };
36
36
  /**
37
- * <p>Sends a request to an agent or tool hosted in an Amazon Bedrock AgentCore Runtime and receives responses in real-time. </p> <p>To invoke an agent you must specify the AgentCore Runtime ARN and provide a payload containing your request. You can optionally specify a qualifier to target a specific version or endpoint of the agent.</p> <p>This operation supports streaming responses, allowing you to receive partial responses as they become available. We recommend using pagination to ensure that the operation returns quickly and successfully when processing large responses.</p> <p>For example code, see <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-invoke-agent.html">Invoke an AgentCore Runtime agent</a>. </p> <p>If you're integrating your agent with OAuth, you can't use the Amazon Web Services SDK to call <code>InvokeAgentRuntime</code>. Instead, make a HTTPS request to <code>InvokeAgentRuntime</code>. For an example, see <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-oauth.html">Authenticate and authorize with Inbound Auth and Outbound Auth</a>.</p> <p>To use this operation, you must have the <code>bedrock-agentcore:InvokeAgentRuntime</code> permission.</p>
37
+ * <p>Sends a request to an agent or tool hosted in an Amazon Bedrock AgentCore Runtime and receives responses in real-time. </p> <p>To invoke an agent you must specify the AgentCore Runtime ARN and provide a payload containing your request. You can optionally specify a qualifier to target a specific version or endpoint of the agent.</p> <p>This operation supports streaming responses, allowing you to receive partial responses as they become available. We recommend using pagination to ensure that the operation returns quickly and successfully when processing large responses.</p> <p>For example code, see <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-invoke-agent.html">Invoke an AgentCore Runtime agent</a>. </p> <p>If you're integrating your agent with OAuth, you can't use the Amazon Web Services SDK to call <code>InvokeAgentRuntime</code>. Instead, make a HTTPS request to <code>InvokeAgentRuntime</code>. For an example, see <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-oauth.html">Authenticate and authorize with Inbound Auth and Outbound Auth</a>.</p> <p>To use this operation, you must have the <code>bedrock-agentcore:InvokeAgentRuntime</code> permission. If you are making a call to <code>InvokeAgentRuntime</code> on behalf of a user ID with the <code>X-Amzn-Bedrock-AgentCore-Runtime-User-Id</code> header, You require permissions to both actions (<code>bedrock-agentcore:InvokeAgentRuntime</code> and <code>bedrock-agentcore:InvokeAgentRuntimeForUser</code>). </p>
38
38
  * @example
39
39
  * Use a bare-bones client and the command you need to make an API call.
40
40
  * ```javascript
@@ -56,6 +56,7 @@ declare const InvokeAgentRuntimeCommand_base: {
56
56
  * baggage: "STRING_VALUE",
57
57
  * agentRuntimeArn: "STRING_VALUE", // required
58
58
  * qualifier: "STRING_VALUE",
59
+ * accountId: "STRING_VALUE",
59
60
  * payload: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
60
61
  * };
61
62
  * const command = new InvokeAgentRuntimeCommand(input);
@@ -39,6 +39,8 @@ declare const InvokeCodeInterpreterCommand_base: {
39
39
  * const input = { // InvokeCodeInterpreterRequest
40
40
  * codeInterpreterIdentifier: "STRING_VALUE", // required
41
41
  * sessionId: "STRING_VALUE",
42
+ * traceId: "STRING_VALUE",
43
+ * traceParent: "STRING_VALUE",
42
44
  * name: "executeCode" || "executeCommand" || "readFiles" || "listFiles" || "removeFiles" || "writeFiles" || "startCommandExecution" || "getTask" || "stopTask", // required
43
45
  * arguments: { // ToolArguments
44
46
  * code: "STRING_VALUE",
@@ -37,6 +37,8 @@ declare const StartBrowserSessionCommand_base: {
37
37
  * const config = {}; // type is BedrockAgentCoreClientConfig
38
38
  * const client = new BedrockAgentCoreClient(config);
39
39
  * const input = { // StartBrowserSessionRequest
40
+ * traceId: "STRING_VALUE",
41
+ * traceParent: "STRING_VALUE",
40
42
  * browserIdentifier: "STRING_VALUE", // required
41
43
  * name: "STRING_VALUE",
42
44
  * sessionTimeoutSeconds: Number("int"),
@@ -37,6 +37,8 @@ declare const StartCodeInterpreterSessionCommand_base: {
37
37
  * const config = {}; // type is BedrockAgentCoreClientConfig
38
38
  * const client = new BedrockAgentCoreClient(config);
39
39
  * const input = { // StartCodeInterpreterSessionRequest
40
+ * traceId: "STRING_VALUE",
41
+ * traceParent: "STRING_VALUE",
40
42
  * codeInterpreterIdentifier: "STRING_VALUE", // required
41
43
  * name: "STRING_VALUE",
42
44
  * sessionTimeoutSeconds: Number("int"),
@@ -37,6 +37,8 @@ declare const StopBrowserSessionCommand_base: {
37
37
  * const config = {}; // type is BedrockAgentCoreClientConfig
38
38
  * const client = new BedrockAgentCoreClient(config);
39
39
  * const input = { // StopBrowserSessionRequest
40
+ * traceId: "STRING_VALUE",
41
+ * traceParent: "STRING_VALUE",
40
42
  * browserIdentifier: "STRING_VALUE", // required
41
43
  * sessionId: "STRING_VALUE", // required
42
44
  * clientToken: "STRING_VALUE",
@@ -37,6 +37,8 @@ declare const StopCodeInterpreterSessionCommand_base: {
37
37
  * const config = {}; // type is BedrockAgentCoreClientConfig
38
38
  * const client = new BedrockAgentCoreClient(config);
39
39
  * const input = { // StopCodeInterpreterSessionRequest
40
+ * traceId: "STRING_VALUE",
41
+ * traceParent: "STRING_VALUE",
40
42
  * codeInterpreterIdentifier: "STRING_VALUE", // required
41
43
  * sessionId: "STRING_VALUE", // required
42
44
  * clientToken: "STRING_VALUE",
@@ -1,6 +1,7 @@
1
1
  export * from "./BatchCreateMemoryRecordsCommand";
2
2
  export * from "./BatchDeleteMemoryRecordsCommand";
3
3
  export * from "./BatchUpdateMemoryRecordsCommand";
4
+ export * from "./CompleteResourceTokenAuthCommand";
4
5
  export * from "./CreateEventCommand";
5
6
  export * from "./DeleteEventCommand";
6
7
  export * from "./DeleteMemoryRecordCommand";
@@ -233,6 +233,11 @@ export interface InvokeAgentRuntimeRequest {
233
233
  * @public
234
234
  */
235
235
  qualifier?: string | undefined;
236
+ /**
237
+ * <p>The identifier of the Amazon Web Services account for the agent runtime resource.</p>
238
+ * @public
239
+ */
240
+ accountId?: string | undefined;
236
241
  /**
237
242
  * <p>The input data to send to the agent runtime. The format of this data depends on the specific agent configuration and must match the specified content type. For most agents, this is a JSON object containing the user's request.</p>
238
243
  * @public
@@ -591,6 +596,16 @@ export interface ListBrowserSessionsResponse {
591
596
  * @public
592
597
  */
593
598
  export interface StartBrowserSessionRequest {
599
+ /**
600
+ * <p>The trace identifier for request tracking.</p>
601
+ * @public
602
+ */
603
+ traceId?: string | undefined;
604
+ /**
605
+ * <p>The parent trace information for distributed tracing.</p>
606
+ * @public
607
+ */
608
+ traceParent?: string | undefined;
594
609
  /**
595
610
  * <p>The unique identifier of the browser to use for this session. This identifier specifies which browser environment to initialize for the session.</p>
596
611
  * @public
@@ -646,6 +661,16 @@ export interface StartBrowserSessionResponse {
646
661
  * @public
647
662
  */
648
663
  export interface StopBrowserSessionRequest {
664
+ /**
665
+ * <p>The trace identifier for request tracking.</p>
666
+ * @public
667
+ */
668
+ traceId?: string | undefined;
669
+ /**
670
+ * <p>The parent trace information for distributed tracing.</p>
671
+ * @public
672
+ */
673
+ traceParent?: string | undefined;
649
674
  /**
650
675
  * <p>The unique identifier of the browser associated with the session.</p>
651
676
  * @public
@@ -915,6 +940,16 @@ export interface ListCodeInterpreterSessionsResponse {
915
940
  * @public
916
941
  */
917
942
  export interface StartCodeInterpreterSessionRequest {
943
+ /**
944
+ * <p>The trace identifier for request tracking.</p>
945
+ * @public
946
+ */
947
+ traceId?: string | undefined;
948
+ /**
949
+ * <p>The parent trace information for distributed tracing.</p>
950
+ * @public
951
+ */
952
+ traceParent?: string | undefined;
918
953
  /**
919
954
  * <p>The unique identifier of the code interpreter to use for this session. This identifier specifies which code interpreter environment to initialize for the session.</p>
920
955
  * @public
@@ -960,6 +995,16 @@ export interface StartCodeInterpreterSessionResponse {
960
995
  * @public
961
996
  */
962
997
  export interface StopCodeInterpreterSessionRequest {
998
+ /**
999
+ * <p>The trace identifier for request tracking.</p>
1000
+ * @public
1001
+ */
1002
+ traceId?: string | undefined;
1003
+ /**
1004
+ * <p>The parent trace information for distributed tracing.</p>
1005
+ * @public
1006
+ */
1007
+ traceParent?: string | undefined;
963
1008
  /**
964
1009
  * <p>The unique identifier of the code interpreter associated with the session.</p>
965
1010
  * @public
@@ -996,6 +1041,68 @@ export interface StopCodeInterpreterSessionResponse {
996
1041
  */
997
1042
  lastUpdatedAt: Date | undefined;
998
1043
  }
1044
+ /**
1045
+ * <p>The OAuth2.0 token or user ID that was used to generate the workload access token used for initiating the user authorization flow to retrieve OAuth2.0 tokens.</p>
1046
+ * @public
1047
+ */
1048
+ export type UserIdentifier = UserIdentifier.UserIdMember | UserIdentifier.UserTokenMember | UserIdentifier.$UnknownMember;
1049
+ /**
1050
+ * @public
1051
+ */
1052
+ export declare namespace UserIdentifier {
1053
+ /**
1054
+ * <p>The OAuth2.0 token issued by the user’s identity provider</p>
1055
+ * @public
1056
+ */
1057
+ interface UserTokenMember {
1058
+ userToken: string;
1059
+ userId?: never;
1060
+ $unknown?: never;
1061
+ }
1062
+ /**
1063
+ * <p>The ID of the user for whom you have retrieved a workload access token for</p>
1064
+ * @public
1065
+ */
1066
+ interface UserIdMember {
1067
+ userToken?: never;
1068
+ userId: string;
1069
+ $unknown?: never;
1070
+ }
1071
+ /**
1072
+ * @public
1073
+ */
1074
+ interface $UnknownMember {
1075
+ userToken?: never;
1076
+ userId?: never;
1077
+ $unknown: [string, any];
1078
+ }
1079
+ interface Visitor<T> {
1080
+ userToken: (value: string) => T;
1081
+ userId: (value: string) => T;
1082
+ _: (name: string, value: any) => T;
1083
+ }
1084
+ const visit: <T>(value: UserIdentifier, visitor: Visitor<T>) => T;
1085
+ }
1086
+ /**
1087
+ * @public
1088
+ */
1089
+ export interface CompleteResourceTokenAuthRequest {
1090
+ /**
1091
+ * <p>The OAuth2.0 token or user ID that was used to generate the workload access token used for initiating the user authorization flow to retrieve OAuth2.0 tokens.</p>
1092
+ * @public
1093
+ */
1094
+ userIdentifier: UserIdentifier | undefined;
1095
+ /**
1096
+ * <p>Unique identifier for the user's authentication session for retrieving OAuth2 tokens. This ID tracks the authorization flow state across multiple requests and responses during the OAuth2 authentication process.</p>
1097
+ * @public
1098
+ */
1099
+ sessionUri: string | undefined;
1100
+ }
1101
+ /**
1102
+ * @public
1103
+ */
1104
+ export interface CompleteResourceTokenAuthResponse {
1105
+ }
999
1106
  /**
1000
1107
  * @public
1001
1108
  */
@@ -1057,6 +1164,11 @@ export interface GetResourceOauth2TokenRequest {
1057
1164
  * @public
1058
1165
  */
1059
1166
  oauth2Flow: Oauth2FlowType | undefined;
1167
+ /**
1168
+ * <p>Unique identifier for the user's authentication session for retrieving OAuth2 tokens. This ID tracks the authorization flow state across multiple requests and responses during the OAuth2 authentication process.</p>
1169
+ * @public
1170
+ */
1171
+ sessionUri?: string | undefined;
1060
1172
  /**
1061
1173
  * <p>The callback URL to redirect to after the OAuth 2.0 token retrieval is complete. This URL must be one of the provided URLs configured for the workload identity.</p>
1062
1174
  * @public
@@ -1072,7 +1184,24 @@ export interface GetResourceOauth2TokenRequest {
1072
1184
  * @public
1073
1185
  */
1074
1186
  customParameters?: Record<string, string> | undefined;
1187
+ /**
1188
+ * <p>An opaque string that will be sent back to the callback URL provided in resourceOauth2ReturnUrl. This state should be used to protect the callback URL of your application against CSRF attacks by ensuring the response corresponds to the original request.</p>
1189
+ * @public
1190
+ */
1191
+ customState?: string | undefined;
1075
1192
  }
1193
+ /**
1194
+ * @public
1195
+ * @enum
1196
+ */
1197
+ export declare const SessionStatus: {
1198
+ readonly FAILED: "FAILED";
1199
+ readonly IN_PROGRESS: "IN_PROGRESS";
1200
+ };
1201
+ /**
1202
+ * @public
1203
+ */
1204
+ export type SessionStatus = (typeof SessionStatus)[keyof typeof SessionStatus];
1076
1205
  /**
1077
1206
  * @public
1078
1207
  */
@@ -1087,6 +1216,16 @@ export interface GetResourceOauth2TokenResponse {
1087
1216
  * @public
1088
1217
  */
1089
1218
  accessToken?: string | undefined;
1219
+ /**
1220
+ * <p>Unique identifier for the user's authorization session for retrieving OAuth2 tokens. This matches the sessionId from the request and can be used to track the session state.</p>
1221
+ * @public
1222
+ */
1223
+ sessionUri?: string | undefined;
1224
+ /**
1225
+ * <p>Status indicating whether the user's authorization session is in progress or has failed. This helps determine the next steps in the OAuth2 authentication flow.</p>
1226
+ * @public
1227
+ */
1228
+ sessionStatus?: SessionStatus | undefined;
1090
1229
  }
1091
1230
  /**
1092
1231
  * @public
@@ -1276,6 +1415,16 @@ export interface InvokeCodeInterpreterRequest {
1276
1415
  * @public
1277
1416
  */
1278
1417
  sessionId?: string | undefined;
1418
+ /**
1419
+ * <p>The trace identifier for request tracking.</p>
1420
+ * @public
1421
+ */
1422
+ traceId?: string | undefined;
1423
+ /**
1424
+ * <p>The parent trace information for distributed tracing.</p>
1425
+ * @public
1426
+ */
1427
+ traceParent?: string | undefined;
1279
1428
  /**
1280
1429
  * <p>The name of the code interpreter to invoke.</p>
1281
1430
  * @public
@@ -2747,6 +2896,14 @@ export declare const InvokeAgentRuntimeRequestFilterSensitiveLog: (obj: InvokeAg
2747
2896
  * @internal
2748
2897
  */
2749
2898
  export declare const InvokeAgentRuntimeResponseFilterSensitiveLog: (obj: InvokeAgentRuntimeResponse) => any;
2899
+ /**
2900
+ * @internal
2901
+ */
2902
+ export declare const UserIdentifierFilterSensitiveLog: (obj: UserIdentifier) => any;
2903
+ /**
2904
+ * @internal
2905
+ */
2906
+ export declare const CompleteResourceTokenAuthRequestFilterSensitiveLog: (obj: CompleteResourceTokenAuthRequest) => any;
2750
2907
  /**
2751
2908
  * @internal
2752
2909
  */
@@ -3,6 +3,7 @@ import { EventStreamSerdeContext as __EventStreamSerdeContext, SdkStreamSerdeCon
3
3
  import { BatchCreateMemoryRecordsCommandInput, BatchCreateMemoryRecordsCommandOutput } from "../commands/BatchCreateMemoryRecordsCommand";
4
4
  import { BatchDeleteMemoryRecordsCommandInput, BatchDeleteMemoryRecordsCommandOutput } from "../commands/BatchDeleteMemoryRecordsCommand";
5
5
  import { BatchUpdateMemoryRecordsCommandInput, BatchUpdateMemoryRecordsCommandOutput } from "../commands/BatchUpdateMemoryRecordsCommand";
6
+ import { CompleteResourceTokenAuthCommandInput, CompleteResourceTokenAuthCommandOutput } from "../commands/CompleteResourceTokenAuthCommand";
6
7
  import { CreateEventCommandInput, CreateEventCommandOutput } from "../commands/CreateEventCommand";
7
8
  import { DeleteEventCommandInput, DeleteEventCommandOutput } from "../commands/DeleteEventCommand";
8
9
  import { DeleteMemoryRecordCommandInput, DeleteMemoryRecordCommandOutput } from "../commands/DeleteMemoryRecordCommand";
@@ -43,6 +44,10 @@ export declare const se_BatchDeleteMemoryRecordsCommand: (input: BatchDeleteMemo
43
44
  * serializeAws_restJson1BatchUpdateMemoryRecordsCommand
44
45
  */
45
46
  export declare const se_BatchUpdateMemoryRecordsCommand: (input: BatchUpdateMemoryRecordsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
47
+ /**
48
+ * serializeAws_restJson1CompleteResourceTokenAuthCommand
49
+ */
50
+ export declare const se_CompleteResourceTokenAuthCommand: (input: CompleteResourceTokenAuthCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
46
51
  /**
47
52
  * serializeAws_restJson1CreateEventCommand
48
53
  */
@@ -167,6 +172,10 @@ export declare const de_BatchDeleteMemoryRecordsCommand: (output: __HttpResponse
167
172
  * deserializeAws_restJson1BatchUpdateMemoryRecordsCommand
168
173
  */
169
174
  export declare const de_BatchUpdateMemoryRecordsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchUpdateMemoryRecordsCommandOutput>;
175
+ /**
176
+ * deserializeAws_restJson1CompleteResourceTokenAuthCommand
177
+ */
178
+ export declare const de_CompleteResourceTokenAuthCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CompleteResourceTokenAuthCommandOutput>;
170
179
  /**
171
180
  * deserializeAws_restJson1CreateEventCommand
172
181
  */
@@ -12,6 +12,10 @@ import {
12
12
  BatchUpdateMemoryRecordsCommandInput,
13
13
  BatchUpdateMemoryRecordsCommandOutput,
14
14
  } from "./commands/BatchUpdateMemoryRecordsCommand";
15
+ import {
16
+ CompleteResourceTokenAuthCommandInput,
17
+ CompleteResourceTokenAuthCommandOutput,
18
+ } from "./commands/CompleteResourceTokenAuthCommand";
15
19
  import {
16
20
  CreateEventCommandInput,
17
21
  CreateEventCommandOutput,
@@ -164,6 +168,19 @@ export interface BedrockAgentCore {
164
168
  options: __HttpHandlerOptions,
165
169
  cb: (err: any, data?: BatchUpdateMemoryRecordsCommandOutput) => void
166
170
  ): void;
171
+ completeResourceTokenAuth(
172
+ args: CompleteResourceTokenAuthCommandInput,
173
+ options?: __HttpHandlerOptions
174
+ ): Promise<CompleteResourceTokenAuthCommandOutput>;
175
+ completeResourceTokenAuth(
176
+ args: CompleteResourceTokenAuthCommandInput,
177
+ cb: (err: any, data?: CompleteResourceTokenAuthCommandOutput) => void
178
+ ): void;
179
+ completeResourceTokenAuth(
180
+ args: CompleteResourceTokenAuthCommandInput,
181
+ options: __HttpHandlerOptions,
182
+ cb: (err: any, data?: CompleteResourceTokenAuthCommandOutput) => void
183
+ ): void;
167
184
  createEvent(
168
185
  args: CreateEventCommandInput,
169
186
  options?: __HttpHandlerOptions
@@ -63,6 +63,10 @@ import {
63
63
  BatchUpdateMemoryRecordsCommandInput,
64
64
  BatchUpdateMemoryRecordsCommandOutput,
65
65
  } from "./commands/BatchUpdateMemoryRecordsCommand";
66
+ import {
67
+ CompleteResourceTokenAuthCommandInput,
68
+ CompleteResourceTokenAuthCommandOutput,
69
+ } from "./commands/CompleteResourceTokenAuthCommand";
66
70
  import {
67
71
  CreateEventCommandInput,
68
72
  CreateEventCommandOutput,
@@ -186,6 +190,7 @@ export type ServiceInputTypes =
186
190
  | BatchCreateMemoryRecordsCommandInput
187
191
  | BatchDeleteMemoryRecordsCommandInput
188
192
  | BatchUpdateMemoryRecordsCommandInput
193
+ | CompleteResourceTokenAuthCommandInput
189
194
  | CreateEventCommandInput
190
195
  | DeleteEventCommandInput
191
196
  | DeleteMemoryRecordCommandInput
@@ -218,6 +223,7 @@ export type ServiceOutputTypes =
218
223
  | BatchCreateMemoryRecordsCommandOutput
219
224
  | BatchDeleteMemoryRecordsCommandOutput
220
225
  | BatchUpdateMemoryRecordsCommandOutput
226
+ | CompleteResourceTokenAuthCommandOutput
221
227
  | CreateEventCommandOutput
222
228
  | DeleteEventCommandOutput
223
229
  | DeleteMemoryRecordCommandOutput
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ BedrockAgentCoreClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../BedrockAgentCoreClient";
8
+ import {
9
+ CompleteResourceTokenAuthRequest,
10
+ CompleteResourceTokenAuthResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface CompleteResourceTokenAuthCommandInput
15
+ extends CompleteResourceTokenAuthRequest {}
16
+ export interface CompleteResourceTokenAuthCommandOutput
17
+ extends CompleteResourceTokenAuthResponse,
18
+ __MetadataBearer {}
19
+ declare const CompleteResourceTokenAuthCommand_base: {
20
+ new (
21
+ input: CompleteResourceTokenAuthCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ CompleteResourceTokenAuthCommandInput,
24
+ CompleteResourceTokenAuthCommandOutput,
25
+ BedrockAgentCoreClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: CompleteResourceTokenAuthCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ CompleteResourceTokenAuthCommandInput,
33
+ CompleteResourceTokenAuthCommandOutput,
34
+ BedrockAgentCoreClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class CompleteResourceTokenAuthCommand extends CompleteResourceTokenAuthCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: CompleteResourceTokenAuthRequest;
44
+ output: {};
45
+ };
46
+ sdk: {
47
+ input: CompleteResourceTokenAuthCommandInput;
48
+ output: CompleteResourceTokenAuthCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -1,6 +1,7 @@
1
1
  export * from "./BatchCreateMemoryRecordsCommand";
2
2
  export * from "./BatchDeleteMemoryRecordsCommand";
3
3
  export * from "./BatchUpdateMemoryRecordsCommand";
4
+ export * from "./CompleteResourceTokenAuthCommand";
4
5
  export * from "./CreateEventCommand";
5
6
  export * from "./DeleteEventCommand";
6
7
  export * from "./DeleteMemoryRecordCommand";