@aws-sdk/client-bedrock-agentcore 3.1024.0 → 3.1026.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 +29 -0
- package/dist-cjs/schemas/schemas_0.js +159 -10
- package/dist-es/BedrockAgentCore.js +2 -0
- package/dist-es/commands/InvokeBrowserCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +12 -0
- package/dist-es/schemas/schemas_0.js +155 -6
- package/dist-types/BedrockAgentCore.d.ts +7 -0
- package/dist-types/BedrockAgentCoreClient.d.ts +3 -2
- package/dist-types/commands/InvokeBrowserCommand.d.ts +168 -0
- package/dist-types/commands/ListSessionsCommand.d.ts +1 -1
- package/dist-types/commands/StartBrowserSessionCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +36 -0
- package/dist-types/models/models_0.d.ts +637 -1
- package/dist-types/schemas/schemas_0.d.ts +21 -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/InvokeBrowserCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +17 -0
- package/dist-types/ts3.4/models/models_0.d.ts +325 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +21 -0
- package/package.json +37 -37
package/README.md
CHANGED
|
@@ -321,6 +321,13 @@ InvokeAgentRuntimeCommand
|
|
|
321
321
|
</details>
|
|
322
322
|
<details>
|
|
323
323
|
<summary>
|
|
324
|
+
InvokeBrowser
|
|
325
|
+
</summary>
|
|
326
|
+
|
|
327
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore/command/InvokeBrowserCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/InvokeBrowserCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/InvokeBrowserCommandOutput/)
|
|
328
|
+
</details>
|
|
329
|
+
<details>
|
|
330
|
+
<summary>
|
|
324
331
|
InvokeCodeInterpreter
|
|
325
332
|
</summary>
|
|
326
333
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -359,6 +359,18 @@ class InvokeAgentRuntimeCommandCommand extends smithyClient.Command
|
|
|
359
359
|
.build() {
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
+
class InvokeBrowserCommand extends smithyClient.Command
|
|
363
|
+
.classBuilder()
|
|
364
|
+
.ep(commonParams)
|
|
365
|
+
.m(function (Command, cs, config, o) {
|
|
366
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
367
|
+
})
|
|
368
|
+
.s("AmazonBedrockAgentCore", "InvokeBrowser", {})
|
|
369
|
+
.n("BedrockAgentCoreClient", "InvokeBrowserCommand")
|
|
370
|
+
.sc(schemas_0.InvokeBrowser$)
|
|
371
|
+
.build() {
|
|
372
|
+
}
|
|
373
|
+
|
|
362
374
|
class InvokeCodeInterpreterCommand extends smithyClient.Command
|
|
363
375
|
.classBuilder()
|
|
364
376
|
.ep(commonParams)
|
|
@@ -600,6 +612,7 @@ const commands = {
|
|
|
600
612
|
GetWorkloadAccessTokenForUserIdCommand,
|
|
601
613
|
InvokeAgentRuntimeCommand,
|
|
602
614
|
InvokeAgentRuntimeCommandCommand,
|
|
615
|
+
InvokeBrowserCommand,
|
|
603
616
|
InvokeCodeInterpreterCommand,
|
|
604
617
|
ListActorsCommand,
|
|
605
618
|
ListBrowserSessionsCommand,
|
|
@@ -653,6 +666,18 @@ const AutomationStreamStatus = {
|
|
|
653
666
|
DISABLED: "DISABLED",
|
|
654
667
|
ENABLED: "ENABLED",
|
|
655
668
|
};
|
|
669
|
+
const MouseButton = {
|
|
670
|
+
LEFT: "LEFT",
|
|
671
|
+
MIDDLE: "MIDDLE",
|
|
672
|
+
RIGHT: "RIGHT",
|
|
673
|
+
};
|
|
674
|
+
const ScreenshotFormat = {
|
|
675
|
+
PNG: "PNG",
|
|
676
|
+
};
|
|
677
|
+
const BrowserActionStatus = {
|
|
678
|
+
FAILED: "FAILED",
|
|
679
|
+
SUCCESS: "SUCCESS",
|
|
680
|
+
};
|
|
656
681
|
const CodeInterpreterSessionStatus = {
|
|
657
682
|
READY: "READY",
|
|
658
683
|
TERMINATED: "TERMINATED",
|
|
@@ -734,6 +759,7 @@ exports.BatchDeleteMemoryRecordsCommand = BatchDeleteMemoryRecordsCommand;
|
|
|
734
759
|
exports.BatchUpdateMemoryRecordsCommand = BatchUpdateMemoryRecordsCommand;
|
|
735
760
|
exports.BedrockAgentCore = BedrockAgentCore;
|
|
736
761
|
exports.BedrockAgentCoreClient = BedrockAgentCoreClient;
|
|
762
|
+
exports.BrowserActionStatus = BrowserActionStatus;
|
|
737
763
|
exports.BrowserEnterprisePolicyType = BrowserEnterprisePolicyType;
|
|
738
764
|
exports.BrowserSessionStatus = BrowserSessionStatus;
|
|
739
765
|
exports.CodeInterpreterSessionStatus = CodeInterpreterSessionStatus;
|
|
@@ -758,6 +784,7 @@ exports.GetWorkloadAccessTokenForJWTCommand = GetWorkloadAccessTokenForJWTComman
|
|
|
758
784
|
exports.GetWorkloadAccessTokenForUserIdCommand = GetWorkloadAccessTokenForUserIdCommand;
|
|
759
785
|
exports.InvokeAgentRuntimeCommand = InvokeAgentRuntimeCommand;
|
|
760
786
|
exports.InvokeAgentRuntimeCommandCommand = InvokeAgentRuntimeCommandCommand;
|
|
787
|
+
exports.InvokeBrowserCommand = InvokeBrowserCommand;
|
|
761
788
|
exports.InvokeCodeInterpreterCommand = InvokeCodeInterpreterCommand;
|
|
762
789
|
exports.LanguageRuntime = LanguageRuntime;
|
|
763
790
|
exports.ListActorsCommand = ListActorsCommand;
|
|
@@ -768,6 +795,7 @@ exports.ListMemoryExtractionJobsCommand = ListMemoryExtractionJobsCommand;
|
|
|
768
795
|
exports.ListMemoryRecordsCommand = ListMemoryRecordsCommand;
|
|
769
796
|
exports.ListSessionsCommand = ListSessionsCommand;
|
|
770
797
|
exports.MemoryRecordStatus = MemoryRecordStatus;
|
|
798
|
+
exports.MouseButton = MouseButton;
|
|
771
799
|
exports.Oauth2FlowType = Oauth2FlowType;
|
|
772
800
|
exports.OperatorType = OperatorType;
|
|
773
801
|
exports.ProgrammingLanguage = ProgrammingLanguage;
|
|
@@ -775,6 +803,7 @@ exports.ResourceContentType = ResourceContentType;
|
|
|
775
803
|
exports.RetrieveMemoryRecordsCommand = RetrieveMemoryRecordsCommand;
|
|
776
804
|
exports.Role = Role;
|
|
777
805
|
exports.SaveBrowserSessionProfileCommand = SaveBrowserSessionProfileCommand;
|
|
806
|
+
exports.ScreenshotFormat = ScreenshotFormat;
|
|
778
807
|
exports.SessionStatus = SessionStatus;
|
|
779
808
|
exports.StartBrowserSessionCommand = StartBrowserSessionCommand;
|
|
780
809
|
exports.StartCodeInterpreterSessionCommand = StartCodeInterpreterSessionCommand;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EvaluateRequest$ = exports.DeleteMemoryRecordOutput$ = exports.DeleteMemoryRecordInput$ = exports.DeleteEventOutput$ = exports.DeleteEventInput$ = exports.CreateEventOutput$ = exports.CreateEventInput$ = exports.Conversational$ = exports.ContentStopEvent$ = exports.ContentStartEvent$ = exports.ContentDeltaEvent$ = exports.ContentBlock$ = exports.CompleteResourceTokenAuthResponse$ = exports.CompleteResourceTokenAuthRequest$ = exports.CodeInterpreterSessionSummary$ = exports.CodeInterpreterResult$ = exports.Certificate$ = exports.BrowserSessionSummary$ = exports.BrowserSessionStream$ = exports.BrowserProfileConfiguration$ = exports.BrowserExtension$ = exports.BrowserEnterprisePolicy$ = exports.BranchFilter$ = exports.Branch$ = exports.BatchUpdateMemoryRecordsOutput$ = exports.BatchUpdateMemoryRecordsInput$ = exports.BatchDeleteMemoryRecordsOutput$ = exports.BatchDeleteMemoryRecordsInput$ = exports.BatchCreateMemoryRecordsOutput$ = exports.BatchCreateMemoryRecordsInput$ = exports.BasicAuth$ = exports.AutomationStreamUpdate$ = exports.AutomationStream$ = exports.ActorSummary$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.UnauthorizedException$ = exports.ThrottlingException$ = exports.ThrottledException$ = exports.ServiceQuotaExceededException$ = exports.ServiceException$ = exports.RuntimeClientError$ = exports.RetryableConflictException$ = exports.ResourceNotFoundException$ = exports.InvalidInputException$ = exports.InternalServerException$ = exports.DuplicateIdException$ = exports.ConflictException$ = exports.AccessDeniedException$ = exports.BedrockAgentCoreServiceException$ = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.UpdateBrowserStream$ = void 0;
|
|
4
|
+
exports.ListBrowserSessionsRequest$ = exports.ListActorsOutput$ = exports.ListActorsInput$ = exports.KeyTypeResult$ = exports.KeyTypeArguments$ = exports.KeyShortcutResult$ = exports.KeyShortcutArguments$ = exports.KeyPressResult$ = exports.KeyPressArguments$ = exports.InvokeCodeInterpreterResponse$ = exports.InvokeCodeInterpreterRequest$ = exports.InvokeBrowserResponse$ = exports.InvokeBrowserRequest$ = exports.InvokeAgentRuntimeResponse$ = exports.InvokeAgentRuntimeRequest$ = exports.InvokeAgentRuntimeCommandResponse$ = exports.InvokeAgentRuntimeCommandRequestBody$ = exports.InvokeAgentRuntimeCommandRequest$ = exports.InputContentBlock$ = exports.GetWorkloadAccessTokenResponse$ = exports.GetWorkloadAccessTokenRequest$ = exports.GetWorkloadAccessTokenForUserIdResponse$ = exports.GetWorkloadAccessTokenForUserIdRequest$ = exports.GetWorkloadAccessTokenForJWTResponse$ = exports.GetWorkloadAccessTokenForJWTRequest$ = exports.GetResourceOauth2TokenResponse$ = exports.GetResourceOauth2TokenRequest$ = exports.GetResourceApiKeyResponse$ = exports.GetResourceApiKeyRequest$ = exports.GetMemoryRecordOutput$ = exports.GetMemoryRecordInput$ = exports.GetEventOutput$ = exports.GetEventInput$ = exports.GetCodeInterpreterSessionResponse$ = exports.GetCodeInterpreterSessionRequest$ = exports.GetBrowserSessionResponse$ = exports.GetBrowserSessionRequest$ = exports.GetAgentCardResponse$ = exports.GetAgentCardRequest$ = exports.FilterInput$ = exports.ExtractionJobMetadata$ = exports.ExtractionJobFilterInput$ = exports.ExtractionJob$ = exports.ExternalProxy$ = exports.EventMetadataFilterExpression$ = exports.Event$ = exports.EvaluationResultContent$ = exports.EvaluationReferenceInput$ = exports.EvaluationExpectedTrajectory$ = exports.EvaluateResponse$ = void 0;
|
|
5
|
+
exports.StartMemoryExtractionJobOutput$ = exports.StartMemoryExtractionJobInput$ = exports.StartCodeInterpreterSessionResponse$ = exports.StartCodeInterpreterSessionRequest$ = exports.StartBrowserSessionResponse$ = exports.StartBrowserSessionRequest$ = exports.SpanContext$ = exports.SessionSummary$ = exports.SessionFilter$ = exports.SecretsManagerLocation$ = exports.SearchCriteria$ = exports.ScreenshotResult$ = exports.ScreenshotArguments$ = exports.SaveBrowserSessionProfileResponse$ = exports.SaveBrowserSessionProfileRequest$ = exports.S3Location$ = exports.RetrieveMemoryRecordsOutput$ = exports.RetrieveMemoryRecordsInput$ = exports.ResponseChunk$ = exports.ResourceContent$ = exports.ProxyConfiguration$ = exports.ProxyBypass$ = exports.MouseScrollResult$ = exports.MouseScrollArguments$ = exports.MouseMoveResult$ = exports.MouseMoveArguments$ = exports.MouseDragResult$ = exports.MouseDragArguments$ = exports.MouseClickResult$ = exports.MouseClickArguments$ = exports.MessageMetadata$ = exports.MemoryRecordUpdateInput$ = exports.MemoryRecordSummary$ = exports.MemoryRecordOutput$ = exports.MemoryRecordDeleteInput$ = exports.MemoryRecordCreateInput$ = exports.MemoryRecord$ = exports.MemoryMetadataFilterExpression$ = exports.LiveViewStream$ = exports.ListSessionsOutput$ = exports.ListSessionsInput$ = exports.ListMemoryRecordsOutput$ = exports.ListMemoryRecordsInput$ = exports.ListMemoryExtractionJobsOutput$ = exports.ListMemoryExtractionJobsInput$ = exports.ListEventsOutput$ = exports.ListEventsInput$ = exports.ListCodeInterpreterSessionsResponse$ = exports.ListCodeInterpreterSessionsRequest$ = exports.ListBrowserSessionsResponse$ = void 0;
|
|
6
|
+
exports.GetWorkloadAccessToken$ = exports.GetResourceOauth2Token$ = exports.GetResourceApiKey$ = exports.GetMemoryRecord$ = exports.GetEvent$ = exports.GetCodeInterpreterSession$ = exports.GetBrowserSession$ = exports.GetAgentCard$ = exports.Evaluate$ = exports.DeleteMemoryRecord$ = exports.DeleteEvent$ = exports.CreateEvent$ = exports.CompleteResourceTokenAuth$ = exports.BatchUpdateMemoryRecords$ = exports.BatchDeleteMemoryRecords$ = exports.BatchCreateMemoryRecords$ = exports.UserIdentifier$ = exports.StreamUpdate$ = exports.RightExpression$ = exports.ResourceLocation$ = exports.ProxyCredentials$ = exports.Proxy$ = exports.PayloadType$ = exports.MetadataValue$ = exports.MemoryContent$ = exports.LeftExpression$ = exports.InvokeAgentRuntimeCommandStreamOutput$ = exports.ExtractionJobMessages$ = exports.EvaluationTarget$ = exports.EvaluationInput$ = exports.EvaluationContent$ = exports.Context$ = exports.Content$ = exports.CodeInterpreterStreamOutput$ = exports.CertificateLocation$ = exports.BrowserActionResult$ = exports.BrowserAction$ = exports.ViewPort$ = exports.ValidationExceptionField$ = exports.UpdateBrowserStreamResponse$ = exports.UpdateBrowserStreamRequest$ = exports.ToolResultStructuredContent$ = exports.ToolArguments$ = exports.TokenUsage$ = exports.StopRuntimeSessionResponse$ = exports.StopRuntimeSessionRequest$ = exports.StopCodeInterpreterSessionResponse$ = exports.StopCodeInterpreterSessionRequest$ = exports.StopBrowserSessionResponse$ = exports.StopBrowserSessionRequest$ = void 0;
|
|
7
|
+
exports.UpdateBrowserStream$ = exports.StopRuntimeSession$ = exports.StopCodeInterpreterSession$ = exports.StopBrowserSession$ = exports.StartMemoryExtractionJob$ = exports.StartCodeInterpreterSession$ = exports.StartBrowserSession$ = exports.SaveBrowserSessionProfile$ = exports.RetrieveMemoryRecords$ = exports.ListSessions$ = exports.ListMemoryRecords$ = exports.ListMemoryExtractionJobs$ = exports.ListEvents$ = exports.ListCodeInterpreterSessions$ = exports.ListBrowserSessions$ = exports.ListActors$ = exports.InvokeCodeInterpreter$ = exports.InvokeBrowser$ = exports.InvokeAgentRuntimeCommand$ = exports.InvokeAgentRuntime$ = exports.GetWorkloadAccessTokenForUserId$ = exports.GetWorkloadAccessTokenForJWT$ = void 0;
|
|
8
8
|
const _A = "Accept";
|
|
9
9
|
const _ADE = "AccessDeniedException";
|
|
10
10
|
const _AKT = "ApiKeyType";
|
|
@@ -16,6 +16,8 @@ const _ATT = "AccessTokenType";
|
|
|
16
16
|
const _AUT = "AuthorizationUrlType";
|
|
17
17
|
const _B = "Body";
|
|
18
18
|
const _BA = "BasicAuth";
|
|
19
|
+
const _BAR = "BrowserActionResult";
|
|
20
|
+
const _BAr = "BrowserAction";
|
|
19
21
|
const _BCMR = "BatchCreateMemoryRecords";
|
|
20
22
|
const _BCMRI = "BatchCreateMemoryRecordsInput";
|
|
21
23
|
const _BCMRO = "BatchCreateMemoryRecordsOutput";
|
|
@@ -130,6 +132,9 @@ const _IARCRn = "InvokeAgentRuntimeCommandResponse";
|
|
|
130
132
|
const _IARCSO = "InvokeAgentRuntimeCommandStreamOutput";
|
|
131
133
|
const _IARR = "InvokeAgentRuntimeRequest";
|
|
132
134
|
const _IARRn = "InvokeAgentRuntimeResponse";
|
|
135
|
+
const _IB = "InvokeBrowser";
|
|
136
|
+
const _IBR = "InvokeBrowserRequest";
|
|
137
|
+
const _IBRn = "InvokeBrowserResponse";
|
|
133
138
|
const _ICB = "InputContentBlock";
|
|
134
139
|
const _ICBL = "InputContentBlockList";
|
|
135
140
|
const _ICI = "InvokeCodeInterpreter";
|
|
@@ -137,6 +142,12 @@ const _ICIR = "InvokeCodeInterpreterRequest";
|
|
|
137
142
|
const _ICIRn = "InvokeCodeInterpreterResponse";
|
|
138
143
|
const _IIE = "InvalidInputException";
|
|
139
144
|
const _ISE = "InternalServerException";
|
|
145
|
+
const _KPA = "KeyPressArguments";
|
|
146
|
+
const _KPR = "KeyPressResult";
|
|
147
|
+
const _KSA = "KeyShortcutArguments";
|
|
148
|
+
const _KSR = "KeyShortcutResult";
|
|
149
|
+
const _KTA = "KeyTypeArguments";
|
|
150
|
+
const _KTR = "KeyTypeResult";
|
|
140
151
|
const _LA = "ListActors";
|
|
141
152
|
const _LAI = "ListActorsInput";
|
|
142
153
|
const _LAO = "ListActorsOutput";
|
|
@@ -161,10 +172,16 @@ const _LSI = "ListSessionsInput";
|
|
|
161
172
|
const _LSO = "ListSessionsOutput";
|
|
162
173
|
const _LVS = "LiveViewStream";
|
|
163
174
|
const _MC = "MemoryContent";
|
|
175
|
+
const _MCA = "MouseClickArguments";
|
|
176
|
+
const _MCR = "MouseClickResult";
|
|
177
|
+
const _MDA = "MouseDragArguments";
|
|
178
|
+
const _MDR = "MouseDragResult";
|
|
164
179
|
const _ML = "MessagesList";
|
|
165
180
|
const _MM = "MessageMetadata";
|
|
181
|
+
const _MMA = "MouseMoveArguments";
|
|
166
182
|
const _MMFE = "MemoryMetadataFilterExpression";
|
|
167
183
|
const _MMFL = "MemoryMetadataFilterList";
|
|
184
|
+
const _MMR = "MouseMoveResult";
|
|
168
185
|
const _MMe = "MetadataMap";
|
|
169
186
|
const _MPV = "Mcp-Protocol-Version";
|
|
170
187
|
const _MR = "MemoryRecord";
|
|
@@ -178,7 +195,9 @@ const _MRS = "MemoryRecordSummary";
|
|
|
178
195
|
const _MRSL = "MemoryRecordSummaryList";
|
|
179
196
|
const _MRUI = "MemoryRecordUpdateInput";
|
|
180
197
|
const _MRUIL = "MemoryRecordsUpdateInputList";
|
|
198
|
+
const _MSA = "MouseScrollArguments";
|
|
181
199
|
const _MSI = "Mcp-Session-Id";
|
|
200
|
+
const _MSR = "MouseScrollResult";
|
|
182
201
|
const _MV = "MetadataValue";
|
|
183
202
|
const _P = "Proxies";
|
|
184
203
|
const _PB = "ProxyBypass";
|
|
@@ -199,6 +218,7 @@ const _RMRO = "RetrieveMemoryRecordsOutput";
|
|
|
199
218
|
const _RNFE = "ResourceNotFoundException";
|
|
200
219
|
const _RS = "ResponseStream";
|
|
201
220
|
const _S = "State";
|
|
221
|
+
const _SA = "ScreenshotArguments";
|
|
202
222
|
const _SBS = "StartBrowserSession";
|
|
203
223
|
const _SBSP = "SaveBrowserSessionProfile";
|
|
204
224
|
const _SBSPR = "SaveBrowserSessionProfileRequest";
|
|
@@ -224,6 +244,7 @@ const _SMEJI = "StartMemoryExtractionJobInput";
|
|
|
224
244
|
const _SMEJO = "StartMemoryExtractionJobOutput";
|
|
225
245
|
const _SML = "SecretsManagerLocation";
|
|
226
246
|
const _SQEE = "ServiceQuotaExceededException";
|
|
247
|
+
const _SR = "ScreenshotResult";
|
|
227
248
|
const _SRS = "StopRuntimeSession";
|
|
228
249
|
const _SRSR = "StopRuntimeSessionRequest";
|
|
229
250
|
const _SRSRt = "StopRuntimeSessionResponse";
|
|
@@ -264,6 +285,7 @@ const _aSc = "actorSummaries";
|
|
|
264
285
|
const _aT = "accessToken";
|
|
265
286
|
const _aU = "authorizationUrl";
|
|
266
287
|
const _ac = "accept";
|
|
288
|
+
const _act = "action";
|
|
267
289
|
const _ar = "arguments";
|
|
268
290
|
const _b = "branch";
|
|
269
291
|
const _bA = "basicAuth";
|
|
@@ -271,11 +293,13 @@ const _bI = "browserIdentifier";
|
|
|
271
293
|
const _ba = "baggage";
|
|
272
294
|
const _bl = "blob";
|
|
273
295
|
const _bo = "body";
|
|
274
|
-
const _bu = "
|
|
296
|
+
const _bu = "button";
|
|
297
|
+
const _buc = "bucket";
|
|
275
298
|
const _by = "bypass";
|
|
276
299
|
const _c = "client";
|
|
277
300
|
const _cA = "createdAt";
|
|
278
|
-
const _cC = "
|
|
301
|
+
const _cC = "clickCount";
|
|
302
|
+
const _cCl = "clearContext";
|
|
279
303
|
const _cD = "contentDelta";
|
|
280
304
|
const _cE = "conflictException";
|
|
281
305
|
const _cII = "codeInterpreterIdentifier";
|
|
@@ -296,6 +320,8 @@ const _cr = "credentials";
|
|
|
296
320
|
const _d = "data";
|
|
297
321
|
const _dP = "domainPatterns";
|
|
298
322
|
const _dPi = "directoryPath";
|
|
323
|
+
const _dX = "deltaX";
|
|
324
|
+
const _dY = "deltaY";
|
|
299
325
|
const _de = "description";
|
|
300
326
|
const _e = "error";
|
|
301
327
|
const _eA = "evaluatorArn";
|
|
@@ -318,6 +344,8 @@ const _eT = "eventTimestamp";
|
|
|
318
344
|
const _eTv = "evaluationTarget";
|
|
319
345
|
const _eTx = "expectedTrajectory";
|
|
320
346
|
const _eTxe = "executionTime";
|
|
347
|
+
const _eX = "endX";
|
|
348
|
+
const _eY = "endY";
|
|
321
349
|
const _ev = "event";
|
|
322
350
|
const _eve = "events";
|
|
323
351
|
const _ex = "explanation";
|
|
@@ -327,6 +355,7 @@ const _fA = "forceAuthentication";
|
|
|
327
355
|
const _fL = "fieldList";
|
|
328
356
|
const _fR = "failedRecords";
|
|
329
357
|
const _fRa = "failureReason";
|
|
358
|
+
const _fo = "format";
|
|
330
359
|
const _h = "height";
|
|
331
360
|
const _hE = "httpError";
|
|
332
361
|
const _hH = "httpHeader";
|
|
@@ -343,6 +372,11 @@ const _iTn = "inputTokens";
|
|
|
343
372
|
const _j = "jobs";
|
|
344
373
|
const _jI = "jobId";
|
|
345
374
|
const _jID = "jobID";
|
|
375
|
+
const _k = "key";
|
|
376
|
+
const _kP = "keyPress";
|
|
377
|
+
const _kS = "keyShortcut";
|
|
378
|
+
const _kT = "keyType";
|
|
379
|
+
const _ke = "keys";
|
|
346
380
|
const _l = "location";
|
|
347
381
|
const _lUA = "lastUpdatedAt";
|
|
348
382
|
const _lVS = "liveViewStream";
|
|
@@ -350,16 +384,20 @@ const _la = "label";
|
|
|
350
384
|
const _lan = "language";
|
|
351
385
|
const _le = "left";
|
|
352
386
|
const _m = "message";
|
|
387
|
+
const _mC = "mouseClick";
|
|
388
|
+
const _mD = "mouseDrag";
|
|
353
389
|
const _mF = "metadataFilters";
|
|
354
390
|
const _mI = "memoryId";
|
|
355
391
|
const _mIe = "messageIndex";
|
|
356
392
|
const _mK = "metadataKey";
|
|
357
393
|
const _mL = "messagesList";
|
|
394
|
+
const _mM = "mouseMove";
|
|
358
395
|
const _mPV = "mcpProtocolVersion";
|
|
359
396
|
const _mR = "memoryRecord";
|
|
360
397
|
const _mRI = "memoryRecordId";
|
|
361
398
|
const _mRS = "memoryRecordSummaries";
|
|
362
399
|
const _mRa = "maxResults";
|
|
400
|
+
const _mS = "mouseScroll";
|
|
363
401
|
const _mSI = "mcpSessionId";
|
|
364
402
|
const _mSIe = "memoryStrategyId";
|
|
365
403
|
const _mT = "mimeType";
|
|
@@ -380,8 +418,9 @@ const _pI = "profileIdentifier";
|
|
|
380
418
|
const _pa = "path";
|
|
381
419
|
const _pat = "paths";
|
|
382
420
|
const _po = "port";
|
|
383
|
-
const _pr = "
|
|
421
|
+
const _pr = "presses";
|
|
384
422
|
const _pre = "prefix";
|
|
423
|
+
const _pro = "proxies";
|
|
385
424
|
const _q = "qualifier";
|
|
386
425
|
const _r = "reason";
|
|
387
426
|
const _rCE = "runtimeClientError";
|
|
@@ -423,9 +462,12 @@ const _sTS = "sessionTimeoutSeconds";
|
|
|
423
462
|
const _sU = "sessionUri";
|
|
424
463
|
const _sUt = "streamUpdate";
|
|
425
464
|
const _sV = "stringValue";
|
|
465
|
+
const _sX = "startX";
|
|
466
|
+
const _sY = "startY";
|
|
426
467
|
const _s_ = "s3";
|
|
427
468
|
const _sc = "scopes";
|
|
428
469
|
const _sco = "score";
|
|
470
|
+
const _scr = "screenshot";
|
|
429
471
|
const _se = "server";
|
|
430
472
|
const _sen = "sensitive";
|
|
431
473
|
const _si = "size";
|
|
@@ -465,7 +507,10 @@ const _w = "width";
|
|
|
465
507
|
const _wAT = "workloadAccessToken";
|
|
466
508
|
const _wIT = "workloadIdentityToken";
|
|
467
509
|
const _wN = "workloadName";
|
|
510
|
+
const _x = "x";
|
|
511
|
+
const _xabsi = "x-amzn-browser-session-id";
|
|
468
512
|
const _xacisi = "x-amzn-code-interpreter-session-id";
|
|
513
|
+
const _y = "y";
|
|
469
514
|
const n0 = "com.amazonaws.bedrockagentcore";
|
|
470
515
|
const schema_1 = require("@smithy/core/schema");
|
|
471
516
|
const BedrockAgentCoreServiceException_1 = require("../models/BedrockAgentCoreServiceException");
|
|
@@ -929,6 +974,16 @@ exports.InvokeAgentRuntimeResponse$ = [3, n0, _IARRn,
|
|
|
929
974
|
[_cTo, _rSI, _mSI, _mPV, _tI, _tP, _tS, _ba, _resp, _sCt],
|
|
930
975
|
[[0, { [_hH]: _CT }], [0, { [_hH]: _XABARSI }], [0, { [_hH]: _MSI }], [0, { [_hH]: _MPV }], [0, { [_hH]: _XATI }], [0, { [_hH]: _tr }], [0, { [_hH]: _tra }], [0, { [_hH]: _ba }], [() => ResponseStream, 16], [1, 32]], 1
|
|
931
976
|
];
|
|
977
|
+
exports.InvokeBrowserRequest$ = [3, n0, _IBR,
|
|
978
|
+
0,
|
|
979
|
+
[_bI, _sI, _act],
|
|
980
|
+
[[0, 1], [0, { [_hH]: _xabsi }], () => exports.BrowserAction$], 3
|
|
981
|
+
];
|
|
982
|
+
exports.InvokeBrowserResponse$ = [3, n0, _IBRn,
|
|
983
|
+
0,
|
|
984
|
+
[_resu, _sI],
|
|
985
|
+
[() => exports.BrowserActionResult$, [0, { [_hH]: _xabsi }]], 2
|
|
986
|
+
];
|
|
932
987
|
exports.InvokeCodeInterpreterRequest$ = [3, n0, _ICIR,
|
|
933
988
|
0,
|
|
934
989
|
[_cII, _n, _sI, _tI, _tP, _ar],
|
|
@@ -939,6 +994,36 @@ exports.InvokeCodeInterpreterResponse$ = [3, n0, _ICIRn,
|
|
|
939
994
|
[_stre, _sI],
|
|
940
995
|
[[() => exports.CodeInterpreterStreamOutput$, 16], [0, { [_hH]: _xacisi }]], 1
|
|
941
996
|
];
|
|
997
|
+
exports.KeyPressArguments$ = [3, n0, _KPA,
|
|
998
|
+
0,
|
|
999
|
+
[_k, _pr],
|
|
1000
|
+
[0, 1], 1
|
|
1001
|
+
];
|
|
1002
|
+
exports.KeyPressResult$ = [3, n0, _KPR,
|
|
1003
|
+
0,
|
|
1004
|
+
[_sta, _e],
|
|
1005
|
+
[0, 0], 1
|
|
1006
|
+
];
|
|
1007
|
+
exports.KeyShortcutArguments$ = [3, n0, _KSA,
|
|
1008
|
+
0,
|
|
1009
|
+
[_ke],
|
|
1010
|
+
[64 | 0], 1
|
|
1011
|
+
];
|
|
1012
|
+
exports.KeyShortcutResult$ = [3, n0, _KSR,
|
|
1013
|
+
0,
|
|
1014
|
+
[_sta, _e],
|
|
1015
|
+
[0, 0], 1
|
|
1016
|
+
];
|
|
1017
|
+
exports.KeyTypeArguments$ = [3, n0, _KTA,
|
|
1018
|
+
0,
|
|
1019
|
+
[_te],
|
|
1020
|
+
[0], 1
|
|
1021
|
+
];
|
|
1022
|
+
exports.KeyTypeResult$ = [3, n0, _KTR,
|
|
1023
|
+
0,
|
|
1024
|
+
[_sta, _e],
|
|
1025
|
+
[0, 0], 1
|
|
1026
|
+
];
|
|
942
1027
|
exports.ListActorsInput$ = [3, n0, _LAI,
|
|
943
1028
|
0,
|
|
944
1029
|
[_mI, _mRa, _nT],
|
|
@@ -1054,6 +1139,46 @@ exports.MessageMetadata$ = [3, n0, _MM,
|
|
|
1054
1139
|
[_eI, _mIe],
|
|
1055
1140
|
[0, 1], 2
|
|
1056
1141
|
];
|
|
1142
|
+
exports.MouseClickArguments$ = [3, n0, _MCA,
|
|
1143
|
+
0,
|
|
1144
|
+
[_x, _y, _bu, _cC],
|
|
1145
|
+
[1, 1, 0, 1], 2
|
|
1146
|
+
];
|
|
1147
|
+
exports.MouseClickResult$ = [3, n0, _MCR,
|
|
1148
|
+
0,
|
|
1149
|
+
[_sta, _e],
|
|
1150
|
+
[0, 0], 1
|
|
1151
|
+
];
|
|
1152
|
+
exports.MouseDragArguments$ = [3, n0, _MDA,
|
|
1153
|
+
0,
|
|
1154
|
+
[_eX, _eY, _sX, _sY, _bu],
|
|
1155
|
+
[1, 1, 1, 1, 0], 4
|
|
1156
|
+
];
|
|
1157
|
+
exports.MouseDragResult$ = [3, n0, _MDR,
|
|
1158
|
+
0,
|
|
1159
|
+
[_sta, _e],
|
|
1160
|
+
[0, 0], 1
|
|
1161
|
+
];
|
|
1162
|
+
exports.MouseMoveArguments$ = [3, n0, _MMA,
|
|
1163
|
+
0,
|
|
1164
|
+
[_x, _y],
|
|
1165
|
+
[1, 1], 2
|
|
1166
|
+
];
|
|
1167
|
+
exports.MouseMoveResult$ = [3, n0, _MMR,
|
|
1168
|
+
0,
|
|
1169
|
+
[_sta, _e],
|
|
1170
|
+
[0, 0], 1
|
|
1171
|
+
];
|
|
1172
|
+
exports.MouseScrollArguments$ = [3, n0, _MSA,
|
|
1173
|
+
0,
|
|
1174
|
+
[_x, _y, _dX, _dY],
|
|
1175
|
+
[1, 1, 1, 1], 2
|
|
1176
|
+
];
|
|
1177
|
+
exports.MouseScrollResult$ = [3, n0, _MSR,
|
|
1178
|
+
0,
|
|
1179
|
+
[_sta, _e],
|
|
1180
|
+
[0, 0], 1
|
|
1181
|
+
];
|
|
1057
1182
|
exports.ProxyBypass$ = [3, n0, _PB,
|
|
1058
1183
|
0,
|
|
1059
1184
|
[_dP],
|
|
@@ -1061,7 +1186,7 @@ exports.ProxyBypass$ = [3, n0, _PB,
|
|
|
1061
1186
|
];
|
|
1062
1187
|
exports.ProxyConfiguration$ = [3, n0, _PC,
|
|
1063
1188
|
0,
|
|
1064
|
-
[
|
|
1189
|
+
[_pro, _by],
|
|
1065
1190
|
[() => Proxies, () => exports.ProxyBypass$], 1
|
|
1066
1191
|
];
|
|
1067
1192
|
exports.ResourceContent$ = [3, n0, _RC,
|
|
@@ -1086,7 +1211,7 @@ exports.RetrieveMemoryRecordsOutput$ = [3, n0, _RMRO,
|
|
|
1086
1211
|
];
|
|
1087
1212
|
exports.S3Location$ = [3, n0, _SL,
|
|
1088
1213
|
0,
|
|
1089
|
-
[
|
|
1214
|
+
[_buc, _pre, _vI],
|
|
1090
1215
|
[0, 0, 0], 2
|
|
1091
1216
|
];
|
|
1092
1217
|
exports.SaveBrowserSessionProfileRequest$ = [3, n0, _SBSPR,
|
|
@@ -1099,6 +1224,16 @@ exports.SaveBrowserSessionProfileResponse$ = [3, n0, _SBSPRa,
|
|
|
1099
1224
|
[_pI, _bI, _sI, _lUA],
|
|
1100
1225
|
[0, 0, 0, 5], 4
|
|
1101
1226
|
];
|
|
1227
|
+
exports.ScreenshotArguments$ = [3, n0, _SA,
|
|
1228
|
+
0,
|
|
1229
|
+
[_fo],
|
|
1230
|
+
[0]
|
|
1231
|
+
];
|
|
1232
|
+
exports.ScreenshotResult$ = [3, n0, _SR,
|
|
1233
|
+
0,
|
|
1234
|
+
[_sta, _e, _d],
|
|
1235
|
+
[0, 0, 21], 1
|
|
1236
|
+
];
|
|
1102
1237
|
exports.SearchCriteria$ = [3, n0, _SC,
|
|
1103
1238
|
0,
|
|
1104
1239
|
[_sQ, _mSIe, _tK, _mF],
|
|
@@ -1191,7 +1326,7 @@ exports.TokenUsage$ = [3, n0, _TU,
|
|
|
1191
1326
|
];
|
|
1192
1327
|
exports.ToolArguments$ = [3, n0, _TA,
|
|
1193
1328
|
0,
|
|
1194
|
-
[_cod, _lan,
|
|
1329
|
+
[_cod, _lan, _cCl, _com, _pa, _pat, _co, _dPi, _tIa, _ru],
|
|
1195
1330
|
[0, 0, 2, 0, 0, 64 | 0, [() => InputContentBlockList, 0], 0, 0, 0]
|
|
1196
1331
|
];
|
|
1197
1332
|
exports.ToolResultStructuredContent$ = [3, n0, _TRSC,
|
|
@@ -1267,6 +1402,7 @@ var InputContentBlockList = [1, n0, _ICBL,
|
|
|
1267
1402
|
0, [() => exports.InputContentBlock$,
|
|
1268
1403
|
0]
|
|
1269
1404
|
];
|
|
1405
|
+
var KeyList = 64 | 0;
|
|
1270
1406
|
var MemoryMetadataFilterList = [1, n0, _MMFL,
|
|
1271
1407
|
0, () => exports.MemoryMetadataFilterExpression$
|
|
1272
1408
|
];
|
|
@@ -1321,6 +1457,16 @@ var CustomRequestParametersType = [2, n0, _CRPT,
|
|
|
1321
1457
|
var MetadataMap = [2, n0, _MMe,
|
|
1322
1458
|
0, 0, () => exports.MetadataValue$
|
|
1323
1459
|
];
|
|
1460
|
+
exports.BrowserAction$ = [4, n0, _BAr,
|
|
1461
|
+
0,
|
|
1462
|
+
[_mC, _mM, _mD, _mS, _kT, _kP, _kS, _scr],
|
|
1463
|
+
[() => exports.MouseClickArguments$, () => exports.MouseMoveArguments$, () => exports.MouseDragArguments$, () => exports.MouseScrollArguments$, () => exports.KeyTypeArguments$, () => exports.KeyPressArguments$, () => exports.KeyShortcutArguments$, () => exports.ScreenshotArguments$]
|
|
1464
|
+
];
|
|
1465
|
+
exports.BrowserActionResult$ = [4, n0, _BAR,
|
|
1466
|
+
0,
|
|
1467
|
+
[_mC, _mM, _mD, _mS, _kT, _kP, _kS, _scr],
|
|
1468
|
+
[() => exports.MouseClickResult$, () => exports.MouseMoveResult$, () => exports.MouseDragResult$, () => exports.MouseScrollResult$, () => exports.KeyTypeResult$, () => exports.KeyPressResult$, () => exports.KeyShortcutResult$, () => exports.ScreenshotResult$]
|
|
1469
|
+
];
|
|
1324
1470
|
exports.CertificateLocation$ = [4, n0, _CL,
|
|
1325
1471
|
0,
|
|
1326
1472
|
[_sM],
|
|
@@ -1476,6 +1622,9 @@ exports.InvokeAgentRuntime$ = [9, n0, _IAR,
|
|
|
1476
1622
|
exports.InvokeAgentRuntimeCommand$ = [9, n0, _IARC,
|
|
1477
1623
|
{ [_ht]: ["POST", "/runtimes/{agentRuntimeArn}/commands", 200] }, () => exports.InvokeAgentRuntimeCommandRequest$, () => exports.InvokeAgentRuntimeCommandResponse$
|
|
1478
1624
|
];
|
|
1625
|
+
exports.InvokeBrowser$ = [9, n0, _IB,
|
|
1626
|
+
{ [_ht]: ["POST", "/browsers/{browserIdentifier}/sessions/invoke", 200] }, () => exports.InvokeBrowserRequest$, () => exports.InvokeBrowserResponse$
|
|
1627
|
+
];
|
|
1479
1628
|
exports.InvokeCodeInterpreter$ = [9, n0, _ICI,
|
|
1480
1629
|
{ [_ht]: ["POST", "/code-interpreters/{codeInterpreterIdentifier}/tools/invoke", 200] }, () => exports.InvokeCodeInterpreterRequest$, () => exports.InvokeCodeInterpreterResponse$
|
|
1481
1630
|
];
|
|
@@ -20,6 +20,7 @@ import { GetWorkloadAccessTokenForJWTCommand, } from "./commands/GetWorkloadAcce
|
|
|
20
20
|
import { GetWorkloadAccessTokenForUserIdCommand, } from "./commands/GetWorkloadAccessTokenForUserIdCommand";
|
|
21
21
|
import { InvokeAgentRuntimeCommand, } from "./commands/InvokeAgentRuntimeCommand";
|
|
22
22
|
import { InvokeAgentRuntimeCommandCommand, } from "./commands/InvokeAgentRuntimeCommandCommand";
|
|
23
|
+
import { InvokeBrowserCommand, } from "./commands/InvokeBrowserCommand";
|
|
23
24
|
import { InvokeCodeInterpreterCommand, } from "./commands/InvokeCodeInterpreterCommand";
|
|
24
25
|
import { ListActorsCommand, } from "./commands/ListActorsCommand";
|
|
25
26
|
import { ListBrowserSessionsCommand, } from "./commands/ListBrowserSessionsCommand";
|
|
@@ -64,6 +65,7 @@ const commands = {
|
|
|
64
65
|
GetWorkloadAccessTokenForUserIdCommand,
|
|
65
66
|
InvokeAgentRuntimeCommand,
|
|
66
67
|
InvokeAgentRuntimeCommandCommand,
|
|
68
|
+
InvokeBrowserCommand,
|
|
67
69
|
InvokeCodeInterpreterCommand,
|
|
68
70
|
ListActorsCommand,
|
|
69
71
|
ListBrowserSessionsCommand,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { InvokeBrowser$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class InvokeBrowserCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AmazonBedrockAgentCore", "InvokeBrowser", {})
|
|
13
|
+
.n("BedrockAgentCoreClient", "InvokeBrowserCommand")
|
|
14
|
+
.sc(InvokeBrowser$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -18,6 +18,7 @@ export * from "./GetWorkloadAccessTokenForJWTCommand";
|
|
|
18
18
|
export * from "./GetWorkloadAccessTokenForUserIdCommand";
|
|
19
19
|
export * from "./InvokeAgentRuntimeCommand";
|
|
20
20
|
export * from "./InvokeAgentRuntimeCommandCommand";
|
|
21
|
+
export * from "./InvokeBrowserCommand";
|
|
21
22
|
export * from "./InvokeCodeInterpreterCommand";
|
|
22
23
|
export * from "./ListActorsCommand";
|
|
23
24
|
export * from "./ListBrowserSessionsCommand";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -21,6 +21,18 @@ export const AutomationStreamStatus = {
|
|
|
21
21
|
DISABLED: "DISABLED",
|
|
22
22
|
ENABLED: "ENABLED",
|
|
23
23
|
};
|
|
24
|
+
export const MouseButton = {
|
|
25
|
+
LEFT: "LEFT",
|
|
26
|
+
MIDDLE: "MIDDLE",
|
|
27
|
+
RIGHT: "RIGHT",
|
|
28
|
+
};
|
|
29
|
+
export const ScreenshotFormat = {
|
|
30
|
+
PNG: "PNG",
|
|
31
|
+
};
|
|
32
|
+
export const BrowserActionStatus = {
|
|
33
|
+
FAILED: "FAILED",
|
|
34
|
+
SUCCESS: "SUCCESS",
|
|
35
|
+
};
|
|
24
36
|
export const CodeInterpreterSessionStatus = {
|
|
25
37
|
READY: "READY",
|
|
26
38
|
TERMINATED: "TERMINATED",
|