asteroid-odyssey 1.3.9 → 1.3.10

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/dist/index.d.mts CHANGED
@@ -739,7 +739,7 @@ type CountryCode = 'us' | 'uk' | 'fr' | 'it' | 'jp' | 'au' | 'de' | 'fi' | 'ca';
739
739
  /**
740
740
  * Type of proxy to use
741
741
  */
742
- type ProxyType = 'residential' | 'mobile';
742
+ type ProxyType = 'basic' | 'residential' | 'mobile';
743
743
  type Credential = {
744
744
  /**
745
745
  * The unique identifier for this credential
@@ -770,53 +770,6 @@ type GetOpenApiResponses = {
770
770
  */
771
771
  200: unknown;
772
772
  };
773
- type UploadExecutionFilesData = {
774
- body: {
775
- /**
776
- * Files to upload to the execution
777
- */
778
- files?: Array<Blob | File>;
779
- };
780
- path: {
781
- /**
782
- * The ID of the execution
783
- */
784
- id: string;
785
- };
786
- query?: never;
787
- url: '/execution/{id}/files';
788
- };
789
- type UploadExecutionFilesErrors = {
790
- /**
791
- * Bad request
792
- */
793
- 400: ErrorResponse;
794
- /**
795
- * Unauthorized
796
- */
797
- 401: ErrorResponse;
798
- /**
799
- * Execution not found
800
- */
801
- 404: ErrorResponse;
802
- };
803
- type UploadExecutionFilesError = UploadExecutionFilesErrors[keyof UploadExecutionFilesErrors];
804
- type UploadExecutionFilesResponses = {
805
- /**
806
- * Files uploaded successfully
807
- */
808
- 200: {
809
- /**
810
- * Success message
811
- */
812
- message?: string;
813
- /**
814
- * IDs of the uploaded files
815
- */
816
- file_ids?: Array<string>;
817
- };
818
- };
819
- type UploadExecutionFilesResponse = UploadExecutionFilesResponses[keyof UploadExecutionFilesResponses];
820
773
  type HealthCheckData = {
821
774
  body?: never;
822
775
  path?: never;
@@ -1282,15 +1235,118 @@ type types_gen$1_UpdateAgentProfileErrors = UpdateAgentProfileErrors;
1282
1235
  type types_gen$1_UpdateAgentProfileRequest = UpdateAgentProfileRequest;
1283
1236
  type types_gen$1_UpdateAgentProfileResponse = UpdateAgentProfileResponse;
1284
1237
  type types_gen$1_UpdateAgentProfileResponses = UpdateAgentProfileResponses;
1285
- type types_gen$1_UploadExecutionFilesData = UploadExecutionFilesData;
1286
- type types_gen$1_UploadExecutionFilesError = UploadExecutionFilesError;
1287
- type types_gen$1_UploadExecutionFilesErrors = UploadExecutionFilesErrors;
1288
- type types_gen$1_UploadExecutionFilesResponse = UploadExecutionFilesResponse;
1289
- type types_gen$1_UploadExecutionFilesResponses = UploadExecutionFilesResponses;
1290
1238
  declare namespace types_gen$1 {
1291
- export type { types_gen$1_AgentExecutionRequest as AgentExecutionRequest, types_gen$1_AgentProfile as AgentProfile, types_gen$1_BrowserSessionRecordingResponse as BrowserSessionRecordingResponse, ClientOptions$1 as ClientOptions, types_gen$1_Cookie as Cookie, types_gen$1_CountryCode as CountryCode, types_gen$1_CreateAgentProfileData as CreateAgentProfileData, types_gen$1_CreateAgentProfileError as CreateAgentProfileError, types_gen$1_CreateAgentProfileErrors as CreateAgentProfileErrors, types_gen$1_CreateAgentProfileRequest as CreateAgentProfileRequest, types_gen$1_CreateAgentProfileResponse as CreateAgentProfileResponse, types_gen$1_CreateAgentProfileResponses as CreateAgentProfileResponses, types_gen$1_Credential as Credential, types_gen$1_DeleteAgentProfileData as DeleteAgentProfileData, types_gen$1_DeleteAgentProfileError as DeleteAgentProfileError, types_gen$1_DeleteAgentProfileErrors as DeleteAgentProfileErrors, types_gen$1_DeleteAgentProfileResponse as DeleteAgentProfileResponse, types_gen$1_DeleteAgentProfileResponses as DeleteAgentProfileResponses, types_gen$1_ErrorResponse as ErrorResponse, types_gen$1_ExecuteAgentData as ExecuteAgentData, types_gen$1_ExecuteAgentError as ExecuteAgentError, types_gen$1_ExecuteAgentErrors as ExecuteAgentErrors, types_gen$1_ExecuteAgentResponse as ExecuteAgentResponse, types_gen$1_ExecuteAgentResponses as ExecuteAgentResponses, types_gen$1_ExecuteAgentStructuredData as ExecuteAgentStructuredData, types_gen$1_ExecuteAgentStructuredError as ExecuteAgentStructuredError, types_gen$1_ExecuteAgentStructuredErrors as ExecuteAgentStructuredErrors, types_gen$1_ExecuteAgentStructuredResponse as ExecuteAgentStructuredResponse, types_gen$1_ExecuteAgentStructuredResponses as ExecuteAgentStructuredResponses, types_gen$1_ExecutionResponse as ExecutionResponse, types_gen$1_ExecutionResult as ExecutionResult, types_gen$1_ExecutionResultResponse as ExecutionResultResponse, types_gen$1_ExecutionStatusResponse as ExecutionStatusResponse, types_gen$1_GetAgentProfileData as GetAgentProfileData, types_gen$1_GetAgentProfileError as GetAgentProfileError, types_gen$1_GetAgentProfileErrors as GetAgentProfileErrors, types_gen$1_GetAgentProfileResponse as GetAgentProfileResponse, types_gen$1_GetAgentProfileResponses as GetAgentProfileResponses, types_gen$1_GetAgentProfilesData as GetAgentProfilesData, types_gen$1_GetAgentProfilesError as GetAgentProfilesError, types_gen$1_GetAgentProfilesErrors as GetAgentProfilesErrors, types_gen$1_GetAgentProfilesResponse as GetAgentProfilesResponse, types_gen$1_GetAgentProfilesResponses as GetAgentProfilesResponses, types_gen$1_GetBrowserSessionRecordingData as GetBrowserSessionRecordingData, types_gen$1_GetBrowserSessionRecordingError as GetBrowserSessionRecordingError, types_gen$1_GetBrowserSessionRecordingErrors as GetBrowserSessionRecordingErrors, types_gen$1_GetBrowserSessionRecordingResponse as GetBrowserSessionRecordingResponse, types_gen$1_GetBrowserSessionRecordingResponses as GetBrowserSessionRecordingResponses, types_gen$1_GetCredentialsPublicKeyData as GetCredentialsPublicKeyData, types_gen$1_GetCredentialsPublicKeyErrors as GetCredentialsPublicKeyErrors, types_gen$1_GetCredentialsPublicKeyResponse as GetCredentialsPublicKeyResponse, types_gen$1_GetCredentialsPublicKeyResponses as GetCredentialsPublicKeyResponses, types_gen$1_GetExecutionResultData as GetExecutionResultData, types_gen$1_GetExecutionResultError as GetExecutionResultError, types_gen$1_GetExecutionResultErrors as GetExecutionResultErrors, types_gen$1_GetExecutionResultResponse as GetExecutionResultResponse, types_gen$1_GetExecutionResultResponses as GetExecutionResultResponses, types_gen$1_GetExecutionStatusData as GetExecutionStatusData, types_gen$1_GetExecutionStatusError as GetExecutionStatusError, types_gen$1_GetExecutionStatusErrors as GetExecutionStatusErrors, types_gen$1_GetExecutionStatusResponse as GetExecutionStatusResponse, types_gen$1_GetExecutionStatusResponses as GetExecutionStatusResponses, types_gen$1_GetOpenApiData as GetOpenApiData, types_gen$1_GetOpenApiResponses as GetOpenApiResponses, types_gen$1_HealthCheckData as HealthCheckData, types_gen$1_HealthCheckError as HealthCheckError, types_gen$1_HealthCheckErrors as HealthCheckErrors, types_gen$1_HealthCheckResponse as HealthCheckResponse, types_gen$1_HealthCheckResponses as HealthCheckResponses, types_gen$1_ProxyType as ProxyType, types_gen$1_Status as Status, types_gen$1_StructuredAgentExecutionRequest as StructuredAgentExecutionRequest, types_gen$1_UpdateAgentProfileData as UpdateAgentProfileData, types_gen$1_UpdateAgentProfileError as UpdateAgentProfileError, types_gen$1_UpdateAgentProfileErrors as UpdateAgentProfileErrors, types_gen$1_UpdateAgentProfileRequest as UpdateAgentProfileRequest, types_gen$1_UpdateAgentProfileResponse as UpdateAgentProfileResponse, types_gen$1_UpdateAgentProfileResponses as UpdateAgentProfileResponses, types_gen$1_UploadExecutionFilesData as UploadExecutionFilesData, types_gen$1_UploadExecutionFilesError as UploadExecutionFilesError, types_gen$1_UploadExecutionFilesErrors as UploadExecutionFilesErrors, types_gen$1_UploadExecutionFilesResponse as UploadExecutionFilesResponse, types_gen$1_UploadExecutionFilesResponses as UploadExecutionFilesResponses };
1239
+ export type { types_gen$1_AgentExecutionRequest as AgentExecutionRequest, types_gen$1_AgentProfile as AgentProfile, types_gen$1_BrowserSessionRecordingResponse as BrowserSessionRecordingResponse, ClientOptions$1 as ClientOptions, types_gen$1_Cookie as Cookie, types_gen$1_CountryCode as CountryCode, types_gen$1_CreateAgentProfileData as CreateAgentProfileData, types_gen$1_CreateAgentProfileError as CreateAgentProfileError, types_gen$1_CreateAgentProfileErrors as CreateAgentProfileErrors, types_gen$1_CreateAgentProfileRequest as CreateAgentProfileRequest, types_gen$1_CreateAgentProfileResponse as CreateAgentProfileResponse, types_gen$1_CreateAgentProfileResponses as CreateAgentProfileResponses, types_gen$1_Credential as Credential, types_gen$1_DeleteAgentProfileData as DeleteAgentProfileData, types_gen$1_DeleteAgentProfileError as DeleteAgentProfileError, types_gen$1_DeleteAgentProfileErrors as DeleteAgentProfileErrors, types_gen$1_DeleteAgentProfileResponse as DeleteAgentProfileResponse, types_gen$1_DeleteAgentProfileResponses as DeleteAgentProfileResponses, types_gen$1_ErrorResponse as ErrorResponse, types_gen$1_ExecuteAgentData as ExecuteAgentData, types_gen$1_ExecuteAgentError as ExecuteAgentError, types_gen$1_ExecuteAgentErrors as ExecuteAgentErrors, types_gen$1_ExecuteAgentResponse as ExecuteAgentResponse, types_gen$1_ExecuteAgentResponses as ExecuteAgentResponses, types_gen$1_ExecuteAgentStructuredData as ExecuteAgentStructuredData, types_gen$1_ExecuteAgentStructuredError as ExecuteAgentStructuredError, types_gen$1_ExecuteAgentStructuredErrors as ExecuteAgentStructuredErrors, types_gen$1_ExecuteAgentStructuredResponse as ExecuteAgentStructuredResponse, types_gen$1_ExecuteAgentStructuredResponses as ExecuteAgentStructuredResponses, types_gen$1_ExecutionResponse as ExecutionResponse, types_gen$1_ExecutionResult as ExecutionResult, types_gen$1_ExecutionResultResponse as ExecutionResultResponse, types_gen$1_ExecutionStatusResponse as ExecutionStatusResponse, types_gen$1_GetAgentProfileData as GetAgentProfileData, types_gen$1_GetAgentProfileError as GetAgentProfileError, types_gen$1_GetAgentProfileErrors as GetAgentProfileErrors, types_gen$1_GetAgentProfileResponse as GetAgentProfileResponse, types_gen$1_GetAgentProfileResponses as GetAgentProfileResponses, types_gen$1_GetAgentProfilesData as GetAgentProfilesData, types_gen$1_GetAgentProfilesError as GetAgentProfilesError, types_gen$1_GetAgentProfilesErrors as GetAgentProfilesErrors, types_gen$1_GetAgentProfilesResponse as GetAgentProfilesResponse, types_gen$1_GetAgentProfilesResponses as GetAgentProfilesResponses, types_gen$1_GetBrowserSessionRecordingData as GetBrowserSessionRecordingData, types_gen$1_GetBrowserSessionRecordingError as GetBrowserSessionRecordingError, types_gen$1_GetBrowserSessionRecordingErrors as GetBrowserSessionRecordingErrors, types_gen$1_GetBrowserSessionRecordingResponse as GetBrowserSessionRecordingResponse, types_gen$1_GetBrowserSessionRecordingResponses as GetBrowserSessionRecordingResponses, types_gen$1_GetCredentialsPublicKeyData as GetCredentialsPublicKeyData, types_gen$1_GetCredentialsPublicKeyErrors as GetCredentialsPublicKeyErrors, types_gen$1_GetCredentialsPublicKeyResponse as GetCredentialsPublicKeyResponse, types_gen$1_GetCredentialsPublicKeyResponses as GetCredentialsPublicKeyResponses, types_gen$1_GetExecutionResultData as GetExecutionResultData, types_gen$1_GetExecutionResultError as GetExecutionResultError, types_gen$1_GetExecutionResultErrors as GetExecutionResultErrors, types_gen$1_GetExecutionResultResponse as GetExecutionResultResponse, types_gen$1_GetExecutionResultResponses as GetExecutionResultResponses, types_gen$1_GetExecutionStatusData as GetExecutionStatusData, types_gen$1_GetExecutionStatusError as GetExecutionStatusError, types_gen$1_GetExecutionStatusErrors as GetExecutionStatusErrors, types_gen$1_GetExecutionStatusResponse as GetExecutionStatusResponse, types_gen$1_GetExecutionStatusResponses as GetExecutionStatusResponses, types_gen$1_GetOpenApiData as GetOpenApiData, types_gen$1_GetOpenApiResponses as GetOpenApiResponses, types_gen$1_HealthCheckData as HealthCheckData, types_gen$1_HealthCheckError as HealthCheckError, types_gen$1_HealthCheckErrors as HealthCheckErrors, types_gen$1_HealthCheckResponse as HealthCheckResponse, types_gen$1_HealthCheckResponses as HealthCheckResponses, types_gen$1_ProxyType as ProxyType, types_gen$1_Status as Status, types_gen$1_StructuredAgentExecutionRequest as StructuredAgentExecutionRequest, types_gen$1_UpdateAgentProfileData as UpdateAgentProfileData, types_gen$1_UpdateAgentProfileError as UpdateAgentProfileError, types_gen$1_UpdateAgentProfileErrors as UpdateAgentProfileErrors, types_gen$1_UpdateAgentProfileRequest as UpdateAgentProfileRequest, types_gen$1_UpdateAgentProfileResponse as UpdateAgentProfileResponse, types_gen$1_UpdateAgentProfileResponses as UpdateAgentProfileResponses };
1292
1240
  }
1293
1241
 
1242
+ type ActivityActionCompletedInfoApiCall = {
1243
+ actionName: 'api_call';
1244
+ info: AgentsExecutionApiCallCompletedDetails;
1245
+ };
1246
+ type ActivityActionCompletedInfoBrowserFileUpload = {
1247
+ actionName: 'browser_file_upload';
1248
+ info: AgentsExecutionFileUploadCompletedDetails;
1249
+ };
1250
+ type ActivityActionCompletedInfoBrowserNavigate = {
1251
+ actionName: 'browser_navigate';
1252
+ info: AgentsExecutionNavigationDetails;
1253
+ };
1254
+ type ActivityActionCompletedInfoBrowserSnapshotWithSelectors = {
1255
+ actionName: 'browser_snapshot_with_selectors';
1256
+ info: AgentsExecutionBrowserSnapshotCompletedDetails;
1257
+ };
1258
+ type ActivityActionCompletedInfoGetMail = {
1259
+ actionName: 'get_mail';
1260
+ info: AgentsExecutionGetMailCompletedDetails;
1261
+ };
1262
+ type ActivityActionCompletedInfoGoToUrl = {
1263
+ actionName: 'go_to_url';
1264
+ info: AgentsExecutionNavigationDetails;
1265
+ };
1266
+ type ActivityActionCompletedInfoHybridPlaywright = {
1267
+ actionName: 'hybrid_playwright';
1268
+ info: AgentsExecutionPlaywrightScriptCompletedDetails;
1269
+ };
1270
+ type ActivityActionCompletedInfoListFiles = {
1271
+ actionName: 'list_files';
1272
+ info: AgentsExecutionFileListCompletedDetails;
1273
+ };
1274
+ type ActivityActionCompletedInfoPlaywrightScript = {
1275
+ actionName: 'playwright_script';
1276
+ info: AgentsExecutionPlaywrightScriptCompletedDetails;
1277
+ };
1278
+ type ActivityActionCompletedInfoReadFiles = {
1279
+ actionName: 'read_files';
1280
+ info: AgentsExecutionFileReadCompletedDetails;
1281
+ };
1282
+ type ActivityActionCompletedInfoReadScratchpad = {
1283
+ actionName: 'read_scratchpad';
1284
+ info: AgentsExecutionScratchpadCompletedDetails;
1285
+ };
1286
+ type ActivityActionCompletedInfoScriptpadRead = {
1287
+ actionName: 'scriptpad_read';
1288
+ info: AgentsExecutionScriptpadReadCompletedDetails;
1289
+ };
1290
+ type ActivityActionCompletedInfoScriptpadRunFunction = {
1291
+ actionName: 'scriptpad_run_function';
1292
+ info: AgentsExecutionRunFunctionCompletedDetails;
1293
+ };
1294
+ type ActivityActionCompletedInfoScriptpadSearchReplace = {
1295
+ actionName: 'scriptpad_search_replace';
1296
+ info: AgentsExecutionScriptpadSearchReplaceCompletedDetails;
1297
+ };
1298
+ type ActivityActionCompletedInfoUploadFile = {
1299
+ actionName: 'upload_file';
1300
+ info: AgentsExecutionFileUploadCompletedDetails;
1301
+ };
1302
+ type ActivityActionCompletedInfoUploadLocalFile = {
1303
+ actionName: 'upload_local_file';
1304
+ info: AgentsExecutionFileUploadCompletedDetails;
1305
+ };
1306
+ type ActivityActionCompletedInfoWriteScratchpad = {
1307
+ actionName: 'write_scratchpad';
1308
+ info: AgentsExecutionScratchpadCompletedDetails;
1309
+ };
1310
+ type ActivityActionStartedInfoBrowserNavigate = {
1311
+ actionName: 'browser_navigate';
1312
+ info: AgentsExecutionNavigationDetails;
1313
+ };
1314
+ type ActivityActionStartedInfoGetDatetime = {
1315
+ actionName: 'get_datetime';
1316
+ info: AgentsExecutionGetDatetimeDetails;
1317
+ };
1318
+ type ActivityActionStartedInfoGoToUrl = {
1319
+ actionName: 'go_to_url';
1320
+ info: AgentsExecutionNavigationDetails;
1321
+ };
1322
+ type ActivityActionStartedInfoHybridPlaywright = {
1323
+ actionName: 'hybrid_playwright';
1324
+ info: AgentsExecutionPlaywrightScriptStartedDetails;
1325
+ };
1326
+ type ActivityActionStartedInfoPlaywrightScript = {
1327
+ actionName: 'playwright_script';
1328
+ info: AgentsExecutionPlaywrightScriptStartedDetails;
1329
+ };
1330
+ type ActivityActionStartedInfoReadScratchpad = {
1331
+ actionName: 'read_scratchpad';
1332
+ info: AgentsExecutionScratchpadCompletedDetails;
1333
+ };
1334
+ type ActivityActionStartedInfoScriptpadRead = {
1335
+ actionName: 'scriptpad_read';
1336
+ info: AgentsExecutionScriptpadReadCompletedDetails;
1337
+ };
1338
+ type ActivityActionStartedInfoScriptpadRunFunction = {
1339
+ actionName: 'scriptpad_run_function';
1340
+ info: AgentsExecutionRunFunctionCompletedDetails;
1341
+ };
1342
+ type ActivityActionStartedInfoScriptpadSearchReplace = {
1343
+ actionName: 'scriptpad_search_replace';
1344
+ info: AgentsExecutionScriptpadSearchReplaceCompletedDetails;
1345
+ };
1346
+ type ActivityActionStartedInfoWriteScratchpad = {
1347
+ actionName: 'write_scratchpad';
1348
+ info: AgentsExecutionScratchpadCompletedDetails;
1349
+ };
1294
1350
  type ActivityPayloadUnionActionCompleted = {
1295
1351
  activityType: 'action_completed';
1296
1352
  data: AgentsExecutionActivityActionCompletedPayload;
@@ -1311,9 +1367,13 @@ type ActivityPayloadUnionGeneric = {
1311
1367
  activityType: 'generic';
1312
1368
  data: AgentsExecutionActivityGenericPayload;
1313
1369
  };
1314
- type ActivityPayloadUnionGraphUpdated = {
1315
- activityType: 'graph_updated';
1316
- data: AgentsExecutionActivityGraphUpdatedPayload;
1370
+ type ActivityPayloadUnionPlaywrightScriptGenerated = {
1371
+ activityType: 'playwright_script_generated';
1372
+ data: AgentsExecutionActivityPlaywrightScriptGeneratedPayload;
1373
+ };
1374
+ type ActivityPayloadUnionReasoning = {
1375
+ activityType: 'reasoning';
1376
+ data: AgentsExecutionActivityReasoningPayload;
1317
1377
  };
1318
1378
  type ActivityPayloadUnionStatusChanged = {
1319
1379
  activityType: 'status_changed';
@@ -1339,6 +1399,10 @@ type ActivityPayloadUnionUserMessageReceived = {
1339
1399
  activityType: 'user_message_received';
1340
1400
  data: AgentsExecutionActivityUserMessageReceivedPayload;
1341
1401
  };
1402
+ type ActivityPayloadUnionWorkflowUpdated = {
1403
+ activityType: 'workflow_updated';
1404
+ data: AgentsExecutionActivityWorkflowUpdatedPayload;
1405
+ };
1342
1406
  type AgentsAgentBase = {
1343
1407
  id: CommonUuid;
1344
1408
  name: string;
@@ -1346,21 +1410,121 @@ type AgentsAgentBase = {
1346
1410
  organizationId?: CommonUuid;
1347
1411
  userId: CommonUuid;
1348
1412
  };
1413
+ type AgentsAgentExecuteAgentRequest = {
1414
+ /**
1415
+ * The ID of the agent profile to use. Note this is not the agent ID
1416
+ */
1417
+ agentProfileId?: CommonUuid;
1418
+ /**
1419
+ * Dynamic data to be merged into the placeholders defined in prompts
1420
+ */
1421
+ dynamicData?: {
1422
+ [key: string]: unknown;
1423
+ };
1424
+ /**
1425
+ * Array of temporary files to attach to the execution. Must have been pre-uploaded using the stage file endpoint
1426
+ */
1427
+ tempFiles?: Array<AgentsFilesTempFile>;
1428
+ /**
1429
+ * Optional metadata key-value pairs (string keys and string values) for organizing and filtering executions
1430
+ */
1431
+ metadata?: {
1432
+ [key: string]: unknown;
1433
+ };
1434
+ /**
1435
+ * The version of the agent to execute. If not provided, the latest version will be used.
1436
+ */
1437
+ version?: number;
1438
+ };
1439
+ type AgentsAgentExecuteAgentResponse = {
1440
+ /**
1441
+ * The ID of the newly created execution
1442
+ */
1443
+ executionId: CommonUuid;
1444
+ };
1349
1445
  type AgentsAgentSortField = 'name' | 'created_at';
1446
+ type AgentsExecutionActionName = 'browser_navigate' | 'browser_navigate_back' | 'browser_click' | 'browser_type' | 'browser_select_option' | 'browser_wait_for' | 'browser_hover' | 'browser_drag' | 'browser_handle_dialog' | 'browser_press_key' | 'browser_take_screenshot' | 'browser_snapshot' | 'browser_evaluate' | 'browser_mouse_move_xy' | 'browser_mouse_click_xy' | 'browser_mouse_drag_xy' | 'browser_file_upload' | 'browser_tabs' | 'browser_console_messages' | 'browser_fill_form' | 'click' | 'double_click' | 'type' | 'move' | 'drag' | 'scroll' | 'screenshot' | 'keypress' | 'wait' | 'go_to_url' | 'get_text' | 'get_mail' | 'refresh_page' | 'read_clipboard' | 'list_files' | 'read_files' | 'send_user_message' | 'zoom_in' | 'zoom_out' | 'read_scratchpad' | 'write_scratchpad' | 'upload_file' | 'download_file' | 'get_execution_file' | 'upload_local_file' | 'google_sheets_get_data' | 'google_sheets_set_value' | 'generate_totp_secret' | 'get_datetime' | 'text_output' | 'reasoning' | 'url' | 'api_call' | 'playwright_script' | 'hybrid_playwright' | 'scriptpad_run_function' | 'scriptpad_read' | 'scriptpad_search_replace' | 'browser_snapshot_with_selectors';
1350
1447
  type AgentsExecutionActivity = {
1351
1448
  id: CommonUuid;
1352
1449
  payload: AgentsExecutionActivityPayloadUnion;
1353
1450
  executionId: CommonUuid;
1354
1451
  timestamp: string;
1355
1452
  };
1453
+ type AgentsExecutionActivityActionCompletedInfo = ({
1454
+ actionName: 'api_call';
1455
+ } & ActivityActionCompletedInfoApiCall) | ({
1456
+ actionName: 'browser_navigate';
1457
+ } & ActivityActionCompletedInfoBrowserNavigate) | ({
1458
+ actionName: 'go_to_url';
1459
+ } & ActivityActionCompletedInfoGoToUrl) | ({
1460
+ actionName: 'read_scratchpad';
1461
+ } & ActivityActionCompletedInfoReadScratchpad) | ({
1462
+ actionName: 'write_scratchpad';
1463
+ } & ActivityActionCompletedInfoWriteScratchpad) | ({
1464
+ actionName: 'playwright_script';
1465
+ } & ActivityActionCompletedInfoPlaywrightScript) | ({
1466
+ actionName: 'hybrid_playwright';
1467
+ } & ActivityActionCompletedInfoHybridPlaywright) | ({
1468
+ actionName: 'read_files';
1469
+ } & ActivityActionCompletedInfoReadFiles) | ({
1470
+ actionName: 'list_files';
1471
+ } & ActivityActionCompletedInfoListFiles) | ({
1472
+ actionName: 'upload_file';
1473
+ } & ActivityActionCompletedInfoUploadFile) | ({
1474
+ actionName: 'upload_local_file';
1475
+ } & ActivityActionCompletedInfoUploadLocalFile) | ({
1476
+ actionName: 'browser_file_upload';
1477
+ } & ActivityActionCompletedInfoBrowserFileUpload) | ({
1478
+ actionName: 'get_mail';
1479
+ } & ActivityActionCompletedInfoGetMail) | ({
1480
+ actionName: 'scriptpad_run_function';
1481
+ } & ActivityActionCompletedInfoScriptpadRunFunction) | ({
1482
+ actionName: 'scriptpad_read';
1483
+ } & ActivityActionCompletedInfoScriptpadRead) | ({
1484
+ actionName: 'scriptpad_search_replace';
1485
+ } & ActivityActionCompletedInfoScriptpadSearchReplace) | ({
1486
+ actionName: 'browser_snapshot_with_selectors';
1487
+ } & ActivityActionCompletedInfoBrowserSnapshotWithSelectors);
1356
1488
  type AgentsExecutionActivityActionCompletedPayload = {
1357
1489
  message: string;
1490
+ actionName: AgentsExecutionActionName;
1491
+ actionId?: string;
1492
+ duration?: number;
1493
+ info?: AgentsExecutionActivityActionCompletedInfo;
1358
1494
  };
1359
1495
  type AgentsExecutionActivityActionFailedPayload = {
1360
1496
  message: string;
1361
- };
1497
+ actionName: AgentsExecutionActionName;
1498
+ actionId?: string;
1499
+ duration?: number;
1500
+ };
1501
+ type AgentsExecutionActivityActionStartedInfo = ({
1502
+ actionName: 'browser_navigate';
1503
+ } & ActivityActionStartedInfoBrowserNavigate) | ({
1504
+ actionName: 'go_to_url';
1505
+ } & ActivityActionStartedInfoGoToUrl) | ({
1506
+ actionName: 'read_scratchpad';
1507
+ } & ActivityActionStartedInfoReadScratchpad) | ({
1508
+ actionName: 'write_scratchpad';
1509
+ } & ActivityActionStartedInfoWriteScratchpad) | ({
1510
+ actionName: 'scriptpad_run_function';
1511
+ } & ActivityActionStartedInfoScriptpadRunFunction) | ({
1512
+ actionName: 'playwright_script';
1513
+ } & ActivityActionStartedInfoPlaywrightScript) | ({
1514
+ actionName: 'hybrid_playwright';
1515
+ } & ActivityActionStartedInfoHybridPlaywright) | ({
1516
+ actionName: 'scriptpad_read';
1517
+ } & ActivityActionStartedInfoScriptpadRead) | ({
1518
+ actionName: 'scriptpad_search_replace';
1519
+ } & ActivityActionStartedInfoScriptpadSearchReplace) | ({
1520
+ actionName: 'get_datetime';
1521
+ } & ActivityActionStartedInfoGetDatetime);
1362
1522
  type AgentsExecutionActivityActionStartedPayload = {
1363
1523
  message: string;
1524
+ actionName: AgentsExecutionActionName;
1525
+ actionId?: string;
1526
+ duration?: number;
1527
+ info?: AgentsExecutionActivityActionStartedInfo;
1364
1528
  };
1365
1529
  type AgentsExecutionActivityFileAddedPayload = {
1366
1530
  fileId: CommonUuid;
@@ -1373,14 +1537,13 @@ type AgentsExecutionActivityFileAddedPayload = {
1373
1537
  type AgentsExecutionActivityGenericPayload = {
1374
1538
  message: string;
1375
1539
  };
1376
- type AgentsExecutionActivityGraphUpdatedPayload = {
1377
- graphUpdate: Array<AgentsExecutionGraphUpdate>;
1378
- };
1379
1540
  type AgentsExecutionActivityPayloadUnion = ({
1380
1541
  activityType: 'terminal';
1381
1542
  } & ActivityPayloadUnionTerminal) | ({
1382
1543
  activityType: 'generic';
1383
1544
  } & ActivityPayloadUnionGeneric) | ({
1545
+ activityType: 'reasoning';
1546
+ } & ActivityPayloadUnionReasoning) | ({
1384
1547
  activityType: 'step_started';
1385
1548
  } & ActivityPayloadUnionStepStarted) | ({
1386
1549
  activityType: 'step_completed';
@@ -1399,8 +1562,21 @@ type AgentsExecutionActivityPayloadUnion = ({
1399
1562
  } & ActivityPayloadUnionUserMessageReceived) | ({
1400
1563
  activityType: 'file_added';
1401
1564
  } & ActivityPayloadUnionFileAdded) | ({
1402
- activityType: 'graph_updated';
1403
- } & ActivityPayloadUnionGraphUpdated);
1565
+ activityType: 'workflow_updated';
1566
+ } & ActivityPayloadUnionWorkflowUpdated) | ({
1567
+ activityType: 'playwright_script_generated';
1568
+ } & ActivityPayloadUnionPlaywrightScriptGenerated);
1569
+ type AgentsExecutionActivityPlaywrightScriptGeneratedPayload = {
1570
+ nodeId: CommonUuid;
1571
+ nodeName: string;
1572
+ script: string;
1573
+ llmVars?: Array<AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar>;
1574
+ context: string;
1575
+ oldScript?: string;
1576
+ };
1577
+ type AgentsExecutionActivityReasoningPayload = {
1578
+ reasoning: string;
1579
+ };
1404
1580
  type AgentsExecutionActivityStatusChangedPayload = {
1405
1581
  status: AgentsExecutionStatus;
1406
1582
  completedPayload?: AgentsExecutionCompletedPayload;
@@ -1418,31 +1594,221 @@ type AgentsExecutionActivityStepStartedPayload = {
1418
1594
  type AgentsExecutionActivityTransitionedNodePayload = {
1419
1595
  newNodeUUID: CommonUuid;
1420
1596
  newNodeName: string;
1597
+ newNodeType: string;
1598
+ fromNodeDuration?: number;
1421
1599
  };
1422
1600
  type AgentsExecutionActivityUserMessageReceivedPayload = {
1423
1601
  message: string;
1424
1602
  userUUID: CommonUuid;
1425
1603
  };
1604
+ type AgentsExecutionActivityWorkflowUpdatedPayload = {
1605
+ workflowUpdate: Array<AgentsExecutionWorkflowUpdate>;
1606
+ };
1607
+ type AgentsExecutionAgentRulesDetails = {
1608
+ agentRules: string;
1609
+ };
1610
+ type AgentsExecutionApiCallCompletedDetails = {
1611
+ statusCode: string;
1612
+ responseBody: string;
1613
+ requestMethod?: string;
1614
+ requestUrl?: string;
1615
+ };
1426
1616
  type AgentsExecutionAwaitingConfirmationPayload = {
1427
1617
  reason: string;
1428
1618
  };
1619
+ type AgentsExecutionBrowserSnapshotCompletedDetails = {
1620
+ url: string;
1621
+ title: string;
1622
+ };
1429
1623
  type AgentsExecutionCancelReason = 'timeout' | 'max_steps' | 'user_requested';
1430
1624
  type AgentsExecutionCancelledPayload = {
1431
1625
  reason: AgentsExecutionCancelReason;
1432
1626
  };
1627
+ /**
1628
+ * User comment on an execution
1629
+ */
1630
+ type AgentsExecutionComment = {
1631
+ /**
1632
+ * Unique identifier for the comment
1633
+ */
1634
+ id: CommonUuid;
1635
+ /**
1636
+ * Execution this comment belongs to
1637
+ */
1638
+ executionId: CommonUuid;
1639
+ /**
1640
+ * User who created the comment
1641
+ */
1642
+ userId: CommonUuid;
1643
+ /**
1644
+ * Comment content
1645
+ */
1646
+ content: string;
1647
+ /**
1648
+ * Whether the comment is public
1649
+ */
1650
+ public: boolean;
1651
+ /**
1652
+ * When the comment was created
1653
+ */
1654
+ createdAt: string;
1655
+ /**
1656
+ * When the comment was last updated
1657
+ */
1658
+ updatedAt?: string;
1659
+ };
1433
1660
  type AgentsExecutionCompletedPayload = {
1434
- outcome: 'success' | 'failure';
1661
+ outcome: string;
1662
+ reasoning: string;
1663
+ result: unknown;
1664
+ lessons_learned?: string;
1665
+ };
1666
+ /**
1667
+ * Execution result containing outcome, reasoning, and result data
1668
+ */
1669
+ type AgentsExecutionExecutionResult = {
1670
+ /**
1671
+ * Unique identifier for the result
1672
+ */
1673
+ id: CommonUuid;
1674
+ /**
1675
+ * Execution this result belongs to
1676
+ */
1677
+ executionId: CommonUuid;
1678
+ /**
1679
+ * Outcome of the execution (success or failure)
1680
+ */
1681
+ outcome: string;
1682
+ /**
1683
+ * AI reasoning for the outcome
1684
+ */
1435
1685
  reasoning: string;
1436
- final_answer?: string;
1686
+ /**
1687
+ * Result data as JSON
1688
+ */
1437
1689
  result: unknown;
1690
+ /**
1691
+ * When the result was created
1692
+ */
1693
+ createdAt: string;
1438
1694
  };
1439
1695
  type AgentsExecutionFailedPayload = {
1440
1696
  reason: string;
1697
+ os_error?: CommonOsError;
1441
1698
  };
1442
- type AgentsExecutionGraphUpdate = {
1443
- updateType: AgentsExecutionUpdateType;
1444
- nodeDetails?: AgentsExecutionNodeDetails;
1445
- transitionDetails?: AgentsExecutionTransitionDetails;
1699
+ type AgentsExecutionFileListCompletedDetails = {
1700
+ fileNames: Array<string>;
1701
+ };
1702
+ type AgentsExecutionFileReadCompletedDetails = {
1703
+ fileNames: Array<string>;
1704
+ errorCount?: number;
1705
+ totalSizeBytes?: number;
1706
+ };
1707
+ type AgentsExecutionFileUploadCompletedDetails = {
1708
+ fileNames: Array<string>;
1709
+ };
1710
+ type AgentsExecutionGetDatetimeDetails = {
1711
+ tzTimezoneIdentifier: string;
1712
+ };
1713
+ type AgentsExecutionGetMailCompletedDetails = {
1714
+ emailCount: number;
1715
+ emails: Array<unknown>;
1716
+ };
1717
+ /**
1718
+ * Human-applied label for categorizing executions
1719
+ */
1720
+ type AgentsExecutionHumanLabel = {
1721
+ /**
1722
+ * Unique identifier for the label
1723
+ */
1724
+ id: CommonUuid;
1725
+ /**
1726
+ * Organization this label belongs to
1727
+ */
1728
+ organizationId: CommonUuid;
1729
+ /**
1730
+ * Display name of the label
1731
+ */
1732
+ name: string;
1733
+ /**
1734
+ * Hex color code for the label (e.g., #FF5733)
1735
+ */
1736
+ color: string;
1737
+ /**
1738
+ * When the label was created
1739
+ */
1740
+ createdAt: string;
1741
+ };
1742
+ /**
1743
+ * Represents a single execution in a list view
1744
+ */
1745
+ type AgentsExecutionListItem = {
1746
+ /**
1747
+ * The unique identifier of the execution
1748
+ */
1749
+ id: CommonUuid;
1750
+ /**
1751
+ * The ID of the agent that was executed
1752
+ */
1753
+ agentId: CommonUuid;
1754
+ /**
1755
+ * The ID of the workflow that was executed
1756
+ */
1757
+ workflowId: CommonUuid;
1758
+ /**
1759
+ * The version of the agent that was executed
1760
+ */
1761
+ agentVersion: number;
1762
+ /**
1763
+ * Whether the agent version was modified from the original
1764
+ */
1765
+ agentVersionDirty: boolean;
1766
+ /**
1767
+ * The current status of the execution
1768
+ */
1769
+ status: AgentsExecutionStatus;
1770
+ /**
1771
+ * When the execution was created
1772
+ */
1773
+ createdAt: string;
1774
+ /**
1775
+ * When the execution reached a terminal state (if applicable)
1776
+ */
1777
+ terminalAt?: string;
1778
+ /**
1779
+ * The organization this execution belongs to
1780
+ */
1781
+ organizationId: CommonUuid;
1782
+ /**
1783
+ * The agent display name
1784
+ */
1785
+ agentName: string;
1786
+ /**
1787
+ * Execution result with outcome, reasoning, and result data
1788
+ */
1789
+ executionResult?: AgentsExecutionExecutionResult;
1790
+ /**
1791
+ * Execution duration in seconds (only present for terminal executions)
1792
+ */
1793
+ duration?: number;
1794
+ /**
1795
+ * Human-applied labels for this execution
1796
+ */
1797
+ humanLabels: Array<AgentsExecutionHumanLabel>;
1798
+ /**
1799
+ * Comments on this execution
1800
+ */
1801
+ comments: Array<AgentsExecutionComment>;
1802
+ /**
1803
+ * Optional metadata key-value pairs attached to this execution
1804
+ */
1805
+ metadata?: {
1806
+ [key: string]: unknown;
1807
+ };
1808
+ };
1809
+ type AgentsExecutionNavigationDetails = {
1810
+ url: string;
1811
+ pageTitle?: string;
1446
1812
  };
1447
1813
  type AgentsExecutionNodeDetails = {
1448
1814
  nodeID: CommonUuid;
@@ -1452,6 +1818,48 @@ type AgentsExecutionNodeDetails = {
1452
1818
  type AgentsExecutionPausedPayload = {
1453
1819
  reason: string;
1454
1820
  };
1821
+ type AgentsExecutionPlaywrightScriptCompletedDetails = {
1822
+ scriptContent: string;
1823
+ executionTimeMs?: number;
1824
+ consoleLogs?: Array<string>;
1825
+ failedLine?: number;
1826
+ errorMessage?: string;
1827
+ success: boolean;
1828
+ result?: string;
1829
+ llmVars?: Array<string>;
1830
+ };
1831
+ type AgentsExecutionPlaywrightScriptStartedDetails = {
1832
+ llmVars?: Array<string>;
1833
+ };
1834
+ type AgentsExecutionRunFunctionCompletedDetails = {
1835
+ functionName: string;
1836
+ arguments: unknown;
1837
+ success: boolean;
1838
+ result?: string;
1839
+ errorMessage?: string;
1840
+ };
1841
+ type AgentsExecutionScratchpadCompletedDetails = {
1842
+ operation: 'read' | 'write';
1843
+ content?: string;
1844
+ contentTruncated?: boolean;
1845
+ };
1846
+ type AgentsExecutionScriptpadReadCompletedDetails = {
1847
+ totalLines: number;
1848
+ readLines?: number;
1849
+ offset?: number;
1850
+ limit?: number;
1851
+ scriptpad?: string;
1852
+ };
1853
+ type AgentsExecutionScriptpadSearchReplaceCompletedDetails = {
1854
+ linesChanged?: number;
1855
+ totalLines: number;
1856
+ replaceAll: boolean;
1857
+ scriptpad?: string;
1858
+ };
1859
+ /**
1860
+ * Fields that can be used for sorting executions
1861
+ */
1862
+ type AgentsExecutionSortField = 'created_at' | 'status';
1455
1863
  type AgentsExecutionStatus = 'starting' | 'running' | 'paused' | 'awaiting_confirmation' | 'completed' | 'cancelled' | 'failed' | 'paused_by_agent';
1456
1864
  type AgentsExecutionTerminalPayload = {
1457
1865
  reason: 'unsubscribe' | 'complete' | 'error';
@@ -1465,6 +1873,12 @@ type AgentsExecutionUpdateType = 'add' | 'edit' | 'delete';
1465
1873
  type AgentsExecutionUserMessagesAddTextBody = {
1466
1874
  message: string;
1467
1875
  };
1876
+ type AgentsExecutionWorkflowUpdate = {
1877
+ updateType: AgentsExecutionUpdateType;
1878
+ agentRulesDetails?: AgentsExecutionAgentRulesDetails;
1879
+ nodeDetails?: AgentsExecutionNodeDetails;
1880
+ transitionDetails?: AgentsExecutionTransitionDetails;
1881
+ };
1468
1882
  type AgentsFilesFile = {
1469
1883
  id: CommonUuid;
1470
1884
  executionId: CommonUuid;
@@ -1479,6 +1893,19 @@ type AgentsFilesFile = {
1479
1893
  signedUrl: string;
1480
1894
  };
1481
1895
  type AgentsFilesFilePart = Blob | File;
1896
+ type AgentsFilesTempFile = {
1897
+ id: CommonUuid;
1898
+ name: string;
1899
+ };
1900
+ type AgentsFilesTempFilesResponse = {
1901
+ tempFiles: Array<AgentsFilesTempFile>;
1902
+ };
1903
+ type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar = {
1904
+ name: string;
1905
+ type: AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType;
1906
+ description: string;
1907
+ };
1908
+ type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType = 'string' | 'number' | 'boolean';
1482
1909
  type CommonBadRequestErrorBody = {
1483
1910
  code: 400;
1484
1911
  message: string;
@@ -1495,10 +1922,53 @@ type CommonNotFoundErrorBody = {
1495
1922
  code: 404;
1496
1923
  message: string;
1497
1924
  };
1925
+ type CommonOsError = {
1926
+ message: string;
1927
+ };
1498
1928
  type CommonSortDirection = 'asc' | 'desc';
1499
1929
  type CommonUuid = string;
1500
1930
  type Version = 'v1';
1501
1931
  type AgentsAgentSearch = string;
1932
+ /**
1933
+ * Filter by agent ID
1934
+ */
1935
+ type AgentsExecutionSearchAgentId = CommonUuid;
1936
+ /**
1937
+ * Filter by agent version
1938
+ */
1939
+ type AgentsExecutionSearchAgentVersion = number;
1940
+ /**
1941
+ * Filter executions created after this timestamp
1942
+ */
1943
+ type AgentsExecutionSearchCreatedAfter = string;
1944
+ /**
1945
+ * Filter executions created before this timestamp
1946
+ */
1947
+ type AgentsExecutionSearchCreatedBefore = string;
1948
+ /**
1949
+ * Search by execution ID (partial, case-insensitive match)
1950
+ */
1951
+ type AgentsExecutionSearchExecutionId = string;
1952
+ /**
1953
+ * Filter by human labels (can specify multiple label IDs, there is an 'OR' condition applied to these)
1954
+ */
1955
+ type AgentsExecutionSearchHumanLabels = Array<CommonUuid>;
1956
+ /**
1957
+ * Filter by metadata key - must be used together with metadataValue
1958
+ */
1959
+ type AgentsExecutionSearchMetadataKey = string;
1960
+ /**
1961
+ * Filter by metadata value - must be used together with metadataKey
1962
+ */
1963
+ type AgentsExecutionSearchMetadataValue = string;
1964
+ /**
1965
+ * Filter by execution result outcome (partial, case-insensitive match)
1966
+ */
1967
+ type AgentsExecutionSearchOutcomeLabel = string;
1968
+ /**
1969
+ * Filter by execution status (can specify multiple, there is an 'OR' condition applied to these)
1970
+ */
1971
+ type AgentsExecutionSearchStatus = Array<AgentsExecutionStatus>;
1502
1972
  type CommonPaginationPage = number;
1503
1973
  type CommonPaginationPageSize = number;
1504
1974
  type AgentListData = {
@@ -1509,12 +1979,20 @@ type AgentListData = {
1509
1979
  pageSize: number;
1510
1980
  page: number;
1511
1981
  searchName?: string;
1512
- sort_field?: AgentsAgentSortField;
1513
- sort_direction?: CommonSortDirection;
1982
+ sortField?: AgentsAgentSortField;
1983
+ sortDirection?: CommonSortDirection;
1514
1984
  };
1515
1985
  url: '/agents';
1516
1986
  };
1517
1987
  type AgentListErrors = {
1988
+ /**
1989
+ * The server could not understand the request due to invalid syntax.
1990
+ */
1991
+ 400: 'Invalid request parameters.';
1992
+ /**
1993
+ * The server cannot find the requested resource.
1994
+ */
1995
+ 404: 'Organization not found.';
1518
1996
  /**
1519
1997
  * An unexpected error response.
1520
1998
  */
@@ -1533,6 +2011,116 @@ type AgentListResponses = {
1533
2011
  };
1534
2012
  };
1535
2013
  type AgentListResponse = AgentListResponses[keyof AgentListResponses];
2014
+ type AgentExecutePostData = {
2015
+ /**
2016
+ * Execution request parameters
2017
+ */
2018
+ body: AgentsAgentExecuteAgentRequest;
2019
+ path: {
2020
+ /**
2021
+ * The ID of the agent to execute
2022
+ */
2023
+ agentId: CommonUuid;
2024
+ };
2025
+ query?: never;
2026
+ url: '/agents/{agentId}/execute';
2027
+ };
2028
+ type AgentExecutePostErrors = {
2029
+ /**
2030
+ * An unexpected error response.
2031
+ */
2032
+ default: CommonError;
2033
+ };
2034
+ type AgentExecutePostError = AgentExecutePostErrors[keyof AgentExecutePostErrors];
2035
+ type AgentExecutePostResponses = {
2036
+ /**
2037
+ * The request has been accepted for processing, but processing has not yet completed.
2038
+ */
2039
+ 202: AgentsAgentExecuteAgentResponse;
2040
+ };
2041
+ type AgentExecutePostResponse = AgentExecutePostResponses[keyof AgentExecutePostResponses];
2042
+ type ExecutionsListData = {
2043
+ body?: never;
2044
+ path?: never;
2045
+ query: {
2046
+ /**
2047
+ * Optional organization ID filter (required for customer queries)
2048
+ */
2049
+ organizationId?: CommonUuid;
2050
+ pageSize: number;
2051
+ page: number;
2052
+ /**
2053
+ * Search by execution ID (partial, case-insensitive match)
2054
+ */
2055
+ executionId?: string;
2056
+ /**
2057
+ * Filter by agent ID
2058
+ */
2059
+ agentId?: CommonUuid;
2060
+ /**
2061
+ * Filter by execution status (can specify multiple, there is an 'OR' condition applied to these)
2062
+ */
2063
+ status?: Array<AgentsExecutionStatus>;
2064
+ /**
2065
+ * Filter by agent version
2066
+ */
2067
+ agentVersion?: number;
2068
+ /**
2069
+ * Filter executions created after this timestamp
2070
+ */
2071
+ createdAfter?: string;
2072
+ /**
2073
+ * Filter executions created before this timestamp
2074
+ */
2075
+ createdBefore?: string;
2076
+ /**
2077
+ * Filter by human labels (can specify multiple label IDs, there is an 'OR' condition applied to these)
2078
+ */
2079
+ humanLabels?: Array<CommonUuid>;
2080
+ /**
2081
+ * Filter by execution result outcome (partial, case-insensitive match)
2082
+ */
2083
+ outcomeLabel?: string;
2084
+ /**
2085
+ * Filter by metadata key - must be used together with metadataValue
2086
+ */
2087
+ metadataKey?: string;
2088
+ /**
2089
+ * Filter by metadata value - must be used together with metadataKey
2090
+ */
2091
+ metadataValue?: string;
2092
+ sortField?: AgentsExecutionSortField;
2093
+ sortDirection?: CommonSortDirection;
2094
+ };
2095
+ url: '/executions';
2096
+ };
2097
+ type ExecutionsListErrors = {
2098
+ /**
2099
+ * The server could not understand the request due to invalid syntax.
2100
+ */
2101
+ 400: CommonBadRequestErrorBody;
2102
+ /**
2103
+ * Access is forbidden.
2104
+ */
2105
+ 403: CommonForbiddenErrorBody;
2106
+ /**
2107
+ * The server cannot find the requested resource.
2108
+ */
2109
+ 404: CommonNotFoundErrorBody;
2110
+ };
2111
+ type ExecutionsListError = ExecutionsListErrors[keyof ExecutionsListErrors];
2112
+ type ExecutionsListResponses = {
2113
+ /**
2114
+ * The request has succeeded.
2115
+ */
2116
+ 200: {
2117
+ items: Array<AgentsExecutionListItem>;
2118
+ page: number;
2119
+ pageSize: number;
2120
+ total: number;
2121
+ };
2122
+ };
2123
+ type ExecutionsListResponse = ExecutionsListResponses[keyof ExecutionsListResponses];
1536
2124
  type ExecutionActivitiesGetData = {
1537
2125
  body?: never;
1538
2126
  path: {
@@ -1602,6 +2190,10 @@ type ExecutionContextFilesUploadData = {
1602
2190
  files: Array<AgentsFilesFilePart>;
1603
2191
  };
1604
2192
  path: {
2193
+ /**
2194
+ * Upload files to a running execution
2195
+ * Upload files to a running execution that is already in progress. If you want to attach files to an execution that is not yet running, see the /temp-files endpoint.
2196
+ */
1605
2197
  executionId: CommonUuid;
1606
2198
  };
1607
2199
  query?: never;
@@ -1661,63 +2253,171 @@ type ExecutionUserMessagesAddResponses = {
1661
2253
  201: 'User message added.';
1662
2254
  };
1663
2255
  type ExecutionUserMessagesAddResponse = ExecutionUserMessagesAddResponses[keyof ExecutionUserMessagesAddResponses];
2256
+ type TempFilesStageData = {
2257
+ body: {
2258
+ files: Array<AgentsFilesFilePart>;
2259
+ };
2260
+ path: {
2261
+ organizationId: CommonUuid;
2262
+ };
2263
+ query?: never;
2264
+ url: '/temp-files/{organizationId}';
2265
+ };
2266
+ type TempFilesStageErrors = {
2267
+ /**
2268
+ * The server could not understand the request due to invalid syntax.
2269
+ */
2270
+ 400: 'Invalid file upload request.';
2271
+ /**
2272
+ * Access is forbidden.
2273
+ */
2274
+ 403: 'User is not a member of the organization.';
2275
+ /**
2276
+ * Server error
2277
+ */
2278
+ 500: 'Internal server error.';
2279
+ };
2280
+ type TempFilesStageError = TempFilesStageErrors[keyof TempFilesStageErrors];
2281
+ type TempFilesStageResponses = {
2282
+ /**
2283
+ * The request has succeeded.
2284
+ */
2285
+ 200: AgentsFilesTempFilesResponse;
2286
+ };
2287
+ type TempFilesStageResponse = TempFilesStageResponses[keyof TempFilesStageResponses];
1664
2288
  type ClientOptions = {
1665
2289
  baseUrl: 'https://odyssey.asteroid.ai/agents/v2' | (string & {});
1666
2290
  };
1667
2291
 
2292
+ type types_gen_ActivityActionCompletedInfoApiCall = ActivityActionCompletedInfoApiCall;
2293
+ type types_gen_ActivityActionCompletedInfoBrowserFileUpload = ActivityActionCompletedInfoBrowserFileUpload;
2294
+ type types_gen_ActivityActionCompletedInfoBrowserNavigate = ActivityActionCompletedInfoBrowserNavigate;
2295
+ type types_gen_ActivityActionCompletedInfoBrowserSnapshotWithSelectors = ActivityActionCompletedInfoBrowserSnapshotWithSelectors;
2296
+ type types_gen_ActivityActionCompletedInfoGetMail = ActivityActionCompletedInfoGetMail;
2297
+ type types_gen_ActivityActionCompletedInfoGoToUrl = ActivityActionCompletedInfoGoToUrl;
2298
+ type types_gen_ActivityActionCompletedInfoHybridPlaywright = ActivityActionCompletedInfoHybridPlaywright;
2299
+ type types_gen_ActivityActionCompletedInfoListFiles = ActivityActionCompletedInfoListFiles;
2300
+ type types_gen_ActivityActionCompletedInfoPlaywrightScript = ActivityActionCompletedInfoPlaywrightScript;
2301
+ type types_gen_ActivityActionCompletedInfoReadFiles = ActivityActionCompletedInfoReadFiles;
2302
+ type types_gen_ActivityActionCompletedInfoReadScratchpad = ActivityActionCompletedInfoReadScratchpad;
2303
+ type types_gen_ActivityActionCompletedInfoScriptpadRead = ActivityActionCompletedInfoScriptpadRead;
2304
+ type types_gen_ActivityActionCompletedInfoScriptpadRunFunction = ActivityActionCompletedInfoScriptpadRunFunction;
2305
+ type types_gen_ActivityActionCompletedInfoScriptpadSearchReplace = ActivityActionCompletedInfoScriptpadSearchReplace;
2306
+ type types_gen_ActivityActionCompletedInfoUploadFile = ActivityActionCompletedInfoUploadFile;
2307
+ type types_gen_ActivityActionCompletedInfoUploadLocalFile = ActivityActionCompletedInfoUploadLocalFile;
2308
+ type types_gen_ActivityActionCompletedInfoWriteScratchpad = ActivityActionCompletedInfoWriteScratchpad;
2309
+ type types_gen_ActivityActionStartedInfoBrowserNavigate = ActivityActionStartedInfoBrowserNavigate;
2310
+ type types_gen_ActivityActionStartedInfoGetDatetime = ActivityActionStartedInfoGetDatetime;
2311
+ type types_gen_ActivityActionStartedInfoGoToUrl = ActivityActionStartedInfoGoToUrl;
2312
+ type types_gen_ActivityActionStartedInfoHybridPlaywright = ActivityActionStartedInfoHybridPlaywright;
2313
+ type types_gen_ActivityActionStartedInfoPlaywrightScript = ActivityActionStartedInfoPlaywrightScript;
2314
+ type types_gen_ActivityActionStartedInfoReadScratchpad = ActivityActionStartedInfoReadScratchpad;
2315
+ type types_gen_ActivityActionStartedInfoScriptpadRead = ActivityActionStartedInfoScriptpadRead;
2316
+ type types_gen_ActivityActionStartedInfoScriptpadRunFunction = ActivityActionStartedInfoScriptpadRunFunction;
2317
+ type types_gen_ActivityActionStartedInfoScriptpadSearchReplace = ActivityActionStartedInfoScriptpadSearchReplace;
2318
+ type types_gen_ActivityActionStartedInfoWriteScratchpad = ActivityActionStartedInfoWriteScratchpad;
1668
2319
  type types_gen_ActivityPayloadUnionActionCompleted = ActivityPayloadUnionActionCompleted;
1669
2320
  type types_gen_ActivityPayloadUnionActionFailed = ActivityPayloadUnionActionFailed;
1670
2321
  type types_gen_ActivityPayloadUnionActionStarted = ActivityPayloadUnionActionStarted;
1671
2322
  type types_gen_ActivityPayloadUnionFileAdded = ActivityPayloadUnionFileAdded;
1672
2323
  type types_gen_ActivityPayloadUnionGeneric = ActivityPayloadUnionGeneric;
1673
- type types_gen_ActivityPayloadUnionGraphUpdated = ActivityPayloadUnionGraphUpdated;
2324
+ type types_gen_ActivityPayloadUnionPlaywrightScriptGenerated = ActivityPayloadUnionPlaywrightScriptGenerated;
2325
+ type types_gen_ActivityPayloadUnionReasoning = ActivityPayloadUnionReasoning;
1674
2326
  type types_gen_ActivityPayloadUnionStatusChanged = ActivityPayloadUnionStatusChanged;
1675
2327
  type types_gen_ActivityPayloadUnionStepCompleted = ActivityPayloadUnionStepCompleted;
1676
2328
  type types_gen_ActivityPayloadUnionStepStarted = ActivityPayloadUnionStepStarted;
1677
2329
  type types_gen_ActivityPayloadUnionTerminal = ActivityPayloadUnionTerminal;
1678
2330
  type types_gen_ActivityPayloadUnionTransitionedNode = ActivityPayloadUnionTransitionedNode;
1679
2331
  type types_gen_ActivityPayloadUnionUserMessageReceived = ActivityPayloadUnionUserMessageReceived;
2332
+ type types_gen_ActivityPayloadUnionWorkflowUpdated = ActivityPayloadUnionWorkflowUpdated;
2333
+ type types_gen_AgentExecutePostData = AgentExecutePostData;
2334
+ type types_gen_AgentExecutePostError = AgentExecutePostError;
2335
+ type types_gen_AgentExecutePostErrors = AgentExecutePostErrors;
2336
+ type types_gen_AgentExecutePostResponse = AgentExecutePostResponse;
2337
+ type types_gen_AgentExecutePostResponses = AgentExecutePostResponses;
1680
2338
  type types_gen_AgentListData = AgentListData;
1681
2339
  type types_gen_AgentListError = AgentListError;
1682
2340
  type types_gen_AgentListErrors = AgentListErrors;
1683
2341
  type types_gen_AgentListResponse = AgentListResponse;
1684
2342
  type types_gen_AgentListResponses = AgentListResponses;
1685
2343
  type types_gen_AgentsAgentBase = AgentsAgentBase;
2344
+ type types_gen_AgentsAgentExecuteAgentRequest = AgentsAgentExecuteAgentRequest;
2345
+ type types_gen_AgentsAgentExecuteAgentResponse = AgentsAgentExecuteAgentResponse;
1686
2346
  type types_gen_AgentsAgentSearch = AgentsAgentSearch;
1687
2347
  type types_gen_AgentsAgentSortField = AgentsAgentSortField;
2348
+ type types_gen_AgentsExecutionActionName = AgentsExecutionActionName;
1688
2349
  type types_gen_AgentsExecutionActivity = AgentsExecutionActivity;
2350
+ type types_gen_AgentsExecutionActivityActionCompletedInfo = AgentsExecutionActivityActionCompletedInfo;
1689
2351
  type types_gen_AgentsExecutionActivityActionCompletedPayload = AgentsExecutionActivityActionCompletedPayload;
1690
2352
  type types_gen_AgentsExecutionActivityActionFailedPayload = AgentsExecutionActivityActionFailedPayload;
2353
+ type types_gen_AgentsExecutionActivityActionStartedInfo = AgentsExecutionActivityActionStartedInfo;
1691
2354
  type types_gen_AgentsExecutionActivityActionStartedPayload = AgentsExecutionActivityActionStartedPayload;
1692
2355
  type types_gen_AgentsExecutionActivityFileAddedPayload = AgentsExecutionActivityFileAddedPayload;
1693
2356
  type types_gen_AgentsExecutionActivityGenericPayload = AgentsExecutionActivityGenericPayload;
1694
- type types_gen_AgentsExecutionActivityGraphUpdatedPayload = AgentsExecutionActivityGraphUpdatedPayload;
1695
2357
  type types_gen_AgentsExecutionActivityPayloadUnion = AgentsExecutionActivityPayloadUnion;
2358
+ type types_gen_AgentsExecutionActivityPlaywrightScriptGeneratedPayload = AgentsExecutionActivityPlaywrightScriptGeneratedPayload;
2359
+ type types_gen_AgentsExecutionActivityReasoningPayload = AgentsExecutionActivityReasoningPayload;
1696
2360
  type types_gen_AgentsExecutionActivityStatusChangedPayload = AgentsExecutionActivityStatusChangedPayload;
1697
2361
  type types_gen_AgentsExecutionActivityStepCompletedPayload = AgentsExecutionActivityStepCompletedPayload;
1698
2362
  type types_gen_AgentsExecutionActivityStepStartedPayload = AgentsExecutionActivityStepStartedPayload;
1699
2363
  type types_gen_AgentsExecutionActivityTransitionedNodePayload = AgentsExecutionActivityTransitionedNodePayload;
1700
2364
  type types_gen_AgentsExecutionActivityUserMessageReceivedPayload = AgentsExecutionActivityUserMessageReceivedPayload;
2365
+ type types_gen_AgentsExecutionActivityWorkflowUpdatedPayload = AgentsExecutionActivityWorkflowUpdatedPayload;
2366
+ type types_gen_AgentsExecutionAgentRulesDetails = AgentsExecutionAgentRulesDetails;
2367
+ type types_gen_AgentsExecutionApiCallCompletedDetails = AgentsExecutionApiCallCompletedDetails;
1701
2368
  type types_gen_AgentsExecutionAwaitingConfirmationPayload = AgentsExecutionAwaitingConfirmationPayload;
2369
+ type types_gen_AgentsExecutionBrowserSnapshotCompletedDetails = AgentsExecutionBrowserSnapshotCompletedDetails;
1702
2370
  type types_gen_AgentsExecutionCancelReason = AgentsExecutionCancelReason;
1703
2371
  type types_gen_AgentsExecutionCancelledPayload = AgentsExecutionCancelledPayload;
2372
+ type types_gen_AgentsExecutionComment = AgentsExecutionComment;
1704
2373
  type types_gen_AgentsExecutionCompletedPayload = AgentsExecutionCompletedPayload;
2374
+ type types_gen_AgentsExecutionExecutionResult = AgentsExecutionExecutionResult;
1705
2375
  type types_gen_AgentsExecutionFailedPayload = AgentsExecutionFailedPayload;
1706
- type types_gen_AgentsExecutionGraphUpdate = AgentsExecutionGraphUpdate;
2376
+ type types_gen_AgentsExecutionFileListCompletedDetails = AgentsExecutionFileListCompletedDetails;
2377
+ type types_gen_AgentsExecutionFileReadCompletedDetails = AgentsExecutionFileReadCompletedDetails;
2378
+ type types_gen_AgentsExecutionFileUploadCompletedDetails = AgentsExecutionFileUploadCompletedDetails;
2379
+ type types_gen_AgentsExecutionGetDatetimeDetails = AgentsExecutionGetDatetimeDetails;
2380
+ type types_gen_AgentsExecutionGetMailCompletedDetails = AgentsExecutionGetMailCompletedDetails;
2381
+ type types_gen_AgentsExecutionHumanLabel = AgentsExecutionHumanLabel;
2382
+ type types_gen_AgentsExecutionListItem = AgentsExecutionListItem;
2383
+ type types_gen_AgentsExecutionNavigationDetails = AgentsExecutionNavigationDetails;
1707
2384
  type types_gen_AgentsExecutionNodeDetails = AgentsExecutionNodeDetails;
1708
2385
  type types_gen_AgentsExecutionPausedPayload = AgentsExecutionPausedPayload;
2386
+ type types_gen_AgentsExecutionPlaywrightScriptCompletedDetails = AgentsExecutionPlaywrightScriptCompletedDetails;
2387
+ type types_gen_AgentsExecutionPlaywrightScriptStartedDetails = AgentsExecutionPlaywrightScriptStartedDetails;
2388
+ type types_gen_AgentsExecutionRunFunctionCompletedDetails = AgentsExecutionRunFunctionCompletedDetails;
2389
+ type types_gen_AgentsExecutionScratchpadCompletedDetails = AgentsExecutionScratchpadCompletedDetails;
2390
+ type types_gen_AgentsExecutionScriptpadReadCompletedDetails = AgentsExecutionScriptpadReadCompletedDetails;
2391
+ type types_gen_AgentsExecutionScriptpadSearchReplaceCompletedDetails = AgentsExecutionScriptpadSearchReplaceCompletedDetails;
2392
+ type types_gen_AgentsExecutionSearchAgentId = AgentsExecutionSearchAgentId;
2393
+ type types_gen_AgentsExecutionSearchAgentVersion = AgentsExecutionSearchAgentVersion;
2394
+ type types_gen_AgentsExecutionSearchCreatedAfter = AgentsExecutionSearchCreatedAfter;
2395
+ type types_gen_AgentsExecutionSearchCreatedBefore = AgentsExecutionSearchCreatedBefore;
2396
+ type types_gen_AgentsExecutionSearchExecutionId = AgentsExecutionSearchExecutionId;
2397
+ type types_gen_AgentsExecutionSearchHumanLabels = AgentsExecutionSearchHumanLabels;
2398
+ type types_gen_AgentsExecutionSearchMetadataKey = AgentsExecutionSearchMetadataKey;
2399
+ type types_gen_AgentsExecutionSearchMetadataValue = AgentsExecutionSearchMetadataValue;
2400
+ type types_gen_AgentsExecutionSearchOutcomeLabel = AgentsExecutionSearchOutcomeLabel;
2401
+ type types_gen_AgentsExecutionSearchStatus = AgentsExecutionSearchStatus;
2402
+ type types_gen_AgentsExecutionSortField = AgentsExecutionSortField;
1709
2403
  type types_gen_AgentsExecutionStatus = AgentsExecutionStatus;
1710
2404
  type types_gen_AgentsExecutionTerminalPayload = AgentsExecutionTerminalPayload;
1711
2405
  type types_gen_AgentsExecutionTransitionDetails = AgentsExecutionTransitionDetails;
1712
2406
  type types_gen_AgentsExecutionUpdateType = AgentsExecutionUpdateType;
1713
2407
  type types_gen_AgentsExecutionUserMessagesAddTextBody = AgentsExecutionUserMessagesAddTextBody;
2408
+ type types_gen_AgentsExecutionWorkflowUpdate = AgentsExecutionWorkflowUpdate;
1714
2409
  type types_gen_AgentsFilesFile = AgentsFilesFile;
1715
2410
  type types_gen_AgentsFilesFilePart = AgentsFilesFilePart;
2411
+ type types_gen_AgentsFilesTempFile = AgentsFilesTempFile;
2412
+ type types_gen_AgentsFilesTempFilesResponse = AgentsFilesTempFilesResponse;
2413
+ type types_gen_AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar = AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar;
2414
+ type types_gen_AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType = AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType;
1716
2415
  type types_gen_ClientOptions = ClientOptions;
1717
2416
  type types_gen_CommonBadRequestErrorBody = CommonBadRequestErrorBody;
1718
2417
  type types_gen_CommonError = CommonError;
1719
2418
  type types_gen_CommonForbiddenErrorBody = CommonForbiddenErrorBody;
1720
2419
  type types_gen_CommonNotFoundErrorBody = CommonNotFoundErrorBody;
2420
+ type types_gen_CommonOsError = CommonOsError;
1721
2421
  type types_gen_CommonPaginationPage = CommonPaginationPage;
1722
2422
  type types_gen_CommonPaginationPageSize = CommonPaginationPageSize;
1723
2423
  type types_gen_CommonSortDirection = CommonSortDirection;
@@ -1742,9 +2442,19 @@ type types_gen_ExecutionUserMessagesAddError = ExecutionUserMessagesAddError;
1742
2442
  type types_gen_ExecutionUserMessagesAddErrors = ExecutionUserMessagesAddErrors;
1743
2443
  type types_gen_ExecutionUserMessagesAddResponse = ExecutionUserMessagesAddResponse;
1744
2444
  type types_gen_ExecutionUserMessagesAddResponses = ExecutionUserMessagesAddResponses;
2445
+ type types_gen_ExecutionsListData = ExecutionsListData;
2446
+ type types_gen_ExecutionsListError = ExecutionsListError;
2447
+ type types_gen_ExecutionsListErrors = ExecutionsListErrors;
2448
+ type types_gen_ExecutionsListResponse = ExecutionsListResponse;
2449
+ type types_gen_ExecutionsListResponses = ExecutionsListResponses;
2450
+ type types_gen_TempFilesStageData = TempFilesStageData;
2451
+ type types_gen_TempFilesStageError = TempFilesStageError;
2452
+ type types_gen_TempFilesStageErrors = TempFilesStageErrors;
2453
+ type types_gen_TempFilesStageResponse = TempFilesStageResponse;
2454
+ type types_gen_TempFilesStageResponses = TempFilesStageResponses;
1745
2455
  type types_gen_Version = Version;
1746
2456
  declare namespace types_gen {
1747
- export type { types_gen_ActivityPayloadUnionActionCompleted as ActivityPayloadUnionActionCompleted, types_gen_ActivityPayloadUnionActionFailed as ActivityPayloadUnionActionFailed, types_gen_ActivityPayloadUnionActionStarted as ActivityPayloadUnionActionStarted, types_gen_ActivityPayloadUnionFileAdded as ActivityPayloadUnionFileAdded, types_gen_ActivityPayloadUnionGeneric as ActivityPayloadUnionGeneric, types_gen_ActivityPayloadUnionGraphUpdated as ActivityPayloadUnionGraphUpdated, types_gen_ActivityPayloadUnionStatusChanged as ActivityPayloadUnionStatusChanged, types_gen_ActivityPayloadUnionStepCompleted as ActivityPayloadUnionStepCompleted, types_gen_ActivityPayloadUnionStepStarted as ActivityPayloadUnionStepStarted, types_gen_ActivityPayloadUnionTerminal as ActivityPayloadUnionTerminal, types_gen_ActivityPayloadUnionTransitionedNode as ActivityPayloadUnionTransitionedNode, types_gen_ActivityPayloadUnionUserMessageReceived as ActivityPayloadUnionUserMessageReceived, types_gen_AgentListData as AgentListData, types_gen_AgentListError as AgentListError, types_gen_AgentListErrors as AgentListErrors, types_gen_AgentListResponse as AgentListResponse, types_gen_AgentListResponses as AgentListResponses, types_gen_AgentsAgentBase as AgentsAgentBase, types_gen_AgentsAgentSearch as AgentsAgentSearch, types_gen_AgentsAgentSortField as AgentsAgentSortField, types_gen_AgentsExecutionActivity as AgentsExecutionActivity, types_gen_AgentsExecutionActivityActionCompletedPayload as AgentsExecutionActivityActionCompletedPayload, types_gen_AgentsExecutionActivityActionFailedPayload as AgentsExecutionActivityActionFailedPayload, types_gen_AgentsExecutionActivityActionStartedPayload as AgentsExecutionActivityActionStartedPayload, types_gen_AgentsExecutionActivityFileAddedPayload as AgentsExecutionActivityFileAddedPayload, types_gen_AgentsExecutionActivityGenericPayload as AgentsExecutionActivityGenericPayload, types_gen_AgentsExecutionActivityGraphUpdatedPayload as AgentsExecutionActivityGraphUpdatedPayload, types_gen_AgentsExecutionActivityPayloadUnion as AgentsExecutionActivityPayloadUnion, types_gen_AgentsExecutionActivityStatusChangedPayload as AgentsExecutionActivityStatusChangedPayload, types_gen_AgentsExecutionActivityStepCompletedPayload as AgentsExecutionActivityStepCompletedPayload, types_gen_AgentsExecutionActivityStepStartedPayload as AgentsExecutionActivityStepStartedPayload, types_gen_AgentsExecutionActivityTransitionedNodePayload as AgentsExecutionActivityTransitionedNodePayload, types_gen_AgentsExecutionActivityUserMessageReceivedPayload as AgentsExecutionActivityUserMessageReceivedPayload, types_gen_AgentsExecutionAwaitingConfirmationPayload as AgentsExecutionAwaitingConfirmationPayload, types_gen_AgentsExecutionCancelReason as AgentsExecutionCancelReason, types_gen_AgentsExecutionCancelledPayload as AgentsExecutionCancelledPayload, types_gen_AgentsExecutionCompletedPayload as AgentsExecutionCompletedPayload, types_gen_AgentsExecutionFailedPayload as AgentsExecutionFailedPayload, types_gen_AgentsExecutionGraphUpdate as AgentsExecutionGraphUpdate, types_gen_AgentsExecutionNodeDetails as AgentsExecutionNodeDetails, types_gen_AgentsExecutionPausedPayload as AgentsExecutionPausedPayload, types_gen_AgentsExecutionStatus as AgentsExecutionStatus, types_gen_AgentsExecutionTerminalPayload as AgentsExecutionTerminalPayload, types_gen_AgentsExecutionTransitionDetails as AgentsExecutionTransitionDetails, types_gen_AgentsExecutionUpdateType as AgentsExecutionUpdateType, types_gen_AgentsExecutionUserMessagesAddTextBody as AgentsExecutionUserMessagesAddTextBody, types_gen_AgentsFilesFile as AgentsFilesFile, types_gen_AgentsFilesFilePart as AgentsFilesFilePart, types_gen_ClientOptions as ClientOptions, types_gen_CommonBadRequestErrorBody as CommonBadRequestErrorBody, types_gen_CommonError as CommonError, types_gen_CommonForbiddenErrorBody as CommonForbiddenErrorBody, types_gen_CommonNotFoundErrorBody as CommonNotFoundErrorBody, types_gen_CommonPaginationPage as CommonPaginationPage, types_gen_CommonPaginationPageSize as CommonPaginationPageSize, types_gen_CommonSortDirection as CommonSortDirection, types_gen_CommonUuid as CommonUuid, types_gen_ExecutionActivitiesGetData as ExecutionActivitiesGetData, types_gen_ExecutionActivitiesGetError as ExecutionActivitiesGetError, types_gen_ExecutionActivitiesGetErrors as ExecutionActivitiesGetErrors, types_gen_ExecutionActivitiesGetResponse as ExecutionActivitiesGetResponse, types_gen_ExecutionActivitiesGetResponses as ExecutionActivitiesGetResponses, types_gen_ExecutionContextFilesGetData as ExecutionContextFilesGetData, types_gen_ExecutionContextFilesGetError as ExecutionContextFilesGetError, types_gen_ExecutionContextFilesGetErrors as ExecutionContextFilesGetErrors, types_gen_ExecutionContextFilesGetResponse as ExecutionContextFilesGetResponse, types_gen_ExecutionContextFilesGetResponses as ExecutionContextFilesGetResponses, types_gen_ExecutionContextFilesUploadData as ExecutionContextFilesUploadData, types_gen_ExecutionContextFilesUploadError as ExecutionContextFilesUploadError, types_gen_ExecutionContextFilesUploadErrors as ExecutionContextFilesUploadErrors, types_gen_ExecutionContextFilesUploadResponse as ExecutionContextFilesUploadResponse, types_gen_ExecutionContextFilesUploadResponses as ExecutionContextFilesUploadResponses, types_gen_ExecutionUserMessagesAddData as ExecutionUserMessagesAddData, types_gen_ExecutionUserMessagesAddError as ExecutionUserMessagesAddError, types_gen_ExecutionUserMessagesAddErrors as ExecutionUserMessagesAddErrors, types_gen_ExecutionUserMessagesAddResponse as ExecutionUserMessagesAddResponse, types_gen_ExecutionUserMessagesAddResponses as ExecutionUserMessagesAddResponses, types_gen_Version as Version };
2457
+ export type { types_gen_ActivityActionCompletedInfoApiCall as ActivityActionCompletedInfoApiCall, types_gen_ActivityActionCompletedInfoBrowserFileUpload as ActivityActionCompletedInfoBrowserFileUpload, types_gen_ActivityActionCompletedInfoBrowserNavigate as ActivityActionCompletedInfoBrowserNavigate, types_gen_ActivityActionCompletedInfoBrowserSnapshotWithSelectors as ActivityActionCompletedInfoBrowserSnapshotWithSelectors, types_gen_ActivityActionCompletedInfoGetMail as ActivityActionCompletedInfoGetMail, types_gen_ActivityActionCompletedInfoGoToUrl as ActivityActionCompletedInfoGoToUrl, types_gen_ActivityActionCompletedInfoHybridPlaywright as ActivityActionCompletedInfoHybridPlaywright, types_gen_ActivityActionCompletedInfoListFiles as ActivityActionCompletedInfoListFiles, types_gen_ActivityActionCompletedInfoPlaywrightScript as ActivityActionCompletedInfoPlaywrightScript, types_gen_ActivityActionCompletedInfoReadFiles as ActivityActionCompletedInfoReadFiles, types_gen_ActivityActionCompletedInfoReadScratchpad as ActivityActionCompletedInfoReadScratchpad, types_gen_ActivityActionCompletedInfoScriptpadRead as ActivityActionCompletedInfoScriptpadRead, types_gen_ActivityActionCompletedInfoScriptpadRunFunction as ActivityActionCompletedInfoScriptpadRunFunction, types_gen_ActivityActionCompletedInfoScriptpadSearchReplace as ActivityActionCompletedInfoScriptpadSearchReplace, types_gen_ActivityActionCompletedInfoUploadFile as ActivityActionCompletedInfoUploadFile, types_gen_ActivityActionCompletedInfoUploadLocalFile as ActivityActionCompletedInfoUploadLocalFile, types_gen_ActivityActionCompletedInfoWriteScratchpad as ActivityActionCompletedInfoWriteScratchpad, types_gen_ActivityActionStartedInfoBrowserNavigate as ActivityActionStartedInfoBrowserNavigate, types_gen_ActivityActionStartedInfoGetDatetime as ActivityActionStartedInfoGetDatetime, types_gen_ActivityActionStartedInfoGoToUrl as ActivityActionStartedInfoGoToUrl, types_gen_ActivityActionStartedInfoHybridPlaywright as ActivityActionStartedInfoHybridPlaywright, types_gen_ActivityActionStartedInfoPlaywrightScript as ActivityActionStartedInfoPlaywrightScript, types_gen_ActivityActionStartedInfoReadScratchpad as ActivityActionStartedInfoReadScratchpad, types_gen_ActivityActionStartedInfoScriptpadRead as ActivityActionStartedInfoScriptpadRead, types_gen_ActivityActionStartedInfoScriptpadRunFunction as ActivityActionStartedInfoScriptpadRunFunction, types_gen_ActivityActionStartedInfoScriptpadSearchReplace as ActivityActionStartedInfoScriptpadSearchReplace, types_gen_ActivityActionStartedInfoWriteScratchpad as ActivityActionStartedInfoWriteScratchpad, types_gen_ActivityPayloadUnionActionCompleted as ActivityPayloadUnionActionCompleted, types_gen_ActivityPayloadUnionActionFailed as ActivityPayloadUnionActionFailed, types_gen_ActivityPayloadUnionActionStarted as ActivityPayloadUnionActionStarted, types_gen_ActivityPayloadUnionFileAdded as ActivityPayloadUnionFileAdded, types_gen_ActivityPayloadUnionGeneric as ActivityPayloadUnionGeneric, types_gen_ActivityPayloadUnionPlaywrightScriptGenerated as ActivityPayloadUnionPlaywrightScriptGenerated, types_gen_ActivityPayloadUnionReasoning as ActivityPayloadUnionReasoning, types_gen_ActivityPayloadUnionStatusChanged as ActivityPayloadUnionStatusChanged, types_gen_ActivityPayloadUnionStepCompleted as ActivityPayloadUnionStepCompleted, types_gen_ActivityPayloadUnionStepStarted as ActivityPayloadUnionStepStarted, types_gen_ActivityPayloadUnionTerminal as ActivityPayloadUnionTerminal, types_gen_ActivityPayloadUnionTransitionedNode as ActivityPayloadUnionTransitionedNode, types_gen_ActivityPayloadUnionUserMessageReceived as ActivityPayloadUnionUserMessageReceived, types_gen_ActivityPayloadUnionWorkflowUpdated as ActivityPayloadUnionWorkflowUpdated, types_gen_AgentExecutePostData as AgentExecutePostData, types_gen_AgentExecutePostError as AgentExecutePostError, types_gen_AgentExecutePostErrors as AgentExecutePostErrors, types_gen_AgentExecutePostResponse as AgentExecutePostResponse, types_gen_AgentExecutePostResponses as AgentExecutePostResponses, types_gen_AgentListData as AgentListData, types_gen_AgentListError as AgentListError, types_gen_AgentListErrors as AgentListErrors, types_gen_AgentListResponse as AgentListResponse, types_gen_AgentListResponses as AgentListResponses, types_gen_AgentsAgentBase as AgentsAgentBase, types_gen_AgentsAgentExecuteAgentRequest as AgentsAgentExecuteAgentRequest, types_gen_AgentsAgentExecuteAgentResponse as AgentsAgentExecuteAgentResponse, types_gen_AgentsAgentSearch as AgentsAgentSearch, types_gen_AgentsAgentSortField as AgentsAgentSortField, types_gen_AgentsExecutionActionName as AgentsExecutionActionName, types_gen_AgentsExecutionActivity as AgentsExecutionActivity, types_gen_AgentsExecutionActivityActionCompletedInfo as AgentsExecutionActivityActionCompletedInfo, types_gen_AgentsExecutionActivityActionCompletedPayload as AgentsExecutionActivityActionCompletedPayload, types_gen_AgentsExecutionActivityActionFailedPayload as AgentsExecutionActivityActionFailedPayload, types_gen_AgentsExecutionActivityActionStartedInfo as AgentsExecutionActivityActionStartedInfo, types_gen_AgentsExecutionActivityActionStartedPayload as AgentsExecutionActivityActionStartedPayload, types_gen_AgentsExecutionActivityFileAddedPayload as AgentsExecutionActivityFileAddedPayload, types_gen_AgentsExecutionActivityGenericPayload as AgentsExecutionActivityGenericPayload, types_gen_AgentsExecutionActivityPayloadUnion as AgentsExecutionActivityPayloadUnion, types_gen_AgentsExecutionActivityPlaywrightScriptGeneratedPayload as AgentsExecutionActivityPlaywrightScriptGeneratedPayload, types_gen_AgentsExecutionActivityReasoningPayload as AgentsExecutionActivityReasoningPayload, types_gen_AgentsExecutionActivityStatusChangedPayload as AgentsExecutionActivityStatusChangedPayload, types_gen_AgentsExecutionActivityStepCompletedPayload as AgentsExecutionActivityStepCompletedPayload, types_gen_AgentsExecutionActivityStepStartedPayload as AgentsExecutionActivityStepStartedPayload, types_gen_AgentsExecutionActivityTransitionedNodePayload as AgentsExecutionActivityTransitionedNodePayload, types_gen_AgentsExecutionActivityUserMessageReceivedPayload as AgentsExecutionActivityUserMessageReceivedPayload, types_gen_AgentsExecutionActivityWorkflowUpdatedPayload as AgentsExecutionActivityWorkflowUpdatedPayload, types_gen_AgentsExecutionAgentRulesDetails as AgentsExecutionAgentRulesDetails, types_gen_AgentsExecutionApiCallCompletedDetails as AgentsExecutionApiCallCompletedDetails, types_gen_AgentsExecutionAwaitingConfirmationPayload as AgentsExecutionAwaitingConfirmationPayload, types_gen_AgentsExecutionBrowserSnapshotCompletedDetails as AgentsExecutionBrowserSnapshotCompletedDetails, types_gen_AgentsExecutionCancelReason as AgentsExecutionCancelReason, types_gen_AgentsExecutionCancelledPayload as AgentsExecutionCancelledPayload, types_gen_AgentsExecutionComment as AgentsExecutionComment, types_gen_AgentsExecutionCompletedPayload as AgentsExecutionCompletedPayload, types_gen_AgentsExecutionExecutionResult as AgentsExecutionExecutionResult, types_gen_AgentsExecutionFailedPayload as AgentsExecutionFailedPayload, types_gen_AgentsExecutionFileListCompletedDetails as AgentsExecutionFileListCompletedDetails, types_gen_AgentsExecutionFileReadCompletedDetails as AgentsExecutionFileReadCompletedDetails, types_gen_AgentsExecutionFileUploadCompletedDetails as AgentsExecutionFileUploadCompletedDetails, types_gen_AgentsExecutionGetDatetimeDetails as AgentsExecutionGetDatetimeDetails, types_gen_AgentsExecutionGetMailCompletedDetails as AgentsExecutionGetMailCompletedDetails, types_gen_AgentsExecutionHumanLabel as AgentsExecutionHumanLabel, types_gen_AgentsExecutionListItem as AgentsExecutionListItem, types_gen_AgentsExecutionNavigationDetails as AgentsExecutionNavigationDetails, types_gen_AgentsExecutionNodeDetails as AgentsExecutionNodeDetails, types_gen_AgentsExecutionPausedPayload as AgentsExecutionPausedPayload, types_gen_AgentsExecutionPlaywrightScriptCompletedDetails as AgentsExecutionPlaywrightScriptCompletedDetails, types_gen_AgentsExecutionPlaywrightScriptStartedDetails as AgentsExecutionPlaywrightScriptStartedDetails, types_gen_AgentsExecutionRunFunctionCompletedDetails as AgentsExecutionRunFunctionCompletedDetails, types_gen_AgentsExecutionScratchpadCompletedDetails as AgentsExecutionScratchpadCompletedDetails, types_gen_AgentsExecutionScriptpadReadCompletedDetails as AgentsExecutionScriptpadReadCompletedDetails, types_gen_AgentsExecutionScriptpadSearchReplaceCompletedDetails as AgentsExecutionScriptpadSearchReplaceCompletedDetails, types_gen_AgentsExecutionSearchAgentId as AgentsExecutionSearchAgentId, types_gen_AgentsExecutionSearchAgentVersion as AgentsExecutionSearchAgentVersion, types_gen_AgentsExecutionSearchCreatedAfter as AgentsExecutionSearchCreatedAfter, types_gen_AgentsExecutionSearchCreatedBefore as AgentsExecutionSearchCreatedBefore, types_gen_AgentsExecutionSearchExecutionId as AgentsExecutionSearchExecutionId, types_gen_AgentsExecutionSearchHumanLabels as AgentsExecutionSearchHumanLabels, types_gen_AgentsExecutionSearchMetadataKey as AgentsExecutionSearchMetadataKey, types_gen_AgentsExecutionSearchMetadataValue as AgentsExecutionSearchMetadataValue, types_gen_AgentsExecutionSearchOutcomeLabel as AgentsExecutionSearchOutcomeLabel, types_gen_AgentsExecutionSearchStatus as AgentsExecutionSearchStatus, types_gen_AgentsExecutionSortField as AgentsExecutionSortField, types_gen_AgentsExecutionStatus as AgentsExecutionStatus, types_gen_AgentsExecutionTerminalPayload as AgentsExecutionTerminalPayload, types_gen_AgentsExecutionTransitionDetails as AgentsExecutionTransitionDetails, types_gen_AgentsExecutionUpdateType as AgentsExecutionUpdateType, types_gen_AgentsExecutionUserMessagesAddTextBody as AgentsExecutionUserMessagesAddTextBody, types_gen_AgentsExecutionWorkflowUpdate as AgentsExecutionWorkflowUpdate, types_gen_AgentsFilesFile as AgentsFilesFile, types_gen_AgentsFilesFilePart as AgentsFilesFilePart, types_gen_AgentsFilesTempFile as AgentsFilesTempFile, types_gen_AgentsFilesTempFilesResponse as AgentsFilesTempFilesResponse, types_gen_AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar as AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar, types_gen_AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType as AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType, types_gen_ClientOptions as ClientOptions, types_gen_CommonBadRequestErrorBody as CommonBadRequestErrorBody, types_gen_CommonError as CommonError, types_gen_CommonForbiddenErrorBody as CommonForbiddenErrorBody, types_gen_CommonNotFoundErrorBody as CommonNotFoundErrorBody, types_gen_CommonOsError as CommonOsError, types_gen_CommonPaginationPage as CommonPaginationPage, types_gen_CommonPaginationPageSize as CommonPaginationPageSize, types_gen_CommonSortDirection as CommonSortDirection, types_gen_CommonUuid as CommonUuid, types_gen_ExecutionActivitiesGetData as ExecutionActivitiesGetData, types_gen_ExecutionActivitiesGetError as ExecutionActivitiesGetError, types_gen_ExecutionActivitiesGetErrors as ExecutionActivitiesGetErrors, types_gen_ExecutionActivitiesGetResponse as ExecutionActivitiesGetResponse, types_gen_ExecutionActivitiesGetResponses as ExecutionActivitiesGetResponses, types_gen_ExecutionContextFilesGetData as ExecutionContextFilesGetData, types_gen_ExecutionContextFilesGetError as ExecutionContextFilesGetError, types_gen_ExecutionContextFilesGetErrors as ExecutionContextFilesGetErrors, types_gen_ExecutionContextFilesGetResponse as ExecutionContextFilesGetResponse, types_gen_ExecutionContextFilesGetResponses as ExecutionContextFilesGetResponses, types_gen_ExecutionContextFilesUploadData as ExecutionContextFilesUploadData, types_gen_ExecutionContextFilesUploadError as ExecutionContextFilesUploadError, types_gen_ExecutionContextFilesUploadErrors as ExecutionContextFilesUploadErrors, types_gen_ExecutionContextFilesUploadResponse as ExecutionContextFilesUploadResponse, types_gen_ExecutionContextFilesUploadResponses as ExecutionContextFilesUploadResponses, types_gen_ExecutionUserMessagesAddData as ExecutionUserMessagesAddData, types_gen_ExecutionUserMessagesAddError as ExecutionUserMessagesAddError, types_gen_ExecutionUserMessagesAddErrors as ExecutionUserMessagesAddErrors, types_gen_ExecutionUserMessagesAddResponse as ExecutionUserMessagesAddResponse, types_gen_ExecutionUserMessagesAddResponses as ExecutionUserMessagesAddResponses, types_gen_ExecutionsListData as ExecutionsListData, types_gen_ExecutionsListError as ExecutionsListError, types_gen_ExecutionsListErrors as ExecutionsListErrors, types_gen_ExecutionsListResponse as ExecutionsListResponse, types_gen_ExecutionsListResponses as ExecutionsListResponses, types_gen_TempFilesStageData as TempFilesStageData, types_gen_TempFilesStageError as TempFilesStageError, types_gen_TempFilesStageErrors as TempFilesStageErrors, types_gen_TempFilesStageResponse as TempFilesStageResponse, types_gen_TempFilesStageResponses as TempFilesStageResponses, types_gen_Version as Version };
1748
2458
  }
1749
2459
 
1750
2460
  type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$2<TData, ThrowOnError> & {
@@ -1764,10 +2474,6 @@ type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boole
1764
2474
  * Get the OpenAPI schema
1765
2475
  */
1766
2476
  declare const getOpenApi: <ThrowOnError extends boolean = false>(options?: Options$1<GetOpenApiData, ThrowOnError>) => RequestResult<GetOpenApiResponses, unknown, ThrowOnError, "fields">;
1767
- /**
1768
- * Upload files to an execution
1769
- */
1770
- declare const uploadExecutionFiles$1: <ThrowOnError extends boolean = false>(options: Options$1<UploadExecutionFilesData, ThrowOnError>) => RequestResult<UploadExecutionFilesResponses, UploadExecutionFilesErrors, ThrowOnError, "fields">;
1771
2477
  /**
1772
2478
  * Check the health of the API
1773
2479
  */
@@ -1830,7 +2536,7 @@ declare const sdk_gen$1_executeAgentStructured: typeof executeAgentStructured;
1830
2536
  declare const sdk_gen$1_getOpenApi: typeof getOpenApi;
1831
2537
  declare const sdk_gen$1_healthCheck: typeof healthCheck;
1832
2538
  declare namespace sdk_gen$1 {
1833
- export { type Options$1 as Options, createAgentProfile$1 as createAgentProfile, deleteAgentProfile$1 as deleteAgentProfile, executeAgent$1 as executeAgent, sdk_gen$1_executeAgentStructured as executeAgentStructured, getAgentProfile$1 as getAgentProfile, getAgentProfiles$1 as getAgentProfiles, getBrowserSessionRecording$1 as getBrowserSessionRecording, getCredentialsPublicKey$1 as getCredentialsPublicKey, getExecutionResult$1 as getExecutionResult, getExecutionStatus$1 as getExecutionStatus, sdk_gen$1_getOpenApi as getOpenApi, sdk_gen$1_healthCheck as healthCheck, updateAgentProfile$1 as updateAgentProfile, uploadExecutionFiles$1 as uploadExecutionFiles };
2539
+ export { type Options$1 as Options, createAgentProfile$1 as createAgentProfile, deleteAgentProfile$1 as deleteAgentProfile, executeAgent$1 as executeAgent, sdk_gen$1_executeAgentStructured as executeAgentStructured, getAgentProfile$1 as getAgentProfile, getAgentProfiles$1 as getAgentProfiles, getBrowserSessionRecording$1 as getBrowserSessionRecording, getCredentialsPublicKey$1 as getCredentialsPublicKey, getExecutionResult$1 as getExecutionResult, getExecutionStatus$1 as getExecutionStatus, sdk_gen$1_getOpenApi as getOpenApi, sdk_gen$1_healthCheck as healthCheck, updateAgentProfile$1 as updateAgentProfile };
1834
2540
  }
1835
2541
 
1836
2542
  type Options<TData extends TDataShape$1 = TDataShape$1, ThrowOnError extends boolean = boolean> = Options$3<TData, ThrowOnError> & {
@@ -1847,6 +2553,16 @@ type Options<TData extends TDataShape$1 = TDataShape$1, ThrowOnError extends boo
1847
2553
  meta?: Record<string, unknown>;
1848
2554
  };
1849
2555
  declare const agentList: <ThrowOnError extends boolean = false>(options: Options<AgentListData, ThrowOnError>) => RequestResult$1<AgentListResponses, AgentListErrors, ThrowOnError, "fields">;
2556
+ /**
2557
+ * Execute an agent
2558
+ * Start an execution for the given agent.
2559
+ */
2560
+ declare const agentExecutePost: <ThrowOnError extends boolean = false>(options: Options<AgentExecutePostData, ThrowOnError>) => RequestResult$1<AgentExecutePostResponses, AgentExecutePostErrors, ThrowOnError, "fields">;
2561
+ /**
2562
+ * List executions
2563
+ * List executions with filtering and pagination
2564
+ */
2565
+ declare const executionsList: <ThrowOnError extends boolean = false>(options: Options<ExecutionsListData, ThrowOnError>) => RequestResult$1<ExecutionsListResponses, ExecutionsListErrors, ThrowOnError, "fields">;
1850
2566
  /**
1851
2567
  * Retrieve execution activities
1852
2568
  * Get activities for an execution
@@ -1859,15 +2575,23 @@ declare const executionContextFilesUpload: <ThrowOnError extends boolean = false
1859
2575
  * Add a user message to an execution
1860
2576
  */
1861
2577
  declare const executionUserMessagesAdd: <ThrowOnError extends boolean = false>(options: Options<ExecutionUserMessagesAddData, ThrowOnError>) => RequestResult$1<ExecutionUserMessagesAddResponses, ExecutionUserMessagesAddErrors, ThrowOnError, "fields">;
2578
+ /**
2579
+ * Stage a file for an execution
2580
+ * Stage a file prior to starting an execution, so that it can be used when the execution is started. See the /agents/{agentId}/execute to understand how to pass the returned file information to the execution endpoint.
2581
+ */
2582
+ declare const tempFilesStage: <ThrowOnError extends boolean = false>(options: Options<TempFilesStageData, ThrowOnError>) => RequestResult$1<TempFilesStageResponses, TempFilesStageErrors, ThrowOnError, "fields">;
1862
2583
 
1863
2584
  type sdk_gen_Options<TData extends TDataShape$1 = TDataShape$1, ThrowOnError extends boolean = boolean> = Options<TData, ThrowOnError>;
2585
+ declare const sdk_gen_agentExecutePost: typeof agentExecutePost;
1864
2586
  declare const sdk_gen_agentList: typeof agentList;
1865
2587
  declare const sdk_gen_executionActivitiesGet: typeof executionActivitiesGet;
1866
2588
  declare const sdk_gen_executionContextFilesGet: typeof executionContextFilesGet;
1867
2589
  declare const sdk_gen_executionContextFilesUpload: typeof executionContextFilesUpload;
1868
2590
  declare const sdk_gen_executionUserMessagesAdd: typeof executionUserMessagesAdd;
2591
+ declare const sdk_gen_executionsList: typeof executionsList;
2592
+ declare const sdk_gen_tempFilesStage: typeof tempFilesStage;
1869
2593
  declare namespace sdk_gen {
1870
- export { type sdk_gen_Options as Options, sdk_gen_agentList as agentList, sdk_gen_executionActivitiesGet as executionActivitiesGet, sdk_gen_executionContextFilesGet as executionContextFilesGet, sdk_gen_executionContextFilesUpload as executionContextFilesUpload, sdk_gen_executionUserMessagesAdd as executionUserMessagesAdd };
2594
+ export { type sdk_gen_Options as Options, sdk_gen_agentExecutePost as agentExecutePost, sdk_gen_agentList as agentList, sdk_gen_executionActivitiesGet as executionActivitiesGet, sdk_gen_executionContextFilesGet as executionContextFilesGet, sdk_gen_executionContextFilesUpload as executionContextFilesUpload, sdk_gen_executionUserMessagesAdd as executionUserMessagesAdd, sdk_gen_executionsList as executionsList, sdk_gen_tempFilesStage as tempFilesStage };
1871
2595
  }
1872
2596
 
1873
2597
  /**
@@ -1893,7 +2617,7 @@ declare const AsteroidClient: (apiKey: string, options?: {
1893
2617
  type AsteroidClient = ReturnType<typeof AsteroidClient>;
1894
2618
  /** --- V1 --- */
1895
2619
  /**
1896
- * Execute an agent with parameters including optional agent profile ID.
2620
+ * Execute an agent with parameters including optional agent profile ID, dynamic data, and metadata.
1897
2621
  *
1898
2622
  * @param client - The API client.
1899
2623
  * @param agentId - The ID of the agent to execute.
@@ -1902,11 +2626,12 @@ type AsteroidClient = ReturnType<typeof AsteroidClient>;
1902
2626
  *
1903
2627
  * @example
1904
2628
  * const executionId = await executeAgent(client, 'my-agent-id', {
1905
- * agent_profile_id: 'profile-123',
1906
- * dynamic_data: { input: "some dynamic value" }
2629
+ * agentProfileId: 'profile-123',
2630
+ * dynamicData: { input: "some dynamic value" },
2631
+ * metadata: { environment: "production", userId: "user-123" }
1907
2632
  * });
1908
2633
  */
1909
- declare const executeAgent: (client: AsteroidClient, agentId: string, executionData: StructuredAgentExecutionRequest) => Promise<string>;
2634
+ declare const executeAgent: (client: AsteroidClient, agentId: string, executionData: AgentsAgentExecuteAgentRequest) => Promise<string>;
1910
2635
  /**
1911
2636
  * Get the current status for an execution.
1912
2637
  *
@@ -1963,18 +2688,15 @@ declare const getBrowserSessionRecording: (client: AsteroidClient, executionId:
1963
2688
  * @param client - The API client.
1964
2689
  * @param executionId - The execution identifier.
1965
2690
  * @param files - Array of files to upload.
1966
- * @returns The uploaded file IDs and success message.
2691
+ * @returns A success message.
1967
2692
  *
1968
2693
  * @example
1969
2694
  * const fileInput = document.getElementById('file-input') as HTMLInputElement;
1970
2695
  * const files = Array.from(fileInput.files || []);
1971
2696
  * const result = await uploadExecutionFiles(client, executionId, files);
1972
- * console.log(result.file_ids);
2697
+ * console.log(result); // "Files uploaded."
1973
2698
  */
1974
- declare const uploadExecutionFiles: (client: AsteroidClient, executionId: string, files: Array<Blob | globalThis.File>) => Promise<{
1975
- message?: string;
1976
- file_ids?: string[];
1977
- }>;
2699
+ declare const uploadExecutionFiles: (client: AsteroidClient, executionId: string, files: Array<Blob | globalThis.File>) => Promise<string>;
1978
2700
  /**
1979
2701
  * Get agent profiles for an organization (or all organizations for the user if not specified).
1980
2702
  *
@@ -2129,5 +2851,41 @@ declare const downloadExecutionFile: (client: AsteroidClient, file: AgentsFilesF
2129
2851
  * @returns The list of agents.
2130
2852
  */
2131
2853
  declare const getAgents: (client: AsteroidClient, organizationId: string, page: number, pageSize: number) => Promise<AgentsAgentBase[]>;
2854
+ /**
2855
+ * Get a paginated list of executions with optional filtering.
2856
+ *
2857
+ * @param client - The API client.
2858
+ * @param options - Filtering and pagination options.
2859
+ * @returns Paginated execution list with metadata.
2860
+ *
2861
+ * @example
2862
+ * // Get all executions for an organization
2863
+ * const result = await getExecutions(client, {
2864
+ * organizationId: 'org_123',
2865
+ * page: 1,
2866
+ * pageSize: 20
2867
+ * });
2868
+ *
2869
+ * @example
2870
+ * // Filter by agent and status
2871
+ * const result = await getExecutions(client, {
2872
+ * organizationId: 'org_123',
2873
+ * agentId: 'agent_456',
2874
+ * status: ['completed', 'failed'],
2875
+ * page: 1,
2876
+ * pageSize: 20,
2877
+ * sortField: 'created_at',
2878
+ * sortDirection: 'desc'
2879
+ * });
2880
+ *
2881
+ * @example
2882
+ * // Search by execution ID
2883
+ * const result = await getExecutions(client, {
2884
+ * executionId: 'exec_',
2885
+ * page: 1,
2886
+ * pageSize: 20
2887
+ * });
2888
+ */
2889
+ declare const getExecutions: (client: AsteroidClient, options: ExecutionsListData) => Promise<ExecutionsListResponses["200"]>;
2132
2890
 
2133
- export { sdk_gen$1 as AgentsV1SDK, types_gen$1 as AgentsV1Types, sdk_gen as AgentsV2SDK, types_gen as AgentsV2Types, AsteroidClient, addMessageToExecution, createAgentProfile, deleteAgentProfile, downloadExecutionFile, executeAgent, getAgentProfile, getAgentProfiles, getAgents, getBrowserSessionRecording, getCredentialsPublicKey, getExecutionFiles, getExecutionResult, getExecutionStatus, getLastNExecutionActivities, updateAgentProfile, uploadExecutionFiles, waitForExecutionResult };
2891
+ export { sdk_gen$1 as AgentsV1SDK, types_gen$1 as AgentsV1Types, sdk_gen as AgentsV2SDK, types_gen as AgentsV2Types, AsteroidClient, addMessageToExecution, createAgentProfile, deleteAgentProfile, downloadExecutionFile, executeAgent, getAgentProfile, getAgentProfiles, getAgents, getBrowserSessionRecording, getCredentialsPublicKey, getExecutionFiles, getExecutionResult, getExecutionStatus, getExecutions, getLastNExecutionActivities, updateAgentProfile, uploadExecutionFiles, waitForExecutionResult };