asteroid-odyssey 1.3.9 → 1.3.11

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
@@ -639,10 +639,6 @@ type AgentProfile = {
639
639
  * The last update time of the agent profile
640
640
  */
641
641
  updated_at: string;
642
- /**
643
- * Whether to enable tracing snapshots for the profile
644
- */
645
- tracing_snapshots: boolean;
646
642
  /**
647
643
  * Whether to enable extra stealth for the profile
648
644
  */
@@ -679,10 +675,6 @@ type CreateAgentProfileRequest = {
679
675
  * Optional list of cookies to create with the profile
680
676
  */
681
677
  cookies: Array<Cookie>;
682
- /**
683
- * Whether to enable tracing snapshots for the profile
684
- */
685
- tracing_snapshots?: boolean;
686
678
  /**
687
679
  * Whether to enable extra stealth for the profile
688
680
  */
@@ -723,10 +715,6 @@ type UpdateAgentProfileRequest = {
723
715
  * List of cookie IDs to delete from the profile
724
716
  */
725
717
  cookies_to_delete?: Array<string>;
726
- /**
727
- * Whether to enable tracing snapshots for the profile
728
- */
729
- tracing_snapshots?: boolean;
730
718
  /**
731
719
  * Whether to enable extra stealth for the profile
732
720
  */
@@ -739,7 +727,7 @@ type CountryCode = 'us' | 'uk' | 'fr' | 'it' | 'jp' | 'au' | 'de' | 'fi' | 'ca';
739
727
  /**
740
728
  * Type of proxy to use
741
729
  */
742
- type ProxyType = 'residential' | 'mobile';
730
+ type ProxyType = 'basic' | 'residential' | 'mobile';
743
731
  type Credential = {
744
732
  /**
745
733
  * The unique identifier for this credential
@@ -770,53 +758,6 @@ type GetOpenApiResponses = {
770
758
  */
771
759
  200: unknown;
772
760
  };
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
761
  type HealthCheckData = {
821
762
  body?: never;
822
763
  path?: never;
@@ -1282,63 +1223,10 @@ type types_gen$1_UpdateAgentProfileErrors = UpdateAgentProfileErrors;
1282
1223
  type types_gen$1_UpdateAgentProfileRequest = UpdateAgentProfileRequest;
1283
1224
  type types_gen$1_UpdateAgentProfileResponse = UpdateAgentProfileResponse;
1284
1225
  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
1226
  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 };
1227
+ 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
1228
  }
1293
1229
 
1294
- type ActivityPayloadUnionActionCompleted = {
1295
- activityType: 'action_completed';
1296
- data: AgentsExecutionActivityActionCompletedPayload;
1297
- };
1298
- type ActivityPayloadUnionActionFailed = {
1299
- activityType: 'action_failed';
1300
- data: AgentsExecutionActivityActionFailedPayload;
1301
- };
1302
- type ActivityPayloadUnionActionStarted = {
1303
- activityType: 'action_started';
1304
- data: AgentsExecutionActivityActionStartedPayload;
1305
- };
1306
- type ActivityPayloadUnionFileAdded = {
1307
- activityType: 'file_added';
1308
- data: AgentsExecutionActivityFileAddedPayload;
1309
- };
1310
- type ActivityPayloadUnionGeneric = {
1311
- activityType: 'generic';
1312
- data: AgentsExecutionActivityGenericPayload;
1313
- };
1314
- type ActivityPayloadUnionGraphUpdated = {
1315
- activityType: 'graph_updated';
1316
- data: AgentsExecutionActivityGraphUpdatedPayload;
1317
- };
1318
- type ActivityPayloadUnionStatusChanged = {
1319
- activityType: 'status_changed';
1320
- data: AgentsExecutionActivityStatusChangedPayload;
1321
- };
1322
- type ActivityPayloadUnionStepCompleted = {
1323
- activityType: 'step_completed';
1324
- data: AgentsExecutionActivityStepCompletedPayload;
1325
- };
1326
- type ActivityPayloadUnionStepStarted = {
1327
- activityType: 'step_started';
1328
- data: AgentsExecutionActivityStepStartedPayload;
1329
- };
1330
- type ActivityPayloadUnionTerminal = {
1331
- activityType: 'terminal';
1332
- data: AgentsExecutionTerminalPayload;
1333
- };
1334
- type ActivityPayloadUnionTransitionedNode = {
1335
- activityType: 'transitioned_node';
1336
- data: AgentsExecutionActivityTransitionedNodePayload;
1337
- };
1338
- type ActivityPayloadUnionUserMessageReceived = {
1339
- activityType: 'user_message_received';
1340
- data: AgentsExecutionActivityUserMessageReceivedPayload;
1341
- };
1342
1230
  type AgentsAgentBase = {
1343
1231
  id: CommonUuid;
1344
1232
  name: string;
@@ -1346,23 +1234,126 @@ type AgentsAgentBase = {
1346
1234
  organizationId?: CommonUuid;
1347
1235
  userId: CommonUuid;
1348
1236
  };
1237
+ type AgentsAgentExecuteAgentRequest = {
1238
+ /**
1239
+ * The ID of the agent profile to use. Note this is not the agent ID
1240
+ */
1241
+ agentProfileId?: CommonUuid;
1242
+ /**
1243
+ * Dynamic data to be merged into the placeholders defined in prompts
1244
+ */
1245
+ dynamicData?: {
1246
+ [key: string]: unknown;
1247
+ };
1248
+ /**
1249
+ * Array of temporary files to attach to the execution. Must have been pre-uploaded using the stage file endpoint
1250
+ */
1251
+ tempFiles?: Array<AgentsFilesTempFile>;
1252
+ /**
1253
+ * Optional metadata key-value pairs (string keys and string values) for organizing and filtering executions
1254
+ */
1255
+ metadata?: {
1256
+ [key: string]: unknown;
1257
+ };
1258
+ /**
1259
+ * The version of the agent to execute. If not provided, the latest version will be used.
1260
+ */
1261
+ version?: number;
1262
+ };
1263
+ type AgentsAgentExecuteAgentResponse = {
1264
+ /**
1265
+ * The ID of the newly created execution
1266
+ */
1267
+ executionId: CommonUuid;
1268
+ };
1349
1269
  type AgentsAgentSortField = 'name' | 'created_at';
1270
+ type AgentsExecutionActionName = 'element_click' | 'element_type' | 'element_select' | 'element_hover' | 'element_drag' | 'element_wait' | 'element_fill_form' | 'element_get_text' | 'element_file_upload' | 'coord_move' | 'coord_click' | 'coord_double_click' | 'coord_drag' | 'coord_scroll' | 'nav_to' | 'nav_back' | 'nav_refresh' | 'nav_tabs' | 'nav_close_browser' | 'nav_resize_browser' | 'nav_install_browser' | 'nav_zoom_in' | 'nav_zoom_out' | 'obs_snapshot' | 'obs_snapshot_with_selectors' | 'obs_screenshot' | 'obs_console_messages' | 'obs_network_requests' | 'obs_extract_html' | 'script_eval' | 'script_playwright' | 'script_playwright_llm_vars' | 'script_hybrid_playwright' | 'browser_press_key' | 'browser_handle_dialog' | 'browser_read_clipboard' | 'file_list' | 'file_read' | 'file_stage' | 'file_download' | 'file_pdf_save' | 'scratchpad_read' | 'scratchpad_write' | 'scriptpad_run_function' | 'scriptpad_search_replace' | 'scriptpad_read' | 'scriptpad_write' | 'ext_google_sheets_get_data' | 'ext_google_sheets_set_value' | 'ext_get_mail' | 'ext_api_call' | 'util_wait_time' | 'util_get_datetime' | 'util_generate_totp_secret' | 'util_send_user_message' | 'agent_query_context' | 'agent_compile_workflow' | 'llm_call';
1350
1271
  type AgentsExecutionActivity = {
1351
1272
  id: CommonUuid;
1352
1273
  payload: AgentsExecutionActivityPayloadUnion;
1353
1274
  executionId: CommonUuid;
1354
1275
  timestamp: string;
1355
1276
  };
1277
+ type AgentsExecutionActivityActionCompletedInfo = ({
1278
+ actionName: 'ext_api_call';
1279
+ } & AgentsExecutionExtApiCallCompletedDetails) | ({
1280
+ actionName: 'scratchpad_read';
1281
+ } & AgentsExecutionScratchpadReadCompletedDetails) | ({
1282
+ actionName: 'scratchpad_write';
1283
+ } & AgentsExecutionScratchpadWriteCompletedDetails) | ({
1284
+ actionName: 'script_playwright';
1285
+ } & AgentsExecutionScriptPlaywrightCompletedDetails) | ({
1286
+ actionName: 'script_hybrid_playwright';
1287
+ } & AgentsExecutionScriptHybridPlaywrightCompletedDetails) | ({
1288
+ actionName: 'file_read';
1289
+ } & AgentsExecutionFileReadCompletedDetails) | ({
1290
+ actionName: 'file_list';
1291
+ } & AgentsExecutionFileListCompletedDetails) | ({
1292
+ actionName: 'file_stage';
1293
+ } & AgentsExecutionFileStageCompletedDetails) | ({
1294
+ actionName: 'element_file_upload';
1295
+ } & AgentsExecutionElementFileUploadCompletedDetails) | ({
1296
+ actionName: 'ext_get_mail';
1297
+ } & AgentsExecutionExtGetMailCompletedDetails) | ({
1298
+ actionName: 'scriptpad_run_function';
1299
+ } & AgentsExecutionScriptPadRunFunctionCompletedDetails) | ({
1300
+ actionName: 'scriptpad_read';
1301
+ } & AgentsExecutionScriptpadReadCompletedDetails) | ({
1302
+ actionName: 'scriptpad_write';
1303
+ } & AgentsExecutionScriptpadWriteCompletedDetails) | ({
1304
+ actionName: 'scriptpad_search_replace';
1305
+ } & AgentsExecutionScriptpadSearchReplaceCompletedDetails) | ({
1306
+ actionName: 'obs_snapshot_with_selectors';
1307
+ } & AgentsExecutionObsSnapshotWithSelectorsCompletedDetails) | ({
1308
+ actionName: 'util_get_datetime';
1309
+ } & AgentsExecutionUtilGetDatetimeCompletedDetails) | ({
1310
+ actionName: 'nav_to';
1311
+ } & AgentsExecutionNavToCompletedDetails);
1356
1312
  type AgentsExecutionActivityActionCompletedPayload = {
1313
+ activityType: 'action_completed';
1357
1314
  message: string;
1315
+ actionId: string;
1316
+ actionName: AgentsExecutionActionName;
1317
+ duration?: number;
1318
+ info?: AgentsExecutionActivityActionCompletedInfo;
1358
1319
  };
1359
1320
  type AgentsExecutionActivityActionFailedPayload = {
1321
+ activityType: 'action_failed';
1360
1322
  message: string;
1361
- };
1323
+ actionName: AgentsExecutionActionName;
1324
+ actionId: string;
1325
+ duration?: number;
1326
+ };
1327
+ type AgentsExecutionActivityActionStartedInfo = ({
1328
+ actionName: 'nav_to';
1329
+ } & AgentsExecutionNavToStartedDetails) | ({
1330
+ actionName: 'scratchpad_read';
1331
+ } & AgentsExecutionScratchpadReadStartedDetails) | ({
1332
+ actionName: 'scratchpad_write';
1333
+ } & AgentsExecutionScratchpadWriteStartedDetails) | ({
1334
+ actionName: 'scriptpad_run_function';
1335
+ } & AgentsExecutionScriptpadRunFunctionStartedDetails) | ({
1336
+ actionName: 'script_playwright';
1337
+ } & AgentsExecutionScriptPlaywrightStartedDetails) | ({
1338
+ actionName: 'script_hybrid_playwright';
1339
+ } & AgentsExecutionScriptHybridPlaywrightStartedDetails) | ({
1340
+ actionName: 'scriptpad_search_replace';
1341
+ } & AgentsExecutionScriptpadSearchReplaceStartedDetails) | ({
1342
+ actionName: 'util_get_datetime';
1343
+ } & AgentsExecutionUtilGetDatetimeStartedDetails) | ({
1344
+ actionName: 'scriptpad_read';
1345
+ } & AgentsExecutionScriptpadReadStartedDetails) | ({
1346
+ actionName: 'llm_call';
1347
+ } & AgentsExecutionLlmCallStartedDetails);
1362
1348
  type AgentsExecutionActivityActionStartedPayload = {
1349
+ activityType: 'action_started';
1363
1350
  message: string;
1351
+ actionName: AgentsExecutionActionName;
1352
+ actionId: string;
1353
+ info?: AgentsExecutionActivityActionStartedInfo;
1364
1354
  };
1365
1355
  type AgentsExecutionActivityFileAddedPayload = {
1356
+ activityType: 'file_added';
1366
1357
  fileId: CommonUuid;
1367
1358
  fileName: string;
1368
1359
  mimeType: string;
@@ -1371,37 +1362,53 @@ type AgentsExecutionActivityFileAddedPayload = {
1371
1362
  presignedUrl: string;
1372
1363
  };
1373
1364
  type AgentsExecutionActivityGenericPayload = {
1365
+ activityType: 'generic';
1374
1366
  message: string;
1375
1367
  };
1376
- type AgentsExecutionActivityGraphUpdatedPayload = {
1377
- graphUpdate: Array<AgentsExecutionGraphUpdate>;
1378
- };
1379
1368
  type AgentsExecutionActivityPayloadUnion = ({
1380
1369
  activityType: 'terminal';
1381
- } & ActivityPayloadUnionTerminal) | ({
1370
+ } & AgentsExecutionTerminalPayload) | ({
1382
1371
  activityType: 'generic';
1383
- } & ActivityPayloadUnionGeneric) | ({
1372
+ } & AgentsExecutionActivityGenericPayload) | ({
1373
+ activityType: 'reasoning';
1374
+ } & AgentsExecutionActivityReasoningPayload) | ({
1384
1375
  activityType: 'step_started';
1385
- } & ActivityPayloadUnionStepStarted) | ({
1376
+ } & AgentsExecutionActivityStepStartedPayload) | ({
1386
1377
  activityType: 'step_completed';
1387
- } & ActivityPayloadUnionStepCompleted) | ({
1378
+ } & AgentsExecutionActivityStepCompletedPayload) | ({
1388
1379
  activityType: 'transitioned_node';
1389
- } & ActivityPayloadUnionTransitionedNode) | ({
1380
+ } & AgentsExecutionActivityTransitionedNodePayload) | ({
1390
1381
  activityType: 'status_changed';
1391
- } & ActivityPayloadUnionStatusChanged) | ({
1382
+ } & AgentsExecutionActivityStatusChangedPayload) | ({
1392
1383
  activityType: 'action_started';
1393
- } & ActivityPayloadUnionActionStarted) | ({
1384
+ } & AgentsExecutionActivityActionStartedPayload) | ({
1394
1385
  activityType: 'action_completed';
1395
- } & ActivityPayloadUnionActionCompleted) | ({
1386
+ } & AgentsExecutionActivityActionCompletedPayload) | ({
1396
1387
  activityType: 'action_failed';
1397
- } & ActivityPayloadUnionActionFailed) | ({
1388
+ } & AgentsExecutionActivityActionFailedPayload) | ({
1398
1389
  activityType: 'user_message_received';
1399
- } & ActivityPayloadUnionUserMessageReceived) | ({
1390
+ } & AgentsExecutionActivityUserMessageReceivedPayload) | ({
1400
1391
  activityType: 'file_added';
1401
- } & ActivityPayloadUnionFileAdded) | ({
1402
- activityType: 'graph_updated';
1403
- } & ActivityPayloadUnionGraphUpdated);
1392
+ } & AgentsExecutionActivityFileAddedPayload) | ({
1393
+ activityType: 'workflow_updated';
1394
+ } & AgentsExecutionActivityWorkflowUpdatedPayload) | ({
1395
+ activityType: 'playwright_script_generated';
1396
+ } & AgentsExecutionActivityPlaywrightScriptGeneratedPayload);
1397
+ type AgentsExecutionActivityPlaywrightScriptGeneratedPayload = {
1398
+ activityType: 'playwright_script_generated';
1399
+ nodeId: CommonUuid;
1400
+ nodeName: string;
1401
+ script: string;
1402
+ llmVars?: Array<AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar>;
1403
+ context: string;
1404
+ oldScript?: string;
1405
+ };
1406
+ type AgentsExecutionActivityReasoningPayload = {
1407
+ activityType: 'reasoning';
1408
+ reasoning: string;
1409
+ };
1404
1410
  type AgentsExecutionActivityStatusChangedPayload = {
1411
+ activityType: 'status_changed';
1405
1412
  status: AgentsExecutionStatus;
1406
1413
  completedPayload?: AgentsExecutionCompletedPayload;
1407
1414
  failedPayload?: AgentsExecutionFailedPayload;
@@ -1410,19 +1417,30 @@ type AgentsExecutionActivityStatusChangedPayload = {
1410
1417
  cancelledPayload?: AgentsExecutionCancelledPayload;
1411
1418
  };
1412
1419
  type AgentsExecutionActivityStepCompletedPayload = {
1420
+ activityType: 'step_completed';
1413
1421
  stepNumber: number;
1414
1422
  };
1415
1423
  type AgentsExecutionActivityStepStartedPayload = {
1424
+ activityType: 'step_started';
1416
1425
  stepNumber: number;
1417
1426
  };
1418
1427
  type AgentsExecutionActivityTransitionedNodePayload = {
1428
+ activityType: 'transitioned_node';
1419
1429
  newNodeUUID: CommonUuid;
1420
1430
  newNodeName: string;
1431
+ newNodeType: string;
1432
+ fromNodeDuration?: number;
1433
+ transitionType?: AgentsGraphModelsTransitionsTransitionType;
1421
1434
  };
1422
1435
  type AgentsExecutionActivityUserMessageReceivedPayload = {
1436
+ activityType: 'user_message_received';
1423
1437
  message: string;
1424
1438
  userUUID: CommonUuid;
1425
1439
  };
1440
+ type AgentsExecutionActivityWorkflowUpdatedPayload = {
1441
+ activityType: 'workflow_updated';
1442
+ workflowUpdate: Array<AgentsExecutionWorkflowUpdate>;
1443
+ };
1426
1444
  type AgentsExecutionAwaitingConfirmationPayload = {
1427
1445
  reason: string;
1428
1446
  };
@@ -1430,30 +1448,334 @@ type AgentsExecutionCancelReason = 'timeout' | 'max_steps' | 'user_requested';
1430
1448
  type AgentsExecutionCancelledPayload = {
1431
1449
  reason: AgentsExecutionCancelReason;
1432
1450
  };
1451
+ /**
1452
+ * User comment on an execution
1453
+ */
1454
+ type AgentsExecutionComment = {
1455
+ /**
1456
+ * Unique identifier for the comment
1457
+ */
1458
+ id: CommonUuid;
1459
+ /**
1460
+ * Execution this comment belongs to
1461
+ */
1462
+ executionId: CommonUuid;
1463
+ /**
1464
+ * User who created the comment
1465
+ */
1466
+ userId: CommonUuid;
1467
+ /**
1468
+ * Comment content
1469
+ */
1470
+ content: string;
1471
+ /**
1472
+ * Whether the comment is public
1473
+ */
1474
+ public: boolean;
1475
+ /**
1476
+ * When the comment was created
1477
+ */
1478
+ createdAt: string;
1479
+ /**
1480
+ * When the comment was last updated
1481
+ */
1482
+ updatedAt?: string;
1483
+ };
1433
1484
  type AgentsExecutionCompletedPayload = {
1434
- outcome: 'success' | 'failure';
1485
+ outcome: string;
1435
1486
  reasoning: string;
1436
- final_answer?: string;
1437
1487
  result: unknown;
1488
+ lessons_learned?: string;
1489
+ };
1490
+ type AgentsExecutionElementFileUploadCompletedDetails = {
1491
+ actionName: 'element_file_upload';
1492
+ fileNames: Array<string>;
1493
+ };
1494
+ /**
1495
+ * Execution result containing outcome, reasoning, and result data
1496
+ */
1497
+ type AgentsExecutionExecutionResult = {
1498
+ /**
1499
+ * Unique identifier for the result
1500
+ */
1501
+ id: CommonUuid;
1502
+ /**
1503
+ * Execution this result belongs to
1504
+ */
1505
+ executionId: CommonUuid;
1506
+ /**
1507
+ * Outcome of the execution (success or failure)
1508
+ */
1509
+ outcome: string;
1510
+ /**
1511
+ * AI reasoning for the outcome
1512
+ */
1513
+ reasoning: string;
1514
+ /**
1515
+ * Result data as JSON
1516
+ */
1517
+ result: unknown;
1518
+ /**
1519
+ * When the result was created
1520
+ */
1521
+ createdAt: string;
1522
+ };
1523
+ type AgentsExecutionExtApiCallCompletedDetails = {
1524
+ actionName: 'ext_api_call';
1525
+ statusCode: string;
1526
+ responseBody: string;
1527
+ requestMethod?: string;
1528
+ requestUrl?: string;
1529
+ };
1530
+ type AgentsExecutionExtGetMailCompletedDetails = {
1531
+ actionName: 'ext_get_mail';
1532
+ emailCount: number;
1533
+ emails: Array<unknown>;
1438
1534
  };
1439
1535
  type AgentsExecutionFailedPayload = {
1440
1536
  reason: string;
1537
+ os_error?: CommonOsError;
1441
1538
  };
1442
- type AgentsExecutionGraphUpdate = {
1443
- updateType: AgentsExecutionUpdateType;
1444
- nodeDetails?: AgentsExecutionNodeDetails;
1445
- transitionDetails?: AgentsExecutionTransitionDetails;
1539
+ type AgentsExecutionFileListCompletedDetails = {
1540
+ actionName: 'file_list';
1541
+ fileNames: Array<string>;
1542
+ };
1543
+ type AgentsExecutionFileReadCompletedDetails = {
1544
+ actionName: 'file_read';
1545
+ fileNames: Array<string>;
1546
+ errorCount?: number;
1547
+ totalSizeBytes?: number;
1548
+ };
1549
+ type AgentsExecutionFileStageCompletedDetails = {
1550
+ actionName: 'file_stage';
1551
+ fileNames: Array<string>;
1552
+ };
1553
+ /**
1554
+ * Human-applied label for categorizing executions
1555
+ */
1556
+ type AgentsExecutionHumanLabel = {
1557
+ /**
1558
+ * Unique identifier for the label
1559
+ */
1560
+ id: CommonUuid;
1561
+ /**
1562
+ * Organization this label belongs to
1563
+ */
1564
+ organizationId: CommonUuid;
1565
+ /**
1566
+ * Display name of the label
1567
+ */
1568
+ name: string;
1569
+ /**
1570
+ * Hex color code for the label (e.g., #FF5733)
1571
+ */
1572
+ color: string;
1573
+ /**
1574
+ * When the label was created
1575
+ */
1576
+ createdAt: string;
1577
+ };
1578
+ type AgentsExecutionLlmCallPurpose = 'iris_pick_next_action' | 'transition_pick_next_node' | 'output_populate_result' | 'generate_hybrid_playwright_code' | 'generate_playwright_variables';
1579
+ type AgentsExecutionLlmCallStartedDetails = {
1580
+ actionName: 'llm_call';
1581
+ purpose: AgentsExecutionLlmCallPurpose;
1582
+ };
1583
+ /**
1584
+ * Represents a single execution in a list view
1585
+ */
1586
+ type AgentsExecutionListItem = {
1587
+ /**
1588
+ * The unique identifier of the execution
1589
+ */
1590
+ id: CommonUuid;
1591
+ /**
1592
+ * The ID of the agent that was executed
1593
+ */
1594
+ agentId: CommonUuid;
1595
+ /**
1596
+ * The ID of the workflow that was executed
1597
+ */
1598
+ workflowId: CommonUuid;
1599
+ /**
1600
+ * The version of the agent that was executed
1601
+ */
1602
+ agentVersion: number;
1603
+ /**
1604
+ * Whether the agent version was modified from the original
1605
+ */
1606
+ agentVersionDirty: boolean;
1607
+ /**
1608
+ * The current status of the execution
1609
+ */
1610
+ status: AgentsExecutionStatus;
1611
+ /**
1612
+ * When the execution was created
1613
+ */
1614
+ createdAt: string;
1615
+ /**
1616
+ * When the execution reached a terminal state (if applicable)
1617
+ */
1618
+ terminalAt?: string;
1619
+ /**
1620
+ * The organization this execution belongs to
1621
+ */
1622
+ organizationId: CommonUuid;
1623
+ /**
1624
+ * The agent display name
1625
+ */
1626
+ agentName: string;
1627
+ /**
1628
+ * The name of the agent profile used for this execution (if any)
1629
+ */
1630
+ agentProfileName?: string;
1631
+ /**
1632
+ * Execution result with outcome, reasoning, and result data
1633
+ */
1634
+ executionResult?: AgentsExecutionExecutionResult;
1635
+ /**
1636
+ * Execution duration in seconds (only present for terminal executions)
1637
+ */
1638
+ duration?: number;
1639
+ /**
1640
+ * Human-applied labels for this execution
1641
+ */
1642
+ humanLabels: Array<AgentsExecutionHumanLabel>;
1643
+ /**
1644
+ * Comments on this execution
1645
+ */
1646
+ comments: Array<AgentsExecutionComment>;
1647
+ /**
1648
+ * Optional metadata key-value pairs attached to this execution
1649
+ */
1650
+ metadata?: {
1651
+ [key: string]: unknown;
1652
+ };
1653
+ /**
1654
+ * Browser recording URL (if a browser session was used and execution is terminal)
1655
+ */
1656
+ browserRecordingUrl?: string;
1657
+ /**
1658
+ * Browser live view URL for debugging (if a browser session is active and execution is running)
1659
+ */
1660
+ browserLiveViewUrl?: string;
1661
+ };
1662
+ type AgentsExecutionNavToCompletedDetails = {
1663
+ actionName: 'nav_to';
1664
+ pageTitle?: string;
1665
+ };
1666
+ type AgentsExecutionNavToStartedDetails = {
1667
+ actionName: 'nav_to';
1668
+ url: string;
1446
1669
  };
1447
1670
  type AgentsExecutionNodeDetails = {
1448
1671
  nodeID: CommonUuid;
1449
1672
  nodeName: string;
1450
1673
  nodeType: string;
1451
1674
  };
1675
+ type AgentsExecutionObsSnapshotWithSelectorsCompletedDetails = {
1676
+ actionName: 'obs_snapshot_with_selectors';
1677
+ url: string;
1678
+ title: string;
1679
+ };
1452
1680
  type AgentsExecutionPausedPayload = {
1453
1681
  reason: string;
1454
1682
  };
1683
+ type AgentsExecutionRulesDetails = {
1684
+ rules: string;
1685
+ };
1686
+ type AgentsExecutionScratchpadReadCompletedDetails = {
1687
+ actionName: 'scratchpad_read';
1688
+ content?: string;
1689
+ contentTruncated?: boolean;
1690
+ };
1691
+ type AgentsExecutionScratchpadReadStartedDetails = {
1692
+ actionName: 'scratchpad_read';
1693
+ operation: 'read';
1694
+ };
1695
+ type AgentsExecutionScratchpadWriteCompletedDetails = {
1696
+ actionName: 'scratchpad_write';
1697
+ linesChanged: number;
1698
+ totalLines: number;
1699
+ patchesApplied: number;
1700
+ content?: string;
1701
+ contentTruncated?: boolean;
1702
+ };
1703
+ type AgentsExecutionScratchpadWriteStartedDetails = {
1704
+ actionName: 'scratchpad_write';
1705
+ operation: 'write';
1706
+ };
1707
+ type AgentsExecutionScriptHybridPlaywrightCompletedDetails = {
1708
+ actionName: 'script_hybrid_playwright';
1709
+ success: boolean;
1710
+ result: string;
1711
+ consoleLogs: Array<string>;
1712
+ failedLine?: number;
1713
+ };
1714
+ type AgentsExecutionScriptHybridPlaywrightStartedDetails = {
1715
+ actionName: 'script_hybrid_playwright';
1716
+ llmVars?: Array<string>;
1717
+ };
1718
+ type AgentsExecutionScriptPadRunFunctionCompletedDetails = {
1719
+ actionName: 'scriptpad_run_function';
1720
+ success: boolean;
1721
+ result: string;
1722
+ consoleLogs: Array<string>;
1723
+ failedLine?: number;
1724
+ };
1725
+ type AgentsExecutionScriptPlaywrightCompletedDetails = {
1726
+ actionName: 'script_playwright';
1727
+ success: boolean;
1728
+ result: string;
1729
+ consoleLogs: Array<string>;
1730
+ failedLine?: number;
1731
+ };
1732
+ type AgentsExecutionScriptPlaywrightStartedDetails = {
1733
+ actionName: 'script_playwright';
1734
+ llmVars?: Array<string>;
1735
+ };
1736
+ type AgentsExecutionScriptpadReadCompletedDetails = {
1737
+ actionName: 'scriptpad_read';
1738
+ content: string;
1739
+ };
1740
+ type AgentsExecutionScriptpadReadStartedDetails = {
1741
+ actionName: 'scriptpad_read';
1742
+ offset: number;
1743
+ limit: number;
1744
+ };
1745
+ type AgentsExecutionScriptpadRunFunctionStartedDetails = {
1746
+ actionName: 'scriptpad_run_function';
1747
+ functionName: string;
1748
+ arguments: unknown;
1749
+ };
1750
+ type AgentsExecutionScriptpadSearchReplaceCompletedDetails = {
1751
+ actionName: 'scriptpad_search_replace';
1752
+ linesReplaced: number;
1753
+ linesReplacedWith: number;
1754
+ oldTotalLines: number;
1755
+ newTotalLines: number;
1756
+ oldScriptpad?: string;
1757
+ newScriptpad?: string;
1758
+ };
1759
+ type AgentsExecutionScriptpadSearchReplaceStartedDetails = {
1760
+ actionName: 'scriptpad_search_replace';
1761
+ search: string;
1762
+ replace: string;
1763
+ replaceAll: boolean;
1764
+ };
1765
+ type AgentsExecutionScriptpadWriteCompletedDetails = {
1766
+ actionName: 'scriptpad_write';
1767
+ linesChanged: number;
1768
+ totalLines: number;
1769
+ patchesApplied: number;
1770
+ scriptpad?: string;
1771
+ };
1772
+ /**
1773
+ * Fields that can be used for sorting executions
1774
+ */
1775
+ type AgentsExecutionSortField = 'created_at' | 'status';
1455
1776
  type AgentsExecutionStatus = 'starting' | 'running' | 'paused' | 'awaiting_confirmation' | 'completed' | 'cancelled' | 'failed' | 'paused_by_agent';
1456
1777
  type AgentsExecutionTerminalPayload = {
1778
+ activityType: 'terminal';
1457
1779
  reason: 'unsubscribe' | 'complete' | 'error';
1458
1780
  message?: string;
1459
1781
  };
@@ -1465,6 +1787,22 @@ type AgentsExecutionUpdateType = 'add' | 'edit' | 'delete';
1465
1787
  type AgentsExecutionUserMessagesAddTextBody = {
1466
1788
  message: string;
1467
1789
  };
1790
+ type AgentsExecutionUtilGetDatetimeCompletedDetails = {
1791
+ actionName: 'util_get_datetime';
1792
+ usedBrowserTimezone: boolean;
1793
+ datetime: string;
1794
+ tzTimezoneIdentifier: string;
1795
+ };
1796
+ type AgentsExecutionUtilGetDatetimeStartedDetails = {
1797
+ actionName: 'util_get_datetime';
1798
+ tzTimezoneIdentifier: string;
1799
+ };
1800
+ type AgentsExecutionWorkflowUpdate = {
1801
+ updateType: AgentsExecutionUpdateType;
1802
+ rulesDetails?: AgentsExecutionRulesDetails;
1803
+ nodeDetails?: AgentsExecutionNodeDetails;
1804
+ transitionDetails?: AgentsExecutionTransitionDetails;
1805
+ };
1468
1806
  type AgentsFilesFile = {
1469
1807
  id: CommonUuid;
1470
1808
  executionId: CommonUuid;
@@ -1479,6 +1817,20 @@ type AgentsFilesFile = {
1479
1817
  signedUrl: string;
1480
1818
  };
1481
1819
  type AgentsFilesFilePart = Blob | File;
1820
+ type AgentsFilesTempFile = {
1821
+ id: CommonUuid;
1822
+ name: string;
1823
+ };
1824
+ type AgentsFilesTempFilesResponse = {
1825
+ tempFiles: Array<AgentsFilesTempFile>;
1826
+ };
1827
+ type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar = {
1828
+ name: string;
1829
+ type: AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType;
1830
+ description: string;
1831
+ };
1832
+ type AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType = 'string' | 'number' | 'boolean';
1833
+ type AgentsGraphModelsTransitionsTransitionType = 'iris' | 'selector' | 'outcome_success';
1482
1834
  type CommonBadRequestErrorBody = {
1483
1835
  code: 400;
1484
1836
  message: string;
@@ -1495,10 +1847,53 @@ type CommonNotFoundErrorBody = {
1495
1847
  code: 404;
1496
1848
  message: string;
1497
1849
  };
1850
+ type CommonOsError = {
1851
+ message: string;
1852
+ };
1498
1853
  type CommonSortDirection = 'asc' | 'desc';
1499
1854
  type CommonUuid = string;
1500
1855
  type Version = 'v1';
1501
1856
  type AgentsAgentSearch = string;
1857
+ /**
1858
+ * Filter by agent ID
1859
+ */
1860
+ type AgentsExecutionSearchAgentId = CommonUuid;
1861
+ /**
1862
+ * Filter by agent version
1863
+ */
1864
+ type AgentsExecutionSearchAgentVersion = number;
1865
+ /**
1866
+ * Filter executions created after this timestamp
1867
+ */
1868
+ type AgentsExecutionSearchCreatedAfter = string;
1869
+ /**
1870
+ * Filter executions created before this timestamp
1871
+ */
1872
+ type AgentsExecutionSearchCreatedBefore = string;
1873
+ /**
1874
+ * Search by execution ID (partial, case-insensitive match)
1875
+ */
1876
+ type AgentsExecutionSearchExecutionId = string;
1877
+ /**
1878
+ * Filter by human labels (can specify multiple label IDs, there is an 'OR' condition applied to these)
1879
+ */
1880
+ type AgentsExecutionSearchHumanLabels = Array<CommonUuid>;
1881
+ /**
1882
+ * Filter by metadata key - must be used together with metadataValue
1883
+ */
1884
+ type AgentsExecutionSearchMetadataKey = string;
1885
+ /**
1886
+ * Filter by metadata value - must be used together with metadataKey
1887
+ */
1888
+ type AgentsExecutionSearchMetadataValue = string;
1889
+ /**
1890
+ * Filter by execution result outcome (partial, case-insensitive match)
1891
+ */
1892
+ type AgentsExecutionSearchOutcomeLabel = string;
1893
+ /**
1894
+ * Filter by execution status (can specify multiple, there is an 'OR' condition applied to these)
1895
+ */
1896
+ type AgentsExecutionSearchStatus = Array<AgentsExecutionStatus>;
1502
1897
  type CommonPaginationPage = number;
1503
1898
  type CommonPaginationPageSize = number;
1504
1899
  type AgentListData = {
@@ -1509,12 +1904,20 @@ type AgentListData = {
1509
1904
  pageSize: number;
1510
1905
  page: number;
1511
1906
  searchName?: string;
1512
- sort_field?: AgentsAgentSortField;
1513
- sort_direction?: CommonSortDirection;
1907
+ sortField?: AgentsAgentSortField;
1908
+ sortDirection?: CommonSortDirection;
1514
1909
  };
1515
1910
  url: '/agents';
1516
1911
  };
1517
1912
  type AgentListErrors = {
1913
+ /**
1914
+ * The server could not understand the request due to invalid syntax.
1915
+ */
1916
+ 400: 'Invalid request parameters.';
1917
+ /**
1918
+ * The server cannot find the requested resource.
1919
+ */
1920
+ 404: 'Organization not found.';
1518
1921
  /**
1519
1922
  * An unexpected error response.
1520
1923
  */
@@ -1533,6 +1936,149 @@ type AgentListResponses = {
1533
1936
  };
1534
1937
  };
1535
1938
  type AgentListResponse = AgentListResponses[keyof AgentListResponses];
1939
+ type AgentExecutePostData = {
1940
+ /**
1941
+ * Execution request parameters
1942
+ */
1943
+ body: AgentsAgentExecuteAgentRequest;
1944
+ path: {
1945
+ /**
1946
+ * The ID of the agent to execute
1947
+ */
1948
+ agentId: CommonUuid;
1949
+ };
1950
+ query?: never;
1951
+ url: '/agents/{agentId}/execute';
1952
+ };
1953
+ type AgentExecutePostErrors = {
1954
+ /**
1955
+ * An unexpected error response.
1956
+ */
1957
+ default: CommonError;
1958
+ };
1959
+ type AgentExecutePostError = AgentExecutePostErrors[keyof AgentExecutePostErrors];
1960
+ type AgentExecutePostResponses = {
1961
+ /**
1962
+ * The request has been accepted for processing, but processing has not yet completed.
1963
+ */
1964
+ 202: AgentsAgentExecuteAgentResponse;
1965
+ };
1966
+ type AgentExecutePostResponse = AgentExecutePostResponses[keyof AgentExecutePostResponses];
1967
+ type ExecutionsListData = {
1968
+ body?: never;
1969
+ path?: never;
1970
+ query: {
1971
+ /**
1972
+ * Optional organization ID filter (required for customer queries)
1973
+ */
1974
+ organizationId?: CommonUuid;
1975
+ pageSize: number;
1976
+ page: number;
1977
+ /**
1978
+ * Search by execution ID (partial, case-insensitive match)
1979
+ */
1980
+ executionId?: string;
1981
+ /**
1982
+ * Filter by agent ID
1983
+ */
1984
+ agentId?: CommonUuid;
1985
+ /**
1986
+ * Filter by execution status (can specify multiple, there is an 'OR' condition applied to these)
1987
+ */
1988
+ status?: Array<AgentsExecutionStatus>;
1989
+ /**
1990
+ * Filter by agent version
1991
+ */
1992
+ agentVersion?: number;
1993
+ /**
1994
+ * Filter executions created after this timestamp
1995
+ */
1996
+ createdAfter?: string;
1997
+ /**
1998
+ * Filter executions created before this timestamp
1999
+ */
2000
+ createdBefore?: string;
2001
+ /**
2002
+ * Filter by human labels (can specify multiple label IDs, there is an 'OR' condition applied to these)
2003
+ */
2004
+ humanLabels?: Array<CommonUuid>;
2005
+ /**
2006
+ * Filter by execution result outcome (partial, case-insensitive match)
2007
+ */
2008
+ outcomeLabel?: string;
2009
+ /**
2010
+ * Filter by metadata key - must be used together with metadataValue
2011
+ */
2012
+ metadataKey?: string;
2013
+ /**
2014
+ * Filter by metadata value - must be used together with metadataKey
2015
+ */
2016
+ metadataValue?: string;
2017
+ sortField?: AgentsExecutionSortField;
2018
+ sortDirection?: CommonSortDirection;
2019
+ };
2020
+ url: '/executions';
2021
+ };
2022
+ type ExecutionsListErrors = {
2023
+ /**
2024
+ * The server could not understand the request due to invalid syntax.
2025
+ */
2026
+ 400: CommonBadRequestErrorBody;
2027
+ /**
2028
+ * Access is forbidden.
2029
+ */
2030
+ 403: CommonForbiddenErrorBody;
2031
+ /**
2032
+ * The server cannot find the requested resource.
2033
+ */
2034
+ 404: CommonNotFoundErrorBody;
2035
+ };
2036
+ type ExecutionsListError = ExecutionsListErrors[keyof ExecutionsListErrors];
2037
+ type ExecutionsListResponses = {
2038
+ /**
2039
+ * The request has succeeded.
2040
+ */
2041
+ 200: {
2042
+ items: Array<AgentsExecutionListItem>;
2043
+ page: number;
2044
+ pageSize: number;
2045
+ total: number;
2046
+ };
2047
+ };
2048
+ type ExecutionsListResponse = ExecutionsListResponses[keyof ExecutionsListResponses];
2049
+ type ExecutionGetData = {
2050
+ body?: never;
2051
+ path: {
2052
+ /**
2053
+ * The unique identifier of the execution
2054
+ */
2055
+ executionId: CommonUuid;
2056
+ };
2057
+ query?: never;
2058
+ url: '/executions/{executionId}';
2059
+ };
2060
+ type ExecutionGetErrors = {
2061
+ /**
2062
+ * The server could not understand the request due to invalid syntax.
2063
+ */
2064
+ 400: CommonBadRequestErrorBody;
2065
+ /**
2066
+ * Access is forbidden.
2067
+ */
2068
+ 403: CommonForbiddenErrorBody;
2069
+ /**
2070
+ * The server cannot find the requested resource.
2071
+ */
2072
+ 404: CommonNotFoundErrorBody;
2073
+ };
2074
+ type ExecutionGetError = ExecutionGetErrors[keyof ExecutionGetErrors];
2075
+ type ExecutionGetResponses = {
2076
+ /**
2077
+ * The request has succeeded.
2078
+ */
2079
+ 200: AgentsExecutionListItem;
2080
+ };
2081
+ type ExecutionGetResponse = ExecutionGetResponses[keyof ExecutionGetResponses];
1536
2082
  type ExecutionActivitiesGetData = {
1537
2083
  body?: never;
1538
2084
  path: {
@@ -1602,6 +2148,10 @@ type ExecutionContextFilesUploadData = {
1602
2148
  files: Array<AgentsFilesFilePart>;
1603
2149
  };
1604
2150
  path: {
2151
+ /**
2152
+ * Upload files to a running execution
2153
+ * 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.
2154
+ */
1605
2155
  executionId: CommonUuid;
1606
2156
  };
1607
2157
  query?: never;
@@ -1661,63 +2211,145 @@ type ExecutionUserMessagesAddResponses = {
1661
2211
  201: 'User message added.';
1662
2212
  };
1663
2213
  type ExecutionUserMessagesAddResponse = ExecutionUserMessagesAddResponses[keyof ExecutionUserMessagesAddResponses];
2214
+ type TempFilesStageData = {
2215
+ body: {
2216
+ files: Array<AgentsFilesFilePart>;
2217
+ };
2218
+ path: {
2219
+ organizationId: CommonUuid;
2220
+ };
2221
+ query?: never;
2222
+ url: '/temp-files/{organizationId}';
2223
+ };
2224
+ type TempFilesStageErrors = {
2225
+ /**
2226
+ * The server could not understand the request due to invalid syntax.
2227
+ */
2228
+ 400: 'Invalid file upload request.';
2229
+ /**
2230
+ * Access is forbidden.
2231
+ */
2232
+ 403: 'User is not a member of the organization.';
2233
+ /**
2234
+ * Server error
2235
+ */
2236
+ 500: 'Internal server error.';
2237
+ };
2238
+ type TempFilesStageError = TempFilesStageErrors[keyof TempFilesStageErrors];
2239
+ type TempFilesStageResponses = {
2240
+ /**
2241
+ * The request has succeeded.
2242
+ */
2243
+ 200: AgentsFilesTempFilesResponse;
2244
+ };
2245
+ type TempFilesStageResponse = TempFilesStageResponses[keyof TempFilesStageResponses];
1664
2246
  type ClientOptions = {
1665
2247
  baseUrl: 'https://odyssey.asteroid.ai/agents/v2' | (string & {});
1666
2248
  };
1667
2249
 
1668
- type types_gen_ActivityPayloadUnionActionCompleted = ActivityPayloadUnionActionCompleted;
1669
- type types_gen_ActivityPayloadUnionActionFailed = ActivityPayloadUnionActionFailed;
1670
- type types_gen_ActivityPayloadUnionActionStarted = ActivityPayloadUnionActionStarted;
1671
- type types_gen_ActivityPayloadUnionFileAdded = ActivityPayloadUnionFileAdded;
1672
- type types_gen_ActivityPayloadUnionGeneric = ActivityPayloadUnionGeneric;
1673
- type types_gen_ActivityPayloadUnionGraphUpdated = ActivityPayloadUnionGraphUpdated;
1674
- type types_gen_ActivityPayloadUnionStatusChanged = ActivityPayloadUnionStatusChanged;
1675
- type types_gen_ActivityPayloadUnionStepCompleted = ActivityPayloadUnionStepCompleted;
1676
- type types_gen_ActivityPayloadUnionStepStarted = ActivityPayloadUnionStepStarted;
1677
- type types_gen_ActivityPayloadUnionTerminal = ActivityPayloadUnionTerminal;
1678
- type types_gen_ActivityPayloadUnionTransitionedNode = ActivityPayloadUnionTransitionedNode;
1679
- type types_gen_ActivityPayloadUnionUserMessageReceived = ActivityPayloadUnionUserMessageReceived;
2250
+ type types_gen_AgentExecutePostData = AgentExecutePostData;
2251
+ type types_gen_AgentExecutePostError = AgentExecutePostError;
2252
+ type types_gen_AgentExecutePostErrors = AgentExecutePostErrors;
2253
+ type types_gen_AgentExecutePostResponse = AgentExecutePostResponse;
2254
+ type types_gen_AgentExecutePostResponses = AgentExecutePostResponses;
1680
2255
  type types_gen_AgentListData = AgentListData;
1681
2256
  type types_gen_AgentListError = AgentListError;
1682
2257
  type types_gen_AgentListErrors = AgentListErrors;
1683
2258
  type types_gen_AgentListResponse = AgentListResponse;
1684
2259
  type types_gen_AgentListResponses = AgentListResponses;
1685
2260
  type types_gen_AgentsAgentBase = AgentsAgentBase;
2261
+ type types_gen_AgentsAgentExecuteAgentRequest = AgentsAgentExecuteAgentRequest;
2262
+ type types_gen_AgentsAgentExecuteAgentResponse = AgentsAgentExecuteAgentResponse;
1686
2263
  type types_gen_AgentsAgentSearch = AgentsAgentSearch;
1687
2264
  type types_gen_AgentsAgentSortField = AgentsAgentSortField;
2265
+ type types_gen_AgentsExecutionActionName = AgentsExecutionActionName;
1688
2266
  type types_gen_AgentsExecutionActivity = AgentsExecutionActivity;
2267
+ type types_gen_AgentsExecutionActivityActionCompletedInfo = AgentsExecutionActivityActionCompletedInfo;
1689
2268
  type types_gen_AgentsExecutionActivityActionCompletedPayload = AgentsExecutionActivityActionCompletedPayload;
1690
2269
  type types_gen_AgentsExecutionActivityActionFailedPayload = AgentsExecutionActivityActionFailedPayload;
2270
+ type types_gen_AgentsExecutionActivityActionStartedInfo = AgentsExecutionActivityActionStartedInfo;
1691
2271
  type types_gen_AgentsExecutionActivityActionStartedPayload = AgentsExecutionActivityActionStartedPayload;
1692
2272
  type types_gen_AgentsExecutionActivityFileAddedPayload = AgentsExecutionActivityFileAddedPayload;
1693
2273
  type types_gen_AgentsExecutionActivityGenericPayload = AgentsExecutionActivityGenericPayload;
1694
- type types_gen_AgentsExecutionActivityGraphUpdatedPayload = AgentsExecutionActivityGraphUpdatedPayload;
1695
2274
  type types_gen_AgentsExecutionActivityPayloadUnion = AgentsExecutionActivityPayloadUnion;
2275
+ type types_gen_AgentsExecutionActivityPlaywrightScriptGeneratedPayload = AgentsExecutionActivityPlaywrightScriptGeneratedPayload;
2276
+ type types_gen_AgentsExecutionActivityReasoningPayload = AgentsExecutionActivityReasoningPayload;
1696
2277
  type types_gen_AgentsExecutionActivityStatusChangedPayload = AgentsExecutionActivityStatusChangedPayload;
1697
2278
  type types_gen_AgentsExecutionActivityStepCompletedPayload = AgentsExecutionActivityStepCompletedPayload;
1698
2279
  type types_gen_AgentsExecutionActivityStepStartedPayload = AgentsExecutionActivityStepStartedPayload;
1699
2280
  type types_gen_AgentsExecutionActivityTransitionedNodePayload = AgentsExecutionActivityTransitionedNodePayload;
1700
2281
  type types_gen_AgentsExecutionActivityUserMessageReceivedPayload = AgentsExecutionActivityUserMessageReceivedPayload;
2282
+ type types_gen_AgentsExecutionActivityWorkflowUpdatedPayload = AgentsExecutionActivityWorkflowUpdatedPayload;
1701
2283
  type types_gen_AgentsExecutionAwaitingConfirmationPayload = AgentsExecutionAwaitingConfirmationPayload;
1702
2284
  type types_gen_AgentsExecutionCancelReason = AgentsExecutionCancelReason;
1703
2285
  type types_gen_AgentsExecutionCancelledPayload = AgentsExecutionCancelledPayload;
2286
+ type types_gen_AgentsExecutionComment = AgentsExecutionComment;
1704
2287
  type types_gen_AgentsExecutionCompletedPayload = AgentsExecutionCompletedPayload;
2288
+ type types_gen_AgentsExecutionElementFileUploadCompletedDetails = AgentsExecutionElementFileUploadCompletedDetails;
2289
+ type types_gen_AgentsExecutionExecutionResult = AgentsExecutionExecutionResult;
2290
+ type types_gen_AgentsExecutionExtApiCallCompletedDetails = AgentsExecutionExtApiCallCompletedDetails;
2291
+ type types_gen_AgentsExecutionExtGetMailCompletedDetails = AgentsExecutionExtGetMailCompletedDetails;
1705
2292
  type types_gen_AgentsExecutionFailedPayload = AgentsExecutionFailedPayload;
1706
- type types_gen_AgentsExecutionGraphUpdate = AgentsExecutionGraphUpdate;
2293
+ type types_gen_AgentsExecutionFileListCompletedDetails = AgentsExecutionFileListCompletedDetails;
2294
+ type types_gen_AgentsExecutionFileReadCompletedDetails = AgentsExecutionFileReadCompletedDetails;
2295
+ type types_gen_AgentsExecutionFileStageCompletedDetails = AgentsExecutionFileStageCompletedDetails;
2296
+ type types_gen_AgentsExecutionHumanLabel = AgentsExecutionHumanLabel;
2297
+ type types_gen_AgentsExecutionListItem = AgentsExecutionListItem;
2298
+ type types_gen_AgentsExecutionLlmCallPurpose = AgentsExecutionLlmCallPurpose;
2299
+ type types_gen_AgentsExecutionLlmCallStartedDetails = AgentsExecutionLlmCallStartedDetails;
2300
+ type types_gen_AgentsExecutionNavToCompletedDetails = AgentsExecutionNavToCompletedDetails;
2301
+ type types_gen_AgentsExecutionNavToStartedDetails = AgentsExecutionNavToStartedDetails;
1707
2302
  type types_gen_AgentsExecutionNodeDetails = AgentsExecutionNodeDetails;
2303
+ type types_gen_AgentsExecutionObsSnapshotWithSelectorsCompletedDetails = AgentsExecutionObsSnapshotWithSelectorsCompletedDetails;
1708
2304
  type types_gen_AgentsExecutionPausedPayload = AgentsExecutionPausedPayload;
2305
+ type types_gen_AgentsExecutionRulesDetails = AgentsExecutionRulesDetails;
2306
+ type types_gen_AgentsExecutionScratchpadReadCompletedDetails = AgentsExecutionScratchpadReadCompletedDetails;
2307
+ type types_gen_AgentsExecutionScratchpadReadStartedDetails = AgentsExecutionScratchpadReadStartedDetails;
2308
+ type types_gen_AgentsExecutionScratchpadWriteCompletedDetails = AgentsExecutionScratchpadWriteCompletedDetails;
2309
+ type types_gen_AgentsExecutionScratchpadWriteStartedDetails = AgentsExecutionScratchpadWriteStartedDetails;
2310
+ type types_gen_AgentsExecutionScriptHybridPlaywrightCompletedDetails = AgentsExecutionScriptHybridPlaywrightCompletedDetails;
2311
+ type types_gen_AgentsExecutionScriptHybridPlaywrightStartedDetails = AgentsExecutionScriptHybridPlaywrightStartedDetails;
2312
+ type types_gen_AgentsExecutionScriptPadRunFunctionCompletedDetails = AgentsExecutionScriptPadRunFunctionCompletedDetails;
2313
+ type types_gen_AgentsExecutionScriptPlaywrightCompletedDetails = AgentsExecutionScriptPlaywrightCompletedDetails;
2314
+ type types_gen_AgentsExecutionScriptPlaywrightStartedDetails = AgentsExecutionScriptPlaywrightStartedDetails;
2315
+ type types_gen_AgentsExecutionScriptpadReadCompletedDetails = AgentsExecutionScriptpadReadCompletedDetails;
2316
+ type types_gen_AgentsExecutionScriptpadReadStartedDetails = AgentsExecutionScriptpadReadStartedDetails;
2317
+ type types_gen_AgentsExecutionScriptpadRunFunctionStartedDetails = AgentsExecutionScriptpadRunFunctionStartedDetails;
2318
+ type types_gen_AgentsExecutionScriptpadSearchReplaceCompletedDetails = AgentsExecutionScriptpadSearchReplaceCompletedDetails;
2319
+ type types_gen_AgentsExecutionScriptpadSearchReplaceStartedDetails = AgentsExecutionScriptpadSearchReplaceStartedDetails;
2320
+ type types_gen_AgentsExecutionScriptpadWriteCompletedDetails = AgentsExecutionScriptpadWriteCompletedDetails;
2321
+ type types_gen_AgentsExecutionSearchAgentId = AgentsExecutionSearchAgentId;
2322
+ type types_gen_AgentsExecutionSearchAgentVersion = AgentsExecutionSearchAgentVersion;
2323
+ type types_gen_AgentsExecutionSearchCreatedAfter = AgentsExecutionSearchCreatedAfter;
2324
+ type types_gen_AgentsExecutionSearchCreatedBefore = AgentsExecutionSearchCreatedBefore;
2325
+ type types_gen_AgentsExecutionSearchExecutionId = AgentsExecutionSearchExecutionId;
2326
+ type types_gen_AgentsExecutionSearchHumanLabels = AgentsExecutionSearchHumanLabels;
2327
+ type types_gen_AgentsExecutionSearchMetadataKey = AgentsExecutionSearchMetadataKey;
2328
+ type types_gen_AgentsExecutionSearchMetadataValue = AgentsExecutionSearchMetadataValue;
2329
+ type types_gen_AgentsExecutionSearchOutcomeLabel = AgentsExecutionSearchOutcomeLabel;
2330
+ type types_gen_AgentsExecutionSearchStatus = AgentsExecutionSearchStatus;
2331
+ type types_gen_AgentsExecutionSortField = AgentsExecutionSortField;
1709
2332
  type types_gen_AgentsExecutionStatus = AgentsExecutionStatus;
1710
2333
  type types_gen_AgentsExecutionTerminalPayload = AgentsExecutionTerminalPayload;
1711
2334
  type types_gen_AgentsExecutionTransitionDetails = AgentsExecutionTransitionDetails;
1712
2335
  type types_gen_AgentsExecutionUpdateType = AgentsExecutionUpdateType;
1713
2336
  type types_gen_AgentsExecutionUserMessagesAddTextBody = AgentsExecutionUserMessagesAddTextBody;
2337
+ type types_gen_AgentsExecutionUtilGetDatetimeCompletedDetails = AgentsExecutionUtilGetDatetimeCompletedDetails;
2338
+ type types_gen_AgentsExecutionUtilGetDatetimeStartedDetails = AgentsExecutionUtilGetDatetimeStartedDetails;
2339
+ type types_gen_AgentsExecutionWorkflowUpdate = AgentsExecutionWorkflowUpdate;
1714
2340
  type types_gen_AgentsFilesFile = AgentsFilesFile;
1715
2341
  type types_gen_AgentsFilesFilePart = AgentsFilesFilePart;
2342
+ type types_gen_AgentsFilesTempFile = AgentsFilesTempFile;
2343
+ type types_gen_AgentsFilesTempFilesResponse = AgentsFilesTempFilesResponse;
2344
+ type types_gen_AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar = AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVar;
2345
+ type types_gen_AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType = AgentsGraphModelsNodesPropertiesPlaywrightScriptLlmVarType;
2346
+ type types_gen_AgentsGraphModelsTransitionsTransitionType = AgentsGraphModelsTransitionsTransitionType;
1716
2347
  type types_gen_ClientOptions = ClientOptions;
1717
2348
  type types_gen_CommonBadRequestErrorBody = CommonBadRequestErrorBody;
1718
2349
  type types_gen_CommonError = CommonError;
1719
2350
  type types_gen_CommonForbiddenErrorBody = CommonForbiddenErrorBody;
1720
2351
  type types_gen_CommonNotFoundErrorBody = CommonNotFoundErrorBody;
2352
+ type types_gen_CommonOsError = CommonOsError;
1721
2353
  type types_gen_CommonPaginationPage = CommonPaginationPage;
1722
2354
  type types_gen_CommonPaginationPageSize = CommonPaginationPageSize;
1723
2355
  type types_gen_CommonSortDirection = CommonSortDirection;
@@ -1737,14 +2369,29 @@ type types_gen_ExecutionContextFilesUploadError = ExecutionContextFilesUploadErr
1737
2369
  type types_gen_ExecutionContextFilesUploadErrors = ExecutionContextFilesUploadErrors;
1738
2370
  type types_gen_ExecutionContextFilesUploadResponse = ExecutionContextFilesUploadResponse;
1739
2371
  type types_gen_ExecutionContextFilesUploadResponses = ExecutionContextFilesUploadResponses;
2372
+ type types_gen_ExecutionGetData = ExecutionGetData;
2373
+ type types_gen_ExecutionGetError = ExecutionGetError;
2374
+ type types_gen_ExecutionGetErrors = ExecutionGetErrors;
2375
+ type types_gen_ExecutionGetResponse = ExecutionGetResponse;
2376
+ type types_gen_ExecutionGetResponses = ExecutionGetResponses;
1740
2377
  type types_gen_ExecutionUserMessagesAddData = ExecutionUserMessagesAddData;
1741
2378
  type types_gen_ExecutionUserMessagesAddError = ExecutionUserMessagesAddError;
1742
2379
  type types_gen_ExecutionUserMessagesAddErrors = ExecutionUserMessagesAddErrors;
1743
2380
  type types_gen_ExecutionUserMessagesAddResponse = ExecutionUserMessagesAddResponse;
1744
2381
  type types_gen_ExecutionUserMessagesAddResponses = ExecutionUserMessagesAddResponses;
2382
+ type types_gen_ExecutionsListData = ExecutionsListData;
2383
+ type types_gen_ExecutionsListError = ExecutionsListError;
2384
+ type types_gen_ExecutionsListErrors = ExecutionsListErrors;
2385
+ type types_gen_ExecutionsListResponse = ExecutionsListResponse;
2386
+ type types_gen_ExecutionsListResponses = ExecutionsListResponses;
2387
+ type types_gen_TempFilesStageData = TempFilesStageData;
2388
+ type types_gen_TempFilesStageError = TempFilesStageError;
2389
+ type types_gen_TempFilesStageErrors = TempFilesStageErrors;
2390
+ type types_gen_TempFilesStageResponse = TempFilesStageResponse;
2391
+ type types_gen_TempFilesStageResponses = TempFilesStageResponses;
1745
2392
  type types_gen_Version = Version;
1746
2393
  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 };
2394
+ export type { 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_AgentsExecutionAwaitingConfirmationPayload as AgentsExecutionAwaitingConfirmationPayload, types_gen_AgentsExecutionCancelReason as AgentsExecutionCancelReason, types_gen_AgentsExecutionCancelledPayload as AgentsExecutionCancelledPayload, types_gen_AgentsExecutionComment as AgentsExecutionComment, types_gen_AgentsExecutionCompletedPayload as AgentsExecutionCompletedPayload, types_gen_AgentsExecutionElementFileUploadCompletedDetails as AgentsExecutionElementFileUploadCompletedDetails, types_gen_AgentsExecutionExecutionResult as AgentsExecutionExecutionResult, types_gen_AgentsExecutionExtApiCallCompletedDetails as AgentsExecutionExtApiCallCompletedDetails, types_gen_AgentsExecutionExtGetMailCompletedDetails as AgentsExecutionExtGetMailCompletedDetails, types_gen_AgentsExecutionFailedPayload as AgentsExecutionFailedPayload, types_gen_AgentsExecutionFileListCompletedDetails as AgentsExecutionFileListCompletedDetails, types_gen_AgentsExecutionFileReadCompletedDetails as AgentsExecutionFileReadCompletedDetails, types_gen_AgentsExecutionFileStageCompletedDetails as AgentsExecutionFileStageCompletedDetails, types_gen_AgentsExecutionHumanLabel as AgentsExecutionHumanLabel, types_gen_AgentsExecutionListItem as AgentsExecutionListItem, types_gen_AgentsExecutionLlmCallPurpose as AgentsExecutionLlmCallPurpose, types_gen_AgentsExecutionLlmCallStartedDetails as AgentsExecutionLlmCallStartedDetails, types_gen_AgentsExecutionNavToCompletedDetails as AgentsExecutionNavToCompletedDetails, types_gen_AgentsExecutionNavToStartedDetails as AgentsExecutionNavToStartedDetails, types_gen_AgentsExecutionNodeDetails as AgentsExecutionNodeDetails, types_gen_AgentsExecutionObsSnapshotWithSelectorsCompletedDetails as AgentsExecutionObsSnapshotWithSelectorsCompletedDetails, types_gen_AgentsExecutionPausedPayload as AgentsExecutionPausedPayload, types_gen_AgentsExecutionRulesDetails as AgentsExecutionRulesDetails, types_gen_AgentsExecutionScratchpadReadCompletedDetails as AgentsExecutionScratchpadReadCompletedDetails, types_gen_AgentsExecutionScratchpadReadStartedDetails as AgentsExecutionScratchpadReadStartedDetails, types_gen_AgentsExecutionScratchpadWriteCompletedDetails as AgentsExecutionScratchpadWriteCompletedDetails, types_gen_AgentsExecutionScratchpadWriteStartedDetails as AgentsExecutionScratchpadWriteStartedDetails, types_gen_AgentsExecutionScriptHybridPlaywrightCompletedDetails as AgentsExecutionScriptHybridPlaywrightCompletedDetails, types_gen_AgentsExecutionScriptHybridPlaywrightStartedDetails as AgentsExecutionScriptHybridPlaywrightStartedDetails, types_gen_AgentsExecutionScriptPadRunFunctionCompletedDetails as AgentsExecutionScriptPadRunFunctionCompletedDetails, types_gen_AgentsExecutionScriptPlaywrightCompletedDetails as AgentsExecutionScriptPlaywrightCompletedDetails, types_gen_AgentsExecutionScriptPlaywrightStartedDetails as AgentsExecutionScriptPlaywrightStartedDetails, types_gen_AgentsExecutionScriptpadReadCompletedDetails as AgentsExecutionScriptpadReadCompletedDetails, types_gen_AgentsExecutionScriptpadReadStartedDetails as AgentsExecutionScriptpadReadStartedDetails, types_gen_AgentsExecutionScriptpadRunFunctionStartedDetails as AgentsExecutionScriptpadRunFunctionStartedDetails, types_gen_AgentsExecutionScriptpadSearchReplaceCompletedDetails as AgentsExecutionScriptpadSearchReplaceCompletedDetails, types_gen_AgentsExecutionScriptpadSearchReplaceStartedDetails as AgentsExecutionScriptpadSearchReplaceStartedDetails, types_gen_AgentsExecutionScriptpadWriteCompletedDetails as AgentsExecutionScriptpadWriteCompletedDetails, 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_AgentsExecutionUtilGetDatetimeCompletedDetails as AgentsExecutionUtilGetDatetimeCompletedDetails, types_gen_AgentsExecutionUtilGetDatetimeStartedDetails as AgentsExecutionUtilGetDatetimeStartedDetails, 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_AgentsGraphModelsTransitionsTransitionType as AgentsGraphModelsTransitionsTransitionType, 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_ExecutionGetData as ExecutionGetData, types_gen_ExecutionGetError as ExecutionGetError, types_gen_ExecutionGetErrors as ExecutionGetErrors, types_gen_ExecutionGetResponse as ExecutionGetResponse, types_gen_ExecutionGetResponses as ExecutionGetResponses, 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
2395
  }
1749
2396
 
1750
2397
  type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$2<TData, ThrowOnError> & {
@@ -1764,10 +2411,6 @@ type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boole
1764
2411
  * Get the OpenAPI schema
1765
2412
  */
1766
2413
  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
2414
  /**
1772
2415
  * Check the health of the API
1773
2416
  */
@@ -1781,19 +2424,23 @@ declare const executeAgent$1: <ThrowOnError extends boolean = false>(options: Op
1781
2424
  /**
1782
2425
  * Execute an agent with structured parameters
1783
2426
  * Executes an agent with structured parameters including optional agent profile configuration. This is the recommended method for new integrations.
2427
+ * @deprecated
1784
2428
  */
1785
2429
  declare const executeAgentStructured: <ThrowOnError extends boolean = false>(options: Options$1<ExecuteAgentStructuredData, ThrowOnError>) => RequestResult<ExecuteAgentStructuredResponses, ExecuteAgentStructuredErrors, ThrowOnError, "fields">;
1786
2430
  /**
1787
2431
  * Get execution status
2432
+ * @deprecated
1788
2433
  */
1789
2434
  declare const getExecutionStatus$1: <ThrowOnError extends boolean = false>(options: Options$1<GetExecutionStatusData, ThrowOnError>) => RequestResult<GetExecutionStatusResponses, GetExecutionStatusErrors, ThrowOnError, "fields">;
1790
2435
  /**
1791
2436
  * Get execution result
2437
+ * @deprecated
1792
2438
  */
1793
2439
  declare const getExecutionResult$1: <ThrowOnError extends boolean = false>(options: Options$1<GetExecutionResultData, ThrowOnError>) => RequestResult<GetExecutionResultResponses, GetExecutionResultErrors, ThrowOnError, "fields">;
1794
2440
  /**
1795
2441
  * Get browser session recording
1796
2442
  * Retrieves the browser session recording URL for a completed execution
2443
+ * @deprecated
1797
2444
  */
1798
2445
  declare const getBrowserSessionRecording$1: <ThrowOnError extends boolean = false>(options: Options$1<GetBrowserSessionRecordingData, ThrowOnError>) => RequestResult<GetBrowserSessionRecordingResponses, GetBrowserSessionRecordingErrors, ThrowOnError, "fields">;
1799
2446
  /**
@@ -1830,7 +2477,7 @@ declare const sdk_gen$1_executeAgentStructured: typeof executeAgentStructured;
1830
2477
  declare const sdk_gen$1_getOpenApi: typeof getOpenApi;
1831
2478
  declare const sdk_gen$1_healthCheck: typeof healthCheck;
1832
2479
  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 };
2480
+ 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
2481
  }
1835
2482
 
1836
2483
  type Options<TData extends TDataShape$1 = TDataShape$1, ThrowOnError extends boolean = boolean> = Options$3<TData, ThrowOnError> & {
@@ -1847,6 +2494,21 @@ type Options<TData extends TDataShape$1 = TDataShape$1, ThrowOnError extends boo
1847
2494
  meta?: Record<string, unknown>;
1848
2495
  };
1849
2496
  declare const agentList: <ThrowOnError extends boolean = false>(options: Options<AgentListData, ThrowOnError>) => RequestResult$1<AgentListResponses, AgentListErrors, ThrowOnError, "fields">;
2497
+ /**
2498
+ * Execute an agent
2499
+ * Start an execution for the given agent.
2500
+ */
2501
+ declare const agentExecutePost: <ThrowOnError extends boolean = false>(options: Options<AgentExecutePostData, ThrowOnError>) => RequestResult$1<AgentExecutePostResponses, AgentExecutePostErrors, ThrowOnError, "fields">;
2502
+ /**
2503
+ * List executions
2504
+ * List executions with filtering and pagination
2505
+ */
2506
+ declare const executionsList: <ThrowOnError extends boolean = false>(options: Options<ExecutionsListData, ThrowOnError>) => RequestResult$1<ExecutionsListResponses, ExecutionsListErrors, ThrowOnError, "fields">;
2507
+ /**
2508
+ * Get execution
2509
+ * Get a single execution by ID with all details
2510
+ */
2511
+ declare const executionGet: <ThrowOnError extends boolean = false>(options: Options<ExecutionGetData, ThrowOnError>) => RequestResult$1<ExecutionGetResponses, ExecutionGetErrors, ThrowOnError, "fields">;
1850
2512
  /**
1851
2513
  * Retrieve execution activities
1852
2514
  * Get activities for an execution
@@ -1859,15 +2521,24 @@ declare const executionContextFilesUpload: <ThrowOnError extends boolean = false
1859
2521
  * Add a user message to an execution
1860
2522
  */
1861
2523
  declare const executionUserMessagesAdd: <ThrowOnError extends boolean = false>(options: Options<ExecutionUserMessagesAddData, ThrowOnError>) => RequestResult$1<ExecutionUserMessagesAddResponses, ExecutionUserMessagesAddErrors, ThrowOnError, "fields">;
2524
+ /**
2525
+ * Stage a file for an execution
2526
+ * 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.
2527
+ */
2528
+ declare const tempFilesStage: <ThrowOnError extends boolean = false>(options: Options<TempFilesStageData, ThrowOnError>) => RequestResult$1<TempFilesStageResponses, TempFilesStageErrors, ThrowOnError, "fields">;
1862
2529
 
1863
2530
  type sdk_gen_Options<TData extends TDataShape$1 = TDataShape$1, ThrowOnError extends boolean = boolean> = Options<TData, ThrowOnError>;
2531
+ declare const sdk_gen_agentExecutePost: typeof agentExecutePost;
1864
2532
  declare const sdk_gen_agentList: typeof agentList;
1865
2533
  declare const sdk_gen_executionActivitiesGet: typeof executionActivitiesGet;
1866
2534
  declare const sdk_gen_executionContextFilesGet: typeof executionContextFilesGet;
1867
2535
  declare const sdk_gen_executionContextFilesUpload: typeof executionContextFilesUpload;
2536
+ declare const sdk_gen_executionGet: typeof executionGet;
1868
2537
  declare const sdk_gen_executionUserMessagesAdd: typeof executionUserMessagesAdd;
2538
+ declare const sdk_gen_executionsList: typeof executionsList;
2539
+ declare const sdk_gen_tempFilesStage: typeof tempFilesStage;
1869
2540
  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 };
2541
+ 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_executionGet as executionGet, sdk_gen_executionUserMessagesAdd as executionUserMessagesAdd, sdk_gen_executionsList as executionsList, sdk_gen_tempFilesStage as tempFilesStage };
1871
2542
  }
1872
2543
 
1873
2544
  /**
@@ -1893,7 +2564,7 @@ declare const AsteroidClient: (apiKey: string, options?: {
1893
2564
  type AsteroidClient = ReturnType<typeof AsteroidClient>;
1894
2565
  /** --- V1 --- */
1895
2566
  /**
1896
- * Execute an agent with parameters including optional agent profile ID.
2567
+ * Execute an agent with parameters including optional agent profile ID, dynamic data, and metadata.
1897
2568
  *
1898
2569
  * @param client - The API client.
1899
2570
  * @param agentId - The ID of the agent to execute.
@@ -1902,11 +2573,12 @@ type AsteroidClient = ReturnType<typeof AsteroidClient>;
1902
2573
  *
1903
2574
  * @example
1904
2575
  * const executionId = await executeAgent(client, 'my-agent-id', {
1905
- * agent_profile_id: 'profile-123',
1906
- * dynamic_data: { input: "some dynamic value" }
2576
+ * agentProfileId: 'profile-123',
2577
+ * dynamicData: { input: "some dynamic value" },
2578
+ * metadata: { environment: "production", userId: "user-123" }
1907
2579
  * });
1908
2580
  */
1909
- declare const executeAgent: (client: AsteroidClient, agentId: string, executionData: StructuredAgentExecutionRequest) => Promise<string>;
2581
+ declare const executeAgent: (client: AsteroidClient, agentId: string, executionData: AgentsAgentExecuteAgentRequest) => Promise<string>;
1910
2582
  /**
1911
2583
  * Get the current status for an execution.
1912
2584
  *
@@ -1963,18 +2635,15 @@ declare const getBrowserSessionRecording: (client: AsteroidClient, executionId:
1963
2635
  * @param client - The API client.
1964
2636
  * @param executionId - The execution identifier.
1965
2637
  * @param files - Array of files to upload.
1966
- * @returns The uploaded file IDs and success message.
2638
+ * @returns A success message.
1967
2639
  *
1968
2640
  * @example
1969
2641
  * const fileInput = document.getElementById('file-input') as HTMLInputElement;
1970
2642
  * const files = Array.from(fileInput.files || []);
1971
2643
  * const result = await uploadExecutionFiles(client, executionId, files);
1972
- * console.log(result.file_ids);
2644
+ * console.log(result); // "Files uploaded."
1973
2645
  */
1974
- declare const uploadExecutionFiles: (client: AsteroidClient, executionId: string, files: Array<Blob | globalThis.File>) => Promise<{
1975
- message?: string;
1976
- file_ids?: string[];
1977
- }>;
2646
+ declare const uploadExecutionFiles: (client: AsteroidClient, executionId: string, files: Array<Blob | globalThis.File>) => Promise<string>;
1978
2647
  /**
1979
2648
  * Get agent profiles for an organization (or all organizations for the user if not specified).
1980
2649
  *
@@ -2129,5 +2798,41 @@ declare const downloadExecutionFile: (client: AsteroidClient, file: AgentsFilesF
2129
2798
  * @returns The list of agents.
2130
2799
  */
2131
2800
  declare const getAgents: (client: AsteroidClient, organizationId: string, page: number, pageSize: number) => Promise<AgentsAgentBase[]>;
2801
+ /**
2802
+ * Get a paginated list of executions with optional filtering.
2803
+ *
2804
+ * @param client - The API client.
2805
+ * @param options - Filtering and pagination options.
2806
+ * @returns Paginated execution list with metadata.
2807
+ *
2808
+ * @example
2809
+ * // Get all executions for an organization
2810
+ * const result = await getExecutions(client, {
2811
+ * organizationId: 'org_123',
2812
+ * page: 1,
2813
+ * pageSize: 20
2814
+ * });
2815
+ *
2816
+ * @example
2817
+ * // Filter by agent and status
2818
+ * const result = await getExecutions(client, {
2819
+ * organizationId: 'org_123',
2820
+ * agentId: 'agent_456',
2821
+ * status: ['completed', 'failed'],
2822
+ * page: 1,
2823
+ * pageSize: 20,
2824
+ * sortField: 'created_at',
2825
+ * sortDirection: 'desc'
2826
+ * });
2827
+ *
2828
+ * @example
2829
+ * // Search by execution ID
2830
+ * const result = await getExecutions(client, {
2831
+ * executionId: 'exec_',
2832
+ * page: 1,
2833
+ * pageSize: 20
2834
+ * });
2835
+ */
2836
+ declare const getExecutions: (client: AsteroidClient, options: ExecutionsListData) => Promise<ExecutionsListResponses["200"]>;
2132
2837
 
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 };
2838
+ 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 };