@aws-sdk/client-bedrock-agentcore 3.1025.0 → 3.1027.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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType, StreamingBlobTypes } from "@smithy/types";
|
|
2
|
-
import type { AutomationStreamStatus, BrowserEnterprisePolicyType, BrowserSessionStatus, CodeInterpreterSessionStatus, CommandExecutionStatus, ContentBlockType, EventFilterCondition, ExtractionJobStatus, LanguageRuntime, MemoryRecordStatus, Oauth2FlowType, OperatorType, ProgrammingLanguage, ResourceContentType, Role, SessionStatus, TaskStatus, ToolName } from "./enums";
|
|
2
|
+
import type { AutomationStreamStatus, BrowserActionStatus, BrowserEnterprisePolicyType, BrowserSessionStatus, CodeInterpreterSessionStatus, CommandExecutionStatus, ContentBlockType, EventFilterCondition, ExtractionJobStatus, LanguageRuntime, MemoryRecordStatus, MouseButton, Oauth2FlowType, OperatorType, ProgrammingLanguage, ResourceContentType, Role, ScreenshotFormat, SessionStatus, TaskStatus, ToolName } from "./enums";
|
|
3
3
|
import type { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, RuntimeClientError, ServiceQuotaExceededException, ThrottlingException, ValidationException } from "./errors";
|
|
4
4
|
/**
|
|
5
5
|
* <p>Contains summary information about an actor in an AgentCore Memory resource.</p>
|
|
@@ -1070,6 +1070,642 @@ export interface GetBrowserSessionResponse {
|
|
|
1070
1070
|
*/
|
|
1071
1071
|
lastUpdatedAt?: Date | undefined;
|
|
1072
1072
|
}
|
|
1073
|
+
/**
|
|
1074
|
+
* <p>Arguments for a key press action.</p>
|
|
1075
|
+
* @public
|
|
1076
|
+
*/
|
|
1077
|
+
export interface KeyPressArguments {
|
|
1078
|
+
/**
|
|
1079
|
+
* <p>The key name to press (for example, <code>enter</code>, <code>tab</code>, <code>escape</code>).</p>
|
|
1080
|
+
* @public
|
|
1081
|
+
*/
|
|
1082
|
+
key: string | undefined;
|
|
1083
|
+
/**
|
|
1084
|
+
* <p>The number of times to press the key. Valid range: 1–100. Defaults to 1.</p>
|
|
1085
|
+
* @public
|
|
1086
|
+
*/
|
|
1087
|
+
presses?: number | undefined;
|
|
1088
|
+
}
|
|
1089
|
+
/**
|
|
1090
|
+
* <p>Arguments for a key shortcut action.</p>
|
|
1091
|
+
* @public
|
|
1092
|
+
*/
|
|
1093
|
+
export interface KeyShortcutArguments {
|
|
1094
|
+
/**
|
|
1095
|
+
* <p>The key combination to press (for example, <code>["ctrl", "s"]</code>). Maximum 5 keys.</p>
|
|
1096
|
+
* @public
|
|
1097
|
+
*/
|
|
1098
|
+
keys: string[] | undefined;
|
|
1099
|
+
}
|
|
1100
|
+
/**
|
|
1101
|
+
* <p>Arguments for a key type action.</p>
|
|
1102
|
+
* @public
|
|
1103
|
+
*/
|
|
1104
|
+
export interface KeyTypeArguments {
|
|
1105
|
+
/**
|
|
1106
|
+
* <p>The text string to type. Maximum length: 10,000 characters.</p>
|
|
1107
|
+
* @public
|
|
1108
|
+
*/
|
|
1109
|
+
text: string | undefined;
|
|
1110
|
+
}
|
|
1111
|
+
/**
|
|
1112
|
+
* <p>Arguments for a mouse click action.</p>
|
|
1113
|
+
* @public
|
|
1114
|
+
*/
|
|
1115
|
+
export interface MouseClickArguments {
|
|
1116
|
+
/**
|
|
1117
|
+
* <p>The X coordinate on screen where the click occurs.</p>
|
|
1118
|
+
* @public
|
|
1119
|
+
*/
|
|
1120
|
+
x: number | undefined;
|
|
1121
|
+
/**
|
|
1122
|
+
* <p>The Y coordinate on screen where the click occurs.</p>
|
|
1123
|
+
* @public
|
|
1124
|
+
*/
|
|
1125
|
+
y: number | undefined;
|
|
1126
|
+
/**
|
|
1127
|
+
* <p>The mouse button to use. Defaults to <code>LEFT</code>.</p>
|
|
1128
|
+
* @public
|
|
1129
|
+
*/
|
|
1130
|
+
button?: MouseButton | undefined;
|
|
1131
|
+
/**
|
|
1132
|
+
* <p>The number of clicks to perform. Valid range: 1–10. Defaults to 1.</p>
|
|
1133
|
+
* @public
|
|
1134
|
+
*/
|
|
1135
|
+
clickCount?: number | undefined;
|
|
1136
|
+
}
|
|
1137
|
+
/**
|
|
1138
|
+
* <p>Arguments for a mouse drag action.</p>
|
|
1139
|
+
* @public
|
|
1140
|
+
*/
|
|
1141
|
+
export interface MouseDragArguments {
|
|
1142
|
+
/**
|
|
1143
|
+
* <p>The ending X coordinate for the drag.</p>
|
|
1144
|
+
* @public
|
|
1145
|
+
*/
|
|
1146
|
+
endX: number | undefined;
|
|
1147
|
+
/**
|
|
1148
|
+
* <p>The ending Y coordinate for the drag.</p>
|
|
1149
|
+
* @public
|
|
1150
|
+
*/
|
|
1151
|
+
endY: number | undefined;
|
|
1152
|
+
/**
|
|
1153
|
+
* <p>The starting X coordinate for the drag.</p>
|
|
1154
|
+
* @public
|
|
1155
|
+
*/
|
|
1156
|
+
startX: number | undefined;
|
|
1157
|
+
/**
|
|
1158
|
+
* <p>The starting Y coordinate for the drag.</p>
|
|
1159
|
+
* @public
|
|
1160
|
+
*/
|
|
1161
|
+
startY: number | undefined;
|
|
1162
|
+
/**
|
|
1163
|
+
* <p>The mouse button to use for the drag. Defaults to <code>LEFT</code>.</p>
|
|
1164
|
+
* @public
|
|
1165
|
+
*/
|
|
1166
|
+
button?: MouseButton | undefined;
|
|
1167
|
+
}
|
|
1168
|
+
/**
|
|
1169
|
+
* <p>Arguments for a mouse move action.</p>
|
|
1170
|
+
* @public
|
|
1171
|
+
*/
|
|
1172
|
+
export interface MouseMoveArguments {
|
|
1173
|
+
/**
|
|
1174
|
+
* <p>The target X coordinate on screen.</p>
|
|
1175
|
+
* @public
|
|
1176
|
+
*/
|
|
1177
|
+
x: number | undefined;
|
|
1178
|
+
/**
|
|
1179
|
+
* <p>The target Y coordinate on screen.</p>
|
|
1180
|
+
* @public
|
|
1181
|
+
*/
|
|
1182
|
+
y: number | undefined;
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
* <p>Arguments for a mouse scroll action.</p>
|
|
1186
|
+
* @public
|
|
1187
|
+
*/
|
|
1188
|
+
export interface MouseScrollArguments {
|
|
1189
|
+
/**
|
|
1190
|
+
* <p>The X coordinate on screen where the scroll occurs.</p>
|
|
1191
|
+
* @public
|
|
1192
|
+
*/
|
|
1193
|
+
x: number | undefined;
|
|
1194
|
+
/**
|
|
1195
|
+
* <p>The Y coordinate on screen where the scroll occurs.</p>
|
|
1196
|
+
* @public
|
|
1197
|
+
*/
|
|
1198
|
+
y: number | undefined;
|
|
1199
|
+
/**
|
|
1200
|
+
* <p>The horizontal scroll delta. Valid range: -1000 to 1000.</p>
|
|
1201
|
+
* @public
|
|
1202
|
+
*/
|
|
1203
|
+
deltaX?: number | undefined;
|
|
1204
|
+
/**
|
|
1205
|
+
* <p>The vertical scroll delta. Valid range: -1000 to 1000. Negative values scroll down.</p>
|
|
1206
|
+
* @public
|
|
1207
|
+
*/
|
|
1208
|
+
deltaY?: number | undefined;
|
|
1209
|
+
}
|
|
1210
|
+
/**
|
|
1211
|
+
* <p>Arguments for a screenshot action.</p>
|
|
1212
|
+
* @public
|
|
1213
|
+
*/
|
|
1214
|
+
export interface ScreenshotArguments {
|
|
1215
|
+
/**
|
|
1216
|
+
* <p>The image format for the screenshot. Defaults to <code>PNG</code>.</p>
|
|
1217
|
+
* @public
|
|
1218
|
+
*/
|
|
1219
|
+
format?: ScreenshotFormat | undefined;
|
|
1220
|
+
}
|
|
1221
|
+
/**
|
|
1222
|
+
* <p>The browser action to perform. Exactly one member must be set per request.</p>
|
|
1223
|
+
* @public
|
|
1224
|
+
*/
|
|
1225
|
+
export type BrowserAction = BrowserAction.KeyPressMember | BrowserAction.KeyShortcutMember | BrowserAction.KeyTypeMember | BrowserAction.MouseClickMember | BrowserAction.MouseDragMember | BrowserAction.MouseMoveMember | BrowserAction.MouseScrollMember | BrowserAction.ScreenshotMember | BrowserAction.$UnknownMember;
|
|
1226
|
+
/**
|
|
1227
|
+
* @public
|
|
1228
|
+
*/
|
|
1229
|
+
export declare namespace BrowserAction {
|
|
1230
|
+
/**
|
|
1231
|
+
* <p>Click at the specified coordinates.</p>
|
|
1232
|
+
* @public
|
|
1233
|
+
*/
|
|
1234
|
+
interface MouseClickMember {
|
|
1235
|
+
mouseClick: MouseClickArguments;
|
|
1236
|
+
mouseMove?: never;
|
|
1237
|
+
mouseDrag?: never;
|
|
1238
|
+
mouseScroll?: never;
|
|
1239
|
+
keyType?: never;
|
|
1240
|
+
keyPress?: never;
|
|
1241
|
+
keyShortcut?: never;
|
|
1242
|
+
screenshot?: never;
|
|
1243
|
+
$unknown?: never;
|
|
1244
|
+
}
|
|
1245
|
+
/**
|
|
1246
|
+
* <p>Move the cursor to the specified coordinates.</p>
|
|
1247
|
+
* @public
|
|
1248
|
+
*/
|
|
1249
|
+
interface MouseMoveMember {
|
|
1250
|
+
mouseClick?: never;
|
|
1251
|
+
mouseMove: MouseMoveArguments;
|
|
1252
|
+
mouseDrag?: never;
|
|
1253
|
+
mouseScroll?: never;
|
|
1254
|
+
keyType?: never;
|
|
1255
|
+
keyPress?: never;
|
|
1256
|
+
keyShortcut?: never;
|
|
1257
|
+
screenshot?: never;
|
|
1258
|
+
$unknown?: never;
|
|
1259
|
+
}
|
|
1260
|
+
/**
|
|
1261
|
+
* <p>Drag from a start position to an end position.</p>
|
|
1262
|
+
* @public
|
|
1263
|
+
*/
|
|
1264
|
+
interface MouseDragMember {
|
|
1265
|
+
mouseClick?: never;
|
|
1266
|
+
mouseMove?: never;
|
|
1267
|
+
mouseDrag: MouseDragArguments;
|
|
1268
|
+
mouseScroll?: never;
|
|
1269
|
+
keyType?: never;
|
|
1270
|
+
keyPress?: never;
|
|
1271
|
+
keyShortcut?: never;
|
|
1272
|
+
screenshot?: never;
|
|
1273
|
+
$unknown?: never;
|
|
1274
|
+
}
|
|
1275
|
+
/**
|
|
1276
|
+
* <p>Scroll at the specified position.</p>
|
|
1277
|
+
* @public
|
|
1278
|
+
*/
|
|
1279
|
+
interface MouseScrollMember {
|
|
1280
|
+
mouseClick?: never;
|
|
1281
|
+
mouseMove?: never;
|
|
1282
|
+
mouseDrag?: never;
|
|
1283
|
+
mouseScroll: MouseScrollArguments;
|
|
1284
|
+
keyType?: never;
|
|
1285
|
+
keyPress?: never;
|
|
1286
|
+
keyShortcut?: never;
|
|
1287
|
+
screenshot?: never;
|
|
1288
|
+
$unknown?: never;
|
|
1289
|
+
}
|
|
1290
|
+
/**
|
|
1291
|
+
* <p>Type a string of text.</p>
|
|
1292
|
+
* @public
|
|
1293
|
+
*/
|
|
1294
|
+
interface KeyTypeMember {
|
|
1295
|
+
mouseClick?: never;
|
|
1296
|
+
mouseMove?: never;
|
|
1297
|
+
mouseDrag?: never;
|
|
1298
|
+
mouseScroll?: never;
|
|
1299
|
+
keyType: KeyTypeArguments;
|
|
1300
|
+
keyPress?: never;
|
|
1301
|
+
keyShortcut?: never;
|
|
1302
|
+
screenshot?: never;
|
|
1303
|
+
$unknown?: never;
|
|
1304
|
+
}
|
|
1305
|
+
/**
|
|
1306
|
+
* <p>Press a key one or more times.</p>
|
|
1307
|
+
* @public
|
|
1308
|
+
*/
|
|
1309
|
+
interface KeyPressMember {
|
|
1310
|
+
mouseClick?: never;
|
|
1311
|
+
mouseMove?: never;
|
|
1312
|
+
mouseDrag?: never;
|
|
1313
|
+
mouseScroll?: never;
|
|
1314
|
+
keyType?: never;
|
|
1315
|
+
keyPress: KeyPressArguments;
|
|
1316
|
+
keyShortcut?: never;
|
|
1317
|
+
screenshot?: never;
|
|
1318
|
+
$unknown?: never;
|
|
1319
|
+
}
|
|
1320
|
+
/**
|
|
1321
|
+
* <p>Press a key combination.</p>
|
|
1322
|
+
* @public
|
|
1323
|
+
*/
|
|
1324
|
+
interface KeyShortcutMember {
|
|
1325
|
+
mouseClick?: never;
|
|
1326
|
+
mouseMove?: never;
|
|
1327
|
+
mouseDrag?: never;
|
|
1328
|
+
mouseScroll?: never;
|
|
1329
|
+
keyType?: never;
|
|
1330
|
+
keyPress?: never;
|
|
1331
|
+
keyShortcut: KeyShortcutArguments;
|
|
1332
|
+
screenshot?: never;
|
|
1333
|
+
$unknown?: never;
|
|
1334
|
+
}
|
|
1335
|
+
/**
|
|
1336
|
+
* <p>Capture a full-screen screenshot.</p>
|
|
1337
|
+
* @public
|
|
1338
|
+
*/
|
|
1339
|
+
interface ScreenshotMember {
|
|
1340
|
+
mouseClick?: never;
|
|
1341
|
+
mouseMove?: never;
|
|
1342
|
+
mouseDrag?: never;
|
|
1343
|
+
mouseScroll?: never;
|
|
1344
|
+
keyType?: never;
|
|
1345
|
+
keyPress?: never;
|
|
1346
|
+
keyShortcut?: never;
|
|
1347
|
+
screenshot: ScreenshotArguments;
|
|
1348
|
+
$unknown?: never;
|
|
1349
|
+
}
|
|
1350
|
+
/**
|
|
1351
|
+
* @public
|
|
1352
|
+
*/
|
|
1353
|
+
interface $UnknownMember {
|
|
1354
|
+
mouseClick?: never;
|
|
1355
|
+
mouseMove?: never;
|
|
1356
|
+
mouseDrag?: never;
|
|
1357
|
+
mouseScroll?: never;
|
|
1358
|
+
keyType?: never;
|
|
1359
|
+
keyPress?: never;
|
|
1360
|
+
keyShortcut?: never;
|
|
1361
|
+
screenshot?: never;
|
|
1362
|
+
$unknown: [string, any];
|
|
1363
|
+
}
|
|
1364
|
+
/**
|
|
1365
|
+
* @deprecated unused in schema-serde mode.
|
|
1366
|
+
*
|
|
1367
|
+
*/
|
|
1368
|
+
interface Visitor<T> {
|
|
1369
|
+
mouseClick: (value: MouseClickArguments) => T;
|
|
1370
|
+
mouseMove: (value: MouseMoveArguments) => T;
|
|
1371
|
+
mouseDrag: (value: MouseDragArguments) => T;
|
|
1372
|
+
mouseScroll: (value: MouseScrollArguments) => T;
|
|
1373
|
+
keyType: (value: KeyTypeArguments) => T;
|
|
1374
|
+
keyPress: (value: KeyPressArguments) => T;
|
|
1375
|
+
keyShortcut: (value: KeyShortcutArguments) => T;
|
|
1376
|
+
screenshot: (value: ScreenshotArguments) => T;
|
|
1377
|
+
_: (name: string, value: any) => T;
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
/**
|
|
1381
|
+
* <p>Request for the InvokeBrowser operation.</p>
|
|
1382
|
+
* @public
|
|
1383
|
+
*/
|
|
1384
|
+
export interface InvokeBrowserRequest {
|
|
1385
|
+
/**
|
|
1386
|
+
* <p>The unique identifier of the browser associated with the session. This must match the identifier used when creating the session with <code>StartBrowserSession</code>.</p>
|
|
1387
|
+
* @public
|
|
1388
|
+
*/
|
|
1389
|
+
browserIdentifier: string | undefined;
|
|
1390
|
+
/**
|
|
1391
|
+
* <p>The unique identifier of the browser session on which to perform the action. This must be an active session created with <code>StartBrowserSession</code>.</p>
|
|
1392
|
+
* @public
|
|
1393
|
+
*/
|
|
1394
|
+
sessionId: string | undefined;
|
|
1395
|
+
/**
|
|
1396
|
+
* <p>The browser action to perform. Exactly one member of the <code>BrowserAction</code> union must be set per request.</p>
|
|
1397
|
+
* @public
|
|
1398
|
+
*/
|
|
1399
|
+
action: BrowserAction | undefined;
|
|
1400
|
+
}
|
|
1401
|
+
/**
|
|
1402
|
+
* <p>The result of a key press action.</p>
|
|
1403
|
+
* @public
|
|
1404
|
+
*/
|
|
1405
|
+
export interface KeyPressResult {
|
|
1406
|
+
/**
|
|
1407
|
+
* <p>The status of the action execution.</p>
|
|
1408
|
+
* @public
|
|
1409
|
+
*/
|
|
1410
|
+
status: BrowserActionStatus | undefined;
|
|
1411
|
+
/**
|
|
1412
|
+
* <p>The error message. Present only when the action failed.</p>
|
|
1413
|
+
* @public
|
|
1414
|
+
*/
|
|
1415
|
+
error?: string | undefined;
|
|
1416
|
+
}
|
|
1417
|
+
/**
|
|
1418
|
+
* <p>The result of a key shortcut action.</p>
|
|
1419
|
+
* @public
|
|
1420
|
+
*/
|
|
1421
|
+
export interface KeyShortcutResult {
|
|
1422
|
+
/**
|
|
1423
|
+
* <p>The status of the action execution.</p>
|
|
1424
|
+
* @public
|
|
1425
|
+
*/
|
|
1426
|
+
status: BrowserActionStatus | undefined;
|
|
1427
|
+
/**
|
|
1428
|
+
* <p>The error message. Present only when the action failed.</p>
|
|
1429
|
+
* @public
|
|
1430
|
+
*/
|
|
1431
|
+
error?: string | undefined;
|
|
1432
|
+
}
|
|
1433
|
+
/**
|
|
1434
|
+
* <p>The result of a key type action.</p>
|
|
1435
|
+
* @public
|
|
1436
|
+
*/
|
|
1437
|
+
export interface KeyTypeResult {
|
|
1438
|
+
/**
|
|
1439
|
+
* <p>The status of the action execution.</p>
|
|
1440
|
+
* @public
|
|
1441
|
+
*/
|
|
1442
|
+
status: BrowserActionStatus | undefined;
|
|
1443
|
+
/**
|
|
1444
|
+
* <p>The error message. Present only when the action failed.</p>
|
|
1445
|
+
* @public
|
|
1446
|
+
*/
|
|
1447
|
+
error?: string | undefined;
|
|
1448
|
+
}
|
|
1449
|
+
/**
|
|
1450
|
+
* <p>The result of a mouse click action.</p>
|
|
1451
|
+
* @public
|
|
1452
|
+
*/
|
|
1453
|
+
export interface MouseClickResult {
|
|
1454
|
+
/**
|
|
1455
|
+
* <p>The status of the action execution.</p>
|
|
1456
|
+
* @public
|
|
1457
|
+
*/
|
|
1458
|
+
status: BrowserActionStatus | undefined;
|
|
1459
|
+
/**
|
|
1460
|
+
* <p>The error message. Present only when the action failed.</p>
|
|
1461
|
+
* @public
|
|
1462
|
+
*/
|
|
1463
|
+
error?: string | undefined;
|
|
1464
|
+
}
|
|
1465
|
+
/**
|
|
1466
|
+
* <p>The result of a mouse drag action.</p>
|
|
1467
|
+
* @public
|
|
1468
|
+
*/
|
|
1469
|
+
export interface MouseDragResult {
|
|
1470
|
+
/**
|
|
1471
|
+
* <p>The status of the action execution.</p>
|
|
1472
|
+
* @public
|
|
1473
|
+
*/
|
|
1474
|
+
status: BrowserActionStatus | undefined;
|
|
1475
|
+
/**
|
|
1476
|
+
* <p>The error message. Present only when the action failed.</p>
|
|
1477
|
+
* @public
|
|
1478
|
+
*/
|
|
1479
|
+
error?: string | undefined;
|
|
1480
|
+
}
|
|
1481
|
+
/**
|
|
1482
|
+
* <p>The result of a mouse move action.</p>
|
|
1483
|
+
* @public
|
|
1484
|
+
*/
|
|
1485
|
+
export interface MouseMoveResult {
|
|
1486
|
+
/**
|
|
1487
|
+
* <p>The status of the action execution.</p>
|
|
1488
|
+
* @public
|
|
1489
|
+
*/
|
|
1490
|
+
status: BrowserActionStatus | undefined;
|
|
1491
|
+
/**
|
|
1492
|
+
* <p>The error message. Present only when the action failed.</p>
|
|
1493
|
+
* @public
|
|
1494
|
+
*/
|
|
1495
|
+
error?: string | undefined;
|
|
1496
|
+
}
|
|
1497
|
+
/**
|
|
1498
|
+
* <p>The result of a mouse scroll action.</p>
|
|
1499
|
+
* @public
|
|
1500
|
+
*/
|
|
1501
|
+
export interface MouseScrollResult {
|
|
1502
|
+
/**
|
|
1503
|
+
* <p>The status of the action execution.</p>
|
|
1504
|
+
* @public
|
|
1505
|
+
*/
|
|
1506
|
+
status: BrowserActionStatus | undefined;
|
|
1507
|
+
/**
|
|
1508
|
+
* <p>The error message. Present only when the action failed.</p>
|
|
1509
|
+
* @public
|
|
1510
|
+
*/
|
|
1511
|
+
error?: string | undefined;
|
|
1512
|
+
}
|
|
1513
|
+
/**
|
|
1514
|
+
* <p>The result of a screenshot action.</p>
|
|
1515
|
+
* @public
|
|
1516
|
+
*/
|
|
1517
|
+
export interface ScreenshotResult {
|
|
1518
|
+
/**
|
|
1519
|
+
* <p>The status of the action execution.</p>
|
|
1520
|
+
* @public
|
|
1521
|
+
*/
|
|
1522
|
+
status: BrowserActionStatus | undefined;
|
|
1523
|
+
/**
|
|
1524
|
+
* <p>The error message. Present only when the action failed.</p>
|
|
1525
|
+
* @public
|
|
1526
|
+
*/
|
|
1527
|
+
error?: string | undefined;
|
|
1528
|
+
/**
|
|
1529
|
+
* <p>The base64-encoded image data. Present only when the action succeeded.</p>
|
|
1530
|
+
* @public
|
|
1531
|
+
*/
|
|
1532
|
+
data?: Uint8Array | undefined;
|
|
1533
|
+
}
|
|
1534
|
+
/**
|
|
1535
|
+
* <p>The result of a browser action execution. Exactly one member is set, matching the action that was performed.</p>
|
|
1536
|
+
* @public
|
|
1537
|
+
*/
|
|
1538
|
+
export type BrowserActionResult = BrowserActionResult.KeyPressMember | BrowserActionResult.KeyShortcutMember | BrowserActionResult.KeyTypeMember | BrowserActionResult.MouseClickMember | BrowserActionResult.MouseDragMember | BrowserActionResult.MouseMoveMember | BrowserActionResult.MouseScrollMember | BrowserActionResult.ScreenshotMember | BrowserActionResult.$UnknownMember;
|
|
1539
|
+
/**
|
|
1540
|
+
* @public
|
|
1541
|
+
*/
|
|
1542
|
+
export declare namespace BrowserActionResult {
|
|
1543
|
+
/**
|
|
1544
|
+
* <p>The result of a mouse click action.</p>
|
|
1545
|
+
* @public
|
|
1546
|
+
*/
|
|
1547
|
+
interface MouseClickMember {
|
|
1548
|
+
mouseClick: MouseClickResult;
|
|
1549
|
+
mouseMove?: never;
|
|
1550
|
+
mouseDrag?: never;
|
|
1551
|
+
mouseScroll?: never;
|
|
1552
|
+
keyType?: never;
|
|
1553
|
+
keyPress?: never;
|
|
1554
|
+
keyShortcut?: never;
|
|
1555
|
+
screenshot?: never;
|
|
1556
|
+
$unknown?: never;
|
|
1557
|
+
}
|
|
1558
|
+
/**
|
|
1559
|
+
* <p>The result of a mouse move action.</p>
|
|
1560
|
+
* @public
|
|
1561
|
+
*/
|
|
1562
|
+
interface MouseMoveMember {
|
|
1563
|
+
mouseClick?: never;
|
|
1564
|
+
mouseMove: MouseMoveResult;
|
|
1565
|
+
mouseDrag?: never;
|
|
1566
|
+
mouseScroll?: never;
|
|
1567
|
+
keyType?: never;
|
|
1568
|
+
keyPress?: never;
|
|
1569
|
+
keyShortcut?: never;
|
|
1570
|
+
screenshot?: never;
|
|
1571
|
+
$unknown?: never;
|
|
1572
|
+
}
|
|
1573
|
+
/**
|
|
1574
|
+
* <p>The result of a mouse drag action.</p>
|
|
1575
|
+
* @public
|
|
1576
|
+
*/
|
|
1577
|
+
interface MouseDragMember {
|
|
1578
|
+
mouseClick?: never;
|
|
1579
|
+
mouseMove?: never;
|
|
1580
|
+
mouseDrag: MouseDragResult;
|
|
1581
|
+
mouseScroll?: never;
|
|
1582
|
+
keyType?: never;
|
|
1583
|
+
keyPress?: never;
|
|
1584
|
+
keyShortcut?: never;
|
|
1585
|
+
screenshot?: never;
|
|
1586
|
+
$unknown?: never;
|
|
1587
|
+
}
|
|
1588
|
+
/**
|
|
1589
|
+
* <p>The result of a mouse scroll action.</p>
|
|
1590
|
+
* @public
|
|
1591
|
+
*/
|
|
1592
|
+
interface MouseScrollMember {
|
|
1593
|
+
mouseClick?: never;
|
|
1594
|
+
mouseMove?: never;
|
|
1595
|
+
mouseDrag?: never;
|
|
1596
|
+
mouseScroll: MouseScrollResult;
|
|
1597
|
+
keyType?: never;
|
|
1598
|
+
keyPress?: never;
|
|
1599
|
+
keyShortcut?: never;
|
|
1600
|
+
screenshot?: never;
|
|
1601
|
+
$unknown?: never;
|
|
1602
|
+
}
|
|
1603
|
+
/**
|
|
1604
|
+
* <p>The result of a key type action.</p>
|
|
1605
|
+
* @public
|
|
1606
|
+
*/
|
|
1607
|
+
interface KeyTypeMember {
|
|
1608
|
+
mouseClick?: never;
|
|
1609
|
+
mouseMove?: never;
|
|
1610
|
+
mouseDrag?: never;
|
|
1611
|
+
mouseScroll?: never;
|
|
1612
|
+
keyType: KeyTypeResult;
|
|
1613
|
+
keyPress?: never;
|
|
1614
|
+
keyShortcut?: never;
|
|
1615
|
+
screenshot?: never;
|
|
1616
|
+
$unknown?: never;
|
|
1617
|
+
}
|
|
1618
|
+
/**
|
|
1619
|
+
* <p>The result of a key press action.</p>
|
|
1620
|
+
* @public
|
|
1621
|
+
*/
|
|
1622
|
+
interface KeyPressMember {
|
|
1623
|
+
mouseClick?: never;
|
|
1624
|
+
mouseMove?: never;
|
|
1625
|
+
mouseDrag?: never;
|
|
1626
|
+
mouseScroll?: never;
|
|
1627
|
+
keyType?: never;
|
|
1628
|
+
keyPress: KeyPressResult;
|
|
1629
|
+
keyShortcut?: never;
|
|
1630
|
+
screenshot?: never;
|
|
1631
|
+
$unknown?: never;
|
|
1632
|
+
}
|
|
1633
|
+
/**
|
|
1634
|
+
* <p>The result of a key shortcut action.</p>
|
|
1635
|
+
* @public
|
|
1636
|
+
*/
|
|
1637
|
+
interface KeyShortcutMember {
|
|
1638
|
+
mouseClick?: never;
|
|
1639
|
+
mouseMove?: never;
|
|
1640
|
+
mouseDrag?: never;
|
|
1641
|
+
mouseScroll?: never;
|
|
1642
|
+
keyType?: never;
|
|
1643
|
+
keyPress?: never;
|
|
1644
|
+
keyShortcut: KeyShortcutResult;
|
|
1645
|
+
screenshot?: never;
|
|
1646
|
+
$unknown?: never;
|
|
1647
|
+
}
|
|
1648
|
+
/**
|
|
1649
|
+
* <p>The result of a screenshot action.</p>
|
|
1650
|
+
* @public
|
|
1651
|
+
*/
|
|
1652
|
+
interface ScreenshotMember {
|
|
1653
|
+
mouseClick?: never;
|
|
1654
|
+
mouseMove?: never;
|
|
1655
|
+
mouseDrag?: never;
|
|
1656
|
+
mouseScroll?: never;
|
|
1657
|
+
keyType?: never;
|
|
1658
|
+
keyPress?: never;
|
|
1659
|
+
keyShortcut?: never;
|
|
1660
|
+
screenshot: ScreenshotResult;
|
|
1661
|
+
$unknown?: never;
|
|
1662
|
+
}
|
|
1663
|
+
/**
|
|
1664
|
+
* @public
|
|
1665
|
+
*/
|
|
1666
|
+
interface $UnknownMember {
|
|
1667
|
+
mouseClick?: never;
|
|
1668
|
+
mouseMove?: never;
|
|
1669
|
+
mouseDrag?: never;
|
|
1670
|
+
mouseScroll?: never;
|
|
1671
|
+
keyType?: never;
|
|
1672
|
+
keyPress?: never;
|
|
1673
|
+
keyShortcut?: never;
|
|
1674
|
+
screenshot?: never;
|
|
1675
|
+
$unknown: [string, any];
|
|
1676
|
+
}
|
|
1677
|
+
/**
|
|
1678
|
+
* @deprecated unused in schema-serde mode.
|
|
1679
|
+
*
|
|
1680
|
+
*/
|
|
1681
|
+
interface Visitor<T> {
|
|
1682
|
+
mouseClick: (value: MouseClickResult) => T;
|
|
1683
|
+
mouseMove: (value: MouseMoveResult) => T;
|
|
1684
|
+
mouseDrag: (value: MouseDragResult) => T;
|
|
1685
|
+
mouseScroll: (value: MouseScrollResult) => T;
|
|
1686
|
+
keyType: (value: KeyTypeResult) => T;
|
|
1687
|
+
keyPress: (value: KeyPressResult) => T;
|
|
1688
|
+
keyShortcut: (value: KeyShortcutResult) => T;
|
|
1689
|
+
screenshot: (value: ScreenshotResult) => T;
|
|
1690
|
+
_: (name: string, value: any) => T;
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
/**
|
|
1694
|
+
* <p>Response for the InvokeBrowser operation.</p>
|
|
1695
|
+
* @public
|
|
1696
|
+
*/
|
|
1697
|
+
export interface InvokeBrowserResponse {
|
|
1698
|
+
/**
|
|
1699
|
+
* <p>The result of the browser action. The member set in the result corresponds to the action that was performed.</p>
|
|
1700
|
+
* @public
|
|
1701
|
+
*/
|
|
1702
|
+
result: BrowserActionResult | undefined;
|
|
1703
|
+
/**
|
|
1704
|
+
* <p>The unique identifier of the browser session on which the action was performed.</p>
|
|
1705
|
+
* @public
|
|
1706
|
+
*/
|
|
1707
|
+
sessionId: string | undefined;
|
|
1708
|
+
}
|
|
1073
1709
|
/**
|
|
1074
1710
|
* @public
|
|
1075
1711
|
*/
|
|
@@ -92,8 +92,16 @@ export declare var InvokeAgentRuntimeCommandRequestBody$: StaticStructureSchema;
|
|
|
92
92
|
export declare var InvokeAgentRuntimeCommandResponse$: StaticStructureSchema;
|
|
93
93
|
export declare var InvokeAgentRuntimeRequest$: StaticStructureSchema;
|
|
94
94
|
export declare var InvokeAgentRuntimeResponse$: StaticStructureSchema;
|
|
95
|
+
export declare var InvokeBrowserRequest$: StaticStructureSchema;
|
|
96
|
+
export declare var InvokeBrowserResponse$: StaticStructureSchema;
|
|
95
97
|
export declare var InvokeCodeInterpreterRequest$: StaticStructureSchema;
|
|
96
98
|
export declare var InvokeCodeInterpreterResponse$: StaticStructureSchema;
|
|
99
|
+
export declare var KeyPressArguments$: StaticStructureSchema;
|
|
100
|
+
export declare var KeyPressResult$: StaticStructureSchema;
|
|
101
|
+
export declare var KeyShortcutArguments$: StaticStructureSchema;
|
|
102
|
+
export declare var KeyShortcutResult$: StaticStructureSchema;
|
|
103
|
+
export declare var KeyTypeArguments$: StaticStructureSchema;
|
|
104
|
+
export declare var KeyTypeResult$: StaticStructureSchema;
|
|
97
105
|
export declare var ListActorsInput$: StaticStructureSchema;
|
|
98
106
|
export declare var ListActorsOutput$: StaticStructureSchema;
|
|
99
107
|
export declare var ListBrowserSessionsRequest$: StaticStructureSchema;
|
|
@@ -117,6 +125,14 @@ export declare var MemoryRecordOutput$: StaticStructureSchema;
|
|
|
117
125
|
export declare var MemoryRecordSummary$: StaticStructureSchema;
|
|
118
126
|
export declare var MemoryRecordUpdateInput$: StaticStructureSchema;
|
|
119
127
|
export declare var MessageMetadata$: StaticStructureSchema;
|
|
128
|
+
export declare var MouseClickArguments$: StaticStructureSchema;
|
|
129
|
+
export declare var MouseClickResult$: StaticStructureSchema;
|
|
130
|
+
export declare var MouseDragArguments$: StaticStructureSchema;
|
|
131
|
+
export declare var MouseDragResult$: StaticStructureSchema;
|
|
132
|
+
export declare var MouseMoveArguments$: StaticStructureSchema;
|
|
133
|
+
export declare var MouseMoveResult$: StaticStructureSchema;
|
|
134
|
+
export declare var MouseScrollArguments$: StaticStructureSchema;
|
|
135
|
+
export declare var MouseScrollResult$: StaticStructureSchema;
|
|
120
136
|
export declare var ProxyBypass$: StaticStructureSchema;
|
|
121
137
|
export declare var ProxyConfiguration$: StaticStructureSchema;
|
|
122
138
|
export declare var ResourceContent$: StaticStructureSchema;
|
|
@@ -126,6 +142,8 @@ export declare var RetrieveMemoryRecordsOutput$: StaticStructureSchema;
|
|
|
126
142
|
export declare var S3Location$: StaticStructureSchema;
|
|
127
143
|
export declare var SaveBrowserSessionProfileRequest$: StaticStructureSchema;
|
|
128
144
|
export declare var SaveBrowserSessionProfileResponse$: StaticStructureSchema;
|
|
145
|
+
export declare var ScreenshotArguments$: StaticStructureSchema;
|
|
146
|
+
export declare var ScreenshotResult$: StaticStructureSchema;
|
|
129
147
|
export declare var SearchCriteria$: StaticStructureSchema;
|
|
130
148
|
export declare var SecretsManagerLocation$: StaticStructureSchema;
|
|
131
149
|
export declare var SessionFilter$: StaticStructureSchema;
|
|
@@ -150,6 +168,8 @@ export declare var UpdateBrowserStreamRequest$: StaticStructureSchema;
|
|
|
150
168
|
export declare var UpdateBrowserStreamResponse$: StaticStructureSchema;
|
|
151
169
|
export declare var ValidationExceptionField$: StaticStructureSchema;
|
|
152
170
|
export declare var ViewPort$: StaticStructureSchema;
|
|
171
|
+
export declare var BrowserAction$: StaticUnionSchema;
|
|
172
|
+
export declare var BrowserActionResult$: StaticUnionSchema;
|
|
153
173
|
export declare var CertificateLocation$: StaticUnionSchema;
|
|
154
174
|
export declare var CodeInterpreterStreamOutput$: StaticUnionSchema;
|
|
155
175
|
export declare var Content$: StaticUnionSchema;
|
|
@@ -189,6 +209,7 @@ export declare var GetWorkloadAccessTokenForJWT$: StaticOperationSchema;
|
|
|
189
209
|
export declare var GetWorkloadAccessTokenForUserId$: StaticOperationSchema;
|
|
190
210
|
export declare var InvokeAgentRuntime$: StaticOperationSchema;
|
|
191
211
|
export declare var InvokeAgentRuntimeCommand$: StaticOperationSchema;
|
|
212
|
+
export declare var InvokeBrowser$: StaticOperationSchema;
|
|
192
213
|
export declare var InvokeCodeInterpreter$: StaticOperationSchema;
|
|
193
214
|
export declare var ListActors$: StaticOperationSchema;
|
|
194
215
|
export declare var ListBrowserSessions$: StaticOperationSchema;
|