@credal/actions 0.2.31 → 0.2.33

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.
Files changed (39) hide show
  1. package/dist/actions/actionMapper.js +57 -43
  2. package/dist/actions/autogen/definitions.d.ts +5 -0
  3. package/dist/actions/autogen/definitions.js +132 -0
  4. package/dist/actions/autogen/templates.d.ts +12 -0
  5. package/dist/actions/autogen/templates.js +647 -0
  6. package/dist/actions/autogen/types.d.ts +535 -0
  7. package/dist/actions/autogen/types.js +188 -0
  8. package/dist/actions/definitions.js +35 -0
  9. package/dist/actions/groups.js +16 -1
  10. package/dist/actions/invokeMapper.d.ts +9 -0
  11. package/dist/actions/invokeMapper.js +33 -0
  12. package/dist/actions/providers/confluence/updatePage.js +9 -13
  13. package/dist/actions/providers/google-oauth/getSheetValue.d.ts +3 -0
  14. package/dist/actions/providers/google-oauth/getSheetValue.js +50 -0
  15. package/dist/actions/providers/google-oauth/getSheetValues.d.ts +3 -0
  16. package/dist/actions/providers/google-oauth/getSheetValues.js +50 -0
  17. package/dist/actions/providers/google-oauth/listGmailThreads.d.ts +3 -0
  18. package/dist/actions/providers/google-oauth/listGmailThreads.js +98 -0
  19. package/dist/actions/providers/google-oauth/searchGmailMessages.d.ts +3 -0
  20. package/dist/actions/providers/google-oauth/searchGmailMessages.js +91 -0
  21. package/dist/actions/providers/googlemaps/nearbysearch.d.ts +3 -0
  22. package/dist/actions/providers/googlemaps/nearbysearch.js +96 -0
  23. package/dist/actions/providers/jira/createServiceDeskRequest.d.ts +3 -0
  24. package/dist/actions/providers/jira/createServiceDeskRequest.js +54 -0
  25. package/dist/actions/providers/jira/createTicket.d.ts +3 -0
  26. package/dist/actions/providers/jira/createTicket.js +34 -0
  27. package/dist/actions/providers/jira/getServiceDesks.d.ts +3 -0
  28. package/dist/actions/providers/jira/getServiceDesks.js +101 -0
  29. package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +3 -0
  30. package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.js +43 -0
  31. package/dist/actions/providers/slack/listConversations.d.ts +1 -1
  32. package/dist/actions/providers/slack/list_conversations.d.ts +3 -0
  33. package/dist/actions/providers/slack/list_conversations.js +60 -0
  34. package/dist/actions/providers/slack/summarizeChannel.d.ts +3 -0
  35. package/dist/actions/providers/slack/summarizeChannel.js +51 -0
  36. package/dist/actions/schema.js +6 -0
  37. package/dist/actions/types.js +2 -0
  38. package/dist/main.js +11 -0
  39. package/package.json +1 -1
@@ -880,6 +880,157 @@ export const jiraCreateJiraTicketDefinition = {
880
880
  name: "createJiraTicket",
881
881
  provider: "jira",
882
882
  };
883
+ export const jiraGetServiceDesksDefinition = {
884
+ description: "Get the service desks for a Jira instance",
885
+ scopes: [],
886
+ parameters: {
887
+ type: "object",
888
+ required: [],
889
+ properties: {},
890
+ },
891
+ output: {
892
+ type: "object",
893
+ required: ["success"],
894
+ properties: {
895
+ success: {
896
+ type: "boolean",
897
+ description: "Whether the service desks were retrieved successfully",
898
+ },
899
+ error: {
900
+ type: "string",
901
+ description: "The error that occurred if the service desks were not retrieved successfully",
902
+ },
903
+ serviceDesks: {
904
+ type: "array",
905
+ description: "The list of service desks",
906
+ items: {
907
+ type: "object",
908
+ description: "A service desk",
909
+ properties: {
910
+ id: {
911
+ type: "string",
912
+ description: "The ID of the service desk",
913
+ },
914
+ projectId: {
915
+ type: "string",
916
+ description: "The ID of the project",
917
+ },
918
+ projectKey: {
919
+ type: "string",
920
+ description: "The key of the project",
921
+ },
922
+ projectName: {
923
+ type: "string",
924
+ description: "The name of the service desk",
925
+ },
926
+ requestTypes: {
927
+ type: "array",
928
+ description: "The list of request types",
929
+ items: {
930
+ type: "object",
931
+ description: "A request type",
932
+ properties: {
933
+ id: {
934
+ type: "string",
935
+ description: "The ID of the request type",
936
+ },
937
+ name: {
938
+ type: "string",
939
+ description: "The name of the request type",
940
+ },
941
+ description: {
942
+ type: "string",
943
+ description: "The description of the request type",
944
+ },
945
+ issueTypeId: {
946
+ type: "string",
947
+ description: "The ID of the issue type",
948
+ },
949
+ portalId: {
950
+ type: "string",
951
+ description: "The ID of the customer portal",
952
+ },
953
+ helpText: {
954
+ type: "string",
955
+ description: "The help text for the request type",
956
+ },
957
+ serviceDeskId: {
958
+ type: "string",
959
+ description: "The ID of the service desk",
960
+ },
961
+ canCreateRequest: {
962
+ type: "boolean",
963
+ description: "Whether the request type can be created",
964
+ },
965
+ },
966
+ },
967
+ },
968
+ },
969
+ },
970
+ },
971
+ },
972
+ },
973
+ name: "getServiceDesks",
974
+ provider: "jira",
975
+ };
976
+ export const jiraCreateServiceDeskRequestDefinition = {
977
+ description: "Create a jira service desk request with specified content",
978
+ scopes: [],
979
+ parameters: {
980
+ type: "object",
981
+ required: ["serviceDeskId", "requestTypeId", "summary", "description"],
982
+ properties: {
983
+ serviceDeskId: {
984
+ type: "string",
985
+ description: "The ID of the service desk to create the request in",
986
+ },
987
+ requestTypeId: {
988
+ type: "string",
989
+ description: "The ID of the request type to use for the new request",
990
+ },
991
+ summary: {
992
+ type: "string",
993
+ description: "The summary of the new service desk request",
994
+ },
995
+ description: {
996
+ type: "string",
997
+ description: "The description for the new service desk request",
998
+ },
999
+ reporter: {
1000
+ type: "string",
1001
+ description: "The email address of the person reporting the issue (for raising on behalf of)",
1002
+ },
1003
+ },
1004
+ },
1005
+ output: {
1006
+ type: "object",
1007
+ required: ["success"],
1008
+ properties: {
1009
+ success: {
1010
+ type: "boolean",
1011
+ description: "Whether the request was created successfully",
1012
+ },
1013
+ error: {
1014
+ type: "string",
1015
+ description: "The error that occurred if the request was not created successfully",
1016
+ },
1017
+ issueKey: {
1018
+ type: "string",
1019
+ description: "The Jira issue key of the created request",
1020
+ },
1021
+ webLink: {
1022
+ type: "string",
1023
+ description: "The link to the customer portal request, if available",
1024
+ },
1025
+ currentStatus: {
1026
+ type: "string",
1027
+ description: "The current status of the created request",
1028
+ },
1029
+ },
1030
+ },
1031
+ name: "createServiceDeskRequest",
1032
+ provider: "jira",
1033
+ };
883
1034
  export const jiraGetJiraTicketDetailsDefinition = {
884
1035
  description: "Get details of a ticket in Jira",
885
1036
  scopes: ["read:jira-work"],
@@ -1090,6 +1241,502 @@ export const jiraGetJiraIssuesByQueryDefinition = {
1090
1241
  name: "getJiraIssuesByQuery",
1091
1242
  provider: "jira",
1092
1243
  };
1244
+ export const jiraOrgAssignJiraTicketDefinition = {
1245
+ description: "Assigns/Re-assignes a Jira ticket to a specified user",
1246
+ scopes: ["write:jira-work", "read:jira-user"],
1247
+ parameters: {
1248
+ type: "object",
1249
+ required: ["projectKey", "issueId", "assignee"],
1250
+ properties: {
1251
+ projectKey: {
1252
+ type: "string",
1253
+ description: "The key for the project you want to add it to",
1254
+ },
1255
+ assignee: {
1256
+ type: "string",
1257
+ description: "The assignee for the ticket, userID or email",
1258
+ },
1259
+ issueId: {
1260
+ type: "string",
1261
+ description: "The issue ID associated with the ticket to be assigned/re-assigned",
1262
+ },
1263
+ },
1264
+ },
1265
+ output: {
1266
+ type: "object",
1267
+ required: ["success"],
1268
+ properties: {
1269
+ success: {
1270
+ type: "boolean",
1271
+ description: "Whether the ticket was successfully assigned/reassigned",
1272
+ },
1273
+ error: {
1274
+ type: "string",
1275
+ description: "The error that occurred if the ticket was not successfully assigned/reassigned",
1276
+ },
1277
+ ticketUrl: {
1278
+ type: "string",
1279
+ description: "The url to the newly assigned/reassigned Jira ticket",
1280
+ },
1281
+ },
1282
+ },
1283
+ name: "assignJiraTicket",
1284
+ provider: "jiraOrg",
1285
+ };
1286
+ export const jiraOrgCommentJiraTicketDefinition = {
1287
+ description: "Comments on a Jira ticket with specified content",
1288
+ scopes: ["write:comment:jira"],
1289
+ parameters: {
1290
+ type: "object",
1291
+ required: ["projectKey", "issueId", "comment"],
1292
+ properties: {
1293
+ projectKey: {
1294
+ type: "string",
1295
+ description: "The key for the project",
1296
+ },
1297
+ issueId: {
1298
+ type: "string",
1299
+ description: "The issue ID associated with the ticket to be commented on",
1300
+ },
1301
+ comment: {
1302
+ type: "string",
1303
+ description: "The text to be commented on the ticket",
1304
+ },
1305
+ },
1306
+ },
1307
+ output: {
1308
+ type: "object",
1309
+ required: ["success"],
1310
+ properties: {
1311
+ success: {
1312
+ type: "boolean",
1313
+ description: "Whether the comment was sent successfully",
1314
+ },
1315
+ error: {
1316
+ type: "string",
1317
+ description: "The error that occurred if the comment was not sent successfully",
1318
+ },
1319
+ commentUrl: {
1320
+ type: "string",
1321
+ description: "The url to the created Jira comment",
1322
+ },
1323
+ },
1324
+ },
1325
+ name: "commentJiraTicket",
1326
+ provider: "jiraOrg",
1327
+ };
1328
+ export const jiraOrgCreateJiraTicketDefinition = {
1329
+ description: "Create a jira ticket with new content specified",
1330
+ scopes: [],
1331
+ parameters: {
1332
+ type: "object",
1333
+ required: ["projectKey", "summary", "description", "issueType"],
1334
+ properties: {
1335
+ projectKey: {
1336
+ type: "string",
1337
+ description: "The key for the project you want to add it to",
1338
+ },
1339
+ summary: {
1340
+ type: "string",
1341
+ description: "The summary of the new ticket",
1342
+ },
1343
+ description: {
1344
+ type: "string",
1345
+ description: "The description for the new ticket",
1346
+ },
1347
+ issueType: {
1348
+ type: "string",
1349
+ description: "The issue type of the new ticket. Should be Epic, Story, Task, Bug, Sub-task, etc.",
1350
+ },
1351
+ reporter: {
1352
+ type: "string",
1353
+ description: "The reporter for the new ticket creation",
1354
+ },
1355
+ assignee: {
1356
+ type: "string",
1357
+ description: "The assignee for the new ticket creation",
1358
+ },
1359
+ customFields: {
1360
+ type: "object",
1361
+ description: "Custom fields to be set on the create ticket request",
1362
+ additionalProperties: true,
1363
+ },
1364
+ },
1365
+ },
1366
+ output: {
1367
+ type: "object",
1368
+ required: ["ticketUrl"],
1369
+ properties: {
1370
+ ticketUrl: {
1371
+ type: "string",
1372
+ description: "The url to the created Jira Ticket",
1373
+ },
1374
+ },
1375
+ },
1376
+ name: "createJiraTicket",
1377
+ provider: "jiraOrg",
1378
+ };
1379
+ export const jiraOrgGetServiceDesksDefinition = {
1380
+ description: "Get the service desks for a Jira instance",
1381
+ scopes: [],
1382
+ parameters: {
1383
+ type: "object",
1384
+ required: [],
1385
+ properties: {},
1386
+ },
1387
+ output: {
1388
+ type: "object",
1389
+ required: ["success"],
1390
+ properties: {
1391
+ success: {
1392
+ type: "boolean",
1393
+ description: "Whether the service desks were retrieved successfully",
1394
+ },
1395
+ error: {
1396
+ type: "string",
1397
+ description: "The error that occurred if the service desks were not retrieved successfully",
1398
+ },
1399
+ serviceDesks: {
1400
+ type: "array",
1401
+ description: "The list of service desks",
1402
+ items: {
1403
+ type: "object",
1404
+ description: "A service desk",
1405
+ properties: {
1406
+ id: {
1407
+ type: "string",
1408
+ description: "The ID of the service desk",
1409
+ },
1410
+ projectId: {
1411
+ type: "string",
1412
+ description: "The ID of the project",
1413
+ },
1414
+ projectKey: {
1415
+ type: "string",
1416
+ description: "The key of the project",
1417
+ },
1418
+ projectName: {
1419
+ type: "string",
1420
+ description: "The name of the service desk",
1421
+ },
1422
+ requestTypes: {
1423
+ type: "array",
1424
+ description: "The list of request types",
1425
+ items: {
1426
+ type: "object",
1427
+ description: "A request type",
1428
+ properties: {
1429
+ id: {
1430
+ type: "string",
1431
+ description: "The ID of the request type",
1432
+ },
1433
+ name: {
1434
+ type: "string",
1435
+ description: "The name of the request type",
1436
+ },
1437
+ description: {
1438
+ type: "string",
1439
+ description: "The description of the request type",
1440
+ },
1441
+ issueTypeId: {
1442
+ type: "string",
1443
+ description: "The ID of the issue type",
1444
+ },
1445
+ portalId: {
1446
+ type: "string",
1447
+ description: "The ID of the customer portal",
1448
+ },
1449
+ helpText: {
1450
+ type: "string",
1451
+ description: "The help text for the request type",
1452
+ },
1453
+ serviceDeskId: {
1454
+ type: "string",
1455
+ description: "The ID of the service desk",
1456
+ },
1457
+ canCreateRequest: {
1458
+ type: "boolean",
1459
+ description: "Whether the request type can be created",
1460
+ },
1461
+ },
1462
+ },
1463
+ },
1464
+ },
1465
+ },
1466
+ },
1467
+ },
1468
+ },
1469
+ name: "getServiceDesks",
1470
+ provider: "jiraOrg",
1471
+ };
1472
+ export const jiraOrgCreateServiceDeskRequestDefinition = {
1473
+ description: "Create a jira service desk request with specified content",
1474
+ scopes: [],
1475
+ parameters: {
1476
+ type: "object",
1477
+ required: ["serviceDeskId", "requestTypeId", "summary", "description"],
1478
+ properties: {
1479
+ serviceDeskId: {
1480
+ type: "string",
1481
+ description: "The ID of the service desk to create the request in",
1482
+ },
1483
+ requestTypeId: {
1484
+ type: "string",
1485
+ description: "The ID of the request type to use for the new request",
1486
+ },
1487
+ summary: {
1488
+ type: "string",
1489
+ description: "The summary of the new service desk request",
1490
+ },
1491
+ description: {
1492
+ type: "string",
1493
+ description: "The description for the new service desk request",
1494
+ },
1495
+ reporter: {
1496
+ type: "string",
1497
+ description: "The email address of the person reporting the issue (for raising on behalf of)",
1498
+ },
1499
+ },
1500
+ },
1501
+ output: {
1502
+ type: "object",
1503
+ required: ["success"],
1504
+ properties: {
1505
+ success: {
1506
+ type: "boolean",
1507
+ description: "Whether the request was created successfully",
1508
+ },
1509
+ error: {
1510
+ type: "string",
1511
+ description: "The error that occurred if the request was not created successfully",
1512
+ },
1513
+ issueKey: {
1514
+ type: "string",
1515
+ description: "The Jira issue key of the created request",
1516
+ },
1517
+ webLink: {
1518
+ type: "string",
1519
+ description: "The link to the customer portal request, if available",
1520
+ },
1521
+ currentStatus: {
1522
+ type: "string",
1523
+ description: "The current status of the created request",
1524
+ },
1525
+ },
1526
+ },
1527
+ name: "createServiceDeskRequest",
1528
+ provider: "jiraOrg",
1529
+ };
1530
+ export const jiraOrgGetJiraTicketDetailsDefinition = {
1531
+ description: "Get details of a ticket in Jira",
1532
+ scopes: ["read:jira-work"],
1533
+ parameters: {
1534
+ type: "object",
1535
+ required: ["projectKey", "issueId"],
1536
+ properties: {
1537
+ projectKey: {
1538
+ type: "string",
1539
+ description: "The key for the project",
1540
+ },
1541
+ issueId: {
1542
+ type: "string",
1543
+ description: "The ID of the ticket",
1544
+ },
1545
+ },
1546
+ },
1547
+ output: {
1548
+ type: "object",
1549
+ required: ["success"],
1550
+ properties: {
1551
+ success: {
1552
+ type: "boolean",
1553
+ description: "Whether the status was updated successfully",
1554
+ },
1555
+ error: {
1556
+ type: "string",
1557
+ description: "The error that occurred if the retrieval was unsuccessful",
1558
+ },
1559
+ data: {
1560
+ type: "object",
1561
+ description: "The data of the Jira ticket",
1562
+ },
1563
+ },
1564
+ },
1565
+ name: "getJiraTicketDetails",
1566
+ provider: "jiraOrg",
1567
+ };
1568
+ export const jiraOrgGetJiraTicketHistoryDefinition = {
1569
+ description: "Get ticket history of a ticket in Jira",
1570
+ scopes: ["read:jira-work"],
1571
+ parameters: {
1572
+ type: "object",
1573
+ required: ["projectKey", "issueId"],
1574
+ properties: {
1575
+ projectKey: {
1576
+ type: "string",
1577
+ description: "The key for the project",
1578
+ },
1579
+ issueId: {
1580
+ type: "string",
1581
+ description: "The ID of the ticket",
1582
+ },
1583
+ },
1584
+ },
1585
+ output: {
1586
+ type: "object",
1587
+ required: ["success"],
1588
+ properties: {
1589
+ success: {
1590
+ type: "boolean",
1591
+ description: "Whether the status was updated successfully",
1592
+ },
1593
+ error: {
1594
+ type: "string",
1595
+ description: "The error that occurred if the retrieval was unsuccessful",
1596
+ },
1597
+ history: {
1598
+ type: "array",
1599
+ description: "The history data of the Jira ticket",
1600
+ },
1601
+ },
1602
+ },
1603
+ name: "getJiraTicketHistory",
1604
+ provider: "jiraOrg",
1605
+ };
1606
+ export const jiraOrgUpdateJiraTicketDetailsDefinition = {
1607
+ description: "Update a Jira ticket with new content specified",
1608
+ scopes: ["write:jira-work"],
1609
+ parameters: {
1610
+ type: "object",
1611
+ required: ["projectKey", "issueId"],
1612
+ properties: {
1613
+ projectKey: {
1614
+ type: "string",
1615
+ description: "The key for the project you want to add it to",
1616
+ },
1617
+ issueId: {
1618
+ type: "string",
1619
+ description: "The issue ID associated with the ticket to be updated",
1620
+ },
1621
+ summary: {
1622
+ type: "string",
1623
+ description: "The updated summary",
1624
+ },
1625
+ description: {
1626
+ type: "string",
1627
+ description: "The updated description",
1628
+ },
1629
+ issueType: {
1630
+ type: "string",
1631
+ description: "The updated issue type",
1632
+ },
1633
+ customFields: {
1634
+ type: "object",
1635
+ description: "Custom fields to be set on the update ticket request",
1636
+ additionalProperties: true,
1637
+ },
1638
+ },
1639
+ },
1640
+ output: {
1641
+ type: "object",
1642
+ required: ["ticketUrl"],
1643
+ properties: {
1644
+ ticketUrl: {
1645
+ type: "string",
1646
+ description: "The url to the Jira ticket",
1647
+ },
1648
+ },
1649
+ },
1650
+ name: "updateJiraTicketDetails",
1651
+ provider: "jiraOrg",
1652
+ };
1653
+ export const jiraOrgUpdateJiraTicketStatusDefinition = {
1654
+ description: "Updates the status of Jira ticket with specified status",
1655
+ scopes: ["read:jira-work", "write:jira-work"],
1656
+ parameters: {
1657
+ type: "object",
1658
+ required: ["projectKey", "issueId", "status"],
1659
+ properties: {
1660
+ projectKey: {
1661
+ type: "string",
1662
+ description: "The key for the project you want to add it to",
1663
+ },
1664
+ issueId: {
1665
+ type: "string",
1666
+ description: "The issue ID associated with the ticket",
1667
+ },
1668
+ status: {
1669
+ type: "string",
1670
+ description: 'The status the ticket should be changed to (eg "In Progress", "Closed")',
1671
+ },
1672
+ },
1673
+ },
1674
+ output: {
1675
+ type: "object",
1676
+ required: ["success"],
1677
+ properties: {
1678
+ success: {
1679
+ type: "boolean",
1680
+ description: "Whether the status was updated successfully",
1681
+ },
1682
+ error: {
1683
+ type: "string",
1684
+ description: "The error that occurred if the status was not updated successfully",
1685
+ },
1686
+ ticketUrl: {
1687
+ type: "string",
1688
+ description: "The url to the Jira ticket",
1689
+ },
1690
+ },
1691
+ },
1692
+ name: "updateJiraTicketStatus",
1693
+ provider: "jiraOrg",
1694
+ };
1695
+ export const jiraOrgGetJiraIssuesByQueryDefinition = {
1696
+ description: "Retrieve Jira Issues by JQL query",
1697
+ scopes: [],
1698
+ parameters: {
1699
+ type: "object",
1700
+ required: ["query"],
1701
+ properties: {
1702
+ query: {
1703
+ type: "string",
1704
+ description: "The JQL query to execute",
1705
+ },
1706
+ limit: {
1707
+ type: "number",
1708
+ description: "The maximum number of records to retrieve",
1709
+ },
1710
+ },
1711
+ },
1712
+ output: {
1713
+ type: "object",
1714
+ required: ["success"],
1715
+ properties: {
1716
+ success: {
1717
+ type: "boolean",
1718
+ description: "Whether the records were successfully retrieved",
1719
+ },
1720
+ records: {
1721
+ type: "array",
1722
+ description: "The retrieved records",
1723
+ items: {
1724
+ type: "object",
1725
+ description: "An issue from Jira",
1726
+ additionalProperties: {
1727
+ type: "string",
1728
+ },
1729
+ },
1730
+ },
1731
+ error: {
1732
+ type: "string",
1733
+ description: "The error that occurred if the records were not successfully retrieved",
1734
+ },
1735
+ },
1736
+ },
1737
+ name: "getJiraIssuesByQuery",
1738
+ provider: "jiraOrg",
1739
+ };
1093
1740
  export const kandjiGetFVRecoveryKeyForDeviceDefinition = {
1094
1741
  description: "Get the FileVault recovery key for a device",
1095
1742
  scopes: [],