asteroid-odyssey 1.3.7 → 1.3.9

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
@@ -613,8 +613,8 @@ type AgentProfile = {
613
613
  * The ID of the organization that the agent profile belongs to
614
614
  */
615
615
  organization_id: string;
616
- proxy_cc: CountryCode;
617
- proxy_type: ProxyType;
616
+ proxy_cc?: CountryCode;
617
+ proxy_type?: ProxyType;
618
618
  /**
619
619
  * Whether the captcha solver is active for this profile
620
620
  */
@@ -639,6 +639,14 @@ 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
+ /**
647
+ * Whether to enable extra stealth for the profile
648
+ */
649
+ extra_stealth: boolean;
642
650
  };
643
651
  type CreateAgentProfileRequest = {
644
652
  /**
@@ -671,6 +679,14 @@ type CreateAgentProfileRequest = {
671
679
  * Optional list of cookies to create with the profile
672
680
  */
673
681
  cookies: Array<Cookie>;
682
+ /**
683
+ * Whether to enable tracing snapshots for the profile
684
+ */
685
+ tracing_snapshots?: boolean;
686
+ /**
687
+ * Whether to enable extra stealth for the profile
688
+ */
689
+ extra_stealth?: boolean;
674
690
  };
675
691
  type UpdateAgentProfileRequest = {
676
692
  /**
@@ -707,6 +723,14 @@ type UpdateAgentProfileRequest = {
707
723
  * List of cookie IDs to delete from the profile
708
724
  */
709
725
  cookies_to_delete?: Array<string>;
726
+ /**
727
+ * Whether to enable tracing snapshots for the profile
728
+ */
729
+ tracing_snapshots?: boolean;
730
+ /**
731
+ * Whether to enable extra stealth for the profile
732
+ */
733
+ extra_stealth?: boolean;
710
734
  };
711
735
  /**
712
736
  * Two-letter country code for proxy location
@@ -1269,67 +1293,90 @@ declare namespace types_gen$1 {
1269
1293
 
1270
1294
  type ActivityPayloadUnionActionCompleted = {
1271
1295
  activityType: 'action_completed';
1272
- data: ExecutionActivityActionCompletedPayload;
1296
+ data: AgentsExecutionActivityActionCompletedPayload;
1273
1297
  };
1274
1298
  type ActivityPayloadUnionActionFailed = {
1275
1299
  activityType: 'action_failed';
1276
- data: ExecutionActivityActionFailedPayload;
1300
+ data: AgentsExecutionActivityActionFailedPayload;
1277
1301
  };
1278
1302
  type ActivityPayloadUnionActionStarted = {
1279
1303
  activityType: 'action_started';
1280
- data: ExecutionActivityActionStartedPayload;
1304
+ data: AgentsExecutionActivityActionStartedPayload;
1305
+ };
1306
+ type ActivityPayloadUnionFileAdded = {
1307
+ activityType: 'file_added';
1308
+ data: AgentsExecutionActivityFileAddedPayload;
1281
1309
  };
1282
1310
  type ActivityPayloadUnionGeneric = {
1283
1311
  activityType: 'generic';
1284
- data: ExecutionActivityGenericPayload;
1312
+ data: AgentsExecutionActivityGenericPayload;
1313
+ };
1314
+ type ActivityPayloadUnionGraphUpdated = {
1315
+ activityType: 'graph_updated';
1316
+ data: AgentsExecutionActivityGraphUpdatedPayload;
1285
1317
  };
1286
1318
  type ActivityPayloadUnionStatusChanged = {
1287
1319
  activityType: 'status_changed';
1288
- data: ExecutionActivityStatusChangedPayload;
1320
+ data: AgentsExecutionActivityStatusChangedPayload;
1289
1321
  };
1290
1322
  type ActivityPayloadUnionStepCompleted = {
1291
1323
  activityType: 'step_completed';
1292
- data: ExecutionActivityStepCompletedPayload;
1324
+ data: AgentsExecutionActivityStepCompletedPayload;
1293
1325
  };
1294
1326
  type ActivityPayloadUnionStepStarted = {
1295
1327
  activityType: 'step_started';
1296
- data: ExecutionActivityStepStartedPayload;
1328
+ data: AgentsExecutionActivityStepStartedPayload;
1297
1329
  };
1298
1330
  type ActivityPayloadUnionTerminal = {
1299
1331
  activityType: 'terminal';
1300
- data: ExecutionTerminalPayload;
1332
+ data: AgentsExecutionTerminalPayload;
1301
1333
  };
1302
1334
  type ActivityPayloadUnionTransitionedNode = {
1303
1335
  activityType: 'transitioned_node';
1304
- data: ExecutionActivityTransitionedNodePayload;
1336
+ data: AgentsExecutionActivityTransitionedNodePayload;
1305
1337
  };
1306
1338
  type ActivityPayloadUnionUserMessageReceived = {
1307
1339
  activityType: 'user_message_received';
1308
- data: ExecutionActivityUserMessageReceivedPayload;
1340
+ data: AgentsExecutionActivityUserMessageReceivedPayload;
1309
1341
  };
1310
- type _Error = {
1311
- code: number;
1312
- message: string;
1313
- };
1314
- type ExecutionActivity = {
1315
- id: Uuid;
1316
- payload: ExecutionActivityPayloadUnion;
1317
- executionId: Uuid;
1342
+ type AgentsAgentBase = {
1343
+ id: CommonUuid;
1344
+ name: string;
1345
+ createdAt: string;
1346
+ organizationId?: CommonUuid;
1347
+ userId: CommonUuid;
1348
+ };
1349
+ type AgentsAgentSortField = 'name' | 'created_at';
1350
+ type AgentsExecutionActivity = {
1351
+ id: CommonUuid;
1352
+ payload: AgentsExecutionActivityPayloadUnion;
1353
+ executionId: CommonUuid;
1318
1354
  timestamp: string;
1319
1355
  };
1320
- type ExecutionActivityActionCompletedPayload = {
1356
+ type AgentsExecutionActivityActionCompletedPayload = {
1321
1357
  message: string;
1322
1358
  };
1323
- type ExecutionActivityActionFailedPayload = {
1359
+ type AgentsExecutionActivityActionFailedPayload = {
1324
1360
  message: string;
1325
1361
  };
1326
- type ExecutionActivityActionStartedPayload = {
1362
+ type AgentsExecutionActivityActionStartedPayload = {
1327
1363
  message: string;
1328
1364
  };
1329
- type ExecutionActivityGenericPayload = {
1365
+ type AgentsExecutionActivityFileAddedPayload = {
1366
+ fileId: CommonUuid;
1367
+ fileName: string;
1368
+ mimeType: string;
1369
+ fileSize: number;
1370
+ source: 'upload' | 'download';
1371
+ presignedUrl: string;
1372
+ };
1373
+ type AgentsExecutionActivityGenericPayload = {
1330
1374
  message: string;
1331
1375
  };
1332
- type ExecutionActivityPayloadUnion = ({
1376
+ type AgentsExecutionActivityGraphUpdatedPayload = {
1377
+ graphUpdate: Array<AgentsExecutionGraphUpdate>;
1378
+ };
1379
+ type AgentsExecutionActivityPayloadUnion = ({
1333
1380
  activityType: 'terminal';
1334
1381
  } & ActivityPayloadUnionTerminal) | ({
1335
1382
  activityType: 'generic';
@@ -1349,60 +1396,79 @@ type ExecutionActivityPayloadUnion = ({
1349
1396
  activityType: 'action_failed';
1350
1397
  } & ActivityPayloadUnionActionFailed) | ({
1351
1398
  activityType: 'user_message_received';
1352
- } & ActivityPayloadUnionUserMessageReceived);
1353
- type ExecutionActivityStatusChangedPayload = {
1354
- status: ExecutionStatus;
1355
- completedPayload?: ExecutionCompletedPayload;
1356
- failedPayload?: ExecutionFailedPayload;
1357
- pausedPayload?: ExecutionPausedPayload;
1358
- awaitingConfirmationPayload?: ExecutionAwaitingConfirmationPayload;
1359
- cancelledPayload?: ExecutionCancelledPayload;
1360
- };
1361
- type ExecutionActivityStepCompletedPayload = {
1399
+ } & ActivityPayloadUnionUserMessageReceived) | ({
1400
+ activityType: 'file_added';
1401
+ } & ActivityPayloadUnionFileAdded) | ({
1402
+ activityType: 'graph_updated';
1403
+ } & ActivityPayloadUnionGraphUpdated);
1404
+ type AgentsExecutionActivityStatusChangedPayload = {
1405
+ status: AgentsExecutionStatus;
1406
+ completedPayload?: AgentsExecutionCompletedPayload;
1407
+ failedPayload?: AgentsExecutionFailedPayload;
1408
+ pausedPayload?: AgentsExecutionPausedPayload;
1409
+ awaitingConfirmationPayload?: AgentsExecutionAwaitingConfirmationPayload;
1410
+ cancelledPayload?: AgentsExecutionCancelledPayload;
1411
+ };
1412
+ type AgentsExecutionActivityStepCompletedPayload = {
1362
1413
  stepNumber: number;
1363
1414
  };
1364
- type ExecutionActivityStepStartedPayload = {
1415
+ type AgentsExecutionActivityStepStartedPayload = {
1365
1416
  stepNumber: number;
1366
1417
  };
1367
- type ExecutionActivityTransitionedNodePayload = {
1368
- newNodeUUID: Uuid;
1418
+ type AgentsExecutionActivityTransitionedNodePayload = {
1419
+ newNodeUUID: CommonUuid;
1369
1420
  newNodeName: string;
1370
1421
  };
1371
- type ExecutionActivityUserMessageReceivedPayload = {
1422
+ type AgentsExecutionActivityUserMessageReceivedPayload = {
1372
1423
  message: string;
1373
- userUUID: Uuid;
1424
+ userUUID: CommonUuid;
1374
1425
  };
1375
- type ExecutionAwaitingConfirmationPayload = {
1426
+ type AgentsExecutionAwaitingConfirmationPayload = {
1376
1427
  reason: string;
1377
1428
  };
1378
- type ExecutionCancelReason = 'timeout' | 'max_steps' | 'user_requested';
1379
- type ExecutionCancelledPayload = {
1380
- reason: ExecutionCancelReason;
1429
+ type AgentsExecutionCancelReason = 'timeout' | 'max_steps' | 'user_requested';
1430
+ type AgentsExecutionCancelledPayload = {
1431
+ reason: AgentsExecutionCancelReason;
1381
1432
  };
1382
- type ExecutionCompletedPayload = {
1433
+ type AgentsExecutionCompletedPayload = {
1383
1434
  outcome: 'success' | 'failure';
1384
1435
  reasoning: string;
1385
1436
  final_answer?: string;
1386
1437
  result: unknown;
1387
1438
  };
1388
- type ExecutionFailedPayload = {
1439
+ type AgentsExecutionFailedPayload = {
1389
1440
  reason: string;
1390
1441
  };
1391
- type ExecutionPausedPayload = {
1442
+ type AgentsExecutionGraphUpdate = {
1443
+ updateType: AgentsExecutionUpdateType;
1444
+ nodeDetails?: AgentsExecutionNodeDetails;
1445
+ transitionDetails?: AgentsExecutionTransitionDetails;
1446
+ };
1447
+ type AgentsExecutionNodeDetails = {
1448
+ nodeID: CommonUuid;
1449
+ nodeName: string;
1450
+ nodeType: string;
1451
+ };
1452
+ type AgentsExecutionPausedPayload = {
1392
1453
  reason: string;
1393
1454
  };
1394
- type ExecutionStatus = 'starting' | 'running' | 'paused' | 'awaiting_confirmation' | 'completed' | 'cancelled' | 'failed' | 'paused_by_agent';
1395
- type ExecutionTerminalPayload = {
1455
+ type AgentsExecutionStatus = 'starting' | 'running' | 'paused' | 'awaiting_confirmation' | 'completed' | 'cancelled' | 'failed' | 'paused_by_agent';
1456
+ type AgentsExecutionTerminalPayload = {
1396
1457
  reason: 'unsubscribe' | 'complete' | 'error';
1397
1458
  message?: string;
1398
1459
  };
1399
- type ExecutionUserMessagesAddTextBody = {
1460
+ type AgentsExecutionTransitionDetails = {
1461
+ transitionID: CommonUuid;
1462
+ transitionType: string;
1463
+ };
1464
+ type AgentsExecutionUpdateType = 'add' | 'edit' | 'delete';
1465
+ type AgentsExecutionUserMessagesAddTextBody = {
1400
1466
  message: string;
1401
1467
  };
1402
- type File$1 = {
1403
- id: Uuid;
1404
- executionId: Uuid;
1405
- agentId: Uuid;
1468
+ type AgentsFilesFile = {
1469
+ id: CommonUuid;
1470
+ executionId: CommonUuid;
1471
+ agentId: CommonUuid;
1406
1472
  filePath: string;
1407
1473
  fileName: string;
1408
1474
  fileExt: string;
@@ -1412,16 +1478,68 @@ type File$1 = {
1412
1478
  createdAt: string;
1413
1479
  signedUrl: string;
1414
1480
  };
1415
- type FilePart = Blob | File$1;
1416
- type Versions = 'frontend' | 'v2';
1417
- type Uuid = string;
1418
- type ActivitiesGetData = {
1481
+ type AgentsFilesFilePart = Blob | File;
1482
+ type CommonBadRequestErrorBody = {
1483
+ code: 400;
1484
+ message: string;
1485
+ };
1486
+ type CommonError = {
1487
+ code: number;
1488
+ message: string;
1489
+ };
1490
+ type CommonForbiddenErrorBody = {
1491
+ code: 403;
1492
+ message: string;
1493
+ };
1494
+ type CommonNotFoundErrorBody = {
1495
+ code: 404;
1496
+ message: string;
1497
+ };
1498
+ type CommonSortDirection = 'asc' | 'desc';
1499
+ type CommonUuid = string;
1500
+ type Version = 'v1';
1501
+ type AgentsAgentSearch = string;
1502
+ type CommonPaginationPage = number;
1503
+ type CommonPaginationPageSize = number;
1504
+ type AgentListData = {
1505
+ body?: never;
1506
+ path?: never;
1507
+ query: {
1508
+ organizationId?: CommonUuid;
1509
+ pageSize: number;
1510
+ page: number;
1511
+ searchName?: string;
1512
+ sort_field?: AgentsAgentSortField;
1513
+ sort_direction?: CommonSortDirection;
1514
+ };
1515
+ url: '/agents';
1516
+ };
1517
+ type AgentListErrors = {
1518
+ /**
1519
+ * An unexpected error response.
1520
+ */
1521
+ default: CommonError;
1522
+ };
1523
+ type AgentListError = AgentListErrors[keyof AgentListErrors];
1524
+ type AgentListResponses = {
1525
+ /**
1526
+ * The request has succeeded.
1527
+ */
1528
+ 200: {
1529
+ items: Array<AgentsAgentBase>;
1530
+ page: number;
1531
+ pageSize: number;
1532
+ total: number;
1533
+ };
1534
+ };
1535
+ type AgentListResponse = AgentListResponses[keyof AgentListResponses];
1536
+ type ExecutionActivitiesGetData = {
1419
1537
  body?: never;
1420
1538
  path: {
1421
1539
  /**
1422
1540
  * The unique identifier of the execution
1423
1541
  */
1424
- executionId: Uuid;
1542
+ executionId: CommonUuid;
1425
1543
  };
1426
1544
  query?: {
1427
1545
  /**
@@ -1435,161 +1553,201 @@ type ActivitiesGetData = {
1435
1553
  };
1436
1554
  url: '/executions/{executionId}/activities';
1437
1555
  };
1438
- type ActivitiesGetErrors = {
1556
+ type ExecutionActivitiesGetErrors = {
1439
1557
  /**
1440
- * An unexpected error response.
1558
+ * The server could not understand the request due to invalid syntax.
1559
+ */
1560
+ 400: CommonBadRequestErrorBody;
1561
+ /**
1562
+ * Access is forbidden.
1441
1563
  */
1442
- default: _Error;
1564
+ 403: CommonForbiddenErrorBody;
1565
+ /**
1566
+ * The server cannot find the requested resource.
1567
+ */
1568
+ 404: CommonNotFoundErrorBody;
1443
1569
  };
1444
- type ActivitiesGetError = ActivitiesGetErrors[keyof ActivitiesGetErrors];
1445
- type ActivitiesGetResponses = {
1570
+ type ExecutionActivitiesGetError = ExecutionActivitiesGetErrors[keyof ExecutionActivitiesGetErrors];
1571
+ type ExecutionActivitiesGetResponses = {
1446
1572
  /**
1447
1573
  * The request has succeeded.
1448
1574
  */
1449
- 200: Array<ExecutionActivity>;
1575
+ 200: Array<AgentsExecutionActivity>;
1450
1576
  };
1451
- type ActivitiesGetResponse = ActivitiesGetResponses[keyof ActivitiesGetResponses];
1452
- type ContextFilesGetData = {
1577
+ type ExecutionActivitiesGetResponse = ExecutionActivitiesGetResponses[keyof ExecutionActivitiesGetResponses];
1578
+ type ExecutionContextFilesGetData = {
1453
1579
  body?: never;
1454
1580
  path: {
1455
- executionId: Uuid;
1581
+ executionId: CommonUuid;
1456
1582
  };
1457
1583
  query?: never;
1458
1584
  url: '/executions/{executionId}/context-files';
1459
1585
  };
1460
- type ContextFilesGetErrors = {
1586
+ type ExecutionContextFilesGetErrors = {
1461
1587
  /**
1462
1588
  * The server cannot find the requested resource.
1463
1589
  */
1464
1590
  404: 'Execution files not found.';
1465
1591
  };
1466
- type ContextFilesGetError = ContextFilesGetErrors[keyof ContextFilesGetErrors];
1467
- type ContextFilesGetResponses = {
1592
+ type ExecutionContextFilesGetError = ExecutionContextFilesGetErrors[keyof ExecutionContextFilesGetErrors];
1593
+ type ExecutionContextFilesGetResponses = {
1468
1594
  /**
1469
1595
  * The request has succeeded.
1470
1596
  */
1471
- 200: Array<File$1>;
1597
+ 200: Array<AgentsFilesFile>;
1472
1598
  };
1473
- type ContextFilesGetResponse = ContextFilesGetResponses[keyof ContextFilesGetResponses];
1474
- type UserMessagesAddData = {
1599
+ type ExecutionContextFilesGetResponse = ExecutionContextFilesGetResponses[keyof ExecutionContextFilesGetResponses];
1600
+ type ExecutionContextFilesUploadData = {
1601
+ body: {
1602
+ files: Array<AgentsFilesFilePart>;
1603
+ };
1604
+ path: {
1605
+ executionId: CommonUuid;
1606
+ };
1607
+ query?: never;
1608
+ url: '/executions/{executionId}/context-files';
1609
+ };
1610
+ type ExecutionContextFilesUploadErrors = {
1611
+ /**
1612
+ * The server could not understand the request due to invalid syntax.
1613
+ */
1614
+ 400: 'Invalid file upload request.';
1615
+ /**
1616
+ * The server cannot find the requested resource.
1617
+ */
1618
+ 404: 'Execution not found.';
1619
+ };
1620
+ type ExecutionContextFilesUploadError = ExecutionContextFilesUploadErrors[keyof ExecutionContextFilesUploadErrors];
1621
+ type ExecutionContextFilesUploadResponses = {
1622
+ /**
1623
+ * The request has succeeded.
1624
+ */
1625
+ 200: 'Files uploaded.';
1626
+ };
1627
+ type ExecutionContextFilesUploadResponse = ExecutionContextFilesUploadResponses[keyof ExecutionContextFilesUploadResponses];
1628
+ type ExecutionUserMessagesAddData = {
1475
1629
  /**
1476
1630
  * The message content to send
1477
1631
  */
1478
- body: ExecutionUserMessagesAddTextBody;
1632
+ body: AgentsExecutionUserMessagesAddTextBody;
1479
1633
  path: {
1480
1634
  /**
1481
1635
  * The unique identifier of the execution
1482
1636
  */
1483
- executionId: Uuid;
1637
+ executionId: CommonUuid;
1484
1638
  };
1485
1639
  query?: never;
1486
1640
  url: '/executions/{executionId}/user-messages';
1487
1641
  };
1488
- type UserMessagesAddErrors = {
1642
+ type ExecutionUserMessagesAddErrors = {
1489
1643
  /**
1490
- * An unexpected error response.
1644
+ * The server could not understand the request due to invalid syntax.
1491
1645
  */
1492
- default: _Error;
1646
+ 400: CommonBadRequestErrorBody;
1647
+ /**
1648
+ * Access is forbidden.
1649
+ */
1650
+ 403: CommonForbiddenErrorBody;
1651
+ /**
1652
+ * The server cannot find the requested resource.
1653
+ */
1654
+ 404: CommonNotFoundErrorBody;
1493
1655
  };
1494
- type UserMessagesAddError = UserMessagesAddErrors[keyof UserMessagesAddErrors];
1495
- type UserMessagesAddResponses = {
1656
+ type ExecutionUserMessagesAddError = ExecutionUserMessagesAddErrors[keyof ExecutionUserMessagesAddErrors];
1657
+ type ExecutionUserMessagesAddResponses = {
1496
1658
  /**
1497
1659
  * The request has succeeded and a new resource has been created as a result.
1498
1660
  */
1499
1661
  201: 'User message added.';
1500
1662
  };
1501
- type UserMessagesAddResponse = UserMessagesAddResponses[keyof UserMessagesAddResponses];
1663
+ type ExecutionUserMessagesAddResponse = ExecutionUserMessagesAddResponses[keyof ExecutionUserMessagesAddResponses];
1502
1664
  type ClientOptions = {
1503
- baseUrl: 'https://odyssey.asteroid.ai/agents/{version}' | (string & {});
1665
+ baseUrl: 'https://odyssey.asteroid.ai/agents/v2' | (string & {});
1504
1666
  };
1505
1667
 
1506
- type types_gen_ActivitiesGetData = ActivitiesGetData;
1507
- type types_gen_ActivitiesGetError = ActivitiesGetError;
1508
- type types_gen_ActivitiesGetErrors = ActivitiesGetErrors;
1509
- type types_gen_ActivitiesGetResponse = ActivitiesGetResponse;
1510
- type types_gen_ActivitiesGetResponses = ActivitiesGetResponses;
1511
1668
  type types_gen_ActivityPayloadUnionActionCompleted = ActivityPayloadUnionActionCompleted;
1512
1669
  type types_gen_ActivityPayloadUnionActionFailed = ActivityPayloadUnionActionFailed;
1513
1670
  type types_gen_ActivityPayloadUnionActionStarted = ActivityPayloadUnionActionStarted;
1671
+ type types_gen_ActivityPayloadUnionFileAdded = ActivityPayloadUnionFileAdded;
1514
1672
  type types_gen_ActivityPayloadUnionGeneric = ActivityPayloadUnionGeneric;
1673
+ type types_gen_ActivityPayloadUnionGraphUpdated = ActivityPayloadUnionGraphUpdated;
1515
1674
  type types_gen_ActivityPayloadUnionStatusChanged = ActivityPayloadUnionStatusChanged;
1516
1675
  type types_gen_ActivityPayloadUnionStepCompleted = ActivityPayloadUnionStepCompleted;
1517
1676
  type types_gen_ActivityPayloadUnionStepStarted = ActivityPayloadUnionStepStarted;
1518
1677
  type types_gen_ActivityPayloadUnionTerminal = ActivityPayloadUnionTerminal;
1519
1678
  type types_gen_ActivityPayloadUnionTransitionedNode = ActivityPayloadUnionTransitionedNode;
1520
1679
  type types_gen_ActivityPayloadUnionUserMessageReceived = ActivityPayloadUnionUserMessageReceived;
1680
+ type types_gen_AgentListData = AgentListData;
1681
+ type types_gen_AgentListError = AgentListError;
1682
+ type types_gen_AgentListErrors = AgentListErrors;
1683
+ type types_gen_AgentListResponse = AgentListResponse;
1684
+ type types_gen_AgentListResponses = AgentListResponses;
1685
+ type types_gen_AgentsAgentBase = AgentsAgentBase;
1686
+ type types_gen_AgentsAgentSearch = AgentsAgentSearch;
1687
+ type types_gen_AgentsAgentSortField = AgentsAgentSortField;
1688
+ type types_gen_AgentsExecutionActivity = AgentsExecutionActivity;
1689
+ type types_gen_AgentsExecutionActivityActionCompletedPayload = AgentsExecutionActivityActionCompletedPayload;
1690
+ type types_gen_AgentsExecutionActivityActionFailedPayload = AgentsExecutionActivityActionFailedPayload;
1691
+ type types_gen_AgentsExecutionActivityActionStartedPayload = AgentsExecutionActivityActionStartedPayload;
1692
+ type types_gen_AgentsExecutionActivityFileAddedPayload = AgentsExecutionActivityFileAddedPayload;
1693
+ type types_gen_AgentsExecutionActivityGenericPayload = AgentsExecutionActivityGenericPayload;
1694
+ type types_gen_AgentsExecutionActivityGraphUpdatedPayload = AgentsExecutionActivityGraphUpdatedPayload;
1695
+ type types_gen_AgentsExecutionActivityPayloadUnion = AgentsExecutionActivityPayloadUnion;
1696
+ type types_gen_AgentsExecutionActivityStatusChangedPayload = AgentsExecutionActivityStatusChangedPayload;
1697
+ type types_gen_AgentsExecutionActivityStepCompletedPayload = AgentsExecutionActivityStepCompletedPayload;
1698
+ type types_gen_AgentsExecutionActivityStepStartedPayload = AgentsExecutionActivityStepStartedPayload;
1699
+ type types_gen_AgentsExecutionActivityTransitionedNodePayload = AgentsExecutionActivityTransitionedNodePayload;
1700
+ type types_gen_AgentsExecutionActivityUserMessageReceivedPayload = AgentsExecutionActivityUserMessageReceivedPayload;
1701
+ type types_gen_AgentsExecutionAwaitingConfirmationPayload = AgentsExecutionAwaitingConfirmationPayload;
1702
+ type types_gen_AgentsExecutionCancelReason = AgentsExecutionCancelReason;
1703
+ type types_gen_AgentsExecutionCancelledPayload = AgentsExecutionCancelledPayload;
1704
+ type types_gen_AgentsExecutionCompletedPayload = AgentsExecutionCompletedPayload;
1705
+ type types_gen_AgentsExecutionFailedPayload = AgentsExecutionFailedPayload;
1706
+ type types_gen_AgentsExecutionGraphUpdate = AgentsExecutionGraphUpdate;
1707
+ type types_gen_AgentsExecutionNodeDetails = AgentsExecutionNodeDetails;
1708
+ type types_gen_AgentsExecutionPausedPayload = AgentsExecutionPausedPayload;
1709
+ type types_gen_AgentsExecutionStatus = AgentsExecutionStatus;
1710
+ type types_gen_AgentsExecutionTerminalPayload = AgentsExecutionTerminalPayload;
1711
+ type types_gen_AgentsExecutionTransitionDetails = AgentsExecutionTransitionDetails;
1712
+ type types_gen_AgentsExecutionUpdateType = AgentsExecutionUpdateType;
1713
+ type types_gen_AgentsExecutionUserMessagesAddTextBody = AgentsExecutionUserMessagesAddTextBody;
1714
+ type types_gen_AgentsFilesFile = AgentsFilesFile;
1715
+ type types_gen_AgentsFilesFilePart = AgentsFilesFilePart;
1521
1716
  type types_gen_ClientOptions = ClientOptions;
1522
- type types_gen_ContextFilesGetData = ContextFilesGetData;
1523
- type types_gen_ContextFilesGetError = ContextFilesGetError;
1524
- type types_gen_ContextFilesGetErrors = ContextFilesGetErrors;
1525
- type types_gen_ContextFilesGetResponse = ContextFilesGetResponse;
1526
- type types_gen_ContextFilesGetResponses = ContextFilesGetResponses;
1527
- type types_gen_ExecutionActivity = ExecutionActivity;
1528
- type types_gen_ExecutionActivityActionCompletedPayload = ExecutionActivityActionCompletedPayload;
1529
- type types_gen_ExecutionActivityActionFailedPayload = ExecutionActivityActionFailedPayload;
1530
- type types_gen_ExecutionActivityActionStartedPayload = ExecutionActivityActionStartedPayload;
1531
- type types_gen_ExecutionActivityGenericPayload = ExecutionActivityGenericPayload;
1532
- type types_gen_ExecutionActivityPayloadUnion = ExecutionActivityPayloadUnion;
1533
- type types_gen_ExecutionActivityStatusChangedPayload = ExecutionActivityStatusChangedPayload;
1534
- type types_gen_ExecutionActivityStepCompletedPayload = ExecutionActivityStepCompletedPayload;
1535
- type types_gen_ExecutionActivityStepStartedPayload = ExecutionActivityStepStartedPayload;
1536
- type types_gen_ExecutionActivityTransitionedNodePayload = ExecutionActivityTransitionedNodePayload;
1537
- type types_gen_ExecutionActivityUserMessageReceivedPayload = ExecutionActivityUserMessageReceivedPayload;
1538
- type types_gen_ExecutionAwaitingConfirmationPayload = ExecutionAwaitingConfirmationPayload;
1539
- type types_gen_ExecutionCancelReason = ExecutionCancelReason;
1540
- type types_gen_ExecutionCancelledPayload = ExecutionCancelledPayload;
1541
- type types_gen_ExecutionCompletedPayload = ExecutionCompletedPayload;
1542
- type types_gen_ExecutionFailedPayload = ExecutionFailedPayload;
1543
- type types_gen_ExecutionPausedPayload = ExecutionPausedPayload;
1544
- type types_gen_ExecutionStatus = ExecutionStatus;
1545
- type types_gen_ExecutionTerminalPayload = ExecutionTerminalPayload;
1546
- type types_gen_ExecutionUserMessagesAddTextBody = ExecutionUserMessagesAddTextBody;
1547
- type types_gen_FilePart = FilePart;
1548
- type types_gen_UserMessagesAddData = UserMessagesAddData;
1549
- type types_gen_UserMessagesAddError = UserMessagesAddError;
1550
- type types_gen_UserMessagesAddErrors = UserMessagesAddErrors;
1551
- type types_gen_UserMessagesAddResponse = UserMessagesAddResponse;
1552
- type types_gen_UserMessagesAddResponses = UserMessagesAddResponses;
1553
- type types_gen_Uuid = Uuid;
1554
- type types_gen_Versions = Versions;
1555
- type types_gen__Error = _Error;
1717
+ type types_gen_CommonBadRequestErrorBody = CommonBadRequestErrorBody;
1718
+ type types_gen_CommonError = CommonError;
1719
+ type types_gen_CommonForbiddenErrorBody = CommonForbiddenErrorBody;
1720
+ type types_gen_CommonNotFoundErrorBody = CommonNotFoundErrorBody;
1721
+ type types_gen_CommonPaginationPage = CommonPaginationPage;
1722
+ type types_gen_CommonPaginationPageSize = CommonPaginationPageSize;
1723
+ type types_gen_CommonSortDirection = CommonSortDirection;
1724
+ type types_gen_CommonUuid = CommonUuid;
1725
+ type types_gen_ExecutionActivitiesGetData = ExecutionActivitiesGetData;
1726
+ type types_gen_ExecutionActivitiesGetError = ExecutionActivitiesGetError;
1727
+ type types_gen_ExecutionActivitiesGetErrors = ExecutionActivitiesGetErrors;
1728
+ type types_gen_ExecutionActivitiesGetResponse = ExecutionActivitiesGetResponse;
1729
+ type types_gen_ExecutionActivitiesGetResponses = ExecutionActivitiesGetResponses;
1730
+ type types_gen_ExecutionContextFilesGetData = ExecutionContextFilesGetData;
1731
+ type types_gen_ExecutionContextFilesGetError = ExecutionContextFilesGetError;
1732
+ type types_gen_ExecutionContextFilesGetErrors = ExecutionContextFilesGetErrors;
1733
+ type types_gen_ExecutionContextFilesGetResponse = ExecutionContextFilesGetResponse;
1734
+ type types_gen_ExecutionContextFilesGetResponses = ExecutionContextFilesGetResponses;
1735
+ type types_gen_ExecutionContextFilesUploadData = ExecutionContextFilesUploadData;
1736
+ type types_gen_ExecutionContextFilesUploadError = ExecutionContextFilesUploadError;
1737
+ type types_gen_ExecutionContextFilesUploadErrors = ExecutionContextFilesUploadErrors;
1738
+ type types_gen_ExecutionContextFilesUploadResponse = ExecutionContextFilesUploadResponse;
1739
+ type types_gen_ExecutionContextFilesUploadResponses = ExecutionContextFilesUploadResponses;
1740
+ type types_gen_ExecutionUserMessagesAddData = ExecutionUserMessagesAddData;
1741
+ type types_gen_ExecutionUserMessagesAddError = ExecutionUserMessagesAddError;
1742
+ type types_gen_ExecutionUserMessagesAddErrors = ExecutionUserMessagesAddErrors;
1743
+ type types_gen_ExecutionUserMessagesAddResponse = ExecutionUserMessagesAddResponse;
1744
+ type types_gen_ExecutionUserMessagesAddResponses = ExecutionUserMessagesAddResponses;
1745
+ type types_gen_Version = Version;
1556
1746
  declare namespace types_gen {
1557
- export type { types_gen_ActivitiesGetData as ActivitiesGetData, types_gen_ActivitiesGetError as ActivitiesGetError, types_gen_ActivitiesGetErrors as ActivitiesGetErrors, types_gen_ActivitiesGetResponse as ActivitiesGetResponse, types_gen_ActivitiesGetResponses as ActivitiesGetResponses, types_gen_ActivityPayloadUnionActionCompleted as ActivityPayloadUnionActionCompleted, types_gen_ActivityPayloadUnionActionFailed as ActivityPayloadUnionActionFailed, types_gen_ActivityPayloadUnionActionStarted as ActivityPayloadUnionActionStarted, types_gen_ActivityPayloadUnionGeneric as ActivityPayloadUnionGeneric, 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_ClientOptions as ClientOptions, types_gen_ContextFilesGetData as ContextFilesGetData, types_gen_ContextFilesGetError as ContextFilesGetError, types_gen_ContextFilesGetErrors as ContextFilesGetErrors, types_gen_ContextFilesGetResponse as ContextFilesGetResponse, types_gen_ContextFilesGetResponses as ContextFilesGetResponses, types_gen_ExecutionActivity as ExecutionActivity, types_gen_ExecutionActivityActionCompletedPayload as ExecutionActivityActionCompletedPayload, types_gen_ExecutionActivityActionFailedPayload as ExecutionActivityActionFailedPayload, types_gen_ExecutionActivityActionStartedPayload as ExecutionActivityActionStartedPayload, types_gen_ExecutionActivityGenericPayload as ExecutionActivityGenericPayload, types_gen_ExecutionActivityPayloadUnion as ExecutionActivityPayloadUnion, types_gen_ExecutionActivityStatusChangedPayload as ExecutionActivityStatusChangedPayload, types_gen_ExecutionActivityStepCompletedPayload as ExecutionActivityStepCompletedPayload, types_gen_ExecutionActivityStepStartedPayload as ExecutionActivityStepStartedPayload, types_gen_ExecutionActivityTransitionedNodePayload as ExecutionActivityTransitionedNodePayload, types_gen_ExecutionActivityUserMessageReceivedPayload as ExecutionActivityUserMessageReceivedPayload, types_gen_ExecutionAwaitingConfirmationPayload as ExecutionAwaitingConfirmationPayload, types_gen_ExecutionCancelReason as ExecutionCancelReason, types_gen_ExecutionCancelledPayload as ExecutionCancelledPayload, types_gen_ExecutionCompletedPayload as ExecutionCompletedPayload, types_gen_ExecutionFailedPayload as ExecutionFailedPayload, types_gen_ExecutionPausedPayload as ExecutionPausedPayload, types_gen_ExecutionStatus as ExecutionStatus, types_gen_ExecutionTerminalPayload as ExecutionTerminalPayload, types_gen_ExecutionUserMessagesAddTextBody as ExecutionUserMessagesAddTextBody, File$1 as File, types_gen_FilePart as FilePart, types_gen_UserMessagesAddData as UserMessagesAddData, types_gen_UserMessagesAddError as UserMessagesAddError, types_gen_UserMessagesAddErrors as UserMessagesAddErrors, types_gen_UserMessagesAddResponse as UserMessagesAddResponse, types_gen_UserMessagesAddResponses as UserMessagesAddResponses, types_gen_Uuid as Uuid, types_gen_Versions as Versions, types_gen__Error as _Error };
1558
- }
1559
-
1560
- type Options$1<TData extends TDataShape$1 = TDataShape$1, ThrowOnError extends boolean = boolean> = Options$3<TData, ThrowOnError> & {
1561
- /**
1562
- * You can provide a client instance returned by `createClient()` instead of
1563
- * individual options. This might be also useful if you want to implement a
1564
- * custom client.
1565
- */
1566
- client?: Client$2;
1567
- /**
1568
- * You can pass arbitrary values through the `meta` object. This can be
1569
- * used to access values that aren't defined as part of the SDK function.
1570
- */
1571
- meta?: Record<string, unknown>;
1572
- };
1573
- /**
1574
- * Retrieve execution activities
1575
- * Get activities for an execution
1576
- */
1577
- declare const activitiesGet: <ThrowOnError extends boolean = false>(options: Options$1<ActivitiesGetData, ThrowOnError>) => RequestResult$1<ActivitiesGetResponses, ActivitiesGetErrors, ThrowOnError, "fields">;
1578
- declare const contextFilesGet: <ThrowOnError extends boolean = false>(options: Options$1<ContextFilesGetData, ThrowOnError>) => RequestResult$1<ContextFilesGetResponses, ContextFilesGetErrors, ThrowOnError, "fields">;
1579
- /**
1580
- * Send user message to execution
1581
- * Add a user message to an execution
1582
- */
1583
- declare const userMessagesAdd: <ThrowOnError extends boolean = false>(options: Options$1<UserMessagesAddData, ThrowOnError>) => RequestResult$1<UserMessagesAddResponses, UserMessagesAddErrors, ThrowOnError, "fields">;
1584
-
1585
- declare const sdk_gen$1_activitiesGet: typeof activitiesGet;
1586
- declare const sdk_gen$1_contextFilesGet: typeof contextFilesGet;
1587
- declare const sdk_gen$1_userMessagesAdd: typeof userMessagesAdd;
1588
- declare namespace sdk_gen$1 {
1589
- export { type Options$1 as Options, sdk_gen$1_activitiesGet as activitiesGet, sdk_gen$1_contextFilesGet as contextFilesGet, sdk_gen$1_userMessagesAdd as userMessagesAdd };
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 };
1590
1748
  }
1591
1749
 
1592
- type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$2<TData, ThrowOnError> & {
1750
+ type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$2<TData, ThrowOnError> & {
1593
1751
  /**
1594
1752
  * You can provide a client instance returned by `createClient()` instead of
1595
1753
  * individual options. This might be also useful if you want to implement a
@@ -1605,75 +1763,111 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
1605
1763
  /**
1606
1764
  * Get the OpenAPI schema
1607
1765
  */
1608
- declare const getOpenApi: <ThrowOnError extends boolean = false>(options?: Options<GetOpenApiData, ThrowOnError>) => RequestResult<GetOpenApiResponses, unknown, ThrowOnError, "fields">;
1766
+ declare const getOpenApi: <ThrowOnError extends boolean = false>(options?: Options$1<GetOpenApiData, ThrowOnError>) => RequestResult<GetOpenApiResponses, unknown, ThrowOnError, "fields">;
1609
1767
  /**
1610
1768
  * Upload files to an execution
1611
1769
  */
1612
- declare const uploadExecutionFiles$1: <ThrowOnError extends boolean = false>(options: Options<UploadExecutionFilesData, ThrowOnError>) => RequestResult<UploadExecutionFilesResponses, UploadExecutionFilesErrors, ThrowOnError, "fields">;
1770
+ declare const uploadExecutionFiles$1: <ThrowOnError extends boolean = false>(options: Options$1<UploadExecutionFilesData, ThrowOnError>) => RequestResult<UploadExecutionFilesResponses, UploadExecutionFilesErrors, ThrowOnError, "fields">;
1613
1771
  /**
1614
1772
  * Check the health of the API
1615
1773
  */
1616
- declare const healthCheck: <ThrowOnError extends boolean = false>(options?: Options<HealthCheckData, ThrowOnError>) => RequestResult<HealthCheckResponses, HealthCheckErrors, ThrowOnError, "fields">;
1774
+ declare const healthCheck: <ThrowOnError extends boolean = false>(options?: Options$1<HealthCheckData, ThrowOnError>) => RequestResult<HealthCheckResponses, HealthCheckErrors, ThrowOnError, "fields">;
1617
1775
  /**
1618
1776
  * Execute an agent
1619
1777
  * Executes an agent with the provided parameters
1620
1778
  * @deprecated
1621
1779
  */
1622
- declare const executeAgent$1: <ThrowOnError extends boolean = false>(options: Options<ExecuteAgentData, ThrowOnError>) => RequestResult<ExecuteAgentResponses, ExecuteAgentErrors, ThrowOnError, "fields">;
1780
+ declare const executeAgent$1: <ThrowOnError extends boolean = false>(options: Options$1<ExecuteAgentData, ThrowOnError>) => RequestResult<ExecuteAgentResponses, ExecuteAgentErrors, ThrowOnError, "fields">;
1623
1781
  /**
1624
1782
  * Execute an agent with structured parameters
1625
1783
  * Executes an agent with structured parameters including optional agent profile configuration. This is the recommended method for new integrations.
1626
1784
  */
1627
- declare const executeAgentStructured: <ThrowOnError extends boolean = false>(options: Options<ExecuteAgentStructuredData, ThrowOnError>) => RequestResult<ExecuteAgentStructuredResponses, ExecuteAgentStructuredErrors, ThrowOnError, "fields">;
1785
+ declare const executeAgentStructured: <ThrowOnError extends boolean = false>(options: Options$1<ExecuteAgentStructuredData, ThrowOnError>) => RequestResult<ExecuteAgentStructuredResponses, ExecuteAgentStructuredErrors, ThrowOnError, "fields">;
1628
1786
  /**
1629
1787
  * Get execution status
1630
1788
  */
1631
- declare const getExecutionStatus$1: <ThrowOnError extends boolean = false>(options: Options<GetExecutionStatusData, ThrowOnError>) => RequestResult<GetExecutionStatusResponses, GetExecutionStatusErrors, ThrowOnError, "fields">;
1789
+ declare const getExecutionStatus$1: <ThrowOnError extends boolean = false>(options: Options$1<GetExecutionStatusData, ThrowOnError>) => RequestResult<GetExecutionStatusResponses, GetExecutionStatusErrors, ThrowOnError, "fields">;
1632
1790
  /**
1633
1791
  * Get execution result
1634
1792
  */
1635
- declare const getExecutionResult$1: <ThrowOnError extends boolean = false>(options: Options<GetExecutionResultData, ThrowOnError>) => RequestResult<GetExecutionResultResponses, GetExecutionResultErrors, ThrowOnError, "fields">;
1793
+ declare const getExecutionResult$1: <ThrowOnError extends boolean = false>(options: Options$1<GetExecutionResultData, ThrowOnError>) => RequestResult<GetExecutionResultResponses, GetExecutionResultErrors, ThrowOnError, "fields">;
1636
1794
  /**
1637
1795
  * Get browser session recording
1638
1796
  * Retrieves the browser session recording URL for a completed execution
1639
1797
  */
1640
- declare const getBrowserSessionRecording$1: <ThrowOnError extends boolean = false>(options: Options<GetBrowserSessionRecordingData, ThrowOnError>) => RequestResult<GetBrowserSessionRecordingResponses, GetBrowserSessionRecordingErrors, ThrowOnError, "fields">;
1798
+ declare const getBrowserSessionRecording$1: <ThrowOnError extends boolean = false>(options: Options$1<GetBrowserSessionRecordingData, ThrowOnError>) => RequestResult<GetBrowserSessionRecordingResponses, GetBrowserSessionRecordingErrors, ThrowOnError, "fields">;
1641
1799
  /**
1642
1800
  * Get agent profiles
1643
1801
  * Returns all agent profiles for the organization. If organization_id is not provided, returns profiles for all user's organizations.
1644
1802
  */
1645
- declare const getAgentProfiles$1: <ThrowOnError extends boolean = false>(options?: Options<GetAgentProfilesData, ThrowOnError>) => RequestResult<GetAgentProfilesResponses, GetAgentProfilesErrors, ThrowOnError, "fields">;
1803
+ declare const getAgentProfiles$1: <ThrowOnError extends boolean = false>(options?: Options$1<GetAgentProfilesData, ThrowOnError>) => RequestResult<GetAgentProfilesResponses, GetAgentProfilesErrors, ThrowOnError, "fields">;
1646
1804
  /**
1647
1805
  * Create an agent profile
1648
1806
  * Creates a new agent profile for the organization
1649
1807
  */
1650
- declare const createAgentProfile$1: <ThrowOnError extends boolean = false>(options: Options<CreateAgentProfileData, ThrowOnError>) => RequestResult<CreateAgentProfileResponses, CreateAgentProfileErrors, ThrowOnError, "fields">;
1808
+ declare const createAgentProfile$1: <ThrowOnError extends boolean = false>(options: Options$1<CreateAgentProfileData, ThrowOnError>) => RequestResult<CreateAgentProfileResponses, CreateAgentProfileErrors, ThrowOnError, "fields">;
1651
1809
  /**
1652
1810
  * Delete an agent profile
1653
1811
  * Deletes the specified agent profile
1654
1812
  */
1655
- declare const deleteAgentProfile$1: <ThrowOnError extends boolean = false>(options: Options<DeleteAgentProfileData, ThrowOnError>) => RequestResult<DeleteAgentProfileResponses, DeleteAgentProfileErrors, ThrowOnError, "fields">;
1813
+ declare const deleteAgentProfile$1: <ThrowOnError extends boolean = false>(options: Options$1<DeleteAgentProfileData, ThrowOnError>) => RequestResult<DeleteAgentProfileResponses, DeleteAgentProfileErrors, ThrowOnError, "fields">;
1656
1814
  /**
1657
1815
  * Get an agent profile by ID
1658
1816
  * Returns the complete agent profile including credentials
1659
1817
  */
1660
- declare const getAgentProfile$1: <ThrowOnError extends boolean = false>(options: Options<GetAgentProfileData, ThrowOnError>) => RequestResult<GetAgentProfileResponses, GetAgentProfileErrors, ThrowOnError, "fields">;
1818
+ declare const getAgentProfile$1: <ThrowOnError extends boolean = false>(options: Options$1<GetAgentProfileData, ThrowOnError>) => RequestResult<GetAgentProfileResponses, GetAgentProfileErrors, ThrowOnError, "fields">;
1661
1819
  /**
1662
1820
  * Update an agent profile
1663
1821
  * Updates an agent profile including metadata and/or credentials
1664
1822
  */
1665
- declare const updateAgentProfile$1: <ThrowOnError extends boolean = false>(options: Options<UpdateAgentProfileData, ThrowOnError>) => RequestResult<UpdateAgentProfileResponses, UpdateAgentProfileErrors, ThrowOnError, "fields">;
1823
+ declare const updateAgentProfile$1: <ThrowOnError extends boolean = false>(options: Options$1<UpdateAgentProfileData, ThrowOnError>) => RequestResult<UpdateAgentProfileResponses, UpdateAgentProfileErrors, ThrowOnError, "fields">;
1666
1824
  /**
1667
1825
  * Get the public key for credentials
1668
1826
  */
1669
- declare const getCredentialsPublicKey$1: <ThrowOnError extends boolean = false>(options?: Options<GetCredentialsPublicKeyData, ThrowOnError>) => RequestResult<GetCredentialsPublicKeyResponses, GetCredentialsPublicKeyErrors, ThrowOnError, "fields">;
1827
+ declare const getCredentialsPublicKey$1: <ThrowOnError extends boolean = false>(options?: Options$1<GetCredentialsPublicKeyData, ThrowOnError>) => RequestResult<GetCredentialsPublicKeyResponses, GetCredentialsPublicKeyErrors, ThrowOnError, "fields">;
1828
+
1829
+ declare const sdk_gen$1_executeAgentStructured: typeof executeAgentStructured;
1830
+ declare const sdk_gen$1_getOpenApi: typeof getOpenApi;
1831
+ declare const sdk_gen$1_healthCheck: typeof healthCheck;
1832
+ 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 };
1834
+ }
1835
+
1836
+ type Options<TData extends TDataShape$1 = TDataShape$1, ThrowOnError extends boolean = boolean> = Options$3<TData, ThrowOnError> & {
1837
+ /**
1838
+ * You can provide a client instance returned by `createClient()` instead of
1839
+ * individual options. This might be also useful if you want to implement a
1840
+ * custom client.
1841
+ */
1842
+ client?: Client$2;
1843
+ /**
1844
+ * You can pass arbitrary values through the `meta` object. This can be
1845
+ * used to access values that aren't defined as part of the SDK function.
1846
+ */
1847
+ meta?: Record<string, unknown>;
1848
+ };
1849
+ declare const agentList: <ThrowOnError extends boolean = false>(options: Options<AgentListData, ThrowOnError>) => RequestResult$1<AgentListResponses, AgentListErrors, ThrowOnError, "fields">;
1850
+ /**
1851
+ * Retrieve execution activities
1852
+ * Get activities for an execution
1853
+ */
1854
+ declare const executionActivitiesGet: <ThrowOnError extends boolean = false>(options: Options<ExecutionActivitiesGetData, ThrowOnError>) => RequestResult$1<ExecutionActivitiesGetResponses, ExecutionActivitiesGetErrors, ThrowOnError, "fields">;
1855
+ declare const executionContextFilesGet: <ThrowOnError extends boolean = false>(options: Options<ExecutionContextFilesGetData, ThrowOnError>) => RequestResult$1<ExecutionContextFilesGetResponses, ExecutionContextFilesGetErrors, ThrowOnError, "fields">;
1856
+ declare const executionContextFilesUpload: <ThrowOnError extends boolean = false>(options: Options<ExecutionContextFilesUploadData, ThrowOnError>) => RequestResult$1<ExecutionContextFilesUploadResponses, ExecutionContextFilesUploadErrors, ThrowOnError, "fields">;
1857
+ /**
1858
+ * Send user message to execution
1859
+ * Add a user message to an execution
1860
+ */
1861
+ declare const executionUserMessagesAdd: <ThrowOnError extends boolean = false>(options: Options<ExecutionUserMessagesAddData, ThrowOnError>) => RequestResult$1<ExecutionUserMessagesAddResponses, ExecutionUserMessagesAddErrors, ThrowOnError, "fields">;
1670
1862
 
1671
- type sdk_gen_Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options<TData, ThrowOnError>;
1672
- declare const sdk_gen_executeAgentStructured: typeof executeAgentStructured;
1673
- declare const sdk_gen_getOpenApi: typeof getOpenApi;
1674
- declare const sdk_gen_healthCheck: typeof healthCheck;
1863
+ type sdk_gen_Options<TData extends TDataShape$1 = TDataShape$1, ThrowOnError extends boolean = boolean> = Options<TData, ThrowOnError>;
1864
+ declare const sdk_gen_agentList: typeof agentList;
1865
+ declare const sdk_gen_executionActivitiesGet: typeof executionActivitiesGet;
1866
+ declare const sdk_gen_executionContextFilesGet: typeof executionContextFilesGet;
1867
+ declare const sdk_gen_executionContextFilesUpload: typeof executionContextFilesUpload;
1868
+ declare const sdk_gen_executionUserMessagesAdd: typeof executionUserMessagesAdd;
1675
1869
  declare namespace sdk_gen {
1676
- export { type sdk_gen_Options as Options, createAgentProfile$1 as createAgentProfile, deleteAgentProfile$1 as deleteAgentProfile, executeAgent$1 as executeAgent, sdk_gen_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_getOpenApi as getOpenApi, sdk_gen_healthCheck as healthCheck, updateAgentProfile$1 as updateAgentProfile, uploadExecutionFiles$1 as uploadExecutionFiles };
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 };
1677
1871
  }
1678
1872
 
1679
1873
  /**
@@ -1863,7 +2057,6 @@ declare const updateAgentProfile: (client: AsteroidClient, profileId: string, pa
1863
2057
  declare const deleteAgentProfile: (client: AsteroidClient, profileId: string) => Promise<{
1864
2058
  message?: string;
1865
2059
  }>;
1866
- /** --- V2 --- */
1867
2060
  /**
1868
2061
  * Get the last N execution activities for a given execution ID, sorted by their timestamp in descending order.
1869
2062
  *
@@ -1876,7 +2069,7 @@ declare const deleteAgentProfile: (client: AsteroidClient, profileId: string) =>
1876
2069
  * const activities = await getLastNExecutionActivities(client, 'execution_123', 10);
1877
2070
  * console.log(activities);
1878
2071
  */
1879
- declare const getLastNExecutionActivities: (client: AsteroidClient, executionId: string, n: number) => Promise<ExecutionActivity[]>;
2072
+ declare const getLastNExecutionActivities: (client: AsteroidClient, executionId: string, n: number) => Promise<AgentsExecutionActivity[]>;
1880
2073
  /**
1881
2074
  * Add a message to an execution.
1882
2075
  *
@@ -1901,7 +2094,7 @@ declare const addMessageToExecution: (client: AsteroidClient, executionId: strin
1901
2094
  * console.log(`File: ${file.fileName}, Size: ${file.fileSize}`);
1902
2095
  * });
1903
2096
  */
1904
- declare const getExecutionFiles: (client: AsteroidClient, executionId: string) => Promise<File$1[]>;
2097
+ declare const getExecutionFiles: (client: AsteroidClient, executionId: string) => Promise<AgentsFilesFile[]>;
1905
2098
  /**
1906
2099
  * Download a file from an execution using its signed URL.
1907
2100
  *
@@ -1924,6 +2117,17 @@ declare const getExecutionFiles: (client: AsteroidClient, executionId: string) =
1924
2117
  * console.log(`Downloaded to ${savedPath2}`);
1925
2118
  * }
1926
2119
  */
1927
- declare const downloadExecutionFile: (client: AsteroidClient, file: File$1, downloadPath: string, createDirs?: boolean, timeout?: number) => Promise<string>;
2120
+ declare const downloadExecutionFile: (client: AsteroidClient, file: AgentsFilesFile, downloadPath: string, createDirs?: boolean, timeout?: number) => Promise<string>;
2121
+ /** --- V2 --- */
2122
+ /**
2123
+ * Get a paginated list of agents for an organization.
2124
+ *
2125
+ * @param client - The API client.
2126
+ * @param organizationId - The organization identifier.
2127
+ * @param page - The page number.
2128
+ * @param pageSize - The page size.
2129
+ * @returns The list of agents.
2130
+ */
2131
+ declare const getAgents: (client: AsteroidClient, organizationId: string, page: number, pageSize: number) => Promise<AgentsAgentBase[]>;
1928
2132
 
1929
- export { sdk_gen as AgentsV1SDK, types_gen$1 as AgentsV1Types, sdk_gen$1 as AgentsV2SDK, types_gen as AgentsV2Types, AsteroidClient, addMessageToExecution, createAgentProfile, deleteAgentProfile, downloadExecutionFile, executeAgent, getAgentProfile, getAgentProfiles, getBrowserSessionRecording, getCredentialsPublicKey, getExecutionFiles, getExecutionResult, getExecutionStatus, getLastNExecutionActivities, updateAgentProfile, uploadExecutionFiles, waitForExecutionResult };
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 };