@credal/actions 0.1.31 → 0.1.32

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 (67) hide show
  1. package/dist/actions/actionMapper.js +138 -0
  2. package/dist/actions/autogen/templates.d.ts +22 -0
  3. package/dist/actions/autogen/templates.js +883 -1
  4. package/dist/actions/autogen/types.d.ts +660 -8
  5. package/dist/actions/autogen/types.js +245 -1
  6. package/dist/actions/groups.js +20 -3
  7. package/dist/actions/invoke.js +3 -0
  8. package/dist/actions/parse.js +3 -0
  9. package/dist/actions/providers/ashby/addCandidateToProject.d.ts +3 -0
  10. package/dist/actions/providers/ashby/addCandidateToProject.js +32 -0
  11. package/dist/actions/providers/ashby/createCandidate.d.ts +3 -0
  12. package/dist/actions/providers/ashby/createCandidate.js +42 -0
  13. package/dist/actions/providers/ashby/createNote.d.ts +3 -0
  14. package/dist/actions/providers/ashby/createNote.js +32 -0
  15. package/dist/actions/providers/ashby/getCandidateInfo.d.ts +3 -0
  16. package/dist/actions/providers/ashby/getCandidateInfo.js +34 -0
  17. package/dist/actions/providers/ashby/listCandidateNotes.d.ts +3 -0
  18. package/dist/actions/providers/ashby/listCandidateNotes.js +34 -0
  19. package/dist/actions/providers/ashby/listCandidates.d.ts +3 -0
  20. package/dist/actions/providers/ashby/listCandidates.js +31 -0
  21. package/dist/actions/providers/ashby/searchCandidates.d.ts +3 -0
  22. package/dist/actions/providers/ashby/searchCandidates.js +35 -0
  23. package/dist/actions/providers/ashby/updateCandidate.d.ts +3 -0
  24. package/dist/actions/providers/ashby/updateCandidate.js +60 -0
  25. package/dist/actions/providers/confluence/updatePage.js +15 -14
  26. package/dist/actions/providers/google-oauth/scheduleCalendarMeeting.d.ts +6 -0
  27. package/dist/actions/providers/google-oauth/scheduleCalendarMeeting.js +74 -0
  28. package/dist/actions/providers/jira/assignJiraTicket.d.ts +3 -0
  29. package/dist/actions/providers/jira/assignJiraTicket.js +52 -0
  30. package/dist/actions/providers/jira/commentJiraTicket.d.ts +3 -0
  31. package/dist/actions/providers/jira/commentJiraTicket.js +56 -0
  32. package/dist/actions/providers/jira/createJiraTicket.js +3 -24
  33. package/dist/actions/providers/jira/utils.d.ts +1 -0
  34. package/dist/actions/providers/jira/utils.js +34 -0
  35. package/dist/actions/providers/microsoft/messageTeamsChannel.d.ts +3 -0
  36. package/dist/actions/providers/microsoft/messageTeamsChannel.js +45 -0
  37. package/dist/actions/providers/microsoft/messageTeamsChat.d.ts +3 -0
  38. package/dist/actions/providers/microsoft/messageTeamsChat.js +42 -0
  39. package/dist/actions/providers/microsoft/utils.d.ts +4 -0
  40. package/dist/actions/providers/microsoft/utils.js +55 -0
  41. package/dist/actions/providers/salesforce/createCase.d.ts +3 -0
  42. package/dist/actions/providers/salesforce/createCase.js +44 -0
  43. package/dist/actions/providers/salesforce/generateSalesReport.d.ts +3 -0
  44. package/dist/actions/providers/salesforce/generateSalesReport.js +52 -0
  45. package/dist/actions/providers/salesforce/getRecord.d.ts +3 -0
  46. package/dist/actions/providers/salesforce/getRecord.js +42 -0
  47. package/dist/actions/providers/salesforce/updateRecord.d.ts +3 -0
  48. package/dist/actions/providers/salesforce/updateRecord.js +42 -0
  49. package/dist/actions/providers/slack/getChannelMessages.d.ts +3 -0
  50. package/dist/actions/providers/slack/getChannelMessages.js +33 -0
  51. package/dist/actions/providers/workday/requestTimeOff.d.ts +23 -0
  52. package/dist/actions/providers/workday/requestTimeOff.js +88 -0
  53. package/dist/actions/providers/zendesk/addCommentToTicket.d.ts +3 -0
  54. package/dist/actions/providers/zendesk/addCommentToTicket.js +37 -0
  55. package/dist/actions/providers/zendesk/assignTicket.d.ts +3 -0
  56. package/dist/actions/providers/zendesk/assignTicket.js +37 -0
  57. package/dist/actions/providers/zendesk/getTicketDetails.d.ts +3 -0
  58. package/dist/actions/providers/zendesk/getTicketDetails.js +35 -0
  59. package/dist/actions/providers/zendesk/updateTicketStatus.d.ts +3 -0
  60. package/dist/actions/providers/zendesk/updateTicketStatus.js +37 -0
  61. package/package.json +6 -1
  62. package/dist/actions/providers/googlemaps/nearbysearch.d.ts +0 -3
  63. package/dist/actions/providers/googlemaps/nearbysearch.js +0 -96
  64. package/dist/actions/providers/snowflake/runSnowflakeQueryWriteResultsToS3.d.ts +0 -3
  65. package/dist/actions/providers/snowflake/runSnowflakeQueryWriteResultsToS3.js +0 -154
  66. package/dist/actions/providers/x/scrapeTweetDataWithNitter.d.ts +0 -3
  67. package/dist/actions/providers/x/scrapeTweetDataWithNitter.js +0 -45
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.lookerEnableUserByEmailDefinition = exports.finnhubGetBasicFinancialsDefinition = exports.finnhubSymbolLookupDefinition = exports.googleOauthCreateNewGoogleDocDefinition = exports.resendSendEmailDefinition = exports.firecrawlScrapeTweetDataWithNitterDefinition = exports.firecrawlScrapeUrlDefinition = exports.nwsGetForecastForLocationDefinition = exports.openstreetmapGetLatitudeLongitudeFromLocationDefinition = exports.snowflakeRunSnowflakeQueryDefinition = exports.snowflakeGetRowByFieldValueDefinition = exports.mongoInsertMongoDocDefinition = exports.xCreateShareXPostUrlDefinition = exports.linkedinCreateShareLinkedinPostUrlDefinition = exports.zendeskCreateZendeskTicketDefinition = exports.credalCallCopilotDefinition = exports.googlemapsNearbysearchRestaurantsDefinition = exports.googlemapsValidateAddressDefinition = exports.jiraCreateJiraTicketDefinition = exports.confluenceFetchPageContentDefinition = exports.confluenceOverwritePageDefinition = exports.mathAddDefinition = exports.slackListConversationsDefinition = exports.slackSendMessageDefinition = void 0;
3
+ exports.microsoftMessageTeamsChannelDefinition = exports.microsoftMessageTeamsChatDefinition = exports.salesforceGetRecordDefinition = exports.salesforceGenerateSalesReportDefinition = exports.salesforceCreateCaseDefinition = exports.salesforceUpdateRecordDefinition = exports.ashbyUpdateCandidateDefinition = exports.ashbyCreateCandidateDefinition = exports.ashbyListCandidateNotesDefinition = exports.ashbySearchCandidatesDefinition = exports.ashbyListCandidatesDefinition = exports.ashbyAddCandidateToProjectDefinition = exports.ashbyGetCandidateInfoDefinition = exports.ashbyCreateNoteDefinition = exports.lookerEnableUserByEmailDefinition = exports.finnhubGetBasicFinancialsDefinition = exports.finnhubSymbolLookupDefinition = exports.googleOauthScheduleCalendarMeetingDefinition = exports.googleOauthCreateNewGoogleDocDefinition = exports.resendSendEmailDefinition = exports.firecrawlScrapeTweetDataWithNitterDefinition = exports.firecrawlScrapeUrlDefinition = exports.nwsGetForecastForLocationDefinition = exports.openstreetmapGetLatitudeLongitudeFromLocationDefinition = exports.snowflakeRunSnowflakeQueryDefinition = exports.snowflakeGetRowByFieldValueDefinition = exports.mongoInsertMongoDocDefinition = exports.xCreateShareXPostUrlDefinition = exports.linkedinCreateShareLinkedinPostUrlDefinition = exports.zendeskAssignTicketDefinition = exports.zendeskAddCommentToTicketDefinition = exports.zendeskUpdateTicketStatusDefinition = exports.zendeskGetTicketDetailsDefinition = exports.zendeskCreateZendeskTicketDefinition = exports.credalCallCopilotDefinition = exports.googlemapsNearbysearchRestaurantsDefinition = exports.googlemapsValidateAddressDefinition = exports.jiraCreateJiraTicketDefinition = exports.jiraAssignJiraTicketDefinition = exports.jiraCommentJiraTicketDefinition = exports.confluenceFetchPageContentDefinition = exports.confluenceOverwritePageDefinition = exports.mathAddDefinition = exports.slackGetChannelMessagesDefinition = exports.slackListConversationsDefinition = exports.slackSendMessageDefinition = void 0;
4
4
  exports.slackSendMessageDefinition = {
5
5
  description: "Sends a message to a Slack channel",
6
6
  scopes: ["chat:write"],
@@ -60,6 +60,55 @@ exports.slackListConversationsDefinition = {
60
60
  name: "listConversations",
61
61
  provider: "slack",
62
62
  };
63
+ exports.slackGetChannelMessagesDefinition = {
64
+ description: "Gets messages from a Slack channel",
65
+ scopes: ["channels:history"],
66
+ parameters: {
67
+ type: "object",
68
+ required: ["channelName", "oldest"],
69
+ properties: {
70
+ channelName: {
71
+ type: "string",
72
+ description: "Name of the channel to summarize",
73
+ },
74
+ oldest: {
75
+ type: "string",
76
+ description: "Only messages after this Unix timestamp will be included in results",
77
+ },
78
+ },
79
+ },
80
+ output: {
81
+ type: "object",
82
+ required: ["messages"],
83
+ properties: {
84
+ messages: {
85
+ type: "array",
86
+ description: "The messages in the channel",
87
+ items: {
88
+ type: "object",
89
+ description: "A message in the channel",
90
+ required: ["user", "text", "ts"],
91
+ properties: {
92
+ user: {
93
+ type: "string",
94
+ description: "The user who sent the message",
95
+ },
96
+ text: {
97
+ type: "string",
98
+ description: "The text of the message",
99
+ },
100
+ ts: {
101
+ type: "string",
102
+ description: "The timestamp of the message",
103
+ },
104
+ },
105
+ },
106
+ },
107
+ },
108
+ },
109
+ name: "getChannelMessages",
110
+ provider: "slack",
111
+ };
63
112
  exports.mathAddDefinition = {
64
113
  description: "Adds two numbers together",
65
114
  scopes: [],
@@ -148,6 +197,90 @@ exports.confluenceFetchPageContentDefinition = {
148
197
  name: "fetchPageContent",
149
198
  provider: "confluence",
150
199
  };
200
+ exports.jiraCommentJiraTicketDefinition = {
201
+ description: "Comments on a Jira ticket with specified content",
202
+ scopes: ["write:comment:jira"],
203
+ parameters: {
204
+ type: "object",
205
+ required: ["projectKey", "issueId", "comment"],
206
+ properties: {
207
+ projectKey: {
208
+ type: "string",
209
+ description: "The key for the project you want to add it to",
210
+ },
211
+ issueId: {
212
+ type: "string",
213
+ description: "The issue ID associated with the ticket to be commented on",
214
+ },
215
+ comment: {
216
+ type: "string",
217
+ description: "The text to be commented on the ticket",
218
+ },
219
+ },
220
+ },
221
+ output: {
222
+ type: "object",
223
+ required: ["success"],
224
+ properties: {
225
+ success: {
226
+ type: "boolean",
227
+ description: "Whether the comment was sent successfully",
228
+ },
229
+ error: {
230
+ type: "string",
231
+ description: "The error that occurred if the comment was not sent successfully",
232
+ },
233
+ commentUrl: {
234
+ type: "string",
235
+ description: "The url to the created Jira comment",
236
+ },
237
+ },
238
+ },
239
+ name: "commentJiraTicket",
240
+ provider: "jira",
241
+ };
242
+ exports.jiraAssignJiraTicketDefinition = {
243
+ description: "Assigns/Re-assignes a Jira ticket to a specified user",
244
+ scopes: ["write:jira-work", "read:jira-user"],
245
+ parameters: {
246
+ type: "object",
247
+ required: ["projectKey", "issueId", "assignee"],
248
+ properties: {
249
+ projectKey: {
250
+ type: "string",
251
+ description: "The key for the project you want to add it to",
252
+ },
253
+ assignee: {
254
+ type: "string",
255
+ description: "The assignee for the ticket, userID or email",
256
+ },
257
+ issueId: {
258
+ type: "string",
259
+ description: "The issue ID associated with the ticket to be assigned/re-assigned",
260
+ },
261
+ },
262
+ },
263
+ output: {
264
+ type: "object",
265
+ required: ["success"],
266
+ properties: {
267
+ success: {
268
+ type: "boolean",
269
+ description: "Whether the ticket was successfully assigned/reassigned",
270
+ },
271
+ error: {
272
+ type: "string",
273
+ description: "The error that occurred if the ticket was not successfully assigned/reassigned",
274
+ },
275
+ ticketUrl: {
276
+ type: "string",
277
+ description: "The url to the newly assigned/reassigned Jira ticket",
278
+ },
279
+ },
280
+ },
281
+ name: "assignJiraTicket",
282
+ provider: "jira",
283
+ };
151
284
  exports.jiraCreateJiraTicketDefinition = {
152
285
  description: "Create a jira ticket with new content specified",
153
286
  scopes: [],
@@ -604,6 +737,119 @@ exports.zendeskCreateZendeskTicketDefinition = {
604
737
  name: "createZendeskTicket",
605
738
  provider: "zendesk",
606
739
  };
740
+ exports.zendeskGetTicketDetailsDefinition = {
741
+ description: "Get details of a ticket in Zendesk",
742
+ scopes: [],
743
+ parameters: {
744
+ type: "object",
745
+ required: ["ticketId", "subdomain"],
746
+ properties: {
747
+ ticketId: {
748
+ type: "string",
749
+ description: "The ID of the ticket",
750
+ },
751
+ subdomain: {
752
+ type: "string",
753
+ description: "The subdomain of the Zendesk account",
754
+ },
755
+ },
756
+ },
757
+ output: {
758
+ type: "object",
759
+ required: ["ticket"],
760
+ properties: {
761
+ ticket: {
762
+ type: "object",
763
+ description: "The details of the ticket",
764
+ },
765
+ },
766
+ },
767
+ name: "getTicketDetails",
768
+ provider: "zendesk",
769
+ };
770
+ exports.zendeskUpdateTicketStatusDefinition = {
771
+ description: "Update the status of a ticket in Zendesk",
772
+ scopes: [],
773
+ parameters: {
774
+ type: "object",
775
+ required: ["ticketId", "subdomain", "status"],
776
+ properties: {
777
+ ticketId: {
778
+ type: "string",
779
+ description: "The ID of the ticket to update",
780
+ },
781
+ subdomain: {
782
+ type: "string",
783
+ description: "The subdomain of the Zendesk account",
784
+ },
785
+ status: {
786
+ type: "string",
787
+ description: 'The state of the ticket. If your account has activated custom ticket statuses, this is the ticket\'s status category. Allowed values are "new", "open", "pending", "hold", "solved", or "closed".',
788
+ },
789
+ },
790
+ },
791
+ name: "updateTicketStatus",
792
+ provider: "zendesk",
793
+ };
794
+ exports.zendeskAddCommentToTicketDefinition = {
795
+ description: "Add a comment to a ticket in Zendesk",
796
+ scopes: [],
797
+ parameters: {
798
+ type: "object",
799
+ required: ["ticketId", "subdomain", "comment"],
800
+ properties: {
801
+ ticketId: {
802
+ type: "string",
803
+ description: "The ID of the ticket to update",
804
+ },
805
+ subdomain: {
806
+ type: "string",
807
+ description: "The subdomain of the Zendesk account",
808
+ },
809
+ comment: {
810
+ type: "object",
811
+ description: "The comment to add to the ticket",
812
+ required: ["body"],
813
+ properties: {
814
+ body: {
815
+ type: "string",
816
+ description: "The body of the comment",
817
+ },
818
+ public: {
819
+ type: "boolean",
820
+ description: "Whether the comment should be public",
821
+ },
822
+ },
823
+ },
824
+ },
825
+ },
826
+ name: "addCommentToTicket",
827
+ provider: "zendesk",
828
+ };
829
+ exports.zendeskAssignTicketDefinition = {
830
+ description: "Assign a ticket in Zendesk to a specific user",
831
+ scopes: [],
832
+ parameters: {
833
+ type: "object",
834
+ required: ["ticketId", "subdomain", "assigneeEmail"],
835
+ properties: {
836
+ ticketId: {
837
+ type: "string",
838
+ description: "The ID of the ticket to update",
839
+ },
840
+ subdomain: {
841
+ type: "string",
842
+ description: "The subdomain of the Zendesk account",
843
+ },
844
+ assigneeEmail: {
845
+ type: "string",
846
+ description: "The email address of the agent to assign the ticket to",
847
+ },
848
+ },
849
+ },
850
+ name: "assignTicket",
851
+ provider: "zendesk",
852
+ };
607
853
  exports.linkedinCreateShareLinkedinPostUrlDefinition = {
608
854
  description: "Create a share linkedin post link",
609
855
  scopes: [],
@@ -1045,6 +1291,72 @@ exports.googleOauthCreateNewGoogleDocDefinition = {
1045
1291
  name: "createNewGoogleDoc",
1046
1292
  provider: "googleOauth",
1047
1293
  };
1294
+ exports.googleOauthScheduleCalendarMeetingDefinition = {
1295
+ description: "Schedule a meeting on google calendar using OAuth authentication",
1296
+ scopes: [],
1297
+ parameters: {
1298
+ type: "object",
1299
+ required: ["calendarId", "name", "start", "end"],
1300
+ properties: {
1301
+ calendarId: {
1302
+ type: "string",
1303
+ description: "The ID of the calendar to schedule the meeting on",
1304
+ },
1305
+ name: {
1306
+ type: "string",
1307
+ description: "The name of the meeting",
1308
+ },
1309
+ start: {
1310
+ type: "string",
1311
+ description: "The start time of the meeting",
1312
+ },
1313
+ end: {
1314
+ type: "string",
1315
+ description: "The end time of the meeting",
1316
+ },
1317
+ description: {
1318
+ type: "string",
1319
+ description: "The description of the meeting",
1320
+ },
1321
+ attendees: {
1322
+ type: "array",
1323
+ description: "The attendees of the meeting",
1324
+ items: {
1325
+ type: "string",
1326
+ description: "The email of the attendee",
1327
+ },
1328
+ },
1329
+ useGoogleMeet: {
1330
+ type: "boolean",
1331
+ description: "Whether to use Google Meet for the meeting",
1332
+ },
1333
+ },
1334
+ },
1335
+ output: {
1336
+ type: "object",
1337
+ required: ["success"],
1338
+ properties: {
1339
+ success: {
1340
+ type: "boolean",
1341
+ description: "Whether the meeting was scheduled successfully",
1342
+ },
1343
+ eventId: {
1344
+ type: "string",
1345
+ description: "The ID of the event that was scheduled",
1346
+ },
1347
+ eventUrl: {
1348
+ type: "string",
1349
+ description: "The URL to access the scheduled event",
1350
+ },
1351
+ error: {
1352
+ type: "string",
1353
+ description: "The error that occurred if the meeting was not scheduled successfully",
1354
+ },
1355
+ },
1356
+ },
1357
+ name: "scheduleCalendarMeeting",
1358
+ provider: "googleOauth",
1359
+ };
1048
1360
  exports.finnhubSymbolLookupDefinition = {
1049
1361
  description: "Look up a stock symbol by name",
1050
1362
  scopes: [],
@@ -1238,3 +1550,573 @@ exports.lookerEnableUserByEmailDefinition = {
1238
1550
  name: "enableUserByEmail",
1239
1551
  provider: "looker",
1240
1552
  };
1553
+ exports.ashbyCreateNoteDefinition = {
1554
+ description: "Creates a note on a candidate",
1555
+ scopes: [],
1556
+ parameters: {
1557
+ type: "object",
1558
+ required: ["candidateId", "note"],
1559
+ properties: {
1560
+ candidateId: {
1561
+ type: "string",
1562
+ description: "The ID of the candidate to create a note for",
1563
+ },
1564
+ note: {
1565
+ type: "string",
1566
+ description: "The note content",
1567
+ },
1568
+ },
1569
+ },
1570
+ name: "createNote",
1571
+ provider: "ashby",
1572
+ };
1573
+ exports.ashbyGetCandidateInfoDefinition = {
1574
+ description: "Gets a candidate's information",
1575
+ scopes: [],
1576
+ parameters: {
1577
+ type: "object",
1578
+ required: ["candidateId"],
1579
+ properties: {
1580
+ candidateId: {
1581
+ type: "string",
1582
+ description: "The ID of the candidate whose information is to be retrieved",
1583
+ },
1584
+ },
1585
+ },
1586
+ output: {
1587
+ type: "object",
1588
+ required: ["candidate"],
1589
+ properties: {
1590
+ candidate: {
1591
+ type: "object",
1592
+ description: "The candidate's information",
1593
+ required: [],
1594
+ },
1595
+ },
1596
+ },
1597
+ name: "getCandidateInfo",
1598
+ provider: "ashby",
1599
+ };
1600
+ exports.ashbyAddCandidateToProjectDefinition = {
1601
+ description: "Adds a candidate to a project",
1602
+ scopes: [],
1603
+ parameters: {
1604
+ type: "object",
1605
+ required: ["candidateId", "projectId"],
1606
+ properties: {
1607
+ candidateId: {
1608
+ type: "string",
1609
+ description: "The ID of the candidate to add to the project",
1610
+ },
1611
+ projectId: {
1612
+ type: "string",
1613
+ description: "The ID of the project to add the candidate to",
1614
+ },
1615
+ },
1616
+ },
1617
+ name: "addCandidateToProject",
1618
+ provider: "ashby",
1619
+ };
1620
+ exports.ashbyListCandidatesDefinition = {
1621
+ description: "Lists all candidates",
1622
+ scopes: [],
1623
+ output: {
1624
+ type: "object",
1625
+ required: ["candidates"],
1626
+ properties: {
1627
+ candidates: {
1628
+ type: "array",
1629
+ description: "A list of candidates",
1630
+ },
1631
+ },
1632
+ },
1633
+ name: "listCandidates",
1634
+ provider: "ashby",
1635
+ };
1636
+ exports.ashbySearchCandidatesDefinition = {
1637
+ description: "Search for candidates by email and/or name.",
1638
+ scopes: [],
1639
+ parameters: {
1640
+ type: "object",
1641
+ required: [],
1642
+ properties: {
1643
+ email: {
1644
+ type: "string",
1645
+ description: "The email address of the candidate to search for",
1646
+ },
1647
+ name: {
1648
+ type: "string",
1649
+ description: "The name of the candidate to search for",
1650
+ },
1651
+ },
1652
+ },
1653
+ output: {
1654
+ type: "object",
1655
+ required: ["candidates"],
1656
+ properties: {
1657
+ candidates: {
1658
+ type: "array",
1659
+ description: "A list of candidates",
1660
+ },
1661
+ },
1662
+ },
1663
+ name: "searchCandidates",
1664
+ provider: "ashby",
1665
+ };
1666
+ exports.ashbyListCandidateNotesDefinition = {
1667
+ description: "Lists all notes on a candidate",
1668
+ scopes: [],
1669
+ parameters: {
1670
+ type: "object",
1671
+ required: ["candidateId"],
1672
+ properties: {
1673
+ candidateId: {
1674
+ type: "string",
1675
+ description: "The ID of the candidate",
1676
+ },
1677
+ },
1678
+ },
1679
+ output: {
1680
+ type: "object",
1681
+ required: ["notes"],
1682
+ properties: {
1683
+ notes: {
1684
+ type: "array",
1685
+ description: "A list of notes",
1686
+ },
1687
+ },
1688
+ },
1689
+ name: "listCandidateNotes",
1690
+ provider: "ashby",
1691
+ };
1692
+ exports.ashbyCreateCandidateDefinition = {
1693
+ description: "Creates a candidate",
1694
+ scopes: [],
1695
+ parameters: {
1696
+ type: "object",
1697
+ required: ["name"],
1698
+ properties: {
1699
+ name: {
1700
+ type: "string",
1701
+ description: "The first and last name of the candidate to be created.",
1702
+ },
1703
+ email: {
1704
+ type: "string",
1705
+ description: "Primary, personal email of the candidate to be created.",
1706
+ },
1707
+ phoneNumber: {
1708
+ type: "string",
1709
+ description: "Primary, personal phone number of the candidate to be created.",
1710
+ },
1711
+ linkedInUrl: {
1712
+ type: "string",
1713
+ description: "Url to the candidate's LinkedIn profile. Must be a valid Url.",
1714
+ },
1715
+ githubUrl: {
1716
+ type: "string",
1717
+ description: "Url to the candidate's Github profile. Must be a valid Url.",
1718
+ },
1719
+ website: {
1720
+ type: "string",
1721
+ description: "Url of the candidate's website. Must be a valid Url.",
1722
+ },
1723
+ alternateEmailAddresses: {
1724
+ type: "array",
1725
+ description: "Array of alternate email address to add to the candidate's profile.",
1726
+ items: {
1727
+ type: "string",
1728
+ },
1729
+ },
1730
+ sourceId: {
1731
+ type: "string",
1732
+ description: "The source to set on the candidate being created.",
1733
+ },
1734
+ creditedToUserId: {
1735
+ type: "string",
1736
+ description: "The id of the user the candidate will be credited to.",
1737
+ },
1738
+ location: {
1739
+ type: "object",
1740
+ description: "The location of the candidate.",
1741
+ properties: {
1742
+ city: {
1743
+ type: "string",
1744
+ description: "The city of the candidate.",
1745
+ },
1746
+ region: {
1747
+ type: "string",
1748
+ description: "The region of the candidate.",
1749
+ },
1750
+ country: {
1751
+ type: "string",
1752
+ description: "The country of the candidate.",
1753
+ },
1754
+ },
1755
+ },
1756
+ },
1757
+ },
1758
+ name: "createCandidate",
1759
+ provider: "ashby",
1760
+ };
1761
+ exports.ashbyUpdateCandidateDefinition = {
1762
+ description: "Updates a candidate",
1763
+ scopes: [],
1764
+ parameters: {
1765
+ type: "object",
1766
+ required: ["candidateId"],
1767
+ properties: {
1768
+ candidateId: {
1769
+ type: "string",
1770
+ description: "The ID of the candidate to update",
1771
+ },
1772
+ name: {
1773
+ type: "string",
1774
+ description: "The first and last name of the candidate to update.",
1775
+ },
1776
+ email: {
1777
+ type: "string",
1778
+ description: "Primary, personal email of the candidate to update.",
1779
+ },
1780
+ phoneNumber: {
1781
+ type: "string",
1782
+ description: "Primary, personal phone number of the candidate to update.",
1783
+ },
1784
+ linkedInUrl: {
1785
+ type: "string",
1786
+ description: "Url to the candidate's LinkedIn profile. Must be a valid Url.",
1787
+ },
1788
+ githubUrl: {
1789
+ type: "string",
1790
+ description: "Url to the candidate's Github profile. Must be a valid Url.",
1791
+ },
1792
+ websiteUrl: {
1793
+ type: "string",
1794
+ description: "Url of the candidate's website. Must be a valid Url.",
1795
+ },
1796
+ alternateEmail: {
1797
+ type: "string",
1798
+ description: "An alternate email address to add to the candidate's profile.",
1799
+ },
1800
+ socialLinks: {
1801
+ type: "array",
1802
+ description: "An array of social links to set on the candidate. This value replaces existing socialLinks that have been set on the candidate.",
1803
+ items: {
1804
+ type: "object",
1805
+ properties: {
1806
+ type: {
1807
+ type: "string",
1808
+ description: "The type of social link",
1809
+ },
1810
+ url: {
1811
+ type: "string",
1812
+ description: "The URL of the social link",
1813
+ },
1814
+ },
1815
+ },
1816
+ },
1817
+ sourceId: {
1818
+ type: "string",
1819
+ description: "The id of source for this candidate.",
1820
+ },
1821
+ creditedToUserId: {
1822
+ type: "string",
1823
+ description: "The id of the user the candidate will be credited to.",
1824
+ },
1825
+ location: {
1826
+ type: "object",
1827
+ description: "The location of the candidate.",
1828
+ properties: {
1829
+ city: {
1830
+ type: "string",
1831
+ description: "The city of the candidate",
1832
+ },
1833
+ region: {
1834
+ type: "string",
1835
+ description: "The region of the candidate",
1836
+ },
1837
+ country: {
1838
+ type: "string",
1839
+ description: "The country of the candidate",
1840
+ },
1841
+ },
1842
+ },
1843
+ createdAt: {
1844
+ type: "string",
1845
+ description: "An ISO date string to set the candidate's createdAt timestamp.",
1846
+ },
1847
+ sendNotifications: {
1848
+ type: "boolean",
1849
+ description: "Whether or not users who are subscribed to the candidate should be notified that candidate was updated. Default is true.",
1850
+ },
1851
+ },
1852
+ },
1853
+ name: "updateCandidate",
1854
+ provider: "ashby",
1855
+ };
1856
+ exports.salesforceUpdateRecordDefinition = {
1857
+ description: "Update a record in Salesforce",
1858
+ scopes: [],
1859
+ parameters: {
1860
+ type: "object",
1861
+ required: ["objectType", "recordId", "fieldsToUpdate"],
1862
+ properties: {
1863
+ objectType: {
1864
+ type: "string",
1865
+ description: "The Salesforce object type to update (e.g., Lead, Account, Contact)",
1866
+ },
1867
+ recordId: {
1868
+ type: "string",
1869
+ description: "The ID of the record to update",
1870
+ },
1871
+ fieldsToUpdate: {
1872
+ type: "object",
1873
+ description: "The fields to update on the record",
1874
+ additionalProperties: {
1875
+ type: "string",
1876
+ },
1877
+ },
1878
+ },
1879
+ },
1880
+ output: {
1881
+ type: "object",
1882
+ required: ["success"],
1883
+ properties: {
1884
+ success: {
1885
+ type: "boolean",
1886
+ description: "Whether the record was successfully updated",
1887
+ },
1888
+ error: {
1889
+ type: "string",
1890
+ description: "The error that occurred if the record was not successfully updated",
1891
+ },
1892
+ },
1893
+ },
1894
+ name: "updateRecord",
1895
+ provider: "salesforce",
1896
+ };
1897
+ exports.salesforceCreateCaseDefinition = {
1898
+ description: "Create a case or support ticket in Salesforce",
1899
+ scopes: [],
1900
+ parameters: {
1901
+ type: "object",
1902
+ required: ["subject", "description", "priority", "origin"],
1903
+ properties: {
1904
+ subject: {
1905
+ type: "string",
1906
+ description: "The subject of the case",
1907
+ },
1908
+ description: {
1909
+ type: "string",
1910
+ description: "The detailed description of the case",
1911
+ },
1912
+ priority: {
1913
+ type: "string",
1914
+ description: "The priority of the case (e.g., High, Medium, Low)",
1915
+ },
1916
+ origin: {
1917
+ type: "string",
1918
+ description: "The origin of the case (e.g., Phone, Email, Web)",
1919
+ },
1920
+ customFields: {
1921
+ type: "object",
1922
+ description: "Additional custom fields to set on the case",
1923
+ additionalProperties: {
1924
+ type: "string",
1925
+ },
1926
+ },
1927
+ },
1928
+ },
1929
+ output: {
1930
+ type: "object",
1931
+ required: ["success"],
1932
+ properties: {
1933
+ success: {
1934
+ type: "boolean",
1935
+ description: "Whether the case was successfully created",
1936
+ },
1937
+ caseId: {
1938
+ type: "string",
1939
+ description: "The ID of the created case",
1940
+ },
1941
+ error: {
1942
+ type: "string",
1943
+ description: "The error that occurred if the case was not successfully created",
1944
+ },
1945
+ },
1946
+ },
1947
+ name: "createCase",
1948
+ provider: "salesforce",
1949
+ };
1950
+ exports.salesforceGenerateSalesReportDefinition = {
1951
+ description: "Generate a sales report from Salesforce",
1952
+ scopes: [],
1953
+ parameters: {
1954
+ type: "object",
1955
+ required: ["startDate", "endDate"],
1956
+ properties: {
1957
+ startDate: {
1958
+ type: "string",
1959
+ description: "The start date for the sales report in ISO 8601 format (e.g., 2025-01-01).",
1960
+ },
1961
+ endDate: {
1962
+ type: "string",
1963
+ description: "The end date for the sales report in ISO 8601 format (e.g., 2025-01-31).",
1964
+ },
1965
+ filters: {
1966
+ type: "object",
1967
+ description: "Additional filters for the sales report (e.g., by region, product).",
1968
+ additionalProperties: {
1969
+ type: "string",
1970
+ },
1971
+ },
1972
+ },
1973
+ },
1974
+ output: {
1975
+ type: "object",
1976
+ required: ["success"],
1977
+ properties: {
1978
+ success: {
1979
+ type: "boolean",
1980
+ description: "Whether the sales report was successfully generated.",
1981
+ },
1982
+ reportData: {
1983
+ type: "array",
1984
+ description: "The data of the sales report.",
1985
+ items: {
1986
+ type: "object",
1987
+ description: "A row in the sales report.",
1988
+ additionalProperties: {
1989
+ type: "string",
1990
+ },
1991
+ },
1992
+ },
1993
+ error: {
1994
+ type: "string",
1995
+ description: "The error that occurred if the sales report was not successfully generated.",
1996
+ },
1997
+ },
1998
+ },
1999
+ name: "generateSalesReport",
2000
+ provider: "salesforce",
2001
+ };
2002
+ exports.salesforceGetRecordDefinition = {
2003
+ description: "Retrieve a record from Salesforce",
2004
+ scopes: [],
2005
+ parameters: {
2006
+ type: "object",
2007
+ required: ["objectType", "recordId"],
2008
+ properties: {
2009
+ objectType: {
2010
+ type: "string",
2011
+ description: "The Salesforce object type to retrieve (e.g., Lead, Account, Contact)",
2012
+ },
2013
+ recordId: {
2014
+ type: "string",
2015
+ description: "The ID of the record to retrieve",
2016
+ },
2017
+ },
2018
+ },
2019
+ output: {
2020
+ type: "object",
2021
+ required: ["success"],
2022
+ properties: {
2023
+ success: {
2024
+ type: "boolean",
2025
+ description: "Whether the record was successfully retrieved",
2026
+ },
2027
+ record: {
2028
+ type: "object",
2029
+ description: "The retrieved record data",
2030
+ additionalProperties: {
2031
+ type: "string",
2032
+ },
2033
+ },
2034
+ error: {
2035
+ type: "string",
2036
+ description: "The error that occurred if the record was not successfully retrieved",
2037
+ },
2038
+ },
2039
+ },
2040
+ name: "getRecord",
2041
+ provider: "salesforce",
2042
+ };
2043
+ exports.microsoftMessageTeamsChatDefinition = {
2044
+ description: "Sends a message to a Microsoft Teams chat",
2045
+ scopes: ["chat:write"],
2046
+ parameters: {
2047
+ type: "object",
2048
+ required: ["chatId", "message"],
2049
+ properties: {
2050
+ chatId: {
2051
+ type: "string",
2052
+ description: "The chat ID of the Microsoft Teams chat",
2053
+ },
2054
+ message: {
2055
+ type: "string",
2056
+ description: "The text to be messaged to the chat",
2057
+ },
2058
+ },
2059
+ },
2060
+ output: {
2061
+ type: "object",
2062
+ required: ["success"],
2063
+ properties: {
2064
+ success: {
2065
+ type: "boolean",
2066
+ description: "Whether the message was sent successfully",
2067
+ },
2068
+ error: {
2069
+ type: "string",
2070
+ description: "The error that occurred if the message was not sent successfully",
2071
+ },
2072
+ messageId: {
2073
+ type: "string",
2074
+ description: "The ID of the message that was sent",
2075
+ },
2076
+ },
2077
+ },
2078
+ name: "messageTeamsChat",
2079
+ provider: "microsoft",
2080
+ };
2081
+ exports.microsoftMessageTeamsChannelDefinition = {
2082
+ description: "Sends a message to a Microsoft Teams channel",
2083
+ scopes: ["chat:write"],
2084
+ parameters: {
2085
+ type: "object",
2086
+ required: ["teamId", "channelId", "message"],
2087
+ properties: {
2088
+ teamId: {
2089
+ type: "string",
2090
+ description: "The team ID of the Microsoft Teams channel",
2091
+ },
2092
+ channelId: {
2093
+ type: "string",
2094
+ description: "The channel ID of the Microsoft Teams channel",
2095
+ },
2096
+ message: {
2097
+ type: "string",
2098
+ description: "The text to be messaged to the channel",
2099
+ },
2100
+ },
2101
+ },
2102
+ output: {
2103
+ type: "object",
2104
+ required: ["success"],
2105
+ properties: {
2106
+ success: {
2107
+ type: "boolean",
2108
+ description: "Whether the message was sent successfully",
2109
+ },
2110
+ error: {
2111
+ type: "string",
2112
+ description: "The error that occurred if the message was not sent successfully",
2113
+ },
2114
+ messageId: {
2115
+ type: "string",
2116
+ description: "The ID of the message that was sent",
2117
+ },
2118
+ },
2119
+ },
2120
+ name: "messageTeamsChannel",
2121
+ provider: "microsoft",
2122
+ };