@aws-sdk/client-bedrock-agentcore 3.1008.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 +33 -46
- 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 +37 -37
|
@@ -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",
|
|
@@ -21,45 +21,45 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
27
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
31
|
-
"@aws-sdk/types": "^3.973.
|
|
32
|
-
"@aws-sdk/util-endpoints": "^3.996.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
35
|
-
"@smithy/config-resolver": "^4.4.
|
|
36
|
-
"@smithy/core": "^3.23.
|
|
37
|
-
"@smithy/eventstream-serde-browser": "^4.2.
|
|
38
|
-
"@smithy/eventstream-serde-config-resolver": "^4.3.
|
|
39
|
-
"@smithy/eventstream-serde-node": "^4.2.
|
|
40
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
41
|
-
"@smithy/hash-node": "^4.2.
|
|
42
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
43
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
44
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
45
|
-
"@smithy/middleware-retry": "^4.4.
|
|
46
|
-
"@smithy/middleware-serde": "^4.2.
|
|
47
|
-
"@smithy/middleware-stack": "^4.2.
|
|
48
|
-
"@smithy/node-config-provider": "^4.3.
|
|
49
|
-
"@smithy/node-http-handler": "^4.4.
|
|
50
|
-
"@smithy/protocol-http": "^5.3.
|
|
51
|
-
"@smithy/smithy-client": "^4.12.
|
|
52
|
-
"@smithy/types": "^4.13.
|
|
53
|
-
"@smithy/url-parser": "^4.2.
|
|
24
|
+
"@aws-sdk/core": "^3.973.20",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.21",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "^3.972.8",
|
|
27
|
+
"@aws-sdk/middleware-logger": "^3.972.8",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.8",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.21",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "^3.972.8",
|
|
31
|
+
"@aws-sdk/types": "^3.973.6",
|
|
32
|
+
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.973.7",
|
|
35
|
+
"@smithy/config-resolver": "^4.4.11",
|
|
36
|
+
"@smithy/core": "^3.23.11",
|
|
37
|
+
"@smithy/eventstream-serde-browser": "^4.2.12",
|
|
38
|
+
"@smithy/eventstream-serde-config-resolver": "^4.3.12",
|
|
39
|
+
"@smithy/eventstream-serde-node": "^4.2.12",
|
|
40
|
+
"@smithy/fetch-http-handler": "^5.3.15",
|
|
41
|
+
"@smithy/hash-node": "^4.2.12",
|
|
42
|
+
"@smithy/invalid-dependency": "^4.2.12",
|
|
43
|
+
"@smithy/middleware-content-length": "^4.2.12",
|
|
44
|
+
"@smithy/middleware-endpoint": "^4.4.25",
|
|
45
|
+
"@smithy/middleware-retry": "^4.4.42",
|
|
46
|
+
"@smithy/middleware-serde": "^4.2.14",
|
|
47
|
+
"@smithy/middleware-stack": "^4.2.12",
|
|
48
|
+
"@smithy/node-config-provider": "^4.3.12",
|
|
49
|
+
"@smithy/node-http-handler": "^4.4.16",
|
|
50
|
+
"@smithy/protocol-http": "^5.3.12",
|
|
51
|
+
"@smithy/smithy-client": "^4.12.5",
|
|
52
|
+
"@smithy/types": "^4.13.1",
|
|
53
|
+
"@smithy/url-parser": "^4.2.12",
|
|
54
54
|
"@smithy/util-base64": "^4.3.2",
|
|
55
55
|
"@smithy/util-body-length-browser": "^4.2.2",
|
|
56
56
|
"@smithy/util-body-length-node": "^4.2.3",
|
|
57
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
58
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
59
|
-
"@smithy/util-endpoints": "^3.3.
|
|
60
|
-
"@smithy/util-middleware": "^4.2.
|
|
61
|
-
"@smithy/util-retry": "^4.2.
|
|
62
|
-
"@smithy/util-stream": "^4.5.
|
|
57
|
+
"@smithy/util-defaults-mode-browser": "^4.3.41",
|
|
58
|
+
"@smithy/util-defaults-mode-node": "^4.2.44",
|
|
59
|
+
"@smithy/util-endpoints": "^3.3.3",
|
|
60
|
+
"@smithy/util-middleware": "^4.2.12",
|
|
61
|
+
"@smithy/util-retry": "^4.2.12",
|
|
62
|
+
"@smithy/util-stream": "^4.5.19",
|
|
63
63
|
"@smithy/util-utf8": "^4.2.2",
|
|
64
64
|
"tslib": "^2.6.2"
|
|
65
65
|
},
|