@aws-sdk/client-bedrock-agentcore 3.1009.0 → 3.1010.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 +7 -0
- package/dist-cjs/index.js +23 -0
- package/dist-cjs/schemas/schemas_0.js +71 -12
- package/dist-es/BedrockAgentCore.js +2 -0
- package/dist-es/commands/InvokeAgentRuntimeCommandCommand.js +20 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +4 -0
- package/dist-es/schemas/schemas_0.js +67 -8
- package/dist-types/BedrockAgentCore.d.ts +7 -0
- package/dist-types/BedrockAgentCoreClient.d.ts +3 -2
- package/dist-types/commands/InvokeAgentRuntimeCommand.d.ts +1 -1
- package/dist-types/commands/InvokeAgentRuntimeCommandCommand.d.ts +156 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +350 -8
- package/dist-types/schemas/schemas_0.d.ts +9 -0
- package/dist-types/ts3.4/BedrockAgentCore.d.ts +17 -0
- package/dist-types/ts3.4/BedrockAgentCoreClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/InvokeAgentRuntimeCommandCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +165 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -0
- package/package.json +1 -1
|
@@ -127,6 +127,10 @@ import {
|
|
|
127
127
|
InvokeAgentRuntimeCommandInput,
|
|
128
128
|
InvokeAgentRuntimeCommandOutput,
|
|
129
129
|
} from "./commands/InvokeAgentRuntimeCommand";
|
|
130
|
+
import {
|
|
131
|
+
InvokeAgentRuntimeCommandCommandInput,
|
|
132
|
+
InvokeAgentRuntimeCommandCommandOutput,
|
|
133
|
+
} from "./commands/InvokeAgentRuntimeCommandCommand";
|
|
130
134
|
import {
|
|
131
135
|
InvokeCodeInterpreterCommandInput,
|
|
132
136
|
InvokeCodeInterpreterCommandOutput,
|
|
@@ -221,6 +225,7 @@ export type ServiceInputTypes =
|
|
|
221
225
|
| GetWorkloadAccessTokenCommandInput
|
|
222
226
|
| GetWorkloadAccessTokenForJWTCommandInput
|
|
223
227
|
| GetWorkloadAccessTokenForUserIdCommandInput
|
|
228
|
+
| InvokeAgentRuntimeCommandCommandInput
|
|
224
229
|
| InvokeAgentRuntimeCommandInput
|
|
225
230
|
| InvokeCodeInterpreterCommandInput
|
|
226
231
|
| ListActorsCommandInput
|
|
@@ -258,6 +263,7 @@ export type ServiceOutputTypes =
|
|
|
258
263
|
| GetWorkloadAccessTokenCommandOutput
|
|
259
264
|
| GetWorkloadAccessTokenForJWTCommandOutput
|
|
260
265
|
| GetWorkloadAccessTokenForUserIdCommandOutput
|
|
266
|
+
| InvokeAgentRuntimeCommandCommandOutput
|
|
261
267
|
| InvokeAgentRuntimeCommandOutput
|
|
262
268
|
| InvokeCodeInterpreterCommandOutput
|
|
263
269
|
| ListActorsCommandOutput
|
|
@@ -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
|
+
InvokeAgentRuntimeCommandRequest,
|
|
10
|
+
InvokeAgentRuntimeCommandResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface InvokeAgentRuntimeCommandCommandInput
|
|
15
|
+
extends InvokeAgentRuntimeCommandRequest {}
|
|
16
|
+
export interface InvokeAgentRuntimeCommandCommandOutput
|
|
17
|
+
extends InvokeAgentRuntimeCommandResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const InvokeAgentRuntimeCommandCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: InvokeAgentRuntimeCommandCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
InvokeAgentRuntimeCommandCommandInput,
|
|
24
|
+
InvokeAgentRuntimeCommandCommandOutput,
|
|
25
|
+
BedrockAgentCoreClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
input: InvokeAgentRuntimeCommandCommandInput
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
InvokeAgentRuntimeCommandCommandInput,
|
|
33
|
+
InvokeAgentRuntimeCommandCommandOutput,
|
|
34
|
+
BedrockAgentCoreClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class InvokeAgentRuntimeCommandCommand extends InvokeAgentRuntimeCommandCommand_base {
|
|
41
|
+
protected static __types: {
|
|
42
|
+
api: {
|
|
43
|
+
input: InvokeAgentRuntimeCommandRequest;
|
|
44
|
+
output: InvokeAgentRuntimeCommandResponse;
|
|
45
|
+
};
|
|
46
|
+
sdk: {
|
|
47
|
+
input: InvokeAgentRuntimeCommandCommandInput;
|
|
48
|
+
output: InvokeAgentRuntimeCommandCommandOutput;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -17,6 +17,7 @@ export * from "./GetWorkloadAccessTokenCommand";
|
|
|
17
17
|
export * from "./GetWorkloadAccessTokenForJWTCommand";
|
|
18
18
|
export * from "./GetWorkloadAccessTokenForUserIdCommand";
|
|
19
19
|
export * from "./InvokeAgentRuntimeCommand";
|
|
20
|
+
export * from "./InvokeAgentRuntimeCommandCommand";
|
|
20
21
|
export * from "./InvokeCodeInterpreterCommand";
|
|
21
22
|
export * from "./ListActorsCommand";
|
|
22
23
|
export * from "./ListBrowserSessionsCommand";
|
|
@@ -7,6 +7,12 @@ export declare const ValidationExceptionReason: {
|
|
|
7
7
|
};
|
|
8
8
|
export type ValidationExceptionReason =
|
|
9
9
|
(typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
10
|
+
export declare const CommandExecutionStatus: {
|
|
11
|
+
readonly COMPLETED: "COMPLETED";
|
|
12
|
+
readonly TIMED_OUT: "TIMED_OUT";
|
|
13
|
+
};
|
|
14
|
+
export type CommandExecutionStatus =
|
|
15
|
+
(typeof CommandExecutionStatus)[keyof typeof CommandExecutionStatus];
|
|
10
16
|
export declare const BrowserSessionStatus: {
|
|
11
17
|
readonly READY: "READY";
|
|
12
18
|
readonly TERMINATED: "TERMINATED";
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
AutomationStreamStatus,
|
|
7
7
|
BrowserSessionStatus,
|
|
8
8
|
CodeInterpreterSessionStatus,
|
|
9
|
+
CommandExecutionStatus,
|
|
9
10
|
ContentBlockType,
|
|
10
11
|
ExtractionJobStatus,
|
|
11
12
|
MemoryRecordStatus,
|
|
@@ -23,6 +24,7 @@ import {
|
|
|
23
24
|
ConflictException,
|
|
24
25
|
InternalServerException,
|
|
25
26
|
ResourceNotFoundException,
|
|
27
|
+
RuntimeClientError,
|
|
26
28
|
ServiceQuotaExceededException,
|
|
27
29
|
ThrottlingException,
|
|
28
30
|
ValidationException,
|
|
@@ -72,6 +74,169 @@ export interface InvokeAgentRuntimeResponse {
|
|
|
72
74
|
response?: StreamingBlobTypes | undefined;
|
|
73
75
|
statusCode?: number | undefined;
|
|
74
76
|
}
|
|
77
|
+
export interface InvokeAgentRuntimeCommandRequestBody {
|
|
78
|
+
command: string | undefined;
|
|
79
|
+
timeout?: number | undefined;
|
|
80
|
+
}
|
|
81
|
+
export interface InvokeAgentRuntimeCommandRequest {
|
|
82
|
+
contentType?: string | undefined;
|
|
83
|
+
accept?: string | undefined;
|
|
84
|
+
runtimeSessionId?: string | undefined;
|
|
85
|
+
traceId?: string | undefined;
|
|
86
|
+
traceParent?: string | undefined;
|
|
87
|
+
traceState?: string | undefined;
|
|
88
|
+
baggage?: string | undefined;
|
|
89
|
+
agentRuntimeArn: string | undefined;
|
|
90
|
+
qualifier?: string | undefined;
|
|
91
|
+
accountId?: string | undefined;
|
|
92
|
+
body: InvokeAgentRuntimeCommandRequestBody | undefined;
|
|
93
|
+
}
|
|
94
|
+
export interface ContentDeltaEvent {
|
|
95
|
+
stdout?: string | undefined;
|
|
96
|
+
stderr?: string | undefined;
|
|
97
|
+
}
|
|
98
|
+
export interface ContentStartEvent {}
|
|
99
|
+
export interface ContentStopEvent {
|
|
100
|
+
exitCode: number | undefined;
|
|
101
|
+
status: CommandExecutionStatus | undefined;
|
|
102
|
+
}
|
|
103
|
+
export interface ResponseChunk {
|
|
104
|
+
contentStart?: ContentStartEvent | undefined;
|
|
105
|
+
contentDelta?: ContentDeltaEvent | undefined;
|
|
106
|
+
contentStop?: ContentStopEvent | undefined;
|
|
107
|
+
}
|
|
108
|
+
export type InvokeAgentRuntimeCommandStreamOutput =
|
|
109
|
+
| InvokeAgentRuntimeCommandStreamOutput.AccessDeniedExceptionMember
|
|
110
|
+
| InvokeAgentRuntimeCommandStreamOutput.ChunkMember
|
|
111
|
+
| InvokeAgentRuntimeCommandStreamOutput.InternalServerExceptionMember
|
|
112
|
+
| InvokeAgentRuntimeCommandStreamOutput.ResourceNotFoundExceptionMember
|
|
113
|
+
| InvokeAgentRuntimeCommandStreamOutput.RuntimeClientErrorMember
|
|
114
|
+
| InvokeAgentRuntimeCommandStreamOutput.ServiceQuotaExceededExceptionMember
|
|
115
|
+
| InvokeAgentRuntimeCommandStreamOutput.ThrottlingExceptionMember
|
|
116
|
+
| InvokeAgentRuntimeCommandStreamOutput.ValidationExceptionMember
|
|
117
|
+
| InvokeAgentRuntimeCommandStreamOutput.$UnknownMember;
|
|
118
|
+
export declare namespace InvokeAgentRuntimeCommandStreamOutput {
|
|
119
|
+
interface ChunkMember {
|
|
120
|
+
chunk: ResponseChunk;
|
|
121
|
+
accessDeniedException?: never;
|
|
122
|
+
internalServerException?: never;
|
|
123
|
+
resourceNotFoundException?: never;
|
|
124
|
+
serviceQuotaExceededException?: never;
|
|
125
|
+
throttlingException?: never;
|
|
126
|
+
validationException?: never;
|
|
127
|
+
runtimeClientError?: never;
|
|
128
|
+
$unknown?: never;
|
|
129
|
+
}
|
|
130
|
+
interface AccessDeniedExceptionMember {
|
|
131
|
+
chunk?: never;
|
|
132
|
+
accessDeniedException: AccessDeniedException;
|
|
133
|
+
internalServerException?: never;
|
|
134
|
+
resourceNotFoundException?: never;
|
|
135
|
+
serviceQuotaExceededException?: never;
|
|
136
|
+
throttlingException?: never;
|
|
137
|
+
validationException?: never;
|
|
138
|
+
runtimeClientError?: never;
|
|
139
|
+
$unknown?: never;
|
|
140
|
+
}
|
|
141
|
+
interface InternalServerExceptionMember {
|
|
142
|
+
chunk?: never;
|
|
143
|
+
accessDeniedException?: never;
|
|
144
|
+
internalServerException: InternalServerException;
|
|
145
|
+
resourceNotFoundException?: never;
|
|
146
|
+
serviceQuotaExceededException?: never;
|
|
147
|
+
throttlingException?: never;
|
|
148
|
+
validationException?: never;
|
|
149
|
+
runtimeClientError?: never;
|
|
150
|
+
$unknown?: never;
|
|
151
|
+
}
|
|
152
|
+
interface ResourceNotFoundExceptionMember {
|
|
153
|
+
chunk?: never;
|
|
154
|
+
accessDeniedException?: never;
|
|
155
|
+
internalServerException?: never;
|
|
156
|
+
resourceNotFoundException: ResourceNotFoundException;
|
|
157
|
+
serviceQuotaExceededException?: never;
|
|
158
|
+
throttlingException?: never;
|
|
159
|
+
validationException?: never;
|
|
160
|
+
runtimeClientError?: never;
|
|
161
|
+
$unknown?: never;
|
|
162
|
+
}
|
|
163
|
+
interface ServiceQuotaExceededExceptionMember {
|
|
164
|
+
chunk?: never;
|
|
165
|
+
accessDeniedException?: never;
|
|
166
|
+
internalServerException?: never;
|
|
167
|
+
resourceNotFoundException?: never;
|
|
168
|
+
serviceQuotaExceededException: ServiceQuotaExceededException;
|
|
169
|
+
throttlingException?: never;
|
|
170
|
+
validationException?: never;
|
|
171
|
+
runtimeClientError?: never;
|
|
172
|
+
$unknown?: never;
|
|
173
|
+
}
|
|
174
|
+
interface ThrottlingExceptionMember {
|
|
175
|
+
chunk?: never;
|
|
176
|
+
accessDeniedException?: never;
|
|
177
|
+
internalServerException?: never;
|
|
178
|
+
resourceNotFoundException?: never;
|
|
179
|
+
serviceQuotaExceededException?: never;
|
|
180
|
+
throttlingException: ThrottlingException;
|
|
181
|
+
validationException?: never;
|
|
182
|
+
runtimeClientError?: never;
|
|
183
|
+
$unknown?: never;
|
|
184
|
+
}
|
|
185
|
+
interface ValidationExceptionMember {
|
|
186
|
+
chunk?: never;
|
|
187
|
+
accessDeniedException?: never;
|
|
188
|
+
internalServerException?: never;
|
|
189
|
+
resourceNotFoundException?: never;
|
|
190
|
+
serviceQuotaExceededException?: never;
|
|
191
|
+
throttlingException?: never;
|
|
192
|
+
validationException: ValidationException;
|
|
193
|
+
runtimeClientError?: never;
|
|
194
|
+
$unknown?: never;
|
|
195
|
+
}
|
|
196
|
+
interface RuntimeClientErrorMember {
|
|
197
|
+
chunk?: never;
|
|
198
|
+
accessDeniedException?: never;
|
|
199
|
+
internalServerException?: never;
|
|
200
|
+
resourceNotFoundException?: never;
|
|
201
|
+
serviceQuotaExceededException?: never;
|
|
202
|
+
throttlingException?: never;
|
|
203
|
+
validationException?: never;
|
|
204
|
+
runtimeClientError: RuntimeClientError;
|
|
205
|
+
$unknown?: never;
|
|
206
|
+
}
|
|
207
|
+
interface $UnknownMember {
|
|
208
|
+
chunk?: never;
|
|
209
|
+
accessDeniedException?: never;
|
|
210
|
+
internalServerException?: never;
|
|
211
|
+
resourceNotFoundException?: never;
|
|
212
|
+
serviceQuotaExceededException?: never;
|
|
213
|
+
throttlingException?: never;
|
|
214
|
+
validationException?: never;
|
|
215
|
+
runtimeClientError?: never;
|
|
216
|
+
$unknown: [string, any];
|
|
217
|
+
}
|
|
218
|
+
interface Visitor<T> {
|
|
219
|
+
chunk: (value: ResponseChunk) => T;
|
|
220
|
+
accessDeniedException: (value: AccessDeniedException) => T;
|
|
221
|
+
internalServerException: (value: InternalServerException) => T;
|
|
222
|
+
resourceNotFoundException: (value: ResourceNotFoundException) => T;
|
|
223
|
+
serviceQuotaExceededException: (value: ServiceQuotaExceededException) => T;
|
|
224
|
+
throttlingException: (value: ThrottlingException) => T;
|
|
225
|
+
validationException: (value: ValidationException) => T;
|
|
226
|
+
runtimeClientError: (value: RuntimeClientError) => T;
|
|
227
|
+
_: (name: string, value: any) => T;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
export interface InvokeAgentRuntimeCommandResponse {
|
|
231
|
+
runtimeSessionId?: string | undefined;
|
|
232
|
+
traceId?: string | undefined;
|
|
233
|
+
traceParent?: string | undefined;
|
|
234
|
+
traceState?: string | undefined;
|
|
235
|
+
baggage?: string | undefined;
|
|
236
|
+
contentType: string | undefined;
|
|
237
|
+
statusCode?: number | undefined;
|
|
238
|
+
stream: AsyncIterable<InvokeAgentRuntimeCommandStreamOutput> | undefined;
|
|
239
|
+
}
|
|
75
240
|
export interface StopRuntimeSessionRequest {
|
|
76
241
|
runtimeSessionId: string | undefined;
|
|
77
242
|
agentRuntimeArn: string | undefined;
|
|
@@ -42,6 +42,9 @@ export declare var CodeInterpreterSessionSummary$: StaticStructureSchema;
|
|
|
42
42
|
export declare var CompleteResourceTokenAuthRequest$: StaticStructureSchema;
|
|
43
43
|
export declare var CompleteResourceTokenAuthResponse$: StaticStructureSchema;
|
|
44
44
|
export declare var ContentBlock$: StaticStructureSchema;
|
|
45
|
+
export declare var ContentDeltaEvent$: StaticStructureSchema;
|
|
46
|
+
export declare var ContentStartEvent$: StaticStructureSchema;
|
|
47
|
+
export declare var ContentStopEvent$: StaticStructureSchema;
|
|
45
48
|
export declare var Conversational$: StaticStructureSchema;
|
|
46
49
|
export declare var CreateEventInput$: StaticStructureSchema;
|
|
47
50
|
export declare var CreateEventOutput$: StaticStructureSchema;
|
|
@@ -80,6 +83,9 @@ export declare var GetWorkloadAccessTokenForUserIdResponse$: StaticStructureSche
|
|
|
80
83
|
export declare var GetWorkloadAccessTokenRequest$: StaticStructureSchema;
|
|
81
84
|
export declare var GetWorkloadAccessTokenResponse$: StaticStructureSchema;
|
|
82
85
|
export declare var InputContentBlock$: StaticStructureSchema;
|
|
86
|
+
export declare var InvokeAgentRuntimeCommandRequest$: StaticStructureSchema;
|
|
87
|
+
export declare var InvokeAgentRuntimeCommandRequestBody$: StaticStructureSchema;
|
|
88
|
+
export declare var InvokeAgentRuntimeCommandResponse$: StaticStructureSchema;
|
|
83
89
|
export declare var InvokeAgentRuntimeRequest$: StaticStructureSchema;
|
|
84
90
|
export declare var InvokeAgentRuntimeResponse$: StaticStructureSchema;
|
|
85
91
|
export declare var InvokeCodeInterpreterRequest$: StaticStructureSchema;
|
|
@@ -110,6 +116,7 @@ export declare var MessageMetadata$: StaticStructureSchema;
|
|
|
110
116
|
export declare var ProxyBypass$: StaticStructureSchema;
|
|
111
117
|
export declare var ProxyConfiguration$: StaticStructureSchema;
|
|
112
118
|
export declare var ResourceContent$: StaticStructureSchema;
|
|
119
|
+
export declare var ResponseChunk$: StaticStructureSchema;
|
|
113
120
|
export declare var RetrieveMemoryRecordsInput$: StaticStructureSchema;
|
|
114
121
|
export declare var RetrieveMemoryRecordsOutput$: StaticStructureSchema;
|
|
115
122
|
export declare var S3Location$: StaticStructureSchema;
|
|
@@ -143,6 +150,7 @@ export declare var Context$: StaticUnionSchema;
|
|
|
143
150
|
export declare var EvaluationInput$: StaticUnionSchema;
|
|
144
151
|
export declare var EvaluationTarget$: StaticUnionSchema;
|
|
145
152
|
export declare var ExtractionJobMessages$: StaticUnionSchema;
|
|
153
|
+
export declare var InvokeAgentRuntimeCommandStreamOutput$: StaticUnionSchema;
|
|
146
154
|
export declare var LeftExpression$: StaticUnionSchema;
|
|
147
155
|
export declare var MemoryContent$: StaticUnionSchema;
|
|
148
156
|
export declare var MetadataValue$: StaticUnionSchema;
|
|
@@ -172,6 +180,7 @@ export declare var GetWorkloadAccessToken$: StaticOperationSchema;
|
|
|
172
180
|
export declare var GetWorkloadAccessTokenForJWT$: StaticOperationSchema;
|
|
173
181
|
export declare var GetWorkloadAccessTokenForUserId$: StaticOperationSchema;
|
|
174
182
|
export declare var InvokeAgentRuntime$: StaticOperationSchema;
|
|
183
|
+
export declare var InvokeAgentRuntimeCommand$: StaticOperationSchema;
|
|
175
184
|
export declare var InvokeCodeInterpreter$: StaticOperationSchema;
|
|
176
185
|
export declare var ListActors$: StaticOperationSchema;
|
|
177
186
|
export declare var ListBrowserSessions$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-agentcore",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Agentcore Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1010.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-agentcore",
|