@credal/actions 0.2.201 → 0.2.202
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/actionMapper.js +14 -1
- package/dist/actions/autogen/templates.d.ts +3 -0
- package/dist/actions/autogen/templates.js +168 -0
- package/dist/actions/autogen/types.d.ts +115 -0
- package/dist/actions/autogen/types.js +67 -0
- package/dist/actions/providers/jira/linkAndAssignJiraIssues.d.ts +3 -0
- package/dist/actions/providers/jira/linkAndAssignJiraIssues.js +102 -0
- package/package.json +1 -2
|
@@ -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, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraMoveJiraTicketToProjectParamsSchema, jiraMoveJiraTicketToProjectOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema, jiraCreateServiceDeskRequestParamsSchema, jiraCreateServiceDeskRequestOutputSchema, jiraLinkJiraIssuesParamsSchema, jiraLinkJiraIssuesOutputSchema, openstreetmapGetLatitudeLongitudeFromLocationParamsSchema, openstreetmapGetLatitudeLongitudeFromLocationOutputSchema, nwsGetForecastForLocationParamsSchema, nwsGetForecastForLocationOutputSchema, googlemapsNearbysearchRestaurantsOutputSchema, googlemapsNearbysearchRestaurantsParamsSchema, firecrawlScrapeUrlOutputSchema, firecrawlScrapeUrlParamsSchema, resendSendEmailOutputSchema, resendSendEmailHtmlParamsSchema, resendSendEmailHtmlOutputSchema, firecrawlScrapeTweetDataWithNitterParamsSchema, firecrawlScrapeTweetDataWithNitterOutputSchema, resendSendEmailParamsSchema, linkedinCreateShareLinkedinPostUrlParamsSchema, linkedinCreateShareLinkedinPostUrlOutputSchema, xCreateShareXPostUrlParamsSchema, xCreateShareXPostUrlOutputSchema, finnhubSymbolLookupParamsSchema, finnhubSymbolLookupOutputSchema, finnhubGetBasicFinancialsParamsSchema, finnhubGetBasicFinancialsOutputSchema, confluenceFetchPageContentParamsSchema, confluenceFetchPageContentOutputSchema, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthAddTextToTopOfDocParamsSchema, googleOauthAddTextToTopOfDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, 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, 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, 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, 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, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthAddTextToTopOfDocParamsSchema, googleOauthAddTextToTopOfDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, 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, 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, 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";
|
|
@@ -95,6 +95,7 @@ import searchGroup from "./providers/gitlab/searchGroup.js";
|
|
|
95
95
|
import searchOrganization from "./providers/github/searchOrganization.js";
|
|
96
96
|
import createServiceDeskRequest from "./providers/jira/createServiceDeskRequest.js";
|
|
97
97
|
import linkJiraIssues from "./providers/jira/linkJiraIssues.js";
|
|
98
|
+
import linkAndAssignJiraIssues from "./providers/jira/linkAndAssignJiraIssues.js";
|
|
98
99
|
import searchSalesforceRecords from "./providers/salesforce/searchSalesforceRecords.js";
|
|
99
100
|
import getDriveFileContentById from "./providers/google-oauth/getDriveFileContentById.js";
|
|
100
101
|
import searchDriveByQuery from "./providers/google-oauth/searchDriveByQuery.js";
|
|
@@ -211,6 +212,12 @@ const jiraActions = {
|
|
|
211
212
|
outputSchema: jiraLinkJiraIssuesOutputSchema,
|
|
212
213
|
actionType: "write",
|
|
213
214
|
},
|
|
215
|
+
linkAndAssignJiraIssues: {
|
|
216
|
+
fn: linkAndAssignJiraIssues,
|
|
217
|
+
paramsSchema: jiraLinkAndAssignJiraIssuesParamsSchema,
|
|
218
|
+
outputSchema: jiraLinkAndAssignJiraIssuesOutputSchema,
|
|
219
|
+
actionType: "write",
|
|
220
|
+
},
|
|
214
221
|
};
|
|
215
222
|
export const ActionMapper = {
|
|
216
223
|
generic: {
|
|
@@ -482,6 +489,12 @@ export const ActionMapper = {
|
|
|
482
489
|
outputSchema: jiraLinkJiraIssuesOutputSchema,
|
|
483
490
|
actionType: "write",
|
|
484
491
|
},
|
|
492
|
+
linkAndAssignJiraIssues: {
|
|
493
|
+
fn: linkAndAssignJiraIssues,
|
|
494
|
+
paramsSchema: jiraLinkAndAssignJiraIssuesParamsSchema,
|
|
495
|
+
outputSchema: jiraLinkAndAssignJiraIssuesOutputSchema,
|
|
496
|
+
actionType: "write",
|
|
497
|
+
},
|
|
485
498
|
},
|
|
486
499
|
openstreetmap: {
|
|
487
500
|
getLatitudeLongitudeFromLocation: {
|
|
@@ -29,6 +29,7 @@ export declare const jiraUpdateJiraTicketDetailsDefinition: ActionTemplate;
|
|
|
29
29
|
export declare const jiraUpdateJiraTicketStatusDefinition: ActionTemplate;
|
|
30
30
|
export declare const jiraGetJiraIssuesByQueryDefinition: ActionTemplate;
|
|
31
31
|
export declare const jiraLinkJiraIssuesDefinition: ActionTemplate;
|
|
32
|
+
export declare const jiraLinkAndAssignJiraIssuesDefinition: ActionTemplate;
|
|
32
33
|
export declare const jiraOrgAssignJiraTicketDefinition: ActionTemplate;
|
|
33
34
|
export declare const jiraOrgPublicCommentOnServiceDeskRequestDefinition: ActionTemplate;
|
|
34
35
|
export declare const jiraOrgCommentJiraTicketDefinition: ActionTemplate;
|
|
@@ -41,6 +42,7 @@ export declare const jiraOrgUpdateJiraTicketDetailsDefinition: ActionTemplate;
|
|
|
41
42
|
export declare const jiraOrgUpdateJiraTicketStatusDefinition: ActionTemplate;
|
|
42
43
|
export declare const jiraOrgGetJiraIssuesByQueryDefinition: ActionTemplate;
|
|
43
44
|
export declare const jiraOrgLinkJiraIssuesDefinition: ActionTemplate;
|
|
45
|
+
export declare const jiraOrgLinkAndAssignJiraIssuesDefinition: ActionTemplate;
|
|
44
46
|
export declare const jiraDataCenterAssignJiraTicketDefinition: ActionTemplate;
|
|
45
47
|
export declare const jiraDataCenterPublicCommentOnServiceDeskRequestDefinition: ActionTemplate;
|
|
46
48
|
export declare const jiraDataCenterCommentJiraTicketDefinition: ActionTemplate;
|
|
@@ -53,6 +55,7 @@ export declare const jiraDataCenterUpdateJiraTicketDetailsDefinition: ActionTemp
|
|
|
53
55
|
export declare const jiraDataCenterUpdateJiraTicketStatusDefinition: ActionTemplate;
|
|
54
56
|
export declare const jiraDataCenterGetJiraIssuesByQueryDefinition: ActionTemplate;
|
|
55
57
|
export declare const jiraDataCenterLinkJiraIssuesDefinition: ActionTemplate;
|
|
58
|
+
export declare const jiraDataCenterLinkAndAssignJiraIssuesDefinition: ActionTemplate;
|
|
56
59
|
export declare const googlemapsValidateAddressDefinition: ActionTemplate;
|
|
57
60
|
export declare const googlemapsNearbysearchRestaurantsDefinition: ActionTemplate;
|
|
58
61
|
export declare const bingGetTopNSearchResultUrlsDefinition: ActionTemplate;
|
|
@@ -2089,6 +2089,62 @@ export const jiraLinkJiraIssuesDefinition = {
|
|
|
2089
2089
|
name: "linkJiraIssues",
|
|
2090
2090
|
provider: "jira",
|
|
2091
2091
|
};
|
|
2092
|
+
export const jiraLinkAndAssignJiraIssuesDefinition = {
|
|
2093
|
+
displayName: "Link two Jira issues and assign the linked issue's reporter",
|
|
2094
|
+
description: "Creates a link between two Jira issues and then assigns the reporter of the outward (destination) issue to the inward (source) issue",
|
|
2095
|
+
scopes: ["write:jira-work", "read:jira-work", "read:jira-user"],
|
|
2096
|
+
tags: [],
|
|
2097
|
+
parameters: {
|
|
2098
|
+
type: "object",
|
|
2099
|
+
required: ["inwardIssueKey", "outwardIssueKey", "linkTypeName"],
|
|
2100
|
+
properties: {
|
|
2101
|
+
inwardIssueKey: {
|
|
2102
|
+
type: "string",
|
|
2103
|
+
description: 'The issue key for the inward issue of the link (e.g. "PROJ-123"). This is the source issue that will be assigned the reporter.',
|
|
2104
|
+
},
|
|
2105
|
+
outwardIssueKey: {
|
|
2106
|
+
type: "string",
|
|
2107
|
+
description: 'The issue key for the outward issue of the link (e.g. "PROJ-456"). This is the destination issue whose reporter will be assigned.',
|
|
2108
|
+
},
|
|
2109
|
+
linkTypeName: {
|
|
2110
|
+
type: "string",
|
|
2111
|
+
description: 'The name of the link type (e.g. "Blocks", "Cloners", "Duplicate", "Relates", "Split", etc.)',
|
|
2112
|
+
},
|
|
2113
|
+
comment: {
|
|
2114
|
+
type: "string",
|
|
2115
|
+
description: "An optional comment to add to the inward (source) issue when creating the link",
|
|
2116
|
+
},
|
|
2117
|
+
},
|
|
2118
|
+
},
|
|
2119
|
+
output: {
|
|
2120
|
+
type: "object",
|
|
2121
|
+
required: ["success"],
|
|
2122
|
+
properties: {
|
|
2123
|
+
success: {
|
|
2124
|
+
type: "boolean",
|
|
2125
|
+
description: "Whether the issue link and assignment were both successfully completed",
|
|
2126
|
+
},
|
|
2127
|
+
linkSuccess: {
|
|
2128
|
+
type: "boolean",
|
|
2129
|
+
description: "Whether the issue link was successfully created",
|
|
2130
|
+
},
|
|
2131
|
+
assignSuccess: {
|
|
2132
|
+
type: "boolean",
|
|
2133
|
+
description: "Whether the reporter was successfully assigned to the inward issue",
|
|
2134
|
+
},
|
|
2135
|
+
assignedReporter: {
|
|
2136
|
+
type: "string",
|
|
2137
|
+
description: "The account ID or username of the reporter that was assigned",
|
|
2138
|
+
},
|
|
2139
|
+
error: {
|
|
2140
|
+
type: "string",
|
|
2141
|
+
description: "Error message if the operation failed (only present if success is false)",
|
|
2142
|
+
},
|
|
2143
|
+
},
|
|
2144
|
+
},
|
|
2145
|
+
name: "linkAndAssignJiraIssues",
|
|
2146
|
+
provider: "jira",
|
|
2147
|
+
};
|
|
2092
2148
|
export const jiraOrgAssignJiraTicketDefinition = {
|
|
2093
2149
|
displayName: "Assign a Jira ticket",
|
|
2094
2150
|
description: "Assigns/Reassigns a Jira ticket to a specified user",
|
|
@@ -2844,6 +2900,62 @@ export const jiraOrgLinkJiraIssuesDefinition = {
|
|
|
2844
2900
|
name: "linkJiraIssues",
|
|
2845
2901
|
provider: "jiraOrg",
|
|
2846
2902
|
};
|
|
2903
|
+
export const jiraOrgLinkAndAssignJiraIssuesDefinition = {
|
|
2904
|
+
displayName: "Link two Jira issues and assign the linked issue's reporter",
|
|
2905
|
+
description: "Creates a link between two Jira issues and then assigns the reporter of the outward (destination) issue to the inward (source) issue",
|
|
2906
|
+
scopes: ["write:jira-work", "read:jira-work", "read:jira-user"],
|
|
2907
|
+
tags: [],
|
|
2908
|
+
parameters: {
|
|
2909
|
+
type: "object",
|
|
2910
|
+
required: ["inwardIssueKey", "outwardIssueKey", "linkTypeName"],
|
|
2911
|
+
properties: {
|
|
2912
|
+
inwardIssueKey: {
|
|
2913
|
+
type: "string",
|
|
2914
|
+
description: 'The issue key for the inward issue of the link (e.g. "PROJ-123"). This is the source issue that will be assigned the reporter.',
|
|
2915
|
+
},
|
|
2916
|
+
outwardIssueKey: {
|
|
2917
|
+
type: "string",
|
|
2918
|
+
description: 'The issue key for the outward issue of the link (e.g. "PROJ-456"). This is the destination issue whose reporter will be assigned.',
|
|
2919
|
+
},
|
|
2920
|
+
linkTypeName: {
|
|
2921
|
+
type: "string",
|
|
2922
|
+
description: 'The name of the link type (e.g. "Blocks", "Cloners", "Duplicate", "Relates", "Split", etc.)',
|
|
2923
|
+
},
|
|
2924
|
+
comment: {
|
|
2925
|
+
type: "string",
|
|
2926
|
+
description: "An optional comment to add to the inward (source) issue when creating the link",
|
|
2927
|
+
},
|
|
2928
|
+
},
|
|
2929
|
+
},
|
|
2930
|
+
output: {
|
|
2931
|
+
type: "object",
|
|
2932
|
+
required: ["success"],
|
|
2933
|
+
properties: {
|
|
2934
|
+
success: {
|
|
2935
|
+
type: "boolean",
|
|
2936
|
+
description: "Whether the issue link and assignment were both successfully completed",
|
|
2937
|
+
},
|
|
2938
|
+
linkSuccess: {
|
|
2939
|
+
type: "boolean",
|
|
2940
|
+
description: "Whether the issue link was successfully created",
|
|
2941
|
+
},
|
|
2942
|
+
assignSuccess: {
|
|
2943
|
+
type: "boolean",
|
|
2944
|
+
description: "Whether the reporter was successfully assigned to the inward issue",
|
|
2945
|
+
},
|
|
2946
|
+
assignedReporter: {
|
|
2947
|
+
type: "string",
|
|
2948
|
+
description: "The account ID or username of the reporter that was assigned",
|
|
2949
|
+
},
|
|
2950
|
+
error: {
|
|
2951
|
+
type: "string",
|
|
2952
|
+
description: "Error message if the operation failed (only present if success is false)",
|
|
2953
|
+
},
|
|
2954
|
+
},
|
|
2955
|
+
},
|
|
2956
|
+
name: "linkAndAssignJiraIssues",
|
|
2957
|
+
provider: "jiraOrg",
|
|
2958
|
+
};
|
|
2847
2959
|
export const jiraDataCenterAssignJiraTicketDefinition = {
|
|
2848
2960
|
displayName: "Assign a Jira ticket",
|
|
2849
2961
|
description: "Assigns/Reassigns a Jira ticket to a specified user",
|
|
@@ -3599,6 +3711,62 @@ export const jiraDataCenterLinkJiraIssuesDefinition = {
|
|
|
3599
3711
|
name: "linkJiraIssues",
|
|
3600
3712
|
provider: "jiraDataCenter",
|
|
3601
3713
|
};
|
|
3714
|
+
export const jiraDataCenterLinkAndAssignJiraIssuesDefinition = {
|
|
3715
|
+
displayName: "Link two Jira issues and assign the linked issue's reporter",
|
|
3716
|
+
description: "Creates a link between two Jira issues and then assigns the reporter of the outward (destination) issue to the inward (source) issue",
|
|
3717
|
+
scopes: ["write:jira-work", "read:jira-work", "read:jira-user"],
|
|
3718
|
+
tags: [],
|
|
3719
|
+
parameters: {
|
|
3720
|
+
type: "object",
|
|
3721
|
+
required: ["inwardIssueKey", "outwardIssueKey", "linkTypeName"],
|
|
3722
|
+
properties: {
|
|
3723
|
+
inwardIssueKey: {
|
|
3724
|
+
type: "string",
|
|
3725
|
+
description: 'The issue key for the inward issue of the link (e.g. "PROJ-123"). This is the source issue that will be assigned the reporter.',
|
|
3726
|
+
},
|
|
3727
|
+
outwardIssueKey: {
|
|
3728
|
+
type: "string",
|
|
3729
|
+
description: 'The issue key for the outward issue of the link (e.g. "PROJ-456"). This is the destination issue whose reporter will be assigned.',
|
|
3730
|
+
},
|
|
3731
|
+
linkTypeName: {
|
|
3732
|
+
type: "string",
|
|
3733
|
+
description: 'The name of the link type (e.g. "Blocks", "Cloners", "Duplicate", "Relates", "Split", etc.)',
|
|
3734
|
+
},
|
|
3735
|
+
comment: {
|
|
3736
|
+
type: "string",
|
|
3737
|
+
description: "An optional comment to add to the inward (source) issue when creating the link",
|
|
3738
|
+
},
|
|
3739
|
+
},
|
|
3740
|
+
},
|
|
3741
|
+
output: {
|
|
3742
|
+
type: "object",
|
|
3743
|
+
required: ["success"],
|
|
3744
|
+
properties: {
|
|
3745
|
+
success: {
|
|
3746
|
+
type: "boolean",
|
|
3747
|
+
description: "Whether the issue link and assignment were both successfully completed",
|
|
3748
|
+
},
|
|
3749
|
+
linkSuccess: {
|
|
3750
|
+
type: "boolean",
|
|
3751
|
+
description: "Whether the issue link was successfully created",
|
|
3752
|
+
},
|
|
3753
|
+
assignSuccess: {
|
|
3754
|
+
type: "boolean",
|
|
3755
|
+
description: "Whether the reporter was successfully assigned to the inward issue",
|
|
3756
|
+
},
|
|
3757
|
+
assignedReporter: {
|
|
3758
|
+
type: "string",
|
|
3759
|
+
description: "The account ID or username of the reporter that was assigned",
|
|
3760
|
+
},
|
|
3761
|
+
error: {
|
|
3762
|
+
type: "string",
|
|
3763
|
+
description: "Error message if the operation failed (only present if success is false)",
|
|
3764
|
+
},
|
|
3765
|
+
},
|
|
3766
|
+
},
|
|
3767
|
+
name: "linkAndAssignJiraIssues",
|
|
3768
|
+
provider: "jiraDataCenter",
|
|
3769
|
+
};
|
|
3602
3770
|
export const googlemapsValidateAddressDefinition = {
|
|
3603
3771
|
displayName: "Validate an address",
|
|
3604
3772
|
description: "Validate an address using the Google Maps API",
|
|
@@ -67,6 +67,7 @@ export declare enum ActionName {
|
|
|
67
67
|
UPDATEJIRATICKETSTATUS = "updateJiraTicketStatus",
|
|
68
68
|
GETJIRAISSUESBYQUERY = "getJiraIssuesByQuery",
|
|
69
69
|
LINKJIRAISSUES = "linkJiraIssues",
|
|
70
|
+
LINKANDASSIGNJIRAISSUES = "linkAndAssignJiraIssues",
|
|
70
71
|
VALIDATEADDRESS = "validateAddress",
|
|
71
72
|
NEARBYSEARCHRESTAURANTS = "nearbysearchRestaurants",
|
|
72
73
|
GETTOPNSEARCHRESULTURLS = "getTopNSearchResultUrls",
|
|
@@ -2296,6 +2297,44 @@ export declare const jiraLinkJiraIssuesOutputSchema: z.ZodObject<{
|
|
|
2296
2297
|
}>;
|
|
2297
2298
|
export type jiraLinkJiraIssuesOutputType = z.infer<typeof jiraLinkJiraIssuesOutputSchema>;
|
|
2298
2299
|
export type jiraLinkJiraIssuesFunction = ActionFunction<jiraLinkJiraIssuesParamsType, AuthParamsType, jiraLinkJiraIssuesOutputType>;
|
|
2300
|
+
export declare const jiraLinkAndAssignJiraIssuesParamsSchema: z.ZodObject<{
|
|
2301
|
+
inwardIssueKey: z.ZodString;
|
|
2302
|
+
outwardIssueKey: z.ZodString;
|
|
2303
|
+
linkTypeName: z.ZodString;
|
|
2304
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
2305
|
+
}, "strip", z.ZodTypeAny, {
|
|
2306
|
+
inwardIssueKey: string;
|
|
2307
|
+
outwardIssueKey: string;
|
|
2308
|
+
linkTypeName: string;
|
|
2309
|
+
comment?: string | undefined;
|
|
2310
|
+
}, {
|
|
2311
|
+
inwardIssueKey: string;
|
|
2312
|
+
outwardIssueKey: string;
|
|
2313
|
+
linkTypeName: string;
|
|
2314
|
+
comment?: string | undefined;
|
|
2315
|
+
}>;
|
|
2316
|
+
export type jiraLinkAndAssignJiraIssuesParamsType = z.infer<typeof jiraLinkAndAssignJiraIssuesParamsSchema>;
|
|
2317
|
+
export declare const jiraLinkAndAssignJiraIssuesOutputSchema: z.ZodObject<{
|
|
2318
|
+
success: z.ZodBoolean;
|
|
2319
|
+
linkSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
2320
|
+
assignSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
2321
|
+
assignedReporter: z.ZodOptional<z.ZodString>;
|
|
2322
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2323
|
+
}, "strip", z.ZodTypeAny, {
|
|
2324
|
+
success: boolean;
|
|
2325
|
+
error?: string | undefined;
|
|
2326
|
+
linkSuccess?: boolean | undefined;
|
|
2327
|
+
assignSuccess?: boolean | undefined;
|
|
2328
|
+
assignedReporter?: string | undefined;
|
|
2329
|
+
}, {
|
|
2330
|
+
success: boolean;
|
|
2331
|
+
error?: string | undefined;
|
|
2332
|
+
linkSuccess?: boolean | undefined;
|
|
2333
|
+
assignSuccess?: boolean | undefined;
|
|
2334
|
+
assignedReporter?: string | undefined;
|
|
2335
|
+
}>;
|
|
2336
|
+
export type jiraLinkAndAssignJiraIssuesOutputType = z.infer<typeof jiraLinkAndAssignJiraIssuesOutputSchema>;
|
|
2337
|
+
export type jiraLinkAndAssignJiraIssuesFunction = ActionFunction<jiraLinkAndAssignJiraIssuesParamsType, AuthParamsType, jiraLinkAndAssignJiraIssuesOutputType>;
|
|
2299
2338
|
export declare const jiraOrgAssignJiraTicketParamsSchema: z.ZodObject<{
|
|
2300
2339
|
projectKey: z.ZodString;
|
|
2301
2340
|
assignee: z.ZodString;
|
|
@@ -3038,6 +3077,44 @@ export declare const jiraOrgLinkJiraIssuesOutputSchema: z.ZodObject<{
|
|
|
3038
3077
|
}>;
|
|
3039
3078
|
export type jiraOrgLinkJiraIssuesOutputType = z.infer<typeof jiraOrgLinkJiraIssuesOutputSchema>;
|
|
3040
3079
|
export type jiraOrgLinkJiraIssuesFunction = ActionFunction<jiraOrgLinkJiraIssuesParamsType, AuthParamsType, jiraOrgLinkJiraIssuesOutputType>;
|
|
3080
|
+
export declare const jiraOrgLinkAndAssignJiraIssuesParamsSchema: z.ZodObject<{
|
|
3081
|
+
inwardIssueKey: z.ZodString;
|
|
3082
|
+
outwardIssueKey: z.ZodString;
|
|
3083
|
+
linkTypeName: z.ZodString;
|
|
3084
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
3085
|
+
}, "strip", z.ZodTypeAny, {
|
|
3086
|
+
inwardIssueKey: string;
|
|
3087
|
+
outwardIssueKey: string;
|
|
3088
|
+
linkTypeName: string;
|
|
3089
|
+
comment?: string | undefined;
|
|
3090
|
+
}, {
|
|
3091
|
+
inwardIssueKey: string;
|
|
3092
|
+
outwardIssueKey: string;
|
|
3093
|
+
linkTypeName: string;
|
|
3094
|
+
comment?: string | undefined;
|
|
3095
|
+
}>;
|
|
3096
|
+
export type jiraOrgLinkAndAssignJiraIssuesParamsType = z.infer<typeof jiraOrgLinkAndAssignJiraIssuesParamsSchema>;
|
|
3097
|
+
export declare const jiraOrgLinkAndAssignJiraIssuesOutputSchema: z.ZodObject<{
|
|
3098
|
+
success: z.ZodBoolean;
|
|
3099
|
+
linkSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
3100
|
+
assignSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
3101
|
+
assignedReporter: z.ZodOptional<z.ZodString>;
|
|
3102
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3103
|
+
}, "strip", z.ZodTypeAny, {
|
|
3104
|
+
success: boolean;
|
|
3105
|
+
error?: string | undefined;
|
|
3106
|
+
linkSuccess?: boolean | undefined;
|
|
3107
|
+
assignSuccess?: boolean | undefined;
|
|
3108
|
+
assignedReporter?: string | undefined;
|
|
3109
|
+
}, {
|
|
3110
|
+
success: boolean;
|
|
3111
|
+
error?: string | undefined;
|
|
3112
|
+
linkSuccess?: boolean | undefined;
|
|
3113
|
+
assignSuccess?: boolean | undefined;
|
|
3114
|
+
assignedReporter?: string | undefined;
|
|
3115
|
+
}>;
|
|
3116
|
+
export type jiraOrgLinkAndAssignJiraIssuesOutputType = z.infer<typeof jiraOrgLinkAndAssignJiraIssuesOutputSchema>;
|
|
3117
|
+
export type jiraOrgLinkAndAssignJiraIssuesFunction = ActionFunction<jiraOrgLinkAndAssignJiraIssuesParamsType, AuthParamsType, jiraOrgLinkAndAssignJiraIssuesOutputType>;
|
|
3041
3118
|
export declare const jiraDataCenterAssignJiraTicketParamsSchema: z.ZodObject<{
|
|
3042
3119
|
projectKey: z.ZodString;
|
|
3043
3120
|
assignee: z.ZodString;
|
|
@@ -3780,6 +3857,44 @@ export declare const jiraDataCenterLinkJiraIssuesOutputSchema: z.ZodObject<{
|
|
|
3780
3857
|
}>;
|
|
3781
3858
|
export type jiraDataCenterLinkJiraIssuesOutputType = z.infer<typeof jiraDataCenterLinkJiraIssuesOutputSchema>;
|
|
3782
3859
|
export type jiraDataCenterLinkJiraIssuesFunction = ActionFunction<jiraDataCenterLinkJiraIssuesParamsType, AuthParamsType, jiraDataCenterLinkJiraIssuesOutputType>;
|
|
3860
|
+
export declare const jiraDataCenterLinkAndAssignJiraIssuesParamsSchema: z.ZodObject<{
|
|
3861
|
+
inwardIssueKey: z.ZodString;
|
|
3862
|
+
outwardIssueKey: z.ZodString;
|
|
3863
|
+
linkTypeName: z.ZodString;
|
|
3864
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
3865
|
+
}, "strip", z.ZodTypeAny, {
|
|
3866
|
+
inwardIssueKey: string;
|
|
3867
|
+
outwardIssueKey: string;
|
|
3868
|
+
linkTypeName: string;
|
|
3869
|
+
comment?: string | undefined;
|
|
3870
|
+
}, {
|
|
3871
|
+
inwardIssueKey: string;
|
|
3872
|
+
outwardIssueKey: string;
|
|
3873
|
+
linkTypeName: string;
|
|
3874
|
+
comment?: string | undefined;
|
|
3875
|
+
}>;
|
|
3876
|
+
export type jiraDataCenterLinkAndAssignJiraIssuesParamsType = z.infer<typeof jiraDataCenterLinkAndAssignJiraIssuesParamsSchema>;
|
|
3877
|
+
export declare const jiraDataCenterLinkAndAssignJiraIssuesOutputSchema: z.ZodObject<{
|
|
3878
|
+
success: z.ZodBoolean;
|
|
3879
|
+
linkSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
3880
|
+
assignSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
3881
|
+
assignedReporter: z.ZodOptional<z.ZodString>;
|
|
3882
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3883
|
+
}, "strip", z.ZodTypeAny, {
|
|
3884
|
+
success: boolean;
|
|
3885
|
+
error?: string | undefined;
|
|
3886
|
+
linkSuccess?: boolean | undefined;
|
|
3887
|
+
assignSuccess?: boolean | undefined;
|
|
3888
|
+
assignedReporter?: string | undefined;
|
|
3889
|
+
}, {
|
|
3890
|
+
success: boolean;
|
|
3891
|
+
error?: string | undefined;
|
|
3892
|
+
linkSuccess?: boolean | undefined;
|
|
3893
|
+
assignSuccess?: boolean | undefined;
|
|
3894
|
+
assignedReporter?: string | undefined;
|
|
3895
|
+
}>;
|
|
3896
|
+
export type jiraDataCenterLinkAndAssignJiraIssuesOutputType = z.infer<typeof jiraDataCenterLinkAndAssignJiraIssuesOutputSchema>;
|
|
3897
|
+
export type jiraDataCenterLinkAndAssignJiraIssuesFunction = ActionFunction<jiraDataCenterLinkAndAssignJiraIssuesParamsType, AuthParamsType, jiraDataCenterLinkAndAssignJiraIssuesOutputType>;
|
|
3783
3898
|
export declare const googlemapsValidateAddressParamsSchema: z.ZodObject<{
|
|
3784
3899
|
regionCode: z.ZodString;
|
|
3785
3900
|
locality: z.ZodString;
|
|
@@ -69,6 +69,7 @@ export var ActionName;
|
|
|
69
69
|
ActionName["UPDATEJIRATICKETSTATUS"] = "updateJiraTicketStatus";
|
|
70
70
|
ActionName["GETJIRAISSUESBYQUERY"] = "getJiraIssuesByQuery";
|
|
71
71
|
ActionName["LINKJIRAISSUES"] = "linkJiraIssues";
|
|
72
|
+
ActionName["LINKANDASSIGNJIRAISSUES"] = "linkAndAssignJiraIssues";
|
|
72
73
|
ActionName["VALIDATEADDRESS"] = "validateAddress";
|
|
73
74
|
ActionName["NEARBYSEARCHRESTAURANTS"] = "nearbysearchRestaurants";
|
|
74
75
|
ActionName["GETTOPNSEARCHRESULTURLS"] = "getTopNSearchResultUrls";
|
|
@@ -838,6 +839,28 @@ export const jiraLinkJiraIssuesOutputSchema = z.object({
|
|
|
838
839
|
success: z.boolean().describe("Whether the issue link was successfully created"),
|
|
839
840
|
error: z.string().describe("Error message if the link creation failed (only present if success is false)").optional(),
|
|
840
841
|
});
|
|
842
|
+
export const jiraLinkAndAssignJiraIssuesParamsSchema = z.object({
|
|
843
|
+
inwardIssueKey: z
|
|
844
|
+
.string()
|
|
845
|
+
.describe('The issue key for the inward issue of the link (e.g. "PROJ-123"). This is the source issue that will be assigned the reporter.'),
|
|
846
|
+
outwardIssueKey: z
|
|
847
|
+
.string()
|
|
848
|
+
.describe('The issue key for the outward issue of the link (e.g. "PROJ-456"). This is the destination issue whose reporter will be assigned.'),
|
|
849
|
+
linkTypeName: z
|
|
850
|
+
.string()
|
|
851
|
+
.describe('The name of the link type (e.g. "Blocks", "Cloners", "Duplicate", "Relates", "Split", etc.)'),
|
|
852
|
+
comment: z
|
|
853
|
+
.string()
|
|
854
|
+
.describe("An optional comment to add to the inward (source) issue when creating the link")
|
|
855
|
+
.optional(),
|
|
856
|
+
});
|
|
857
|
+
export const jiraLinkAndAssignJiraIssuesOutputSchema = z.object({
|
|
858
|
+
success: z.boolean().describe("Whether the issue link and assignment were both successfully completed"),
|
|
859
|
+
linkSuccess: z.boolean().describe("Whether the issue link was successfully created").optional(),
|
|
860
|
+
assignSuccess: z.boolean().describe("Whether the reporter was successfully assigned to the inward issue").optional(),
|
|
861
|
+
assignedReporter: z.string().describe("The account ID or username of the reporter that was assigned").optional(),
|
|
862
|
+
error: z.string().describe("Error message if the operation failed (only present if success is false)").optional(),
|
|
863
|
+
});
|
|
841
864
|
export const jiraOrgAssignJiraTicketParamsSchema = z.object({
|
|
842
865
|
projectKey: z.string().describe("The key for the project you want to add the ticket to."),
|
|
843
866
|
assignee: z.string().describe("The assignee for the ticket, userID or email"),
|
|
@@ -1056,6 +1079,28 @@ export const jiraOrgLinkJiraIssuesOutputSchema = z.object({
|
|
|
1056
1079
|
success: z.boolean().describe("Whether the issue link was successfully created"),
|
|
1057
1080
|
error: z.string().describe("Error message if the link creation failed (only present if success is false)").optional(),
|
|
1058
1081
|
});
|
|
1082
|
+
export const jiraOrgLinkAndAssignJiraIssuesParamsSchema = z.object({
|
|
1083
|
+
inwardIssueKey: z
|
|
1084
|
+
.string()
|
|
1085
|
+
.describe('The issue key for the inward issue of the link (e.g. "PROJ-123"). This is the source issue that will be assigned the reporter.'),
|
|
1086
|
+
outwardIssueKey: z
|
|
1087
|
+
.string()
|
|
1088
|
+
.describe('The issue key for the outward issue of the link (e.g. "PROJ-456"). This is the destination issue whose reporter will be assigned.'),
|
|
1089
|
+
linkTypeName: z
|
|
1090
|
+
.string()
|
|
1091
|
+
.describe('The name of the link type (e.g. "Blocks", "Cloners", "Duplicate", "Relates", "Split", etc.)'),
|
|
1092
|
+
comment: z
|
|
1093
|
+
.string()
|
|
1094
|
+
.describe("An optional comment to add to the inward (source) issue when creating the link")
|
|
1095
|
+
.optional(),
|
|
1096
|
+
});
|
|
1097
|
+
export const jiraOrgLinkAndAssignJiraIssuesOutputSchema = z.object({
|
|
1098
|
+
success: z.boolean().describe("Whether the issue link and assignment were both successfully completed"),
|
|
1099
|
+
linkSuccess: z.boolean().describe("Whether the issue link was successfully created").optional(),
|
|
1100
|
+
assignSuccess: z.boolean().describe("Whether the reporter was successfully assigned to the inward issue").optional(),
|
|
1101
|
+
assignedReporter: z.string().describe("The account ID or username of the reporter that was assigned").optional(),
|
|
1102
|
+
error: z.string().describe("Error message if the operation failed (only present if success is false)").optional(),
|
|
1103
|
+
});
|
|
1059
1104
|
export const jiraDataCenterAssignJiraTicketParamsSchema = z.object({
|
|
1060
1105
|
projectKey: z.string().describe("The key for the project you want to add the ticket to."),
|
|
1061
1106
|
assignee: z.string().describe("The assignee for the ticket, userID or email"),
|
|
@@ -1274,6 +1319,28 @@ export const jiraDataCenterLinkJiraIssuesOutputSchema = z.object({
|
|
|
1274
1319
|
success: z.boolean().describe("Whether the issue link was successfully created"),
|
|
1275
1320
|
error: z.string().describe("Error message if the link creation failed (only present if success is false)").optional(),
|
|
1276
1321
|
});
|
|
1322
|
+
export const jiraDataCenterLinkAndAssignJiraIssuesParamsSchema = z.object({
|
|
1323
|
+
inwardIssueKey: z
|
|
1324
|
+
.string()
|
|
1325
|
+
.describe('The issue key for the inward issue of the link (e.g. "PROJ-123"). This is the source issue that will be assigned the reporter.'),
|
|
1326
|
+
outwardIssueKey: z
|
|
1327
|
+
.string()
|
|
1328
|
+
.describe('The issue key for the outward issue of the link (e.g. "PROJ-456"). This is the destination issue whose reporter will be assigned.'),
|
|
1329
|
+
linkTypeName: z
|
|
1330
|
+
.string()
|
|
1331
|
+
.describe('The name of the link type (e.g. "Blocks", "Cloners", "Duplicate", "Relates", "Split", etc.)'),
|
|
1332
|
+
comment: z
|
|
1333
|
+
.string()
|
|
1334
|
+
.describe("An optional comment to add to the inward (source) issue when creating the link")
|
|
1335
|
+
.optional(),
|
|
1336
|
+
});
|
|
1337
|
+
export const jiraDataCenterLinkAndAssignJiraIssuesOutputSchema = z.object({
|
|
1338
|
+
success: z.boolean().describe("Whether the issue link and assignment were both successfully completed"),
|
|
1339
|
+
linkSuccess: z.boolean().describe("Whether the issue link was successfully created").optional(),
|
|
1340
|
+
assignSuccess: z.boolean().describe("Whether the reporter was successfully assigned to the inward issue").optional(),
|
|
1341
|
+
assignedReporter: z.string().describe("The account ID or username of the reporter that was assigned").optional(),
|
|
1342
|
+
error: z.string().describe("Error message if the operation failed (only present if success is false)").optional(),
|
|
1343
|
+
});
|
|
1277
1344
|
export const googlemapsValidateAddressParamsSchema = z.object({
|
|
1278
1345
|
regionCode: z.string().describe("The country of the address being verified."),
|
|
1279
1346
|
locality: z.string().describe("The locality of the address being verified. This is likely a city."),
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
2
|
+
import { getJiraApiConfig, getErrorMessage } from "./utils.js";
|
|
3
|
+
const linkAndAssignJiraIssues = async ({ params, authParams, }) => {
|
|
4
|
+
const { inwardIssueKey, outwardIssueKey, linkTypeName, comment } = params;
|
|
5
|
+
const { authToken } = authParams;
|
|
6
|
+
if (!authToken) {
|
|
7
|
+
throw new Error("Auth token is required");
|
|
8
|
+
}
|
|
9
|
+
const { apiUrl, strategy } = getJiraApiConfig(authParams);
|
|
10
|
+
const headers = {
|
|
11
|
+
Authorization: `Bearer ${authToken}`,
|
|
12
|
+
Accept: "application/json",
|
|
13
|
+
"Content-Type": "application/json",
|
|
14
|
+
};
|
|
15
|
+
// Step 1: Create the issue link
|
|
16
|
+
const linkPayload = {
|
|
17
|
+
inwardIssue: {
|
|
18
|
+
key: inwardIssueKey,
|
|
19
|
+
},
|
|
20
|
+
outwardIssue: {
|
|
21
|
+
key: outwardIssueKey,
|
|
22
|
+
},
|
|
23
|
+
type: {
|
|
24
|
+
name: linkTypeName,
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
if (comment) {
|
|
28
|
+
linkPayload.comment = {
|
|
29
|
+
body: strategy.formatText(comment),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
try {
|
|
33
|
+
await axiosClient.post(`${apiUrl}/issueLink`, linkPayload, { headers });
|
|
34
|
+
}
|
|
35
|
+
catch (error) {
|
|
36
|
+
console.error("Error linking Jira issues:", error);
|
|
37
|
+
return {
|
|
38
|
+
success: false,
|
|
39
|
+
linkSuccess: false,
|
|
40
|
+
error: `Failed to link issues: ${getErrorMessage(error)}`,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
// Step 2: Fetch the outward issue to get its reporter
|
|
44
|
+
let reporterId;
|
|
45
|
+
try {
|
|
46
|
+
const issueResponse = await axiosClient.get(`${apiUrl}/issue/${outwardIssueKey}`, {
|
|
47
|
+
headers: {
|
|
48
|
+
Authorization: `Bearer ${authToken}`,
|
|
49
|
+
Accept: "application/json",
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
const reporter = issueResponse.data?.fields?.reporter;
|
|
53
|
+
// Cloud uses accountId, Data Center uses name/key
|
|
54
|
+
reporterId = reporter?.accountId || reporter?.name || reporter?.key;
|
|
55
|
+
if (!reporterId) {
|
|
56
|
+
return {
|
|
57
|
+
success: false,
|
|
58
|
+
linkSuccess: true,
|
|
59
|
+
assignSuccess: false,
|
|
60
|
+
error: "Issue link was created, but the outward issue has no reporter to assign.",
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
catch (error) {
|
|
65
|
+
console.error("Error fetching outward issue details:", error);
|
|
66
|
+
return {
|
|
67
|
+
success: false,
|
|
68
|
+
linkSuccess: true,
|
|
69
|
+
assignSuccess: false,
|
|
70
|
+
error: `Issue link was created, but failed to fetch outward issue reporter: ${getErrorMessage(error)}`,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
// Step 3: Assign the reporter of the outward issue to the inward issue
|
|
74
|
+
try {
|
|
75
|
+
const assigneePayload = strategy.formatUser(reporterId);
|
|
76
|
+
if (!assigneePayload) {
|
|
77
|
+
return {
|
|
78
|
+
success: false,
|
|
79
|
+
linkSuccess: true,
|
|
80
|
+
assignSuccess: false,
|
|
81
|
+
error: "Issue link was created, but could not format reporter for assignment.",
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
await axiosClient.put(`${apiUrl}/issue/${inwardIssueKey}/assignee`, assigneePayload, { headers });
|
|
85
|
+
return {
|
|
86
|
+
success: true,
|
|
87
|
+
linkSuccess: true,
|
|
88
|
+
assignSuccess: true,
|
|
89
|
+
assignedReporter: reporterId,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
catch (error) {
|
|
93
|
+
console.error("Error assigning reporter to inward issue:", error);
|
|
94
|
+
return {
|
|
95
|
+
success: false,
|
|
96
|
+
linkSuccess: true,
|
|
97
|
+
assignSuccess: false,
|
|
98
|
+
error: `Issue link was created, but failed to assign reporter: ${getErrorMessage(error)}`,
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
export default linkAndAssignJiraIssues;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@credal/actions",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.202",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AI Actions by Credal AI",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -51,7 +51,6 @@
|
|
|
51
51
|
"typescript-eslint": "^8.56.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@credal/sdk": "^0.1.14",
|
|
55
54
|
"@mendable/firecrawl-js": "^4.3.4",
|
|
56
55
|
"@microsoft/microsoft-graph-client": "^3.0.7",
|
|
57
56
|
"@octokit/core": "^6.1.6",
|