asteroid-odyssey 1.3.4 → 1.3.8
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 +421 -155
- package/dist/index.d.ts +421 -155
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +5 -5
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
|
|
617
|
-
proxy_type
|
|
616
|
+
proxy_cc?: CountryCode;
|
|
617
|
+
proxy_type?: ProxyType;
|
|
618
618
|
/**
|
|
619
619
|
* Whether the captcha solver is active for this profile
|
|
620
620
|
*/
|
|
@@ -1269,67 +1269,90 @@ declare namespace types_gen$1 {
|
|
|
1269
1269
|
|
|
1270
1270
|
type ActivityPayloadUnionActionCompleted = {
|
|
1271
1271
|
activityType: 'action_completed';
|
|
1272
|
-
data:
|
|
1272
|
+
data: AgentsExecutionActivityActionCompletedPayload;
|
|
1273
1273
|
};
|
|
1274
1274
|
type ActivityPayloadUnionActionFailed = {
|
|
1275
1275
|
activityType: 'action_failed';
|
|
1276
|
-
data:
|
|
1276
|
+
data: AgentsExecutionActivityActionFailedPayload;
|
|
1277
1277
|
};
|
|
1278
1278
|
type ActivityPayloadUnionActionStarted = {
|
|
1279
1279
|
activityType: 'action_started';
|
|
1280
|
-
data:
|
|
1280
|
+
data: AgentsExecutionActivityActionStartedPayload;
|
|
1281
|
+
};
|
|
1282
|
+
type ActivityPayloadUnionFileAdded = {
|
|
1283
|
+
activityType: 'file_added';
|
|
1284
|
+
data: AgentsExecutionActivityFileAddedPayload;
|
|
1281
1285
|
};
|
|
1282
1286
|
type ActivityPayloadUnionGeneric = {
|
|
1283
1287
|
activityType: 'generic';
|
|
1284
|
-
data:
|
|
1288
|
+
data: AgentsExecutionActivityGenericPayload;
|
|
1289
|
+
};
|
|
1290
|
+
type ActivityPayloadUnionGraphUpdated = {
|
|
1291
|
+
activityType: 'graph_updated';
|
|
1292
|
+
data: AgentsExecutionActivityGraphUpdatedPayload;
|
|
1285
1293
|
};
|
|
1286
1294
|
type ActivityPayloadUnionStatusChanged = {
|
|
1287
1295
|
activityType: 'status_changed';
|
|
1288
|
-
data:
|
|
1296
|
+
data: AgentsExecutionActivityStatusChangedPayload;
|
|
1289
1297
|
};
|
|
1290
1298
|
type ActivityPayloadUnionStepCompleted = {
|
|
1291
1299
|
activityType: 'step_completed';
|
|
1292
|
-
data:
|
|
1300
|
+
data: AgentsExecutionActivityStepCompletedPayload;
|
|
1293
1301
|
};
|
|
1294
1302
|
type ActivityPayloadUnionStepStarted = {
|
|
1295
1303
|
activityType: 'step_started';
|
|
1296
|
-
data:
|
|
1304
|
+
data: AgentsExecutionActivityStepStartedPayload;
|
|
1297
1305
|
};
|
|
1298
1306
|
type ActivityPayloadUnionTerminal = {
|
|
1299
1307
|
activityType: 'terminal';
|
|
1300
|
-
data:
|
|
1308
|
+
data: AgentsExecutionTerminalPayload;
|
|
1301
1309
|
};
|
|
1302
1310
|
type ActivityPayloadUnionTransitionedNode = {
|
|
1303
1311
|
activityType: 'transitioned_node';
|
|
1304
|
-
data:
|
|
1312
|
+
data: AgentsExecutionActivityTransitionedNodePayload;
|
|
1305
1313
|
};
|
|
1306
1314
|
type ActivityPayloadUnionUserMessageReceived = {
|
|
1307
1315
|
activityType: 'user_message_received';
|
|
1308
|
-
data:
|
|
1316
|
+
data: AgentsExecutionActivityUserMessageReceivedPayload;
|
|
1309
1317
|
};
|
|
1310
|
-
type
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
+
type AgentsAgentBase = {
|
|
1319
|
+
id: CommonUuid;
|
|
1320
|
+
name: string;
|
|
1321
|
+
createdAt: string;
|
|
1322
|
+
organizationId?: CommonUuid;
|
|
1323
|
+
userId: CommonUuid;
|
|
1324
|
+
};
|
|
1325
|
+
type AgentsAgentSortField = 'name' | 'created_at';
|
|
1326
|
+
type AgentsExecutionActivity = {
|
|
1327
|
+
id: CommonUuid;
|
|
1328
|
+
payload: AgentsExecutionActivityPayloadUnion;
|
|
1329
|
+
executionId: CommonUuid;
|
|
1318
1330
|
timestamp: string;
|
|
1319
1331
|
};
|
|
1320
|
-
type
|
|
1332
|
+
type AgentsExecutionActivityActionCompletedPayload = {
|
|
1321
1333
|
message: string;
|
|
1322
1334
|
};
|
|
1323
|
-
type
|
|
1335
|
+
type AgentsExecutionActivityActionFailedPayload = {
|
|
1324
1336
|
message: string;
|
|
1325
1337
|
};
|
|
1326
|
-
type
|
|
1338
|
+
type AgentsExecutionActivityActionStartedPayload = {
|
|
1327
1339
|
message: string;
|
|
1328
1340
|
};
|
|
1329
|
-
type
|
|
1341
|
+
type AgentsExecutionActivityFileAddedPayload = {
|
|
1342
|
+
fileId: CommonUuid;
|
|
1343
|
+
fileName: string;
|
|
1344
|
+
mimeType: string;
|
|
1345
|
+
fileSize: number;
|
|
1346
|
+
source: 'upload' | 'download';
|
|
1347
|
+
presignedUrl: string;
|
|
1348
|
+
};
|
|
1349
|
+
type AgentsExecutionActivityGenericPayload = {
|
|
1330
1350
|
message: string;
|
|
1331
1351
|
};
|
|
1332
|
-
type
|
|
1352
|
+
type AgentsExecutionActivityGraphUpdatedPayload = {
|
|
1353
|
+
graphUpdate: Array<AgentsExecutionGraphUpdate>;
|
|
1354
|
+
};
|
|
1355
|
+
type AgentsExecutionActivityPayloadUnion = ({
|
|
1333
1356
|
activityType: 'terminal';
|
|
1334
1357
|
} & ActivityPayloadUnionTerminal) | ({
|
|
1335
1358
|
activityType: 'generic';
|
|
@@ -1349,61 +1372,150 @@ type ExecutionActivityPayloadUnion = ({
|
|
|
1349
1372
|
activityType: 'action_failed';
|
|
1350
1373
|
} & ActivityPayloadUnionActionFailed) | ({
|
|
1351
1374
|
activityType: 'user_message_received';
|
|
1352
|
-
} & ActivityPayloadUnionUserMessageReceived)
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1375
|
+
} & ActivityPayloadUnionUserMessageReceived) | ({
|
|
1376
|
+
activityType: 'file_added';
|
|
1377
|
+
} & ActivityPayloadUnionFileAdded) | ({
|
|
1378
|
+
activityType: 'graph_updated';
|
|
1379
|
+
} & ActivityPayloadUnionGraphUpdated);
|
|
1380
|
+
type AgentsExecutionActivityStatusChangedPayload = {
|
|
1381
|
+
status: AgentsExecutionStatus;
|
|
1382
|
+
completedPayload?: AgentsExecutionCompletedPayload;
|
|
1383
|
+
failedPayload?: AgentsExecutionFailedPayload;
|
|
1384
|
+
pausedPayload?: AgentsExecutionPausedPayload;
|
|
1385
|
+
awaitingConfirmationPayload?: AgentsExecutionAwaitingConfirmationPayload;
|
|
1386
|
+
cancelledPayload?: AgentsExecutionCancelledPayload;
|
|
1387
|
+
};
|
|
1388
|
+
type AgentsExecutionActivityStepCompletedPayload = {
|
|
1361
1389
|
stepNumber: number;
|
|
1362
1390
|
};
|
|
1363
|
-
type
|
|
1391
|
+
type AgentsExecutionActivityStepStartedPayload = {
|
|
1364
1392
|
stepNumber: number;
|
|
1365
1393
|
};
|
|
1366
|
-
type
|
|
1367
|
-
newNodeUUID:
|
|
1394
|
+
type AgentsExecutionActivityTransitionedNodePayload = {
|
|
1395
|
+
newNodeUUID: CommonUuid;
|
|
1368
1396
|
newNodeName: string;
|
|
1369
1397
|
};
|
|
1370
|
-
type
|
|
1398
|
+
type AgentsExecutionActivityUserMessageReceivedPayload = {
|
|
1371
1399
|
message: string;
|
|
1372
|
-
userUUID:
|
|
1400
|
+
userUUID: CommonUuid;
|
|
1373
1401
|
};
|
|
1374
|
-
type
|
|
1402
|
+
type AgentsExecutionAwaitingConfirmationPayload = {
|
|
1375
1403
|
reason: string;
|
|
1376
1404
|
};
|
|
1377
|
-
type
|
|
1405
|
+
type AgentsExecutionCancelReason = 'timeout' | 'max_steps' | 'user_requested';
|
|
1406
|
+
type AgentsExecutionCancelledPayload = {
|
|
1407
|
+
reason: AgentsExecutionCancelReason;
|
|
1408
|
+
};
|
|
1409
|
+
type AgentsExecutionCompletedPayload = {
|
|
1378
1410
|
outcome: 'success' | 'failure';
|
|
1379
1411
|
reasoning: string;
|
|
1380
1412
|
final_answer?: string;
|
|
1381
1413
|
result: unknown;
|
|
1382
1414
|
};
|
|
1383
|
-
type
|
|
1415
|
+
type AgentsExecutionFailedPayload = {
|
|
1384
1416
|
reason: string;
|
|
1385
1417
|
};
|
|
1386
|
-
type
|
|
1418
|
+
type AgentsExecutionGraphUpdate = {
|
|
1419
|
+
updateType: AgentsExecutionUpdateType;
|
|
1420
|
+
nodeDetails?: AgentsExecutionNodeDetails;
|
|
1421
|
+
transitionDetails?: AgentsExecutionTransitionDetails;
|
|
1422
|
+
};
|
|
1423
|
+
type AgentsExecutionNodeDetails = {
|
|
1424
|
+
nodeID: CommonUuid;
|
|
1425
|
+
nodeName: string;
|
|
1426
|
+
nodeType: string;
|
|
1427
|
+
};
|
|
1428
|
+
type AgentsExecutionPausedPayload = {
|
|
1387
1429
|
reason: string;
|
|
1388
1430
|
};
|
|
1389
|
-
type
|
|
1390
|
-
type
|
|
1431
|
+
type AgentsExecutionStatus = 'starting' | 'running' | 'paused' | 'awaiting_confirmation' | 'completed' | 'cancelled' | 'failed' | 'paused_by_agent';
|
|
1432
|
+
type AgentsExecutionTerminalPayload = {
|
|
1391
1433
|
reason: 'unsubscribe' | 'complete' | 'error';
|
|
1392
1434
|
message?: string;
|
|
1393
1435
|
};
|
|
1394
|
-
type
|
|
1436
|
+
type AgentsExecutionTransitionDetails = {
|
|
1437
|
+
transitionID: CommonUuid;
|
|
1438
|
+
transitionType: string;
|
|
1439
|
+
};
|
|
1440
|
+
type AgentsExecutionUpdateType = 'add' | 'edit' | 'delete';
|
|
1441
|
+
type AgentsExecutionUserMessagesAddTextBody = {
|
|
1442
|
+
message: string;
|
|
1443
|
+
};
|
|
1444
|
+
type AgentsFilesFile = {
|
|
1445
|
+
id: CommonUuid;
|
|
1446
|
+
executionId: CommonUuid;
|
|
1447
|
+
agentId: CommonUuid;
|
|
1448
|
+
filePath: string;
|
|
1449
|
+
fileName: string;
|
|
1450
|
+
fileExt: string;
|
|
1451
|
+
fileSize: number;
|
|
1452
|
+
fileType: string;
|
|
1453
|
+
mimeType: string;
|
|
1454
|
+
createdAt: string;
|
|
1455
|
+
signedUrl: string;
|
|
1456
|
+
};
|
|
1457
|
+
type AgentsFilesFilePart = Blob | File;
|
|
1458
|
+
type CommonBadRequestErrorBody = {
|
|
1459
|
+
code: 400;
|
|
1395
1460
|
message: string;
|
|
1396
1461
|
};
|
|
1397
|
-
type
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1462
|
+
type CommonError = {
|
|
1463
|
+
code: number;
|
|
1464
|
+
message: string;
|
|
1465
|
+
};
|
|
1466
|
+
type CommonForbiddenErrorBody = {
|
|
1467
|
+
code: 403;
|
|
1468
|
+
message: string;
|
|
1469
|
+
};
|
|
1470
|
+
type CommonNotFoundErrorBody = {
|
|
1471
|
+
code: 404;
|
|
1472
|
+
message: string;
|
|
1473
|
+
};
|
|
1474
|
+
type CommonSortDirection = 'asc' | 'desc';
|
|
1475
|
+
type CommonUuid = string;
|
|
1476
|
+
type Version = 'v1';
|
|
1477
|
+
type AgentsAgentSearch = string;
|
|
1478
|
+
type CommonPaginationPage = number;
|
|
1479
|
+
type CommonPaginationPageSize = number;
|
|
1480
|
+
type AgentListData = {
|
|
1481
|
+
body?: never;
|
|
1482
|
+
path?: never;
|
|
1483
|
+
query: {
|
|
1484
|
+
organizationId?: CommonUuid;
|
|
1485
|
+
pageSize: number;
|
|
1486
|
+
page: number;
|
|
1487
|
+
searchName?: string;
|
|
1488
|
+
sort_field?: AgentsAgentSortField;
|
|
1489
|
+
sort_direction?: CommonSortDirection;
|
|
1490
|
+
};
|
|
1491
|
+
url: '/agents';
|
|
1492
|
+
};
|
|
1493
|
+
type AgentListErrors = {
|
|
1494
|
+
/**
|
|
1495
|
+
* An unexpected error response.
|
|
1496
|
+
*/
|
|
1497
|
+
default: CommonError;
|
|
1498
|
+
};
|
|
1499
|
+
type AgentListError = AgentListErrors[keyof AgentListErrors];
|
|
1500
|
+
type AgentListResponses = {
|
|
1501
|
+
/**
|
|
1502
|
+
* The request has succeeded.
|
|
1503
|
+
*/
|
|
1504
|
+
200: {
|
|
1505
|
+
items: Array<AgentsAgentBase>;
|
|
1506
|
+
page: number;
|
|
1507
|
+
pageSize: number;
|
|
1508
|
+
total: number;
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
type AgentListResponse = AgentListResponses[keyof AgentListResponses];
|
|
1512
|
+
type ExecutionActivitiesGetData = {
|
|
1401
1513
|
body?: never;
|
|
1402
1514
|
path: {
|
|
1403
1515
|
/**
|
|
1404
1516
|
* The unique identifier of the execution
|
|
1405
1517
|
*/
|
|
1406
|
-
executionId:
|
|
1518
|
+
executionId: CommonUuid;
|
|
1407
1519
|
};
|
|
1408
1520
|
query?: {
|
|
1409
1521
|
/**
|
|
@@ -1417,130 +1529,201 @@ type ActivitiesGetData = {
|
|
|
1417
1529
|
};
|
|
1418
1530
|
url: '/executions/{executionId}/activities';
|
|
1419
1531
|
};
|
|
1420
|
-
type
|
|
1532
|
+
type ExecutionActivitiesGetErrors = {
|
|
1421
1533
|
/**
|
|
1422
|
-
*
|
|
1534
|
+
* The server could not understand the request due to invalid syntax.
|
|
1535
|
+
*/
|
|
1536
|
+
400: CommonBadRequestErrorBody;
|
|
1537
|
+
/**
|
|
1538
|
+
* Access is forbidden.
|
|
1539
|
+
*/
|
|
1540
|
+
403: CommonForbiddenErrorBody;
|
|
1541
|
+
/**
|
|
1542
|
+
* The server cannot find the requested resource.
|
|
1543
|
+
*/
|
|
1544
|
+
404: CommonNotFoundErrorBody;
|
|
1545
|
+
};
|
|
1546
|
+
type ExecutionActivitiesGetError = ExecutionActivitiesGetErrors[keyof ExecutionActivitiesGetErrors];
|
|
1547
|
+
type ExecutionActivitiesGetResponses = {
|
|
1548
|
+
/**
|
|
1549
|
+
* The request has succeeded.
|
|
1550
|
+
*/
|
|
1551
|
+
200: Array<AgentsExecutionActivity>;
|
|
1552
|
+
};
|
|
1553
|
+
type ExecutionActivitiesGetResponse = ExecutionActivitiesGetResponses[keyof ExecutionActivitiesGetResponses];
|
|
1554
|
+
type ExecutionContextFilesGetData = {
|
|
1555
|
+
body?: never;
|
|
1556
|
+
path: {
|
|
1557
|
+
executionId: CommonUuid;
|
|
1558
|
+
};
|
|
1559
|
+
query?: never;
|
|
1560
|
+
url: '/executions/{executionId}/context-files';
|
|
1561
|
+
};
|
|
1562
|
+
type ExecutionContextFilesGetErrors = {
|
|
1563
|
+
/**
|
|
1564
|
+
* The server cannot find the requested resource.
|
|
1565
|
+
*/
|
|
1566
|
+
404: 'Execution files not found.';
|
|
1567
|
+
};
|
|
1568
|
+
type ExecutionContextFilesGetError = ExecutionContextFilesGetErrors[keyof ExecutionContextFilesGetErrors];
|
|
1569
|
+
type ExecutionContextFilesGetResponses = {
|
|
1570
|
+
/**
|
|
1571
|
+
* The request has succeeded.
|
|
1572
|
+
*/
|
|
1573
|
+
200: Array<AgentsFilesFile>;
|
|
1574
|
+
};
|
|
1575
|
+
type ExecutionContextFilesGetResponse = ExecutionContextFilesGetResponses[keyof ExecutionContextFilesGetResponses];
|
|
1576
|
+
type ExecutionContextFilesUploadData = {
|
|
1577
|
+
body: {
|
|
1578
|
+
files: Array<AgentsFilesFilePart>;
|
|
1579
|
+
};
|
|
1580
|
+
path: {
|
|
1581
|
+
executionId: CommonUuid;
|
|
1582
|
+
};
|
|
1583
|
+
query?: never;
|
|
1584
|
+
url: '/executions/{executionId}/context-files';
|
|
1585
|
+
};
|
|
1586
|
+
type ExecutionContextFilesUploadErrors = {
|
|
1587
|
+
/**
|
|
1588
|
+
* The server could not understand the request due to invalid syntax.
|
|
1423
1589
|
*/
|
|
1424
|
-
|
|
1590
|
+
400: 'Invalid file upload request.';
|
|
1591
|
+
/**
|
|
1592
|
+
* The server cannot find the requested resource.
|
|
1593
|
+
*/
|
|
1594
|
+
404: 'Execution not found.';
|
|
1425
1595
|
};
|
|
1426
|
-
type
|
|
1427
|
-
type
|
|
1596
|
+
type ExecutionContextFilesUploadError = ExecutionContextFilesUploadErrors[keyof ExecutionContextFilesUploadErrors];
|
|
1597
|
+
type ExecutionContextFilesUploadResponses = {
|
|
1428
1598
|
/**
|
|
1429
1599
|
* The request has succeeded.
|
|
1430
1600
|
*/
|
|
1431
|
-
200:
|
|
1601
|
+
200: 'Files uploaded.';
|
|
1432
1602
|
};
|
|
1433
|
-
type
|
|
1434
|
-
type
|
|
1603
|
+
type ExecutionContextFilesUploadResponse = ExecutionContextFilesUploadResponses[keyof ExecutionContextFilesUploadResponses];
|
|
1604
|
+
type ExecutionUserMessagesAddData = {
|
|
1435
1605
|
/**
|
|
1436
1606
|
* The message content to send
|
|
1437
1607
|
*/
|
|
1438
|
-
body:
|
|
1608
|
+
body: AgentsExecutionUserMessagesAddTextBody;
|
|
1439
1609
|
path: {
|
|
1440
1610
|
/**
|
|
1441
1611
|
* The unique identifier of the execution
|
|
1442
1612
|
*/
|
|
1443
|
-
executionId:
|
|
1613
|
+
executionId: CommonUuid;
|
|
1444
1614
|
};
|
|
1445
1615
|
query?: never;
|
|
1446
1616
|
url: '/executions/{executionId}/user-messages';
|
|
1447
1617
|
};
|
|
1448
|
-
type
|
|
1618
|
+
type ExecutionUserMessagesAddErrors = {
|
|
1449
1619
|
/**
|
|
1450
|
-
*
|
|
1620
|
+
* The server could not understand the request due to invalid syntax.
|
|
1451
1621
|
*/
|
|
1452
|
-
|
|
1622
|
+
400: CommonBadRequestErrorBody;
|
|
1623
|
+
/**
|
|
1624
|
+
* Access is forbidden.
|
|
1625
|
+
*/
|
|
1626
|
+
403: CommonForbiddenErrorBody;
|
|
1627
|
+
/**
|
|
1628
|
+
* The server cannot find the requested resource.
|
|
1629
|
+
*/
|
|
1630
|
+
404: CommonNotFoundErrorBody;
|
|
1453
1631
|
};
|
|
1454
|
-
type
|
|
1455
|
-
type
|
|
1632
|
+
type ExecutionUserMessagesAddError = ExecutionUserMessagesAddErrors[keyof ExecutionUserMessagesAddErrors];
|
|
1633
|
+
type ExecutionUserMessagesAddResponses = {
|
|
1456
1634
|
/**
|
|
1457
1635
|
* The request has succeeded and a new resource has been created as a result.
|
|
1458
1636
|
*/
|
|
1459
1637
|
201: 'User message added.';
|
|
1460
1638
|
};
|
|
1461
|
-
type
|
|
1639
|
+
type ExecutionUserMessagesAddResponse = ExecutionUserMessagesAddResponses[keyof ExecutionUserMessagesAddResponses];
|
|
1462
1640
|
type ClientOptions = {
|
|
1463
|
-
baseUrl: 'https://odyssey.asteroid.ai/agents/
|
|
1641
|
+
baseUrl: 'https://odyssey.asteroid.ai/agents/v2' | (string & {});
|
|
1464
1642
|
};
|
|
1465
1643
|
|
|
1466
|
-
type types_gen_ActivitiesGetData = ActivitiesGetData;
|
|
1467
|
-
type types_gen_ActivitiesGetError = ActivitiesGetError;
|
|
1468
|
-
type types_gen_ActivitiesGetErrors = ActivitiesGetErrors;
|
|
1469
|
-
type types_gen_ActivitiesGetResponse = ActivitiesGetResponse;
|
|
1470
|
-
type types_gen_ActivitiesGetResponses = ActivitiesGetResponses;
|
|
1471
1644
|
type types_gen_ActivityPayloadUnionActionCompleted = ActivityPayloadUnionActionCompleted;
|
|
1472
1645
|
type types_gen_ActivityPayloadUnionActionFailed = ActivityPayloadUnionActionFailed;
|
|
1473
1646
|
type types_gen_ActivityPayloadUnionActionStarted = ActivityPayloadUnionActionStarted;
|
|
1647
|
+
type types_gen_ActivityPayloadUnionFileAdded = ActivityPayloadUnionFileAdded;
|
|
1474
1648
|
type types_gen_ActivityPayloadUnionGeneric = ActivityPayloadUnionGeneric;
|
|
1649
|
+
type types_gen_ActivityPayloadUnionGraphUpdated = ActivityPayloadUnionGraphUpdated;
|
|
1475
1650
|
type types_gen_ActivityPayloadUnionStatusChanged = ActivityPayloadUnionStatusChanged;
|
|
1476
1651
|
type types_gen_ActivityPayloadUnionStepCompleted = ActivityPayloadUnionStepCompleted;
|
|
1477
1652
|
type types_gen_ActivityPayloadUnionStepStarted = ActivityPayloadUnionStepStarted;
|
|
1478
1653
|
type types_gen_ActivityPayloadUnionTerminal = ActivityPayloadUnionTerminal;
|
|
1479
1654
|
type types_gen_ActivityPayloadUnionTransitionedNode = ActivityPayloadUnionTransitionedNode;
|
|
1480
1655
|
type types_gen_ActivityPayloadUnionUserMessageReceived = ActivityPayloadUnionUserMessageReceived;
|
|
1656
|
+
type types_gen_AgentListData = AgentListData;
|
|
1657
|
+
type types_gen_AgentListError = AgentListError;
|
|
1658
|
+
type types_gen_AgentListErrors = AgentListErrors;
|
|
1659
|
+
type types_gen_AgentListResponse = AgentListResponse;
|
|
1660
|
+
type types_gen_AgentListResponses = AgentListResponses;
|
|
1661
|
+
type types_gen_AgentsAgentBase = AgentsAgentBase;
|
|
1662
|
+
type types_gen_AgentsAgentSearch = AgentsAgentSearch;
|
|
1663
|
+
type types_gen_AgentsAgentSortField = AgentsAgentSortField;
|
|
1664
|
+
type types_gen_AgentsExecutionActivity = AgentsExecutionActivity;
|
|
1665
|
+
type types_gen_AgentsExecutionActivityActionCompletedPayload = AgentsExecutionActivityActionCompletedPayload;
|
|
1666
|
+
type types_gen_AgentsExecutionActivityActionFailedPayload = AgentsExecutionActivityActionFailedPayload;
|
|
1667
|
+
type types_gen_AgentsExecutionActivityActionStartedPayload = AgentsExecutionActivityActionStartedPayload;
|
|
1668
|
+
type types_gen_AgentsExecutionActivityFileAddedPayload = AgentsExecutionActivityFileAddedPayload;
|
|
1669
|
+
type types_gen_AgentsExecutionActivityGenericPayload = AgentsExecutionActivityGenericPayload;
|
|
1670
|
+
type types_gen_AgentsExecutionActivityGraphUpdatedPayload = AgentsExecutionActivityGraphUpdatedPayload;
|
|
1671
|
+
type types_gen_AgentsExecutionActivityPayloadUnion = AgentsExecutionActivityPayloadUnion;
|
|
1672
|
+
type types_gen_AgentsExecutionActivityStatusChangedPayload = AgentsExecutionActivityStatusChangedPayload;
|
|
1673
|
+
type types_gen_AgentsExecutionActivityStepCompletedPayload = AgentsExecutionActivityStepCompletedPayload;
|
|
1674
|
+
type types_gen_AgentsExecutionActivityStepStartedPayload = AgentsExecutionActivityStepStartedPayload;
|
|
1675
|
+
type types_gen_AgentsExecutionActivityTransitionedNodePayload = AgentsExecutionActivityTransitionedNodePayload;
|
|
1676
|
+
type types_gen_AgentsExecutionActivityUserMessageReceivedPayload = AgentsExecutionActivityUserMessageReceivedPayload;
|
|
1677
|
+
type types_gen_AgentsExecutionAwaitingConfirmationPayload = AgentsExecutionAwaitingConfirmationPayload;
|
|
1678
|
+
type types_gen_AgentsExecutionCancelReason = AgentsExecutionCancelReason;
|
|
1679
|
+
type types_gen_AgentsExecutionCancelledPayload = AgentsExecutionCancelledPayload;
|
|
1680
|
+
type types_gen_AgentsExecutionCompletedPayload = AgentsExecutionCompletedPayload;
|
|
1681
|
+
type types_gen_AgentsExecutionFailedPayload = AgentsExecutionFailedPayload;
|
|
1682
|
+
type types_gen_AgentsExecutionGraphUpdate = AgentsExecutionGraphUpdate;
|
|
1683
|
+
type types_gen_AgentsExecutionNodeDetails = AgentsExecutionNodeDetails;
|
|
1684
|
+
type types_gen_AgentsExecutionPausedPayload = AgentsExecutionPausedPayload;
|
|
1685
|
+
type types_gen_AgentsExecutionStatus = AgentsExecutionStatus;
|
|
1686
|
+
type types_gen_AgentsExecutionTerminalPayload = AgentsExecutionTerminalPayload;
|
|
1687
|
+
type types_gen_AgentsExecutionTransitionDetails = AgentsExecutionTransitionDetails;
|
|
1688
|
+
type types_gen_AgentsExecutionUpdateType = AgentsExecutionUpdateType;
|
|
1689
|
+
type types_gen_AgentsExecutionUserMessagesAddTextBody = AgentsExecutionUserMessagesAddTextBody;
|
|
1690
|
+
type types_gen_AgentsFilesFile = AgentsFilesFile;
|
|
1691
|
+
type types_gen_AgentsFilesFilePart = AgentsFilesFilePart;
|
|
1481
1692
|
type types_gen_ClientOptions = ClientOptions;
|
|
1482
|
-
type
|
|
1483
|
-
type
|
|
1484
|
-
type
|
|
1485
|
-
type
|
|
1486
|
-
type
|
|
1487
|
-
type
|
|
1488
|
-
type
|
|
1489
|
-
type
|
|
1490
|
-
type
|
|
1491
|
-
type
|
|
1492
|
-
type
|
|
1493
|
-
type
|
|
1494
|
-
type
|
|
1495
|
-
type
|
|
1496
|
-
type
|
|
1497
|
-
type
|
|
1498
|
-
type
|
|
1499
|
-
type
|
|
1500
|
-
type
|
|
1501
|
-
type
|
|
1502
|
-
type
|
|
1503
|
-
type
|
|
1504
|
-
type
|
|
1505
|
-
type
|
|
1506
|
-
type
|
|
1507
|
-
type
|
|
1508
|
-
type
|
|
1693
|
+
type types_gen_CommonBadRequestErrorBody = CommonBadRequestErrorBody;
|
|
1694
|
+
type types_gen_CommonError = CommonError;
|
|
1695
|
+
type types_gen_CommonForbiddenErrorBody = CommonForbiddenErrorBody;
|
|
1696
|
+
type types_gen_CommonNotFoundErrorBody = CommonNotFoundErrorBody;
|
|
1697
|
+
type types_gen_CommonPaginationPage = CommonPaginationPage;
|
|
1698
|
+
type types_gen_CommonPaginationPageSize = CommonPaginationPageSize;
|
|
1699
|
+
type types_gen_CommonSortDirection = CommonSortDirection;
|
|
1700
|
+
type types_gen_CommonUuid = CommonUuid;
|
|
1701
|
+
type types_gen_ExecutionActivitiesGetData = ExecutionActivitiesGetData;
|
|
1702
|
+
type types_gen_ExecutionActivitiesGetError = ExecutionActivitiesGetError;
|
|
1703
|
+
type types_gen_ExecutionActivitiesGetErrors = ExecutionActivitiesGetErrors;
|
|
1704
|
+
type types_gen_ExecutionActivitiesGetResponse = ExecutionActivitiesGetResponse;
|
|
1705
|
+
type types_gen_ExecutionActivitiesGetResponses = ExecutionActivitiesGetResponses;
|
|
1706
|
+
type types_gen_ExecutionContextFilesGetData = ExecutionContextFilesGetData;
|
|
1707
|
+
type types_gen_ExecutionContextFilesGetError = ExecutionContextFilesGetError;
|
|
1708
|
+
type types_gen_ExecutionContextFilesGetErrors = ExecutionContextFilesGetErrors;
|
|
1709
|
+
type types_gen_ExecutionContextFilesGetResponse = ExecutionContextFilesGetResponse;
|
|
1710
|
+
type types_gen_ExecutionContextFilesGetResponses = ExecutionContextFilesGetResponses;
|
|
1711
|
+
type types_gen_ExecutionContextFilesUploadData = ExecutionContextFilesUploadData;
|
|
1712
|
+
type types_gen_ExecutionContextFilesUploadError = ExecutionContextFilesUploadError;
|
|
1713
|
+
type types_gen_ExecutionContextFilesUploadErrors = ExecutionContextFilesUploadErrors;
|
|
1714
|
+
type types_gen_ExecutionContextFilesUploadResponse = ExecutionContextFilesUploadResponse;
|
|
1715
|
+
type types_gen_ExecutionContextFilesUploadResponses = ExecutionContextFilesUploadResponses;
|
|
1716
|
+
type types_gen_ExecutionUserMessagesAddData = ExecutionUserMessagesAddData;
|
|
1717
|
+
type types_gen_ExecutionUserMessagesAddError = ExecutionUserMessagesAddError;
|
|
1718
|
+
type types_gen_ExecutionUserMessagesAddErrors = ExecutionUserMessagesAddErrors;
|
|
1719
|
+
type types_gen_ExecutionUserMessagesAddResponse = ExecutionUserMessagesAddResponse;
|
|
1720
|
+
type types_gen_ExecutionUserMessagesAddResponses = ExecutionUserMessagesAddResponses;
|
|
1721
|
+
type types_gen_Version = Version;
|
|
1509
1722
|
declare namespace types_gen {
|
|
1510
|
-
export type {
|
|
1511
|
-
}
|
|
1512
|
-
|
|
1513
|
-
type Options$1<TData extends TDataShape$1 = TDataShape$1, ThrowOnError extends boolean = boolean> = Options$3<TData, ThrowOnError> & {
|
|
1514
|
-
/**
|
|
1515
|
-
* You can provide a client instance returned by `createClient()` instead of
|
|
1516
|
-
* individual options. This might be also useful if you want to implement a
|
|
1517
|
-
* custom client.
|
|
1518
|
-
*/
|
|
1519
|
-
client?: Client$2;
|
|
1520
|
-
/**
|
|
1521
|
-
* You can pass arbitrary values through the `meta` object. This can be
|
|
1522
|
-
* used to access values that aren't defined as part of the SDK function.
|
|
1523
|
-
*/
|
|
1524
|
-
meta?: Record<string, unknown>;
|
|
1525
|
-
};
|
|
1526
|
-
/**
|
|
1527
|
-
* Retrieve execution activities
|
|
1528
|
-
* Get activities for an execution
|
|
1529
|
-
*/
|
|
1530
|
-
declare const activitiesGet: <ThrowOnError extends boolean = false>(options: Options$1<ActivitiesGetData, ThrowOnError>) => RequestResult$1<ActivitiesGetResponses, ActivitiesGetErrors, ThrowOnError, "fields">;
|
|
1531
|
-
/**
|
|
1532
|
-
* Send user message to execution
|
|
1533
|
-
* Add a user message to an execution
|
|
1534
|
-
*/
|
|
1535
|
-
declare const userMessagesAdd: <ThrowOnError extends boolean = false>(options: Options$1<UserMessagesAddData, ThrowOnError>) => RequestResult$1<UserMessagesAddResponses, UserMessagesAddErrors, ThrowOnError, "fields">;
|
|
1536
|
-
|
|
1537
|
-
declare const sdk_gen$1_activitiesGet: typeof activitiesGet;
|
|
1538
|
-
declare const sdk_gen$1_userMessagesAdd: typeof userMessagesAdd;
|
|
1539
|
-
declare namespace sdk_gen$1 {
|
|
1540
|
-
export { type Options$1 as Options, sdk_gen$1_activitiesGet as activitiesGet, sdk_gen$1_userMessagesAdd as userMessagesAdd };
|
|
1723
|
+
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 };
|
|
1541
1724
|
}
|
|
1542
1725
|
|
|
1543
|
-
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$2<TData, ThrowOnError> & {
|
|
1726
|
+
type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$2<TData, ThrowOnError> & {
|
|
1544
1727
|
/**
|
|
1545
1728
|
* You can provide a client instance returned by `createClient()` instead of
|
|
1546
1729
|
* individual options. This might be also useful if you want to implement a
|
|
@@ -1556,75 +1739,111 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
|
|
|
1556
1739
|
/**
|
|
1557
1740
|
* Get the OpenAPI schema
|
|
1558
1741
|
*/
|
|
1559
|
-
declare const getOpenApi: <ThrowOnError extends boolean = false>(options?: Options<GetOpenApiData, ThrowOnError>) => RequestResult<GetOpenApiResponses, unknown, ThrowOnError, "fields">;
|
|
1742
|
+
declare const getOpenApi: <ThrowOnError extends boolean = false>(options?: Options$1<GetOpenApiData, ThrowOnError>) => RequestResult<GetOpenApiResponses, unknown, ThrowOnError, "fields">;
|
|
1560
1743
|
/**
|
|
1561
1744
|
* Upload files to an execution
|
|
1562
1745
|
*/
|
|
1563
|
-
declare const uploadExecutionFiles$1: <ThrowOnError extends boolean = false>(options: Options<UploadExecutionFilesData, ThrowOnError>) => RequestResult<UploadExecutionFilesResponses, UploadExecutionFilesErrors, ThrowOnError, "fields">;
|
|
1746
|
+
declare const uploadExecutionFiles$1: <ThrowOnError extends boolean = false>(options: Options$1<UploadExecutionFilesData, ThrowOnError>) => RequestResult<UploadExecutionFilesResponses, UploadExecutionFilesErrors, ThrowOnError, "fields">;
|
|
1564
1747
|
/**
|
|
1565
1748
|
* Check the health of the API
|
|
1566
1749
|
*/
|
|
1567
|
-
declare const healthCheck: <ThrowOnError extends boolean = false>(options?: Options<HealthCheckData, ThrowOnError>) => RequestResult<HealthCheckResponses, HealthCheckErrors, ThrowOnError, "fields">;
|
|
1750
|
+
declare const healthCheck: <ThrowOnError extends boolean = false>(options?: Options$1<HealthCheckData, ThrowOnError>) => RequestResult<HealthCheckResponses, HealthCheckErrors, ThrowOnError, "fields">;
|
|
1568
1751
|
/**
|
|
1569
1752
|
* Execute an agent
|
|
1570
1753
|
* Executes an agent with the provided parameters
|
|
1571
1754
|
* @deprecated
|
|
1572
1755
|
*/
|
|
1573
|
-
declare const executeAgent$1: <ThrowOnError extends boolean = false>(options: Options<ExecuteAgentData, ThrowOnError>) => RequestResult<ExecuteAgentResponses, ExecuteAgentErrors, ThrowOnError, "fields">;
|
|
1756
|
+
declare const executeAgent$1: <ThrowOnError extends boolean = false>(options: Options$1<ExecuteAgentData, ThrowOnError>) => RequestResult<ExecuteAgentResponses, ExecuteAgentErrors, ThrowOnError, "fields">;
|
|
1574
1757
|
/**
|
|
1575
1758
|
* Execute an agent with structured parameters
|
|
1576
1759
|
* Executes an agent with structured parameters including optional agent profile configuration. This is the recommended method for new integrations.
|
|
1577
1760
|
*/
|
|
1578
|
-
declare const executeAgentStructured: <ThrowOnError extends boolean = false>(options: Options<ExecuteAgentStructuredData, ThrowOnError>) => RequestResult<ExecuteAgentStructuredResponses, ExecuteAgentStructuredErrors, ThrowOnError, "fields">;
|
|
1761
|
+
declare const executeAgentStructured: <ThrowOnError extends boolean = false>(options: Options$1<ExecuteAgentStructuredData, ThrowOnError>) => RequestResult<ExecuteAgentStructuredResponses, ExecuteAgentStructuredErrors, ThrowOnError, "fields">;
|
|
1579
1762
|
/**
|
|
1580
1763
|
* Get execution status
|
|
1581
1764
|
*/
|
|
1582
|
-
declare const getExecutionStatus$1: <ThrowOnError extends boolean = false>(options: Options<GetExecutionStatusData, ThrowOnError>) => RequestResult<GetExecutionStatusResponses, GetExecutionStatusErrors, ThrowOnError, "fields">;
|
|
1765
|
+
declare const getExecutionStatus$1: <ThrowOnError extends boolean = false>(options: Options$1<GetExecutionStatusData, ThrowOnError>) => RequestResult<GetExecutionStatusResponses, GetExecutionStatusErrors, ThrowOnError, "fields">;
|
|
1583
1766
|
/**
|
|
1584
1767
|
* Get execution result
|
|
1585
1768
|
*/
|
|
1586
|
-
declare const getExecutionResult$1: <ThrowOnError extends boolean = false>(options: Options<GetExecutionResultData, ThrowOnError>) => RequestResult<GetExecutionResultResponses, GetExecutionResultErrors, ThrowOnError, "fields">;
|
|
1769
|
+
declare const getExecutionResult$1: <ThrowOnError extends boolean = false>(options: Options$1<GetExecutionResultData, ThrowOnError>) => RequestResult<GetExecutionResultResponses, GetExecutionResultErrors, ThrowOnError, "fields">;
|
|
1587
1770
|
/**
|
|
1588
1771
|
* Get browser session recording
|
|
1589
1772
|
* Retrieves the browser session recording URL for a completed execution
|
|
1590
1773
|
*/
|
|
1591
|
-
declare const getBrowserSessionRecording$1: <ThrowOnError extends boolean = false>(options: Options<GetBrowserSessionRecordingData, ThrowOnError>) => RequestResult<GetBrowserSessionRecordingResponses, GetBrowserSessionRecordingErrors, ThrowOnError, "fields">;
|
|
1774
|
+
declare const getBrowserSessionRecording$1: <ThrowOnError extends boolean = false>(options: Options$1<GetBrowserSessionRecordingData, ThrowOnError>) => RequestResult<GetBrowserSessionRecordingResponses, GetBrowserSessionRecordingErrors, ThrowOnError, "fields">;
|
|
1592
1775
|
/**
|
|
1593
1776
|
* Get agent profiles
|
|
1594
1777
|
* Returns all agent profiles for the organization. If organization_id is not provided, returns profiles for all user's organizations.
|
|
1595
1778
|
*/
|
|
1596
|
-
declare const getAgentProfiles$1: <ThrowOnError extends boolean = false>(options?: Options<GetAgentProfilesData, ThrowOnError>) => RequestResult<GetAgentProfilesResponses, GetAgentProfilesErrors, ThrowOnError, "fields">;
|
|
1779
|
+
declare const getAgentProfiles$1: <ThrowOnError extends boolean = false>(options?: Options$1<GetAgentProfilesData, ThrowOnError>) => RequestResult<GetAgentProfilesResponses, GetAgentProfilesErrors, ThrowOnError, "fields">;
|
|
1597
1780
|
/**
|
|
1598
1781
|
* Create an agent profile
|
|
1599
1782
|
* Creates a new agent profile for the organization
|
|
1600
1783
|
*/
|
|
1601
|
-
declare const createAgentProfile$1: <ThrowOnError extends boolean = false>(options: Options<CreateAgentProfileData, ThrowOnError>) => RequestResult<CreateAgentProfileResponses, CreateAgentProfileErrors, ThrowOnError, "fields">;
|
|
1784
|
+
declare const createAgentProfile$1: <ThrowOnError extends boolean = false>(options: Options$1<CreateAgentProfileData, ThrowOnError>) => RequestResult<CreateAgentProfileResponses, CreateAgentProfileErrors, ThrowOnError, "fields">;
|
|
1602
1785
|
/**
|
|
1603
1786
|
* Delete an agent profile
|
|
1604
1787
|
* Deletes the specified agent profile
|
|
1605
1788
|
*/
|
|
1606
|
-
declare const deleteAgentProfile$1: <ThrowOnError extends boolean = false>(options: Options<DeleteAgentProfileData, ThrowOnError>) => RequestResult<DeleteAgentProfileResponses, DeleteAgentProfileErrors, ThrowOnError, "fields">;
|
|
1789
|
+
declare const deleteAgentProfile$1: <ThrowOnError extends boolean = false>(options: Options$1<DeleteAgentProfileData, ThrowOnError>) => RequestResult<DeleteAgentProfileResponses, DeleteAgentProfileErrors, ThrowOnError, "fields">;
|
|
1607
1790
|
/**
|
|
1608
1791
|
* Get an agent profile by ID
|
|
1609
1792
|
* Returns the complete agent profile including credentials
|
|
1610
1793
|
*/
|
|
1611
|
-
declare const getAgentProfile$1: <ThrowOnError extends boolean = false>(options: Options<GetAgentProfileData, ThrowOnError>) => RequestResult<GetAgentProfileResponses, GetAgentProfileErrors, ThrowOnError, "fields">;
|
|
1794
|
+
declare const getAgentProfile$1: <ThrowOnError extends boolean = false>(options: Options$1<GetAgentProfileData, ThrowOnError>) => RequestResult<GetAgentProfileResponses, GetAgentProfileErrors, ThrowOnError, "fields">;
|
|
1612
1795
|
/**
|
|
1613
1796
|
* Update an agent profile
|
|
1614
1797
|
* Updates an agent profile including metadata and/or credentials
|
|
1615
1798
|
*/
|
|
1616
|
-
declare const updateAgentProfile$1: <ThrowOnError extends boolean = false>(options: Options<UpdateAgentProfileData, ThrowOnError>) => RequestResult<UpdateAgentProfileResponses, UpdateAgentProfileErrors, ThrowOnError, "fields">;
|
|
1799
|
+
declare const updateAgentProfile$1: <ThrowOnError extends boolean = false>(options: Options$1<UpdateAgentProfileData, ThrowOnError>) => RequestResult<UpdateAgentProfileResponses, UpdateAgentProfileErrors, ThrowOnError, "fields">;
|
|
1617
1800
|
/**
|
|
1618
1801
|
* Get the public key for credentials
|
|
1619
1802
|
*/
|
|
1620
|
-
declare const getCredentialsPublicKey$1: <ThrowOnError extends boolean = false>(options?: Options<GetCredentialsPublicKeyData, ThrowOnError>) => RequestResult<GetCredentialsPublicKeyResponses, GetCredentialsPublicKeyErrors, ThrowOnError, "fields">;
|
|
1803
|
+
declare const getCredentialsPublicKey$1: <ThrowOnError extends boolean = false>(options?: Options$1<GetCredentialsPublicKeyData, ThrowOnError>) => RequestResult<GetCredentialsPublicKeyResponses, GetCredentialsPublicKeyErrors, ThrowOnError, "fields">;
|
|
1804
|
+
|
|
1805
|
+
declare const sdk_gen$1_executeAgentStructured: typeof executeAgentStructured;
|
|
1806
|
+
declare const sdk_gen$1_getOpenApi: typeof getOpenApi;
|
|
1807
|
+
declare const sdk_gen$1_healthCheck: typeof healthCheck;
|
|
1808
|
+
declare namespace sdk_gen$1 {
|
|
1809
|
+
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 };
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
type Options<TData extends TDataShape$1 = TDataShape$1, ThrowOnError extends boolean = boolean> = Options$3<TData, ThrowOnError> & {
|
|
1813
|
+
/**
|
|
1814
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
1815
|
+
* individual options. This might be also useful if you want to implement a
|
|
1816
|
+
* custom client.
|
|
1817
|
+
*/
|
|
1818
|
+
client?: Client$2;
|
|
1819
|
+
/**
|
|
1820
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
1821
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
1822
|
+
*/
|
|
1823
|
+
meta?: Record<string, unknown>;
|
|
1824
|
+
};
|
|
1825
|
+
declare const agentList: <ThrowOnError extends boolean = false>(options: Options<AgentListData, ThrowOnError>) => RequestResult$1<AgentListResponses, AgentListErrors, ThrowOnError, "fields">;
|
|
1826
|
+
/**
|
|
1827
|
+
* Retrieve execution activities
|
|
1828
|
+
* Get activities for an execution
|
|
1829
|
+
*/
|
|
1830
|
+
declare const executionActivitiesGet: <ThrowOnError extends boolean = false>(options: Options<ExecutionActivitiesGetData, ThrowOnError>) => RequestResult$1<ExecutionActivitiesGetResponses, ExecutionActivitiesGetErrors, ThrowOnError, "fields">;
|
|
1831
|
+
declare const executionContextFilesGet: <ThrowOnError extends boolean = false>(options: Options<ExecutionContextFilesGetData, ThrowOnError>) => RequestResult$1<ExecutionContextFilesGetResponses, ExecutionContextFilesGetErrors, ThrowOnError, "fields">;
|
|
1832
|
+
declare const executionContextFilesUpload: <ThrowOnError extends boolean = false>(options: Options<ExecutionContextFilesUploadData, ThrowOnError>) => RequestResult$1<ExecutionContextFilesUploadResponses, ExecutionContextFilesUploadErrors, ThrowOnError, "fields">;
|
|
1833
|
+
/**
|
|
1834
|
+
* Send user message to execution
|
|
1835
|
+
* Add a user message to an execution
|
|
1836
|
+
*/
|
|
1837
|
+
declare const executionUserMessagesAdd: <ThrowOnError extends boolean = false>(options: Options<ExecutionUserMessagesAddData, ThrowOnError>) => RequestResult$1<ExecutionUserMessagesAddResponses, ExecutionUserMessagesAddErrors, ThrowOnError, "fields">;
|
|
1621
1838
|
|
|
1622
|
-
type sdk_gen_Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options<TData, ThrowOnError>;
|
|
1623
|
-
declare const
|
|
1624
|
-
declare const
|
|
1625
|
-
declare const
|
|
1839
|
+
type sdk_gen_Options<TData extends TDataShape$1 = TDataShape$1, ThrowOnError extends boolean = boolean> = Options<TData, ThrowOnError>;
|
|
1840
|
+
declare const sdk_gen_agentList: typeof agentList;
|
|
1841
|
+
declare const sdk_gen_executionActivitiesGet: typeof executionActivitiesGet;
|
|
1842
|
+
declare const sdk_gen_executionContextFilesGet: typeof executionContextFilesGet;
|
|
1843
|
+
declare const sdk_gen_executionContextFilesUpload: typeof executionContextFilesUpload;
|
|
1844
|
+
declare const sdk_gen_executionUserMessagesAdd: typeof executionUserMessagesAdd;
|
|
1626
1845
|
declare namespace sdk_gen {
|
|
1627
|
-
export { type sdk_gen_Options as Options,
|
|
1846
|
+
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 };
|
|
1628
1847
|
}
|
|
1629
1848
|
|
|
1630
1849
|
/**
|
|
@@ -1728,7 +1947,7 @@ declare const getBrowserSessionRecording: (client: AsteroidClient, executionId:
|
|
|
1728
1947
|
* const result = await uploadExecutionFiles(client, executionId, files);
|
|
1729
1948
|
* console.log(result.file_ids);
|
|
1730
1949
|
*/
|
|
1731
|
-
declare const uploadExecutionFiles: (client: AsteroidClient, executionId: string, files: Array<Blob | File>) => Promise<{
|
|
1950
|
+
declare const uploadExecutionFiles: (client: AsteroidClient, executionId: string, files: Array<Blob | globalThis.File>) => Promise<{
|
|
1732
1951
|
message?: string;
|
|
1733
1952
|
file_ids?: string[];
|
|
1734
1953
|
}>;
|
|
@@ -1814,7 +2033,6 @@ declare const updateAgentProfile: (client: AsteroidClient, profileId: string, pa
|
|
|
1814
2033
|
declare const deleteAgentProfile: (client: AsteroidClient, profileId: string) => Promise<{
|
|
1815
2034
|
message?: string;
|
|
1816
2035
|
}>;
|
|
1817
|
-
/** --- V2 --- */
|
|
1818
2036
|
/**
|
|
1819
2037
|
* Get the last N execution activities for a given execution ID, sorted by their timestamp in descending order.
|
|
1820
2038
|
*
|
|
@@ -1827,7 +2045,7 @@ declare const deleteAgentProfile: (client: AsteroidClient, profileId: string) =>
|
|
|
1827
2045
|
* const activities = await getLastNExecutionActivities(client, 'execution_123', 10);
|
|
1828
2046
|
* console.log(activities);
|
|
1829
2047
|
*/
|
|
1830
|
-
declare const getLastNExecutionActivities: (client: AsteroidClient, executionId: string, n: number) => Promise<
|
|
2048
|
+
declare const getLastNExecutionActivities: (client: AsteroidClient, executionId: string, n: number) => Promise<AgentsExecutionActivity[]>;
|
|
1831
2049
|
/**
|
|
1832
2050
|
* Add a message to an execution.
|
|
1833
2051
|
*
|
|
@@ -1839,5 +2057,53 @@ declare const getLastNExecutionActivities: (client: AsteroidClient, executionId:
|
|
|
1839
2057
|
* await addMessageToExecution(client, 'execution_123', 'Hello, world!');
|
|
1840
2058
|
*/
|
|
1841
2059
|
declare const addMessageToExecution: (client: AsteroidClient, executionId: string, message: string) => Promise<void>;
|
|
2060
|
+
/**
|
|
2061
|
+
* Get a list of files associated with an execution.
|
|
2062
|
+
*
|
|
2063
|
+
* @param client - The API client.
|
|
2064
|
+
* @param executionId - The execution identifier.
|
|
2065
|
+
* @returns A list of files associated with the execution.
|
|
2066
|
+
*
|
|
2067
|
+
* @example
|
|
2068
|
+
* const files = await getExecutionFiles(client, 'execution_123');
|
|
2069
|
+
* files.forEach(file => {
|
|
2070
|
+
* console.log(`File: ${file.fileName}, Size: ${file.fileSize}`);
|
|
2071
|
+
* });
|
|
2072
|
+
*/
|
|
2073
|
+
declare const getExecutionFiles: (client: AsteroidClient, executionId: string) => Promise<AgentsFilesFile[]>;
|
|
2074
|
+
/**
|
|
2075
|
+
* Download a file from an execution using its signed URL.
|
|
2076
|
+
*
|
|
2077
|
+
* @param client - The API client.
|
|
2078
|
+
* @param file - The File object containing the signed URL and metadata.
|
|
2079
|
+
* @param downloadPath - Path where the file should be saved. Can be a directory or full file path.
|
|
2080
|
+
* @param createDirs - Whether to create parent directories if they don't exist (default: true).
|
|
2081
|
+
* @param timeout - Request timeout in seconds (default: 30).
|
|
2082
|
+
* @returns The full path where the file was saved.
|
|
2083
|
+
*
|
|
2084
|
+
* @example
|
|
2085
|
+
* const files = await getExecutionFiles(client, 'execution_123');
|
|
2086
|
+
* for (const file of files) {
|
|
2087
|
+
* // Download to specific directory
|
|
2088
|
+
* const savedPath = await downloadExecutionFile(client, file, './downloads/');
|
|
2089
|
+
* console.log(`Downloaded ${file.fileName} to ${savedPath}`);
|
|
2090
|
+
*
|
|
2091
|
+
* // Download with specific filename
|
|
2092
|
+
* const savedPath2 = await downloadExecutionFile(client, file, './downloads/my_file.txt');
|
|
2093
|
+
* console.log(`Downloaded to ${savedPath2}`);
|
|
2094
|
+
* }
|
|
2095
|
+
*/
|
|
2096
|
+
declare const downloadExecutionFile: (client: AsteroidClient, file: AgentsFilesFile, downloadPath: string, createDirs?: boolean, timeout?: number) => Promise<string>;
|
|
2097
|
+
/** --- V2 --- */
|
|
2098
|
+
/**
|
|
2099
|
+
* Get a paginated list of agents for an organization.
|
|
2100
|
+
*
|
|
2101
|
+
* @param client - The API client.
|
|
2102
|
+
* @param organizationId - The organization identifier.
|
|
2103
|
+
* @param page - The page number.
|
|
2104
|
+
* @param pageSize - The page size.
|
|
2105
|
+
* @returns The list of agents.
|
|
2106
|
+
*/
|
|
2107
|
+
declare const getAgents: (client: AsteroidClient, organizationId: string, page: number, pageSize: number) => Promise<AgentsAgentBase[]>;
|
|
1842
2108
|
|
|
1843
|
-
export { sdk_gen as AgentsV1SDK, types_gen$1 as AgentsV1Types, sdk_gen
|
|
2109
|
+
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 };
|