@credal/actions 0.2.200 → 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.
@@ -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, 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";
@@ -94,6 +94,8 @@ import createChannel from "./providers/slack/createChannel.js";
94
94
  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
+ import linkJiraIssues from "./providers/jira/linkJiraIssues.js";
98
+ import linkAndAssignJiraIssues from "./providers/jira/linkAndAssignJiraIssues.js";
97
99
  import searchSalesforceRecords from "./providers/salesforce/searchSalesforceRecords.js";
98
100
  import getDriveFileContentById from "./providers/google-oauth/getDriveFileContentById.js";
99
101
  import searchDriveByQuery from "./providers/google-oauth/searchDriveByQuery.js";
@@ -204,6 +206,18 @@ const jiraActions = {
204
206
  outputSchema: jiraCreateServiceDeskRequestOutputSchema,
205
207
  actionType: "write",
206
208
  },
209
+ linkJiraIssues: {
210
+ fn: linkJiraIssues,
211
+ paramsSchema: jiraLinkJiraIssuesParamsSchema,
212
+ outputSchema: jiraLinkJiraIssuesOutputSchema,
213
+ actionType: "write",
214
+ },
215
+ linkAndAssignJiraIssues: {
216
+ fn: linkAndAssignJiraIssues,
217
+ paramsSchema: jiraLinkAndAssignJiraIssuesParamsSchema,
218
+ outputSchema: jiraLinkAndAssignJiraIssuesOutputSchema,
219
+ actionType: "write",
220
+ },
207
221
  };
208
222
  export const ActionMapper = {
209
223
  generic: {
@@ -469,6 +483,18 @@ export const ActionMapper = {
469
483
  outputSchema: jiraUpdateJiraTicketStatusOutputSchema,
470
484
  actionType: "write",
471
485
  },
486
+ linkJiraIssues: {
487
+ fn: linkJiraIssues,
488
+ paramsSchema: jiraLinkJiraIssuesParamsSchema,
489
+ outputSchema: jiraLinkJiraIssuesOutputSchema,
490
+ actionType: "write",
491
+ },
492
+ linkAndAssignJiraIssues: {
493
+ fn: linkAndAssignJiraIssues,
494
+ paramsSchema: jiraLinkAndAssignJiraIssuesParamsSchema,
495
+ outputSchema: jiraLinkAndAssignJiraIssuesOutputSchema,
496
+ actionType: "write",
497
+ },
472
498
  },
473
499
  openstreetmap: {
474
500
  getLatitudeLongitudeFromLocation: {
@@ -28,6 +28,8 @@ export declare const jiraMoveJiraTicketToProjectDefinition: ActionTemplate;
28
28
  export declare const jiraUpdateJiraTicketDetailsDefinition: ActionTemplate;
29
29
  export declare const jiraUpdateJiraTicketStatusDefinition: ActionTemplate;
30
30
  export declare const jiraGetJiraIssuesByQueryDefinition: ActionTemplate;
31
+ export declare const jiraLinkJiraIssuesDefinition: ActionTemplate;
32
+ export declare const jiraLinkAndAssignJiraIssuesDefinition: ActionTemplate;
31
33
  export declare const jiraOrgAssignJiraTicketDefinition: ActionTemplate;
32
34
  export declare const jiraOrgPublicCommentOnServiceDeskRequestDefinition: ActionTemplate;
33
35
  export declare const jiraOrgCommentJiraTicketDefinition: ActionTemplate;
@@ -39,6 +41,8 @@ export declare const jiraOrgMoveJiraTicketToProjectDefinition: ActionTemplate;
39
41
  export declare const jiraOrgUpdateJiraTicketDetailsDefinition: ActionTemplate;
40
42
  export declare const jiraOrgUpdateJiraTicketStatusDefinition: ActionTemplate;
41
43
  export declare const jiraOrgGetJiraIssuesByQueryDefinition: ActionTemplate;
44
+ export declare const jiraOrgLinkJiraIssuesDefinition: ActionTemplate;
45
+ export declare const jiraOrgLinkAndAssignJiraIssuesDefinition: ActionTemplate;
42
46
  export declare const jiraDataCenterAssignJiraTicketDefinition: ActionTemplate;
43
47
  export declare const jiraDataCenterPublicCommentOnServiceDeskRequestDefinition: ActionTemplate;
44
48
  export declare const jiraDataCenterCommentJiraTicketDefinition: ActionTemplate;
@@ -50,6 +54,8 @@ export declare const jiraDataCenterMoveJiraTicketToProjectDefinition: ActionTemp
50
54
  export declare const jiraDataCenterUpdateJiraTicketDetailsDefinition: ActionTemplate;
51
55
  export declare const jiraDataCenterUpdateJiraTicketStatusDefinition: ActionTemplate;
52
56
  export declare const jiraDataCenterGetJiraIssuesByQueryDefinition: ActionTemplate;
57
+ export declare const jiraDataCenterLinkJiraIssuesDefinition: ActionTemplate;
58
+ export declare const jiraDataCenterLinkAndAssignJiraIssuesDefinition: ActionTemplate;
53
59
  export declare const googlemapsValidateAddressDefinition: ActionTemplate;
54
60
  export declare const googlemapsNearbysearchRestaurantsDefinition: ActionTemplate;
55
61
  export declare const bingGetTopNSearchResultUrlsDefinition: ActionTemplate;
@@ -2045,6 +2045,106 @@ export const jiraGetJiraIssuesByQueryDefinition = {
2045
2045
  name: "getJiraIssuesByQuery",
2046
2046
  provider: "jira",
2047
2047
  };
2048
+ export const jiraLinkJiraIssuesDefinition = {
2049
+ displayName: "Link two Jira issues",
2050
+ description: "Creates a link between two Jira issues using the dedicated issue link endpoint (e.g. Blocks, Cloners, Duplicate, Relates)",
2051
+ scopes: ["write:jira-work"],
2052
+ tags: [],
2053
+ parameters: {
2054
+ type: "object",
2055
+ required: ["inwardIssueKey", "outwardIssueKey", "linkTypeName"],
2056
+ properties: {
2057
+ inwardIssueKey: {
2058
+ type: "string",
2059
+ description: 'The issue key for the inward issue of the link (e.g. "PROJ-123"). This is the source issue.',
2060
+ },
2061
+ outwardIssueKey: {
2062
+ type: "string",
2063
+ description: 'The issue key for the outward issue of the link (e.g. "PROJ-456"). This is the destination issue.',
2064
+ },
2065
+ linkTypeName: {
2066
+ type: "string",
2067
+ description: 'The name of the link type (e.g. "Blocks", "Cloners", "Duplicate", "Relates", "Split", etc.)',
2068
+ },
2069
+ comment: {
2070
+ type: "string",
2071
+ description: "An optional comment to add to the inward (source) issue when creating the link",
2072
+ },
2073
+ },
2074
+ },
2075
+ output: {
2076
+ type: "object",
2077
+ required: ["success"],
2078
+ properties: {
2079
+ success: {
2080
+ type: "boolean",
2081
+ description: "Whether the issue link was successfully created",
2082
+ },
2083
+ error: {
2084
+ type: "string",
2085
+ description: "Error message if the link creation failed (only present if success is false)",
2086
+ },
2087
+ },
2088
+ },
2089
+ name: "linkJiraIssues",
2090
+ provider: "jira",
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
+ };
2048
2148
  export const jiraOrgAssignJiraTicketDefinition = {
2049
2149
  displayName: "Assign a Jira ticket",
2050
2150
  description: "Assigns/Reassigns a Jira ticket to a specified user",
@@ -2756,6 +2856,106 @@ export const jiraOrgGetJiraIssuesByQueryDefinition = {
2756
2856
  name: "getJiraIssuesByQuery",
2757
2857
  provider: "jiraOrg",
2758
2858
  };
2859
+ export const jiraOrgLinkJiraIssuesDefinition = {
2860
+ displayName: "Link two Jira issues",
2861
+ description: "Creates a link between two Jira issues using the dedicated issue link endpoint (e.g. Blocks, Cloners, Duplicate, Relates)",
2862
+ scopes: ["write:jira-work"],
2863
+ tags: [],
2864
+ parameters: {
2865
+ type: "object",
2866
+ required: ["inwardIssueKey", "outwardIssueKey", "linkTypeName"],
2867
+ properties: {
2868
+ inwardIssueKey: {
2869
+ type: "string",
2870
+ description: 'The issue key for the inward issue of the link (e.g. "PROJ-123"). This is the source issue.',
2871
+ },
2872
+ outwardIssueKey: {
2873
+ type: "string",
2874
+ description: 'The issue key for the outward issue of the link (e.g. "PROJ-456"). This is the destination issue.',
2875
+ },
2876
+ linkTypeName: {
2877
+ type: "string",
2878
+ description: 'The name of the link type (e.g. "Blocks", "Cloners", "Duplicate", "Relates", "Split", etc.)',
2879
+ },
2880
+ comment: {
2881
+ type: "string",
2882
+ description: "An optional comment to add to the inward (source) issue when creating the link",
2883
+ },
2884
+ },
2885
+ },
2886
+ output: {
2887
+ type: "object",
2888
+ required: ["success"],
2889
+ properties: {
2890
+ success: {
2891
+ type: "boolean",
2892
+ description: "Whether the issue link was successfully created",
2893
+ },
2894
+ error: {
2895
+ type: "string",
2896
+ description: "Error message if the link creation failed (only present if success is false)",
2897
+ },
2898
+ },
2899
+ },
2900
+ name: "linkJiraIssues",
2901
+ provider: "jiraOrg",
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
+ };
2759
2959
  export const jiraDataCenterAssignJiraTicketDefinition = {
2760
2960
  displayName: "Assign a Jira ticket",
2761
2961
  description: "Assigns/Reassigns a Jira ticket to a specified user",
@@ -3467,6 +3667,106 @@ export const jiraDataCenterGetJiraIssuesByQueryDefinition = {
3467
3667
  name: "getJiraIssuesByQuery",
3468
3668
  provider: "jiraDataCenter",
3469
3669
  };
3670
+ export const jiraDataCenterLinkJiraIssuesDefinition = {
3671
+ displayName: "Link two Jira issues",
3672
+ description: "Creates a link between two Jira issues using the dedicated issue link endpoint (e.g. Blocks, Cloners, Duplicate, Relates)",
3673
+ scopes: ["write:jira-work"],
3674
+ tags: [],
3675
+ parameters: {
3676
+ type: "object",
3677
+ required: ["inwardIssueKey", "outwardIssueKey", "linkTypeName"],
3678
+ properties: {
3679
+ inwardIssueKey: {
3680
+ type: "string",
3681
+ description: 'The issue key for the inward issue of the link (e.g. "PROJ-123"). This is the source issue.',
3682
+ },
3683
+ outwardIssueKey: {
3684
+ type: "string",
3685
+ description: 'The issue key for the outward issue of the link (e.g. "PROJ-456"). This is the destination issue.',
3686
+ },
3687
+ linkTypeName: {
3688
+ type: "string",
3689
+ description: 'The name of the link type (e.g. "Blocks", "Cloners", "Duplicate", "Relates", "Split", etc.)',
3690
+ },
3691
+ comment: {
3692
+ type: "string",
3693
+ description: "An optional comment to add to the inward (source) issue when creating the link",
3694
+ },
3695
+ },
3696
+ },
3697
+ output: {
3698
+ type: "object",
3699
+ required: ["success"],
3700
+ properties: {
3701
+ success: {
3702
+ type: "boolean",
3703
+ description: "Whether the issue link was successfully created",
3704
+ },
3705
+ error: {
3706
+ type: "string",
3707
+ description: "Error message if the link creation failed (only present if success is false)",
3708
+ },
3709
+ },
3710
+ },
3711
+ name: "linkJiraIssues",
3712
+ provider: "jiraDataCenter",
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
+ };
3470
3770
  export const googlemapsValidateAddressDefinition = {
3471
3771
  displayName: "Validate an address",
3472
3772
  description: "Validate an address using the Google Maps API",
@@ -66,6 +66,8 @@ export declare enum ActionName {
66
66
  UPDATEJIRATICKETDETAILS = "updateJiraTicketDetails",
67
67
  UPDATEJIRATICKETSTATUS = "updateJiraTicketStatus",
68
68
  GETJIRAISSUESBYQUERY = "getJiraIssuesByQuery",
69
+ LINKJIRAISSUES = "linkJiraIssues",
70
+ LINKANDASSIGNJIRAISSUES = "linkAndAssignJiraIssues",
69
71
  VALIDATEADDRESS = "validateAddress",
70
72
  NEARBYSEARCHRESTAURANTS = "nearbysearchRestaurants",
71
73
  GETTOPNSEARCHRESULTURLS = "getTopNSearchResultUrls",
@@ -2266,6 +2268,73 @@ export declare const jiraGetJiraIssuesByQueryOutputSchema: z.ZodObject<{
2266
2268
  }>;
2267
2269
  export type jiraGetJiraIssuesByQueryOutputType = z.infer<typeof jiraGetJiraIssuesByQueryOutputSchema>;
2268
2270
  export type jiraGetJiraIssuesByQueryFunction = ActionFunction<jiraGetJiraIssuesByQueryParamsType, AuthParamsType, jiraGetJiraIssuesByQueryOutputType>;
2271
+ export declare const jiraLinkJiraIssuesParamsSchema: z.ZodObject<{
2272
+ inwardIssueKey: z.ZodString;
2273
+ outwardIssueKey: z.ZodString;
2274
+ linkTypeName: z.ZodString;
2275
+ comment: z.ZodOptional<z.ZodString>;
2276
+ }, "strip", z.ZodTypeAny, {
2277
+ inwardIssueKey: string;
2278
+ outwardIssueKey: string;
2279
+ linkTypeName: string;
2280
+ comment?: string | undefined;
2281
+ }, {
2282
+ inwardIssueKey: string;
2283
+ outwardIssueKey: string;
2284
+ linkTypeName: string;
2285
+ comment?: string | undefined;
2286
+ }>;
2287
+ export type jiraLinkJiraIssuesParamsType = z.infer<typeof jiraLinkJiraIssuesParamsSchema>;
2288
+ export declare const jiraLinkJiraIssuesOutputSchema: z.ZodObject<{
2289
+ success: z.ZodBoolean;
2290
+ error: z.ZodOptional<z.ZodString>;
2291
+ }, "strip", z.ZodTypeAny, {
2292
+ success: boolean;
2293
+ error?: string | undefined;
2294
+ }, {
2295
+ success: boolean;
2296
+ error?: string | undefined;
2297
+ }>;
2298
+ export type jiraLinkJiraIssuesOutputType = z.infer<typeof jiraLinkJiraIssuesOutputSchema>;
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>;
2269
2338
  export declare const jiraOrgAssignJiraTicketParamsSchema: z.ZodObject<{
2270
2339
  projectKey: z.ZodString;
2271
2340
  assignee: z.ZodString;
@@ -2979,6 +3048,73 @@ export declare const jiraOrgGetJiraIssuesByQueryOutputSchema: z.ZodObject<{
2979
3048
  }>;
2980
3049
  export type jiraOrgGetJiraIssuesByQueryOutputType = z.infer<typeof jiraOrgGetJiraIssuesByQueryOutputSchema>;
2981
3050
  export type jiraOrgGetJiraIssuesByQueryFunction = ActionFunction<jiraOrgGetJiraIssuesByQueryParamsType, AuthParamsType, jiraOrgGetJiraIssuesByQueryOutputType>;
3051
+ export declare const jiraOrgLinkJiraIssuesParamsSchema: z.ZodObject<{
3052
+ inwardIssueKey: z.ZodString;
3053
+ outwardIssueKey: z.ZodString;
3054
+ linkTypeName: z.ZodString;
3055
+ comment: z.ZodOptional<z.ZodString>;
3056
+ }, "strip", z.ZodTypeAny, {
3057
+ inwardIssueKey: string;
3058
+ outwardIssueKey: string;
3059
+ linkTypeName: string;
3060
+ comment?: string | undefined;
3061
+ }, {
3062
+ inwardIssueKey: string;
3063
+ outwardIssueKey: string;
3064
+ linkTypeName: string;
3065
+ comment?: string | undefined;
3066
+ }>;
3067
+ export type jiraOrgLinkJiraIssuesParamsType = z.infer<typeof jiraOrgLinkJiraIssuesParamsSchema>;
3068
+ export declare const jiraOrgLinkJiraIssuesOutputSchema: z.ZodObject<{
3069
+ success: z.ZodBoolean;
3070
+ error: z.ZodOptional<z.ZodString>;
3071
+ }, "strip", z.ZodTypeAny, {
3072
+ success: boolean;
3073
+ error?: string | undefined;
3074
+ }, {
3075
+ success: boolean;
3076
+ error?: string | undefined;
3077
+ }>;
3078
+ export type jiraOrgLinkJiraIssuesOutputType = z.infer<typeof jiraOrgLinkJiraIssuesOutputSchema>;
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>;
2982
3118
  export declare const jiraDataCenterAssignJiraTicketParamsSchema: z.ZodObject<{
2983
3119
  projectKey: z.ZodString;
2984
3120
  assignee: z.ZodString;
@@ -3692,6 +3828,73 @@ export declare const jiraDataCenterGetJiraIssuesByQueryOutputSchema: z.ZodObject
3692
3828
  }>;
3693
3829
  export type jiraDataCenterGetJiraIssuesByQueryOutputType = z.infer<typeof jiraDataCenterGetJiraIssuesByQueryOutputSchema>;
3694
3830
  export type jiraDataCenterGetJiraIssuesByQueryFunction = ActionFunction<jiraDataCenterGetJiraIssuesByQueryParamsType, AuthParamsType, jiraDataCenterGetJiraIssuesByQueryOutputType>;
3831
+ export declare const jiraDataCenterLinkJiraIssuesParamsSchema: z.ZodObject<{
3832
+ inwardIssueKey: z.ZodString;
3833
+ outwardIssueKey: z.ZodString;
3834
+ linkTypeName: z.ZodString;
3835
+ comment: z.ZodOptional<z.ZodString>;
3836
+ }, "strip", z.ZodTypeAny, {
3837
+ inwardIssueKey: string;
3838
+ outwardIssueKey: string;
3839
+ linkTypeName: string;
3840
+ comment?: string | undefined;
3841
+ }, {
3842
+ inwardIssueKey: string;
3843
+ outwardIssueKey: string;
3844
+ linkTypeName: string;
3845
+ comment?: string | undefined;
3846
+ }>;
3847
+ export type jiraDataCenterLinkJiraIssuesParamsType = z.infer<typeof jiraDataCenterLinkJiraIssuesParamsSchema>;
3848
+ export declare const jiraDataCenterLinkJiraIssuesOutputSchema: z.ZodObject<{
3849
+ success: z.ZodBoolean;
3850
+ error: z.ZodOptional<z.ZodString>;
3851
+ }, "strip", z.ZodTypeAny, {
3852
+ success: boolean;
3853
+ error?: string | undefined;
3854
+ }, {
3855
+ success: boolean;
3856
+ error?: string | undefined;
3857
+ }>;
3858
+ export type jiraDataCenterLinkJiraIssuesOutputType = z.infer<typeof jiraDataCenterLinkJiraIssuesOutputSchema>;
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>;
3695
3898
  export declare const googlemapsValidateAddressParamsSchema: z.ZodObject<{
3696
3899
  regionCode: z.ZodString;
3697
3900
  locality: z.ZodString;
@@ -68,6 +68,8 @@ export var ActionName;
68
68
  ActionName["UPDATEJIRATICKETDETAILS"] = "updateJiraTicketDetails";
69
69
  ActionName["UPDATEJIRATICKETSTATUS"] = "updateJiraTicketStatus";
70
70
  ActionName["GETJIRAISSUESBYQUERY"] = "getJiraIssuesByQuery";
71
+ ActionName["LINKJIRAISSUES"] = "linkJiraIssues";
72
+ ActionName["LINKANDASSIGNJIRAISSUES"] = "linkAndAssignJiraIssues";
71
73
  ActionName["VALIDATEADDRESS"] = "validateAddress";
72
74
  ActionName["NEARBYSEARCHRESTAURANTS"] = "nearbysearchRestaurants";
73
75
  ActionName["GETTOPNSEARCHRESULTURLS"] = "getTopNSearchResultUrls";
@@ -818,6 +820,47 @@ export const jiraGetJiraIssuesByQueryOutputSchema = z.object({
818
820
  .optional(),
819
821
  error: z.string().describe("The error that occurred if the records were not successfully retrieved").optional(),
820
822
  });
823
+ export const jiraLinkJiraIssuesParamsSchema = z.object({
824
+ inwardIssueKey: z
825
+ .string()
826
+ .describe('The issue key for the inward issue of the link (e.g. "PROJ-123"). This is the source issue.'),
827
+ outwardIssueKey: z
828
+ .string()
829
+ .describe('The issue key for the outward issue of the link (e.g. "PROJ-456"). This is the destination issue.'),
830
+ linkTypeName: z
831
+ .string()
832
+ .describe('The name of the link type (e.g. "Blocks", "Cloners", "Duplicate", "Relates", "Split", etc.)'),
833
+ comment: z
834
+ .string()
835
+ .describe("An optional comment to add to the inward (source) issue when creating the link")
836
+ .optional(),
837
+ });
838
+ export const jiraLinkJiraIssuesOutputSchema = z.object({
839
+ success: z.boolean().describe("Whether the issue link was successfully created"),
840
+ error: z.string().describe("Error message if the link creation failed (only present if success is false)").optional(),
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
+ });
821
864
  export const jiraOrgAssignJiraTicketParamsSchema = z.object({
822
865
  projectKey: z.string().describe("The key for the project you want to add the ticket to."),
823
866
  assignee: z.string().describe("The assignee for the ticket, userID or email"),
@@ -1017,6 +1060,47 @@ export const jiraOrgGetJiraIssuesByQueryOutputSchema = z.object({
1017
1060
  .optional(),
1018
1061
  error: z.string().describe("The error that occurred if the records were not successfully retrieved").optional(),
1019
1062
  });
1063
+ export const jiraOrgLinkJiraIssuesParamsSchema = z.object({
1064
+ inwardIssueKey: z
1065
+ .string()
1066
+ .describe('The issue key for the inward issue of the link (e.g. "PROJ-123"). This is the source issue.'),
1067
+ outwardIssueKey: z
1068
+ .string()
1069
+ .describe('The issue key for the outward issue of the link (e.g. "PROJ-456"). This is the destination issue.'),
1070
+ linkTypeName: z
1071
+ .string()
1072
+ .describe('The name of the link type (e.g. "Blocks", "Cloners", "Duplicate", "Relates", "Split", etc.)'),
1073
+ comment: z
1074
+ .string()
1075
+ .describe("An optional comment to add to the inward (source) issue when creating the link")
1076
+ .optional(),
1077
+ });
1078
+ export const jiraOrgLinkJiraIssuesOutputSchema = z.object({
1079
+ success: z.boolean().describe("Whether the issue link was successfully created"),
1080
+ error: z.string().describe("Error message if the link creation failed (only present if success is false)").optional(),
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
+ });
1020
1104
  export const jiraDataCenterAssignJiraTicketParamsSchema = z.object({
1021
1105
  projectKey: z.string().describe("The key for the project you want to add the ticket to."),
1022
1106
  assignee: z.string().describe("The assignee for the ticket, userID or email"),
@@ -1216,6 +1300,47 @@ export const jiraDataCenterGetJiraIssuesByQueryOutputSchema = z.object({
1216
1300
  .optional(),
1217
1301
  error: z.string().describe("The error that occurred if the records were not successfully retrieved").optional(),
1218
1302
  });
1303
+ export const jiraDataCenterLinkJiraIssuesParamsSchema = z.object({
1304
+ inwardIssueKey: z
1305
+ .string()
1306
+ .describe('The issue key for the inward issue of the link (e.g. "PROJ-123"). This is the source issue.'),
1307
+ outwardIssueKey: z
1308
+ .string()
1309
+ .describe('The issue key for the outward issue of the link (e.g. "PROJ-456"). This is the destination issue.'),
1310
+ linkTypeName: z
1311
+ .string()
1312
+ .describe('The name of the link type (e.g. "Blocks", "Cloners", "Duplicate", "Relates", "Split", etc.)'),
1313
+ comment: z
1314
+ .string()
1315
+ .describe("An optional comment to add to the inward (source) issue when creating the link")
1316
+ .optional(),
1317
+ });
1318
+ export const jiraDataCenterLinkJiraIssuesOutputSchema = z.object({
1319
+ success: z.boolean().describe("Whether the issue link was successfully created"),
1320
+ error: z.string().describe("Error message if the link creation failed (only present if success is false)").optional(),
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
+ });
1219
1344
  export const googlemapsValidateAddressParamsSchema = z.object({
1220
1345
  regionCode: z.string().describe("The country of the address being verified."),
1221
1346
  locality: z.string().describe("The locality of the address being verified. This is likely a city."),
@@ -0,0 +1,3 @@
1
+ import type { jiraLinkAndAssignJiraIssuesFunction } from "../../autogen/types.js";
2
+ declare const linkAndAssignJiraIssues: jiraLinkAndAssignJiraIssuesFunction;
3
+ export default linkAndAssignJiraIssues;
@@ -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;
@@ -0,0 +1,3 @@
1
+ import type { jiraLinkJiraIssuesFunction } from "../../autogen/types.js";
2
+ declare const linkJiraIssues: jiraLinkJiraIssuesFunction;
3
+ export default linkJiraIssues;
@@ -0,0 +1,46 @@
1
+ import { axiosClient } from "../../util/axiosClient.js";
2
+ import { getJiraApiConfig, getErrorMessage } from "./utils.js";
3
+ const linkJiraIssues = async ({ params, authParams, }) => {
4
+ const { inwardIssueKey, outwardIssueKey, linkTypeName, comment } = params;
5
+ const { apiUrl, strategy } = getJiraApiConfig(authParams);
6
+ // The issue link endpoint is /rest/api/3/issueLink (Cloud) or /rest/api/2/issueLink (Data Center)
7
+ const issueLinkUrl = `${apiUrl}/issueLink`;
8
+ // Build the request body per the Jira REST API
9
+ // https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-links/#api-rest-api-3-issuelink-post
10
+ const payload = {
11
+ inwardIssue: {
12
+ key: inwardIssueKey,
13
+ },
14
+ outwardIssue: {
15
+ key: outwardIssueKey,
16
+ },
17
+ type: {
18
+ name: linkTypeName,
19
+ },
20
+ };
21
+ if (comment) {
22
+ payload.comment = {
23
+ body: strategy.formatText(comment),
24
+ };
25
+ }
26
+ try {
27
+ await axiosClient.post(issueLinkUrl, payload, {
28
+ headers: {
29
+ Authorization: `Bearer ${authParams.authToken}`,
30
+ Accept: "application/json",
31
+ "Content-Type": "application/json",
32
+ },
33
+ });
34
+ return {
35
+ success: true,
36
+ };
37
+ }
38
+ catch (error) {
39
+ console.error("Error linking Jira issues:", error);
40
+ return {
41
+ success: false,
42
+ error: getErrorMessage(error),
43
+ };
44
+ }
45
+ };
46
+ export default linkJiraIssues;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credal/actions",
3
- "version": "0.2.200",
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",