asteroid-odyssey 1.3.7 → 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 +360 -180
- package/dist/index.d.ts +360 -180
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
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:
|
|
1309
|
-
};
|
|
1310
|
-
type _Error = {
|
|
1311
|
-
code: number;
|
|
1312
|
-
message: string;
|
|
1316
|
+
data: AgentsExecutionActivityUserMessageReceivedPayload;
|
|
1313
1317
|
};
|
|
1314
|
-
type
|
|
1315
|
-
id:
|
|
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,60 +1372,79 @@ 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
|
-
|
|
1361
|
-
|
|
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 = {
|
|
1362
1389
|
stepNumber: number;
|
|
1363
1390
|
};
|
|
1364
|
-
type
|
|
1391
|
+
type AgentsExecutionActivityStepStartedPayload = {
|
|
1365
1392
|
stepNumber: number;
|
|
1366
1393
|
};
|
|
1367
|
-
type
|
|
1368
|
-
newNodeUUID:
|
|
1394
|
+
type AgentsExecutionActivityTransitionedNodePayload = {
|
|
1395
|
+
newNodeUUID: CommonUuid;
|
|
1369
1396
|
newNodeName: string;
|
|
1370
1397
|
};
|
|
1371
|
-
type
|
|
1398
|
+
type AgentsExecutionActivityUserMessageReceivedPayload = {
|
|
1372
1399
|
message: string;
|
|
1373
|
-
userUUID:
|
|
1400
|
+
userUUID: CommonUuid;
|
|
1374
1401
|
};
|
|
1375
|
-
type
|
|
1402
|
+
type AgentsExecutionAwaitingConfirmationPayload = {
|
|
1376
1403
|
reason: string;
|
|
1377
1404
|
};
|
|
1378
|
-
type
|
|
1379
|
-
type
|
|
1380
|
-
reason:
|
|
1405
|
+
type AgentsExecutionCancelReason = 'timeout' | 'max_steps' | 'user_requested';
|
|
1406
|
+
type AgentsExecutionCancelledPayload = {
|
|
1407
|
+
reason: AgentsExecutionCancelReason;
|
|
1381
1408
|
};
|
|
1382
|
-
type
|
|
1409
|
+
type AgentsExecutionCompletedPayload = {
|
|
1383
1410
|
outcome: 'success' | 'failure';
|
|
1384
1411
|
reasoning: string;
|
|
1385
1412
|
final_answer?: string;
|
|
1386
1413
|
result: unknown;
|
|
1387
1414
|
};
|
|
1388
|
-
type
|
|
1415
|
+
type AgentsExecutionFailedPayload = {
|
|
1389
1416
|
reason: string;
|
|
1390
1417
|
};
|
|
1391
|
-
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 = {
|
|
1392
1429
|
reason: string;
|
|
1393
1430
|
};
|
|
1394
|
-
type
|
|
1395
|
-
type
|
|
1431
|
+
type AgentsExecutionStatus = 'starting' | 'running' | 'paused' | 'awaiting_confirmation' | 'completed' | 'cancelled' | 'failed' | 'paused_by_agent';
|
|
1432
|
+
type AgentsExecutionTerminalPayload = {
|
|
1396
1433
|
reason: 'unsubscribe' | 'complete' | 'error';
|
|
1397
1434
|
message?: string;
|
|
1398
1435
|
};
|
|
1399
|
-
type
|
|
1436
|
+
type AgentsExecutionTransitionDetails = {
|
|
1437
|
+
transitionID: CommonUuid;
|
|
1438
|
+
transitionType: string;
|
|
1439
|
+
};
|
|
1440
|
+
type AgentsExecutionUpdateType = 'add' | 'edit' | 'delete';
|
|
1441
|
+
type AgentsExecutionUserMessagesAddTextBody = {
|
|
1400
1442
|
message: string;
|
|
1401
1443
|
};
|
|
1402
|
-
type
|
|
1403
|
-
id:
|
|
1404
|
-
executionId:
|
|
1405
|
-
agentId:
|
|
1444
|
+
type AgentsFilesFile = {
|
|
1445
|
+
id: CommonUuid;
|
|
1446
|
+
executionId: CommonUuid;
|
|
1447
|
+
agentId: CommonUuid;
|
|
1406
1448
|
filePath: string;
|
|
1407
1449
|
fileName: string;
|
|
1408
1450
|
fileExt: string;
|
|
@@ -1412,16 +1454,68 @@ type File$1 = {
|
|
|
1412
1454
|
createdAt: string;
|
|
1413
1455
|
signedUrl: string;
|
|
1414
1456
|
};
|
|
1415
|
-
type
|
|
1416
|
-
type
|
|
1417
|
-
|
|
1418
|
-
|
|
1457
|
+
type AgentsFilesFilePart = Blob | File;
|
|
1458
|
+
type CommonBadRequestErrorBody = {
|
|
1459
|
+
code: 400;
|
|
1460
|
+
message: string;
|
|
1461
|
+
};
|
|
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 = {
|
|
1419
1513
|
body?: never;
|
|
1420
1514
|
path: {
|
|
1421
1515
|
/**
|
|
1422
1516
|
* The unique identifier of the execution
|
|
1423
1517
|
*/
|
|
1424
|
-
executionId:
|
|
1518
|
+
executionId: CommonUuid;
|
|
1425
1519
|
};
|
|
1426
1520
|
query?: {
|
|
1427
1521
|
/**
|
|
@@ -1435,161 +1529,201 @@ type ActivitiesGetData = {
|
|
|
1435
1529
|
};
|
|
1436
1530
|
url: '/executions/{executionId}/activities';
|
|
1437
1531
|
};
|
|
1438
|
-
type
|
|
1532
|
+
type ExecutionActivitiesGetErrors = {
|
|
1439
1533
|
/**
|
|
1440
|
-
*
|
|
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.
|
|
1441
1543
|
*/
|
|
1442
|
-
|
|
1544
|
+
404: CommonNotFoundErrorBody;
|
|
1443
1545
|
};
|
|
1444
|
-
type
|
|
1445
|
-
type
|
|
1546
|
+
type ExecutionActivitiesGetError = ExecutionActivitiesGetErrors[keyof ExecutionActivitiesGetErrors];
|
|
1547
|
+
type ExecutionActivitiesGetResponses = {
|
|
1446
1548
|
/**
|
|
1447
1549
|
* The request has succeeded.
|
|
1448
1550
|
*/
|
|
1449
|
-
200: Array<
|
|
1551
|
+
200: Array<AgentsExecutionActivity>;
|
|
1450
1552
|
};
|
|
1451
|
-
type
|
|
1452
|
-
type
|
|
1553
|
+
type ExecutionActivitiesGetResponse = ExecutionActivitiesGetResponses[keyof ExecutionActivitiesGetResponses];
|
|
1554
|
+
type ExecutionContextFilesGetData = {
|
|
1453
1555
|
body?: never;
|
|
1454
1556
|
path: {
|
|
1455
|
-
executionId:
|
|
1557
|
+
executionId: CommonUuid;
|
|
1456
1558
|
};
|
|
1457
1559
|
query?: never;
|
|
1458
1560
|
url: '/executions/{executionId}/context-files';
|
|
1459
1561
|
};
|
|
1460
|
-
type
|
|
1562
|
+
type ExecutionContextFilesGetErrors = {
|
|
1461
1563
|
/**
|
|
1462
1564
|
* The server cannot find the requested resource.
|
|
1463
1565
|
*/
|
|
1464
1566
|
404: 'Execution files not found.';
|
|
1465
1567
|
};
|
|
1466
|
-
type
|
|
1467
|
-
type
|
|
1568
|
+
type ExecutionContextFilesGetError = ExecutionContextFilesGetErrors[keyof ExecutionContextFilesGetErrors];
|
|
1569
|
+
type ExecutionContextFilesGetResponses = {
|
|
1468
1570
|
/**
|
|
1469
1571
|
* The request has succeeded.
|
|
1470
1572
|
*/
|
|
1471
|
-
200: Array<
|
|
1573
|
+
200: Array<AgentsFilesFile>;
|
|
1472
1574
|
};
|
|
1473
|
-
type
|
|
1474
|
-
type
|
|
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.
|
|
1589
|
+
*/
|
|
1590
|
+
400: 'Invalid file upload request.';
|
|
1591
|
+
/**
|
|
1592
|
+
* The server cannot find the requested resource.
|
|
1593
|
+
*/
|
|
1594
|
+
404: 'Execution not found.';
|
|
1595
|
+
};
|
|
1596
|
+
type ExecutionContextFilesUploadError = ExecutionContextFilesUploadErrors[keyof ExecutionContextFilesUploadErrors];
|
|
1597
|
+
type ExecutionContextFilesUploadResponses = {
|
|
1598
|
+
/**
|
|
1599
|
+
* The request has succeeded.
|
|
1600
|
+
*/
|
|
1601
|
+
200: 'Files uploaded.';
|
|
1602
|
+
};
|
|
1603
|
+
type ExecutionContextFilesUploadResponse = ExecutionContextFilesUploadResponses[keyof ExecutionContextFilesUploadResponses];
|
|
1604
|
+
type ExecutionUserMessagesAddData = {
|
|
1475
1605
|
/**
|
|
1476
1606
|
* The message content to send
|
|
1477
1607
|
*/
|
|
1478
|
-
body:
|
|
1608
|
+
body: AgentsExecutionUserMessagesAddTextBody;
|
|
1479
1609
|
path: {
|
|
1480
1610
|
/**
|
|
1481
1611
|
* The unique identifier of the execution
|
|
1482
1612
|
*/
|
|
1483
|
-
executionId:
|
|
1613
|
+
executionId: CommonUuid;
|
|
1484
1614
|
};
|
|
1485
1615
|
query?: never;
|
|
1486
1616
|
url: '/executions/{executionId}/user-messages';
|
|
1487
1617
|
};
|
|
1488
|
-
type
|
|
1618
|
+
type ExecutionUserMessagesAddErrors = {
|
|
1489
1619
|
/**
|
|
1490
|
-
*
|
|
1620
|
+
* The server could not understand the request due to invalid syntax.
|
|
1621
|
+
*/
|
|
1622
|
+
400: CommonBadRequestErrorBody;
|
|
1623
|
+
/**
|
|
1624
|
+
* Access is forbidden.
|
|
1625
|
+
*/
|
|
1626
|
+
403: CommonForbiddenErrorBody;
|
|
1627
|
+
/**
|
|
1628
|
+
* The server cannot find the requested resource.
|
|
1491
1629
|
*/
|
|
1492
|
-
|
|
1630
|
+
404: CommonNotFoundErrorBody;
|
|
1493
1631
|
};
|
|
1494
|
-
type
|
|
1495
|
-
type
|
|
1632
|
+
type ExecutionUserMessagesAddError = ExecutionUserMessagesAddErrors[keyof ExecutionUserMessagesAddErrors];
|
|
1633
|
+
type ExecutionUserMessagesAddResponses = {
|
|
1496
1634
|
/**
|
|
1497
1635
|
* The request has succeeded and a new resource has been created as a result.
|
|
1498
1636
|
*/
|
|
1499
1637
|
201: 'User message added.';
|
|
1500
1638
|
};
|
|
1501
|
-
type
|
|
1639
|
+
type ExecutionUserMessagesAddResponse = ExecutionUserMessagesAddResponses[keyof ExecutionUserMessagesAddResponses];
|
|
1502
1640
|
type ClientOptions = {
|
|
1503
|
-
baseUrl: 'https://odyssey.asteroid.ai/agents/
|
|
1641
|
+
baseUrl: 'https://odyssey.asteroid.ai/agents/v2' | (string & {});
|
|
1504
1642
|
};
|
|
1505
1643
|
|
|
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
1644
|
type types_gen_ActivityPayloadUnionActionCompleted = ActivityPayloadUnionActionCompleted;
|
|
1512
1645
|
type types_gen_ActivityPayloadUnionActionFailed = ActivityPayloadUnionActionFailed;
|
|
1513
1646
|
type types_gen_ActivityPayloadUnionActionStarted = ActivityPayloadUnionActionStarted;
|
|
1647
|
+
type types_gen_ActivityPayloadUnionFileAdded = ActivityPayloadUnionFileAdded;
|
|
1514
1648
|
type types_gen_ActivityPayloadUnionGeneric = ActivityPayloadUnionGeneric;
|
|
1649
|
+
type types_gen_ActivityPayloadUnionGraphUpdated = ActivityPayloadUnionGraphUpdated;
|
|
1515
1650
|
type types_gen_ActivityPayloadUnionStatusChanged = ActivityPayloadUnionStatusChanged;
|
|
1516
1651
|
type types_gen_ActivityPayloadUnionStepCompleted = ActivityPayloadUnionStepCompleted;
|
|
1517
1652
|
type types_gen_ActivityPayloadUnionStepStarted = ActivityPayloadUnionStepStarted;
|
|
1518
1653
|
type types_gen_ActivityPayloadUnionTerminal = ActivityPayloadUnionTerminal;
|
|
1519
1654
|
type types_gen_ActivityPayloadUnionTransitionedNode = ActivityPayloadUnionTransitionedNode;
|
|
1520
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;
|
|
1521
1692
|
type types_gen_ClientOptions = ClientOptions;
|
|
1522
|
-
type
|
|
1523
|
-
type
|
|
1524
|
-
type
|
|
1525
|
-
type
|
|
1526
|
-
type
|
|
1527
|
-
type
|
|
1528
|
-
type
|
|
1529
|
-
type
|
|
1530
|
-
type
|
|
1531
|
-
type
|
|
1532
|
-
type
|
|
1533
|
-
type
|
|
1534
|
-
type
|
|
1535
|
-
type
|
|
1536
|
-
type
|
|
1537
|
-
type
|
|
1538
|
-
type
|
|
1539
|
-
type
|
|
1540
|
-
type
|
|
1541
|
-
type
|
|
1542
|
-
type
|
|
1543
|
-
type
|
|
1544
|
-
type
|
|
1545
|
-
type
|
|
1546
|
-
type
|
|
1547
|
-
type
|
|
1548
|
-
type
|
|
1549
|
-
type
|
|
1550
|
-
type
|
|
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;
|
|
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;
|
|
1556
1722
|
declare namespace types_gen {
|
|
1557
|
-
export type {
|
|
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 };
|
|
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 };
|
|
1590
1724
|
}
|
|
1591
1725
|
|
|
1592
|
-
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> & {
|
|
1593
1727
|
/**
|
|
1594
1728
|
* You can provide a client instance returned by `createClient()` instead of
|
|
1595
1729
|
* individual options. This might be also useful if you want to implement a
|
|
@@ -1605,75 +1739,111 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
|
|
|
1605
1739
|
/**
|
|
1606
1740
|
* Get the OpenAPI schema
|
|
1607
1741
|
*/
|
|
1608
|
-
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">;
|
|
1609
1743
|
/**
|
|
1610
1744
|
* Upload files to an execution
|
|
1611
1745
|
*/
|
|
1612
|
-
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">;
|
|
1613
1747
|
/**
|
|
1614
1748
|
* Check the health of the API
|
|
1615
1749
|
*/
|
|
1616
|
-
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">;
|
|
1617
1751
|
/**
|
|
1618
1752
|
* Execute an agent
|
|
1619
1753
|
* Executes an agent with the provided parameters
|
|
1620
1754
|
* @deprecated
|
|
1621
1755
|
*/
|
|
1622
|
-
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">;
|
|
1623
1757
|
/**
|
|
1624
1758
|
* Execute an agent with structured parameters
|
|
1625
1759
|
* Executes an agent with structured parameters including optional agent profile configuration. This is the recommended method for new integrations.
|
|
1626
1760
|
*/
|
|
1627
|
-
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">;
|
|
1628
1762
|
/**
|
|
1629
1763
|
* Get execution status
|
|
1630
1764
|
*/
|
|
1631
|
-
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">;
|
|
1632
1766
|
/**
|
|
1633
1767
|
* Get execution result
|
|
1634
1768
|
*/
|
|
1635
|
-
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">;
|
|
1636
1770
|
/**
|
|
1637
1771
|
* Get browser session recording
|
|
1638
1772
|
* Retrieves the browser session recording URL for a completed execution
|
|
1639
1773
|
*/
|
|
1640
|
-
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">;
|
|
1641
1775
|
/**
|
|
1642
1776
|
* Get agent profiles
|
|
1643
1777
|
* Returns all agent profiles for the organization. If organization_id is not provided, returns profiles for all user's organizations.
|
|
1644
1778
|
*/
|
|
1645
|
-
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">;
|
|
1646
1780
|
/**
|
|
1647
1781
|
* Create an agent profile
|
|
1648
1782
|
* Creates a new agent profile for the organization
|
|
1649
1783
|
*/
|
|
1650
|
-
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">;
|
|
1651
1785
|
/**
|
|
1652
1786
|
* Delete an agent profile
|
|
1653
1787
|
* Deletes the specified agent profile
|
|
1654
1788
|
*/
|
|
1655
|
-
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">;
|
|
1656
1790
|
/**
|
|
1657
1791
|
* Get an agent profile by ID
|
|
1658
1792
|
* Returns the complete agent profile including credentials
|
|
1659
1793
|
*/
|
|
1660
|
-
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">;
|
|
1661
1795
|
/**
|
|
1662
1796
|
* Update an agent profile
|
|
1663
1797
|
* Updates an agent profile including metadata and/or credentials
|
|
1664
1798
|
*/
|
|
1665
|
-
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">;
|
|
1666
1800
|
/**
|
|
1667
1801
|
* Get the public key for credentials
|
|
1668
1802
|
*/
|
|
1669
|
-
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
|
+
}
|
|
1670
1811
|
|
|
1671
|
-
type
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
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">;
|
|
1838
|
+
|
|
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;
|
|
1675
1845
|
declare namespace sdk_gen {
|
|
1676
|
-
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 };
|
|
1677
1847
|
}
|
|
1678
1848
|
|
|
1679
1849
|
/**
|
|
@@ -1863,7 +2033,6 @@ declare const updateAgentProfile: (client: AsteroidClient, profileId: string, pa
|
|
|
1863
2033
|
declare const deleteAgentProfile: (client: AsteroidClient, profileId: string) => Promise<{
|
|
1864
2034
|
message?: string;
|
|
1865
2035
|
}>;
|
|
1866
|
-
/** --- V2 --- */
|
|
1867
2036
|
/**
|
|
1868
2037
|
* Get the last N execution activities for a given execution ID, sorted by their timestamp in descending order.
|
|
1869
2038
|
*
|
|
@@ -1876,7 +2045,7 @@ declare const deleteAgentProfile: (client: AsteroidClient, profileId: string) =>
|
|
|
1876
2045
|
* const activities = await getLastNExecutionActivities(client, 'execution_123', 10);
|
|
1877
2046
|
* console.log(activities);
|
|
1878
2047
|
*/
|
|
1879
|
-
declare const getLastNExecutionActivities: (client: AsteroidClient, executionId: string, n: number) => Promise<
|
|
2048
|
+
declare const getLastNExecutionActivities: (client: AsteroidClient, executionId: string, n: number) => Promise<AgentsExecutionActivity[]>;
|
|
1880
2049
|
/**
|
|
1881
2050
|
* Add a message to an execution.
|
|
1882
2051
|
*
|
|
@@ -1901,7 +2070,7 @@ declare const addMessageToExecution: (client: AsteroidClient, executionId: strin
|
|
|
1901
2070
|
* console.log(`File: ${file.fileName}, Size: ${file.fileSize}`);
|
|
1902
2071
|
* });
|
|
1903
2072
|
*/
|
|
1904
|
-
declare const getExecutionFiles: (client: AsteroidClient, executionId: string) => Promise<
|
|
2073
|
+
declare const getExecutionFiles: (client: AsteroidClient, executionId: string) => Promise<AgentsFilesFile[]>;
|
|
1905
2074
|
/**
|
|
1906
2075
|
* Download a file from an execution using its signed URL.
|
|
1907
2076
|
*
|
|
@@ -1924,6 +2093,17 @@ declare const getExecutionFiles: (client: AsteroidClient, executionId: string) =
|
|
|
1924
2093
|
* console.log(`Downloaded to ${savedPath2}`);
|
|
1925
2094
|
* }
|
|
1926
2095
|
*/
|
|
1927
|
-
declare const downloadExecutionFile: (client: AsteroidClient, file:
|
|
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[]>;
|
|
1928
2108
|
|
|
1929
|
-
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 };
|