@credal/actions 0.2.219 → 0.2.220

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 (69) hide show
  1. package/dist/actions/actionMapper.js +8 -1
  2. package/dist/actions/autogen/templates.d.ts +1 -0
  3. package/dist/actions/autogen/templates.js +52 -0
  4. package/dist/actions/autogen/types.d.ts +36 -0
  5. package/dist/actions/autogen/types.js +16 -0
  6. package/dist/actions/providers/confluenceDataCenter/createPage.d.ts +3 -0
  7. package/dist/actions/providers/confluenceDataCenter/createPage.js +40 -0
  8. package/dist/actions/providers/github/searchRepository.js +7 -7
  9. package/package.json +1 -1
  10. package/dist/actions/providers/ashby/addCandidateToProject.d.ts +0 -3
  11. package/dist/actions/providers/ashby/addCandidateToProject.js +0 -31
  12. package/dist/actions/providers/ashby/createCandidate.d.ts +0 -3
  13. package/dist/actions/providers/ashby/createCandidate.js +0 -38
  14. package/dist/actions/providers/ashby/createNote.d.ts +0 -3
  15. package/dist/actions/providers/ashby/createNote.js +0 -31
  16. package/dist/actions/providers/ashby/getCandidateInfo.d.ts +0 -3
  17. package/dist/actions/providers/ashby/getCandidateInfo.js +0 -33
  18. package/dist/actions/providers/ashby/listCandidateNotes.d.ts +0 -3
  19. package/dist/actions/providers/ashby/listCandidateNotes.js +0 -33
  20. package/dist/actions/providers/ashby/listCandidates.d.ts +0 -3
  21. package/dist/actions/providers/ashby/listCandidates.js +0 -30
  22. package/dist/actions/providers/ashby/searchCandidates.d.ts +0 -3
  23. package/dist/actions/providers/ashby/searchCandidates.js +0 -34
  24. package/dist/actions/providers/ashby/updateCandidate.d.ts +0 -3
  25. package/dist/actions/providers/ashby/updateCandidate.js +0 -56
  26. package/dist/actions/providers/gong/getGongTranscripts.d.ts +0 -3
  27. package/dist/actions/providers/gong/getGongTranscripts.js +0 -315
  28. package/dist/actions/providers/google-oauth/listFilesWithAssignedComments.d.ts +0 -3
  29. package/dist/actions/providers/google-oauth/listFilesWithAssignedComments.js +0 -41
  30. package/dist/actions/providers/jamf/getJamfComputerInventory.d.ts +0 -3
  31. package/dist/actions/providers/jamf/getJamfComputerInventory.js +0 -37
  32. package/dist/actions/providers/jamf/getJamfFileVaultRecoveryKey.d.ts +0 -3
  33. package/dist/actions/providers/jamf/getJamfFileVaultRecoveryKey.js +0 -39
  34. package/dist/actions/providers/jamf/getJamfUserComputerId.d.ts +0 -3
  35. package/dist/actions/providers/jamf/getJamfUserComputerId.js +0 -45
  36. package/dist/actions/providers/jamf/lockJamfComputerById.d.ts +0 -3
  37. package/dist/actions/providers/jamf/lockJamfComputerById.js +0 -39
  38. package/dist/actions/providers/jira/updateServiceDeskRequest.d.ts +0 -3
  39. package/dist/actions/providers/jira/updateServiceDeskRequest.js +0 -72
  40. package/dist/actions/providers/kandji/getFVRecoveryKeyForDevice.d.ts +0 -3
  41. package/dist/actions/providers/kandji/getFVRecoveryKeyForDevice.js +0 -85
  42. package/dist/actions/providers/microsoft/sendOutlookEmail.d.ts +0 -3
  43. package/dist/actions/providers/microsoft/sendOutlookEmail.js +0 -48
  44. package/dist/actions/providers/okta/addUserToGroup.d.ts +0 -3
  45. package/dist/actions/providers/okta/addUserToGroup.js +0 -56
  46. package/dist/actions/providers/okta/getOktaGroup.d.ts +0 -3
  47. package/dist/actions/providers/okta/getOktaGroup.js +0 -73
  48. package/dist/actions/providers/okta/getOktaUser.d.ts +0 -3
  49. package/dist/actions/providers/okta/getOktaUser.js +0 -40
  50. package/dist/actions/providers/okta/listMFA.d.ts +0 -3
  51. package/dist/actions/providers/okta/listMFA.js +0 -52
  52. package/dist/actions/providers/okta/listOktaGroupMembers.d.ts +0 -3
  53. package/dist/actions/providers/okta/listOktaGroupMembers.js +0 -99
  54. package/dist/actions/providers/okta/listOktaGroups.d.ts +0 -3
  55. package/dist/actions/providers/okta/listOktaGroups.js +0 -92
  56. package/dist/actions/providers/okta/listOktaUserGroups.d.ts +0 -3
  57. package/dist/actions/providers/okta/listOktaUserGroups.js +0 -83
  58. package/dist/actions/providers/okta/listOktaUsers.d.ts +0 -3
  59. package/dist/actions/providers/okta/listOktaUsers.js +0 -100
  60. package/dist/actions/providers/okta/removeUserFromGroup.d.ts +0 -3
  61. package/dist/actions/providers/okta/removeUserFromGroup.js +0 -56
  62. package/dist/actions/providers/okta/resetMFA.d.ts +0 -3
  63. package/dist/actions/providers/okta/resetMFA.js +0 -62
  64. package/dist/actions/providers/okta/resetPassword.d.ts +0 -3
  65. package/dist/actions/providers/okta/resetPassword.js +0 -57
  66. package/dist/actions/providers/okta/triggerOktaWorkflow.d.ts +0 -3
  67. package/dist/actions/providers/okta/triggerOktaWorkflow.js +0 -44
  68. package/dist/actions/providers/salesforce/fetchSalesforceSchema.d.ts +0 -3
  69. package/dist/actions/providers/salesforce/fetchSalesforceSchema.js +0 -40
@@ -1,4 +1,4 @@
1
- import { genericFillTemplateParamsSchema, genericFillTemplateOutputSchema, confluenceOverwritePageParamsSchema, confluenceOverwritePageOutputSchema, googlemapsValidateAddressOutputSchema, googlemapsValidateAddressParamsSchema, googleOauthCreateNewGoogleDocParamsSchema, googleOauthCreateNewGoogleDocOutputSchema, mathAddOutputSchema, mathAddParamsSchema, mongoInsertMongoDocOutputSchema, mongoInsertMongoDocParamsSchema, slackSendMessageOutputSchema, slackSendMessageParamsSchema, slackGetChannelMessagesOutputSchema, slackGetChannelMessagesParamsSchema, slackCreateChannelParamsSchema, slackCreateChannelOutputSchema, snowflakeGetRowByFieldValueOutputSchema, snowflakeGetRowByFieldValueParamsSchema, zendeskCreateZendeskTicketOutputSchema, zendeskCreateZendeskTicketParamsSchema, zendeskGetTicketDetailsOutputSchema, zendeskGetTicketDetailsParamsSchema, zendeskUpdateTicketStatusOutputSchema, zendeskUpdateTicketStatusParamsSchema, zendeskAddCommentToTicketOutputSchema, zendeskAddCommentToTicketParamsSchema, zendeskAssignTicketOutputSchema, zendeskAssignTicketParamsSchema, zendeskListZendeskTicketsOutputSchema, zendeskListZendeskTicketsParamsSchema, zendeskSearchZendeskByQueryOutputSchema, zendeskSearchZendeskByQueryParamsSchema, jiraAssignJiraTicketParamsSchema, jiraAssignJiraTicketOutputSchema, jiraCommentJiraTicketParamsSchema, jiraCommentJiraTicketOutputSchema, jiraCommentJiraTicketWithMentionsParamsSchema, jiraCommentJiraTicketWithMentionsOutputSchema, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraMoveJiraTicketToProjectParamsSchema, jiraMoveJiraTicketToProjectOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema, jiraCreateServiceDeskRequestParamsSchema, jiraCreateServiceDeskRequestOutputSchema, jiraLinkJiraIssuesParamsSchema, jiraLinkJiraIssuesOutputSchema, jiraLinkAndAssignJiraIssuesParamsSchema, jiraLinkAndAssignJiraIssuesOutputSchema, openstreetmapGetLatitudeLongitudeFromLocationParamsSchema, openstreetmapGetLatitudeLongitudeFromLocationOutputSchema, nwsGetForecastForLocationParamsSchema, nwsGetForecastForLocationOutputSchema, googlemapsNearbysearchRestaurantsOutputSchema, googlemapsNearbysearchRestaurantsParamsSchema, firecrawlScrapeUrlOutputSchema, firecrawlScrapeUrlParamsSchema, resendSendEmailOutputSchema, resendSendEmailHtmlParamsSchema, resendSendEmailHtmlOutputSchema, firecrawlScrapeTweetDataWithNitterParamsSchema, firecrawlScrapeTweetDataWithNitterOutputSchema, resendSendEmailParamsSchema, linkedinCreateShareLinkedinPostUrlParamsSchema, linkedinCreateShareLinkedinPostUrlOutputSchema, xCreateShareXPostUrlParamsSchema, xCreateShareXPostUrlOutputSchema, finnhubSymbolLookupParamsSchema, finnhubSymbolLookupOutputSchema, finnhubGetBasicFinancialsParamsSchema, finnhubGetBasicFinancialsOutputSchema, confluenceFetchPageContentParamsSchema, confluenceFetchPageContentOutputSchema, confluenceDataCenterOverwritePageParamsSchema, confluenceDataCenterOverwritePageOutputSchema, confluenceDataCenterFetchPageContentParamsSchema, confluenceDataCenterFetchPageContentOutputSchema, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthAddTextToTopOfDocParamsSchema, googleOauthAddTextToTopOfDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, googleOauthGetSpreadsheetMetadataParamsSchema, googleOauthGetSpreadsheetMetadataOutputSchema, googleOauthUpdateSpreadsheetParamsSchema, googleOauthUpdateSpreadsheetOutputSchema, googleOauthAppendRowsToSpreadsheetParamsSchema, googleOauthAppendRowsToSpreadsheetOutputSchema, googleOauthDeleteRowFromSpreadsheetParamsSchema, googleOauthDeleteRowFromSpreadsheetOutputSchema, googleOauthScheduleCalendarMeetingParamsSchema, googleOauthScheduleCalendarMeetingOutputSchema, googleOauthListCalendarsParamsSchema, googleOauthListCalendarsOutputSchema, googleOauthListCalendarEventsParamsSchema, googleOauthListCalendarEventsOutputSchema, googleOauthUpdateCalendarEventParamsSchema, googleOauthUpdateCalendarEventOutputSchema, googleOauthDeleteCalendarEventParamsSchema, googleOauthDeleteCalendarEventOutputSchema, googleOauthEditAGoogleCalendarEventParamsSchema, googleOauthEditAGoogleCalendarEventOutputSchema, googleOauthCreatePresentationParamsSchema, googleOauthCreatePresentationOutputSchema, googleOauthUpdatePresentationParamsSchema, googleOauthUpdatePresentationOutputSchema, googleOauthGetPresentationParamsSchema, googleOauthGetPresentationOutputSchema, googleOauthSearchDriveByKeywordsParamsSchema, googleOauthSearchDriveByKeywordsOutputSchema, googleOauthListGroupsOutputSchema, googleOauthListGroupsParamsSchema, googleOauthGetGroupOutputSchema, googleOauthGetGroupParamsSchema, googleOauthListGroupMembersOutputSchema, googleOauthListGroupMembersParamsSchema, googleOauthHasGroupMemberOutputSchema, googleOauthHasGroupMemberParamsSchema, googleOauthAddGroupMemberOutputSchema, googleOauthAddGroupMemberParamsSchema, googleOauthDeleteGroupMemberOutputSchema, googleOauthDeleteGroupMemberParamsSchema, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, jiraDataCenterGetJiraIssuesByQueryOutputSchema, jiraDataCenterGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, gitlabSearchGroupOutputSchema, gitlabSearchGroupParamsSchema, githubSearchOrganizationOutputSchema, githubSearchOrganizationParamsSchema, salesforceSearchSalesforceRecordsParamsSchema, salesforceSearchSalesforceRecordsOutputSchema, googleOauthGetDriveFileContentByIdOutputSchema, googleOauthGetDriveFileContentByIdParamsSchema, googleOauthSearchDriveByQueryOutputSchema, googleOauthSearchDriveByQueryParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentOutputSchema, googleOauthQueryGoogleBigQueryParamsSchema, googleOauthQueryGoogleBigQueryOutputSchema, githubGetFileContentParamsSchema, githubGetFileContentOutputSchema, githubListDirectoryOutputSchema, githubListDirectoryParamsSchema, githubGetBranchParamsSchema, githubGetBranchOutputSchema, githubListCommitsParamsSchema, githubListCommitsOutputSchema, githubGetPullRequestDetailsParamsSchema, githubGetPullRequestDetailsOutputSchema, linearGetIssuesParamsSchema, linearGetIssuesOutputSchema, linearGetIssueDetailsParamsSchema, linearGetIssueDetailsOutputSchema, linearGetProjectDetailsParamsSchema, linearGetProjectDetailsOutputSchema, linearGetTeamDetailsParamsSchema, linearGetTeamDetailsOutputSchema, linearGetProjectsParamsSchema, linearGetProjectsOutputSchema, linearGetTeamsParamsSchema, linearGetTeamsOutputSchema, linearCreateIssueParamsSchema, linearCreateIssueOutputSchema, hubspotGetContactsParamsSchema, hubspotGetContactsOutputSchema, hubspotGetContactDetailsParamsSchema, hubspotGetContactDetailsOutputSchema, hubspotGetCompaniesParamsSchema, hubspotGetCompaniesOutputSchema, hubspotGetCompanyDetailsParamsSchema, hubspotGetCompanyDetailsOutputSchema, hubspotGetDealsParamsSchema, hubspotGetDealsOutputSchema, hubspotGetDealDetailsParamsSchema, hubspotGetDealDetailsOutputSchema, hubspotGetTicketsParamsSchema, hubspotGetTicketsOutputSchema, hubspotGetTicketDetailsParamsSchema, hubspotGetTicketDetailsOutputSchema, gitlabGetFileContentParamsSchema, gitlabGetFileContentOutputSchema, gitlabGetMergeRequestParamsSchema, gitlabGetMergeRequestOutputSchema, jiraPublicCommentOnServiceDeskRequestParamsSchema, jiraPublicCommentOnServiceDeskRequestOutputSchema, googlemailSendGmailParamsSchema, googlemailSendGmailOutputSchema, googlemailReplyToGmailParamsSchema, googlemailReplyToGmailOutputSchema, gitlabListDirectoryParamsSchema, gitlabListDirectoryOutputSchema, firecrawlSearchAndScrapeOutputSchema, firecrawlSearchAndScrapeParamsSchema, firecrawlGetTopNSearchResultUrlsParamsSchema, firecrawlGetTopNSearchResultUrlsOutputSchema, googleOauthSearchDriveByKeywordsAndGetFileContentParamsSchema, googleOauthSearchDriveByKeywordsAndGetFileContentOutputSchema, perplexityPerplexityDeepResearchParamsSchema, perplexityPerplexityDeepResearchOutputSchema, slackUserSearchSlackParamsSchema, slackUserSearchSlackOutputSchema, slackUserSearchSlackRTSParamsSchema, slackUserSearchSlackRTSOutputSchema, oktaOrgGetOktaUserByNameParamsSchema, oktaOrgGetOktaUserByNameOutputSchema, googleSearchCustomSearchParamsSchema, googleSearchCustomSearchOutputSchema, salesforceSearchAllSalesforceRecordsParamsSchema, salesforceSearchAllSalesforceRecordsOutputSchema, salesforceListReportsParamsSchema, salesforceListReportsOutputSchema, salesforceExecuteReportParamsSchema, salesforceExecuteReportOutputSchema, slackSendDmFromBotParamsSchema, slackSendDmFromBotOutputSchema, slackGetChannelMembersParamsSchema, slackGetChannelMembersOutputSchema, salesforceGetReportMetadataParamsSchema, salesforceGetReportMetadataOutputSchema, googleOauthUpdateRowsInSpreadsheetParamsSchema, googleOauthUpdateRowsInSpreadsheetOutputSchema, } from "./autogen/types.js";
1
+ import { genericFillTemplateParamsSchema, genericFillTemplateOutputSchema, confluenceOverwritePageParamsSchema, confluenceOverwritePageOutputSchema, googlemapsValidateAddressOutputSchema, googlemapsValidateAddressParamsSchema, googleOauthCreateNewGoogleDocParamsSchema, googleOauthCreateNewGoogleDocOutputSchema, mathAddOutputSchema, mathAddParamsSchema, mongoInsertMongoDocOutputSchema, mongoInsertMongoDocParamsSchema, slackSendMessageOutputSchema, slackSendMessageParamsSchema, slackGetChannelMessagesOutputSchema, slackGetChannelMessagesParamsSchema, slackCreateChannelParamsSchema, slackCreateChannelOutputSchema, snowflakeGetRowByFieldValueOutputSchema, snowflakeGetRowByFieldValueParamsSchema, zendeskCreateZendeskTicketOutputSchema, zendeskCreateZendeskTicketParamsSchema, zendeskGetTicketDetailsOutputSchema, zendeskGetTicketDetailsParamsSchema, zendeskUpdateTicketStatusOutputSchema, zendeskUpdateTicketStatusParamsSchema, zendeskAddCommentToTicketOutputSchema, zendeskAddCommentToTicketParamsSchema, zendeskAssignTicketOutputSchema, zendeskAssignTicketParamsSchema, zendeskListZendeskTicketsOutputSchema, zendeskListZendeskTicketsParamsSchema, zendeskSearchZendeskByQueryOutputSchema, zendeskSearchZendeskByQueryParamsSchema, jiraAssignJiraTicketParamsSchema, jiraAssignJiraTicketOutputSchema, jiraCommentJiraTicketParamsSchema, jiraCommentJiraTicketOutputSchema, jiraCommentJiraTicketWithMentionsParamsSchema, jiraCommentJiraTicketWithMentionsOutputSchema, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraMoveJiraTicketToProjectParamsSchema, jiraMoveJiraTicketToProjectOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema, jiraCreateServiceDeskRequestParamsSchema, jiraCreateServiceDeskRequestOutputSchema, jiraLinkJiraIssuesParamsSchema, jiraLinkJiraIssuesOutputSchema, jiraLinkAndAssignJiraIssuesParamsSchema, jiraLinkAndAssignJiraIssuesOutputSchema, openstreetmapGetLatitudeLongitudeFromLocationParamsSchema, openstreetmapGetLatitudeLongitudeFromLocationOutputSchema, nwsGetForecastForLocationParamsSchema, nwsGetForecastForLocationOutputSchema, googlemapsNearbysearchRestaurantsOutputSchema, googlemapsNearbysearchRestaurantsParamsSchema, firecrawlScrapeUrlOutputSchema, firecrawlScrapeUrlParamsSchema, resendSendEmailOutputSchema, resendSendEmailHtmlParamsSchema, resendSendEmailHtmlOutputSchema, firecrawlScrapeTweetDataWithNitterParamsSchema, firecrawlScrapeTweetDataWithNitterOutputSchema, resendSendEmailParamsSchema, linkedinCreateShareLinkedinPostUrlParamsSchema, linkedinCreateShareLinkedinPostUrlOutputSchema, xCreateShareXPostUrlParamsSchema, xCreateShareXPostUrlOutputSchema, finnhubSymbolLookupParamsSchema, finnhubSymbolLookupOutputSchema, finnhubGetBasicFinancialsParamsSchema, finnhubGetBasicFinancialsOutputSchema, confluenceFetchPageContentParamsSchema, confluenceFetchPageContentOutputSchema, confluenceDataCenterOverwritePageParamsSchema, confluenceDataCenterOverwritePageOutputSchema, confluenceDataCenterCreatePageParamsSchema, confluenceDataCenterCreatePageOutputSchema, confluenceDataCenterFetchPageContentParamsSchema, confluenceDataCenterFetchPageContentOutputSchema, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthAddTextToTopOfDocParamsSchema, googleOauthAddTextToTopOfDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, googleOauthGetSpreadsheetMetadataParamsSchema, googleOauthGetSpreadsheetMetadataOutputSchema, googleOauthUpdateSpreadsheetParamsSchema, googleOauthUpdateSpreadsheetOutputSchema, googleOauthAppendRowsToSpreadsheetParamsSchema, googleOauthAppendRowsToSpreadsheetOutputSchema, googleOauthDeleteRowFromSpreadsheetParamsSchema, googleOauthDeleteRowFromSpreadsheetOutputSchema, googleOauthScheduleCalendarMeetingParamsSchema, googleOauthScheduleCalendarMeetingOutputSchema, googleOauthListCalendarsParamsSchema, googleOauthListCalendarsOutputSchema, googleOauthListCalendarEventsParamsSchema, googleOauthListCalendarEventsOutputSchema, googleOauthUpdateCalendarEventParamsSchema, googleOauthUpdateCalendarEventOutputSchema, googleOauthDeleteCalendarEventParamsSchema, googleOauthDeleteCalendarEventOutputSchema, googleOauthEditAGoogleCalendarEventParamsSchema, googleOauthEditAGoogleCalendarEventOutputSchema, googleOauthCreatePresentationParamsSchema, googleOauthCreatePresentationOutputSchema, googleOauthUpdatePresentationParamsSchema, googleOauthUpdatePresentationOutputSchema, googleOauthGetPresentationParamsSchema, googleOauthGetPresentationOutputSchema, googleOauthSearchDriveByKeywordsParamsSchema, googleOauthSearchDriveByKeywordsOutputSchema, googleOauthListGroupsOutputSchema, googleOauthListGroupsParamsSchema, googleOauthGetGroupOutputSchema, googleOauthGetGroupParamsSchema, googleOauthListGroupMembersOutputSchema, googleOauthListGroupMembersParamsSchema, googleOauthHasGroupMemberOutputSchema, googleOauthHasGroupMemberParamsSchema, googleOauthAddGroupMemberOutputSchema, googleOauthAddGroupMemberParamsSchema, googleOauthDeleteGroupMemberOutputSchema, googleOauthDeleteGroupMemberParamsSchema, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, jiraDataCenterGetJiraIssuesByQueryOutputSchema, jiraDataCenterGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, gitlabSearchGroupOutputSchema, gitlabSearchGroupParamsSchema, githubSearchOrganizationOutputSchema, githubSearchOrganizationParamsSchema, salesforceSearchSalesforceRecordsParamsSchema, salesforceSearchSalesforceRecordsOutputSchema, googleOauthGetDriveFileContentByIdOutputSchema, googleOauthGetDriveFileContentByIdParamsSchema, googleOauthSearchDriveByQueryOutputSchema, googleOauthSearchDriveByQueryParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentOutputSchema, googleOauthQueryGoogleBigQueryParamsSchema, googleOauthQueryGoogleBigQueryOutputSchema, githubGetFileContentParamsSchema, githubGetFileContentOutputSchema, githubListDirectoryOutputSchema, githubListDirectoryParamsSchema, githubGetBranchParamsSchema, githubGetBranchOutputSchema, githubListCommitsParamsSchema, githubListCommitsOutputSchema, githubGetPullRequestDetailsParamsSchema, githubGetPullRequestDetailsOutputSchema, linearGetIssuesParamsSchema, linearGetIssuesOutputSchema, linearGetIssueDetailsParamsSchema, linearGetIssueDetailsOutputSchema, linearGetProjectDetailsParamsSchema, linearGetProjectDetailsOutputSchema, linearGetTeamDetailsParamsSchema, linearGetTeamDetailsOutputSchema, linearGetProjectsParamsSchema, linearGetProjectsOutputSchema, linearGetTeamsParamsSchema, linearGetTeamsOutputSchema, linearCreateIssueParamsSchema, linearCreateIssueOutputSchema, hubspotGetContactsParamsSchema, hubspotGetContactsOutputSchema, hubspotGetContactDetailsParamsSchema, hubspotGetContactDetailsOutputSchema, hubspotGetCompaniesParamsSchema, hubspotGetCompaniesOutputSchema, hubspotGetCompanyDetailsParamsSchema, hubspotGetCompanyDetailsOutputSchema, hubspotGetDealsParamsSchema, hubspotGetDealsOutputSchema, hubspotGetDealDetailsParamsSchema, hubspotGetDealDetailsOutputSchema, hubspotGetTicketsParamsSchema, hubspotGetTicketsOutputSchema, hubspotGetTicketDetailsParamsSchema, hubspotGetTicketDetailsOutputSchema, gitlabGetFileContentParamsSchema, gitlabGetFileContentOutputSchema, gitlabGetMergeRequestParamsSchema, gitlabGetMergeRequestOutputSchema, jiraPublicCommentOnServiceDeskRequestParamsSchema, jiraPublicCommentOnServiceDeskRequestOutputSchema, googlemailSendGmailParamsSchema, googlemailSendGmailOutputSchema, googlemailReplyToGmailParamsSchema, googlemailReplyToGmailOutputSchema, gitlabListDirectoryParamsSchema, gitlabListDirectoryOutputSchema, firecrawlSearchAndScrapeOutputSchema, firecrawlSearchAndScrapeParamsSchema, firecrawlGetTopNSearchResultUrlsParamsSchema, firecrawlGetTopNSearchResultUrlsOutputSchema, googleOauthSearchDriveByKeywordsAndGetFileContentParamsSchema, googleOauthSearchDriveByKeywordsAndGetFileContentOutputSchema, perplexityPerplexityDeepResearchParamsSchema, perplexityPerplexityDeepResearchOutputSchema, slackUserSearchSlackParamsSchema, slackUserSearchSlackOutputSchema, slackUserSearchSlackRTSParamsSchema, slackUserSearchSlackRTSOutputSchema, oktaOrgGetOktaUserByNameParamsSchema, oktaOrgGetOktaUserByNameOutputSchema, googleSearchCustomSearchParamsSchema, googleSearchCustomSearchOutputSchema, salesforceSearchAllSalesforceRecordsParamsSchema, salesforceSearchAllSalesforceRecordsOutputSchema, salesforceListReportsParamsSchema, salesforceListReportsOutputSchema, salesforceExecuteReportParamsSchema, salesforceExecuteReportOutputSchema, slackSendDmFromBotParamsSchema, slackSendDmFromBotOutputSchema, slackGetChannelMembersParamsSchema, slackGetChannelMembersOutputSchema, salesforceGetReportMetadataParamsSchema, salesforceGetReportMetadataOutputSchema, googleOauthUpdateRowsInSpreadsheetParamsSchema, googleOauthUpdateRowsInSpreadsheetOutputSchema, } from "./autogen/types.js";
2
2
  import validateAddress from "./providers/googlemaps/validateAddress.js";
3
3
  import add from "./providers/math/add.js";
4
4
  import fillTemplate from "./providers/generic/fillTemplate.js";
@@ -43,6 +43,7 @@ import getBasicFinancials from "./providers/finnhub/getBasicFinancials.js";
43
43
  import confluenceOverwritePage from "./providers/confluence/overwritePage.js";
44
44
  import confluenceFetchPageContent from "./providers/confluence/fetchPageContent.js";
45
45
  import confluenceDataCenterOverwritePage from "./providers/confluenceDataCenter/overwritePage.js";
46
+ import confluenceDataCenterCreatePage from "./providers/confluenceDataCenter/createPage.js";
46
47
  import confluenceDataCenterFetchPageContent from "./providers/confluenceDataCenter/fetchPageContent.js";
47
48
  import runSnowflakeQuery from "./providers/snowflake/runSnowflakeQuery.js";
48
49
  import enableUserByEmail from "./providers/looker/enableUserByEmail.js";
@@ -357,6 +358,12 @@ export const ActionMapper = {
357
358
  outputSchema: confluenceDataCenterOverwritePageOutputSchema,
358
359
  actionType: "write",
359
360
  },
361
+ createPage: {
362
+ fn: confluenceDataCenterCreatePage,
363
+ paramsSchema: confluenceDataCenterCreatePageParamsSchema,
364
+ outputSchema: confluenceDataCenterCreatePageOutputSchema,
365
+ actionType: "write",
366
+ },
360
367
  fetchPageContent: {
361
368
  fn: confluenceDataCenterFetchPageContent,
362
369
  paramsSchema: confluenceDataCenterFetchPageContentParamsSchema,
@@ -18,6 +18,7 @@ export declare const mathAddDefinition: ActionTemplate;
18
18
  export declare const confluenceOverwritePageDefinition: ActionTemplate;
19
19
  export declare const confluenceFetchPageContentDefinition: ActionTemplate;
20
20
  export declare const confluenceDataCenterOverwritePageDefinition: ActionTemplate;
21
+ export declare const confluenceDataCenterCreatePageDefinition: ActionTemplate;
21
22
  export declare const confluenceDataCenterFetchPageContentDefinition: ActionTemplate;
22
23
  export declare const jiraAssignJiraTicketDefinition: ActionTemplate;
23
24
  export declare const jiraPublicCommentOnServiceDeskRequestDefinition: ActionTemplate;
@@ -1398,6 +1398,58 @@ export const confluenceDataCenterOverwritePageDefinition = {
1398
1398
  name: "overwritePage",
1399
1399
  provider: "confluenceDataCenter",
1400
1400
  };
1401
+ export const confluenceDataCenterCreatePageDefinition = {
1402
+ displayName: "Create a page",
1403
+ description: "Creates a new Confluence Data Center page in the specified space with the given content",
1404
+ scopes: [],
1405
+ tags: [],
1406
+ parameters: {
1407
+ type: "object",
1408
+ required: ["spaceKey", "title", "content"],
1409
+ properties: {
1410
+ spaceKey: {
1411
+ type: "string",
1412
+ description: "The key of the Confluence space to create the page in",
1413
+ },
1414
+ title: {
1415
+ type: "string",
1416
+ description: "The title of the page to create",
1417
+ },
1418
+ content: {
1419
+ type: "string",
1420
+ description: "The content of the page in Confluence storage format (XHTML-based markup)",
1421
+ },
1422
+ parentId: {
1423
+ type: "string",
1424
+ description: "Optional ID of the parent page; if provided, the new page will be created as a child of this page",
1425
+ },
1426
+ },
1427
+ },
1428
+ output: {
1429
+ type: "object",
1430
+ required: ["success"],
1431
+ properties: {
1432
+ success: {
1433
+ type: "boolean",
1434
+ description: "Whether the page was successfully created",
1435
+ },
1436
+ error: {
1437
+ type: "string",
1438
+ description: "The error that occurred if the page was not successfully created",
1439
+ },
1440
+ pageId: {
1441
+ type: "string",
1442
+ description: "The ID of the newly created page",
1443
+ },
1444
+ pageUrl: {
1445
+ type: "string",
1446
+ description: "The URL of the newly created page",
1447
+ },
1448
+ },
1449
+ },
1450
+ name: "createPage",
1451
+ provider: "confluenceDataCenter",
1452
+ };
1401
1453
  export const confluenceDataCenterFetchPageContentDefinition = {
1402
1454
  displayName: "Fetch page content",
1403
1455
  description: "Fetches content from a Confluence page",
@@ -56,6 +56,7 @@ export declare enum ActionName {
56
56
  ADD = "add",
57
57
  OVERWRITEPAGE = "overwritePage",
58
58
  FETCHPAGECONTENT = "fetchPageContent",
59
+ CREATEPAGE = "createPage",
59
60
  ASSIGNJIRATICKET = "assignJiraTicket",
60
61
  PUBLICCOMMENTONSERVICEDESKREQUEST = "publicCommentOnServiceDeskRequest",
61
62
  COMMENTJIRATICKET = "commentJiraTicket",
@@ -1603,6 +1604,41 @@ export declare const confluenceDataCenterOverwritePageOutputSchema: z.ZodObject<
1603
1604
  }>;
1604
1605
  export type confluenceDataCenterOverwritePageOutputType = z.infer<typeof confluenceDataCenterOverwritePageOutputSchema>;
1605
1606
  export type confluenceDataCenterOverwritePageFunction = ActionFunction<confluenceDataCenterOverwritePageParamsType, AuthParamsType, confluenceDataCenterOverwritePageOutputType>;
1607
+ export declare const confluenceDataCenterCreatePageParamsSchema: z.ZodObject<{
1608
+ spaceKey: z.ZodString;
1609
+ title: z.ZodString;
1610
+ content: z.ZodString;
1611
+ parentId: z.ZodOptional<z.ZodString>;
1612
+ }, "strip", z.ZodTypeAny, {
1613
+ content: string;
1614
+ title: string;
1615
+ spaceKey: string;
1616
+ parentId?: string | undefined;
1617
+ }, {
1618
+ content: string;
1619
+ title: string;
1620
+ spaceKey: string;
1621
+ parentId?: string | undefined;
1622
+ }>;
1623
+ export type confluenceDataCenterCreatePageParamsType = z.infer<typeof confluenceDataCenterCreatePageParamsSchema>;
1624
+ export declare const confluenceDataCenterCreatePageOutputSchema: z.ZodObject<{
1625
+ success: z.ZodBoolean;
1626
+ error: z.ZodOptional<z.ZodString>;
1627
+ pageId: z.ZodOptional<z.ZodString>;
1628
+ pageUrl: z.ZodOptional<z.ZodString>;
1629
+ }, "strip", z.ZodTypeAny, {
1630
+ success: boolean;
1631
+ error?: string | undefined;
1632
+ pageId?: string | undefined;
1633
+ pageUrl?: string | undefined;
1634
+ }, {
1635
+ success: boolean;
1636
+ error?: string | undefined;
1637
+ pageId?: string | undefined;
1638
+ pageUrl?: string | undefined;
1639
+ }>;
1640
+ export type confluenceDataCenterCreatePageOutputType = z.infer<typeof confluenceDataCenterCreatePageOutputSchema>;
1641
+ export type confluenceDataCenterCreatePageFunction = ActionFunction<confluenceDataCenterCreatePageParamsType, AuthParamsType, confluenceDataCenterCreatePageOutputType>;
1606
1642
  export declare const confluenceDataCenterFetchPageContentParamsSchema: z.ZodObject<{
1607
1643
  pageId: z.ZodString;
1608
1644
  }, "strip", z.ZodTypeAny, {
@@ -58,6 +58,7 @@ export var ActionName;
58
58
  ActionName["ADD"] = "add";
59
59
  ActionName["OVERWRITEPAGE"] = "overwritePage";
60
60
  ActionName["FETCHPAGECONTENT"] = "fetchPageContent";
61
+ ActionName["CREATEPAGE"] = "createPage";
61
62
  ActionName["ASSIGNJIRATICKET"] = "assignJiraTicket";
62
63
  ActionName["PUBLICCOMMENTONSERVICEDESKREQUEST"] = "publicCommentOnServiceDeskRequest";
63
64
  ActionName["COMMENTJIRATICKET"] = "commentJiraTicket";
@@ -655,6 +656,21 @@ export const confluenceDataCenterOverwritePageOutputSchema = z.object({
655
656
  success: z.boolean().describe("Whether the page was successfully updated"),
656
657
  error: z.string().describe("The error that occurred if the page was not successfully updated").optional(),
657
658
  });
659
+ export const confluenceDataCenterCreatePageParamsSchema = z.object({
660
+ spaceKey: z.string().describe("The key of the Confluence space to create the page in"),
661
+ title: z.string().describe("The title of the page to create"),
662
+ content: z.string().describe("The content of the page in Confluence storage format (XHTML-based markup)"),
663
+ parentId: z
664
+ .string()
665
+ .describe("Optional ID of the parent page; if provided, the new page will be created as a child of this page")
666
+ .optional(),
667
+ });
668
+ export const confluenceDataCenterCreatePageOutputSchema = z.object({
669
+ success: z.boolean().describe("Whether the page was successfully created"),
670
+ error: z.string().describe("The error that occurred if the page was not successfully created").optional(),
671
+ pageId: z.string().describe("The ID of the newly created page").optional(),
672
+ pageUrl: z.string().describe("The URL of the newly created page").optional(),
673
+ });
658
674
  export const confluenceDataCenterFetchPageContentParamsSchema = z.object({
659
675
  pageId: z.string().describe("The ID of the page to fetch content from"),
660
676
  });
@@ -0,0 +1,3 @@
1
+ import type { confluenceDataCenterCreatePageFunction } from "../../autogen/types.js";
2
+ declare const confluenceDataCenterCreatePage: confluenceDataCenterCreatePageFunction;
3
+ export default confluenceDataCenterCreatePage;
@@ -0,0 +1,40 @@
1
+ import { axiosClient } from "../../util/axiosClient.js";
2
+ import { getConfluenceApi } from "./helpers.js";
3
+ const confluenceDataCenterCreatePage = async ({ params, authParams, }) => {
4
+ const { spaceKey, title, content, parentId } = params;
5
+ try {
6
+ const { baseUrl, config } = getConfluenceApi(authParams);
7
+ const payload = {
8
+ type: "page",
9
+ title,
10
+ space: { key: spaceKey },
11
+ body: {
12
+ storage: {
13
+ value: content,
14
+ representation: "storage",
15
+ },
16
+ },
17
+ };
18
+ if (parentId) {
19
+ payload.ancestors = [{ id: parentId }];
20
+ }
21
+ const response = await axiosClient.post(`${baseUrl}/content`, payload, config);
22
+ const pageId = response.data?.id;
23
+ const links = response.data?._links ?? {};
24
+ const pageUrl = links.base && links.webui ? `${links.base}${links.webui}` : undefined;
25
+ return {
26
+ success: true,
27
+ pageId,
28
+ pageUrl,
29
+ };
30
+ }
31
+ catch (error) {
32
+ return {
33
+ success: false,
34
+ error: error instanceof Error
35
+ ? error.message
36
+ : "An unknown error occurred while creating the Confluence Data Center page.",
37
+ };
38
+ }
39
+ };
40
+ export default confluenceDataCenterCreatePage;
@@ -47,7 +47,7 @@ const searchRepository = (_a) => __awaiter(void 0, [_a], void 0, function* ({ pa
47
47
  name: item.name,
48
48
  path: item.path,
49
49
  sha: item.sha.slice(0, 7),
50
- url: item.url,
50
+ url: item.html_url,
51
51
  score: item.score,
52
52
  textMatches: item.text_matches
53
53
  ? item.text_matches.map(match => {
@@ -68,7 +68,7 @@ const searchRepository = (_a) => __awaiter(void 0, [_a], void 0, function* ({ pa
68
68
  const full = commitDetails.find(c => c.data.sha === item.sha);
69
69
  return {
70
70
  sha: item.sha,
71
- url: item.url,
71
+ url: item.html_url,
72
72
  commit: {
73
73
  message: item.commit.message,
74
74
  author: item.commit.author,
@@ -76,11 +76,11 @@ const searchRepository = (_a) => __awaiter(void 0, [_a], void 0, function* ({ pa
76
76
  score: item.score,
77
77
  author: (_a = item.author) !== null && _a !== void 0 ? _a : undefined,
78
78
  files: ((_b = full === null || full === void 0 ? void 0 : full.data.files) === null || _b === void 0 ? void 0 : _b.slice(0, MAX_FILES_PER_COMMIT).map(f => {
79
- var _a;
79
+ var _a, _b, _c;
80
80
  return ({
81
81
  filename: f.filename,
82
82
  status: f.status,
83
- patch: (_a = f.patch) === null || _a === void 0 ? void 0 : _a.split("\n").slice(0, MAX_PATCH_LINES).join("\n"),
83
+ patch: (_c = (_b = (_a = f.patch) === null || _a === void 0 ? void 0 : _a.split("\n")) === null || _b === void 0 ? void 0 : _b.slice(0, MAX_PATCH_LINES)) === null || _c === void 0 ? void 0 : _c.join("\n"),
84
84
  });
85
85
  })) || [],
86
86
  };
@@ -104,18 +104,18 @@ const searchRepository = (_a) => __awaiter(void 0, [_a], void 0, function* ({ pa
104
104
  const prIndex = prNumbers.indexOf(item.number);
105
105
  const files = isPR && prIndex !== -1
106
106
  ? prFiles[prIndex].data.slice(0, MAX_FILES_PER_PR).map(f => {
107
- var _a;
107
+ var _a, _b, _c;
108
108
  return ({
109
109
  filename: f.filename,
110
110
  status: f.status,
111
- patch: (_a = f.patch) === null || _a === void 0 ? void 0 : _a.split("\n").slice(0, MAX_PATCH_LINES).join("\n"),
111
+ patch: (_c = (_b = (_a = f.patch) === null || _a === void 0 ? void 0 : _a.split("\n")) === null || _b === void 0 ? void 0 : _b.slice(0, MAX_PATCH_LINES)) === null || _c === void 0 ? void 0 : _c.join("\n"),
112
112
  });
113
113
  })
114
114
  : undefined;
115
115
  return {
116
116
  number: item.number,
117
117
  title: item.title,
118
- html_url: item.html_url,
118
+ url: item.html_url,
119
119
  state: item.state,
120
120
  isPullRequest: isPR,
121
121
  body: item.body,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credal/actions",
3
- "version": "0.2.219",
3
+ "version": "0.2.220",
4
4
  "type": "module",
5
5
  "description": "AI Actions by Credal AI",
6
6
  "sideEffects": false,
@@ -1,3 +0,0 @@
1
- import type { ashbyAddCandidateToProjectFunction } from "../../autogen/types.js";
2
- declare const addCandidateToProject: ashbyAddCandidateToProjectFunction;
3
- export default addCandidateToProject;
@@ -1,31 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { axiosClient } from "../../util/axiosClient.js";
11
- import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
12
- const addCandidateToProject = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
13
- const { candidateId, projectId } = params;
14
- const { authToken } = authParams;
15
- if (!authToken) {
16
- throw new Error(MISSING_AUTH_TOKEN);
17
- }
18
- const response = yield axiosClient.post(`https://api.ashbyhq.com/candidate.addProject`, {
19
- candidateId,
20
- projectId,
21
- }, {
22
- auth: {
23
- username: authToken,
24
- password: "",
25
- },
26
- });
27
- if (!response.data.success) {
28
- throw new Error(response.data.errors.join("; "));
29
- }
30
- });
31
- export default addCandidateToProject;
@@ -1,3 +0,0 @@
1
- import type { ashbyCreateCandidateFunction } from "../../autogen/types.js";
2
- declare const createCandidate: ashbyCreateCandidateFunction;
3
- export default createCandidate;
@@ -1,38 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { axiosClient } from "../../util/axiosClient.js";
11
- import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
12
- const createCandidate = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
13
- const { authToken } = authParams;
14
- if (!authToken) {
15
- throw new Error(MISSING_AUTH_TOKEN);
16
- }
17
- const response = yield axiosClient.post(`https://api.ashbyhq.com/candidate.create`, {
18
- name: params.name,
19
- email: params.email,
20
- phoneNumber: params.phoneNumber,
21
- linkedInUrl: params.linkedInUrl,
22
- githubUrl: params.githubUrl,
23
- website: params.website,
24
- alternateEmailAddresses: params.alternateEmailAddresses,
25
- sourceId: params.sourceId,
26
- creditedToUserId: params.creditedToUserId,
27
- location: params.location,
28
- }, {
29
- auth: {
30
- username: authToken,
31
- password: "",
32
- },
33
- });
34
- if (!response.data.success) {
35
- throw new Error(response.data.errors.join("; "));
36
- }
37
- });
38
- export default createCandidate;
@@ -1,3 +0,0 @@
1
- import type { ashbyCreateNoteFunction } from "../../autogen/types.js";
2
- declare const createNote: ashbyCreateNoteFunction;
3
- export default createNote;
@@ -1,31 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { axiosClient } from "../../util/axiosClient.js";
11
- import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
12
- const createNote = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
13
- const { candidateId, note } = params;
14
- const { authToken } = authParams;
15
- if (!authToken) {
16
- throw new Error(MISSING_AUTH_TOKEN);
17
- }
18
- const response = yield axiosClient.post(`https://api.ashbyhq.com/candidate.createNote`, {
19
- candidateId,
20
- note,
21
- }, {
22
- auth: {
23
- username: authToken,
24
- password: "",
25
- },
26
- });
27
- if (!response.data.success) {
28
- throw new Error(response.data.errors.join("; "));
29
- }
30
- });
31
- export default createNote;
@@ -1,3 +0,0 @@
1
- import type { ashbyGetCandidateInfoFunction } from "../../autogen/types.js";
2
- declare const getCandidateInfo: ashbyGetCandidateInfoFunction;
3
- export default getCandidateInfo;
@@ -1,33 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { axiosClient } from "../../util/axiosClient.js";
11
- import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
12
- const getCandidateInfo = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
13
- const { candidateId } = params;
14
- const { authToken } = authParams;
15
- if (!authToken) {
16
- throw new Error(MISSING_AUTH_TOKEN);
17
- }
18
- const response = yield axiosClient.post(`https://api.ashbyhq.com/candidate.info`, {
19
- id: candidateId,
20
- }, {
21
- auth: {
22
- username: authToken,
23
- password: "",
24
- },
25
- });
26
- if (!response.data.success) {
27
- throw new Error(response.data.errors.join("; "));
28
- }
29
- return {
30
- candidate: response.data,
31
- };
32
- });
33
- export default getCandidateInfo;
@@ -1,3 +0,0 @@
1
- import type { ashbyListCandidateNotesFunction } from "../../autogen/types.js";
2
- declare const listCandidateNotes: ashbyListCandidateNotesFunction;
3
- export default listCandidateNotes;
@@ -1,33 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { axiosClient } from "../../util/axiosClient.js";
11
- import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
12
- const listCandidateNotes = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
13
- const { candidateId } = params;
14
- const { authToken } = authParams;
15
- if (!authToken) {
16
- throw new Error(MISSING_AUTH_TOKEN);
17
- }
18
- const response = yield axiosClient.post(`https://api.ashbyhq.com/candidate.listNotes`, {
19
- candidateId,
20
- }, {
21
- auth: {
22
- username: authToken,
23
- password: "",
24
- },
25
- });
26
- if (!response.data.success) {
27
- throw new Error(response.data.errors.join("; "));
28
- }
29
- return {
30
- notes: response.data.results,
31
- };
32
- });
33
- export default listCandidateNotes;
@@ -1,3 +0,0 @@
1
- import type { ashbyListCandidatesFunction } from "../../autogen/types.js";
2
- declare const listCandidates: ashbyListCandidatesFunction;
3
- export default listCandidates;
@@ -1,30 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { axiosClient } from "../../util/axiosClient.js";
11
- import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
12
- const listCandidates = (_a) => __awaiter(void 0, [_a], void 0, function* ({ authParams, }) {
13
- const { authToken } = authParams;
14
- if (!authToken) {
15
- throw new Error(MISSING_AUTH_TOKEN);
16
- }
17
- const response = yield axiosClient.post(`https://api.ashbyhq.com/candidate.list`, null, {
18
- auth: {
19
- username: authToken,
20
- password: "",
21
- },
22
- });
23
- if (!response.data.success) {
24
- throw new Error(response.data.errors.join("; "));
25
- }
26
- return {
27
- candidates: response.data.results,
28
- };
29
- });
30
- export default listCandidates;
@@ -1,3 +0,0 @@
1
- import type { ashbySearchCandidatesFunction } from "../../autogen/types.js";
2
- declare const searchCandidates: ashbySearchCandidatesFunction;
3
- export default searchCandidates;
@@ -1,34 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { axiosClient } from "../../util/axiosClient.js";
11
- import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
12
- const searchCandidates = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
13
- const { email, name } = params;
14
- const { authToken } = authParams;
15
- if (!authToken) {
16
- throw new Error(MISSING_AUTH_TOKEN);
17
- }
18
- const response = yield axiosClient.post(`https://api.ashbyhq.com/candidate.search`, {
19
- email,
20
- name,
21
- }, {
22
- auth: {
23
- username: authToken,
24
- password: "",
25
- },
26
- });
27
- if (!response.data.success) {
28
- throw new Error(response.data.errors.join("; "));
29
- }
30
- return {
31
- candidates: response.data.results,
32
- };
33
- });
34
- export default searchCandidates;
@@ -1,3 +0,0 @@
1
- import type { ashbyUpdateCandidateFunction } from "../../autogen/types.js";
2
- declare const updateCandidate: ashbyUpdateCandidateFunction;
3
- export default updateCandidate;