@credal/actions 0.2.217 → 0.2.219
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 +3 -3
- package/dist/actions/autogen/templates.js +27 -27
- package/dist/actions/autogen/types.d.ts +18 -18
- package/dist/actions/autogen/types.js +27 -27
- package/dist/actions/providers/jira/getJiraDCIssuesByQuery.d.ts +2 -8
- package/dist/actions/providers/jira/getJiraDCIssuesByQuery.js +0 -11
- package/dist/actions/providers/jira/getJiraIssuesByQuery.js +29 -56
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { genericFillTemplateParamsSchema, genericFillTemplateOutputSchema, confluenceOverwritePageParamsSchema, confluenceOverwritePageOutputSchema, googlemapsValidateAddressOutputSchema, googlemapsValidateAddressParamsSchema, googleOauthCreateNewGoogleDocParamsSchema, googleOauthCreateNewGoogleDocOutputSchema, mathAddOutputSchema, mathAddParamsSchema, mongoInsertMongoDocOutputSchema, mongoInsertMongoDocParamsSchema, slackSendMessageOutputSchema, slackSendMessageParamsSchema, slackGetChannelMessagesOutputSchema, slackGetChannelMessagesParamsSchema, slackCreateChannelParamsSchema, slackCreateChannelOutputSchema, snowflakeGetRowByFieldValueOutputSchema, snowflakeGetRowByFieldValueParamsSchema, zendeskCreateZendeskTicketOutputSchema, zendeskCreateZendeskTicketParamsSchema, zendeskGetTicketDetailsOutputSchema, zendeskGetTicketDetailsParamsSchema, zendeskUpdateTicketStatusOutputSchema, zendeskUpdateTicketStatusParamsSchema, zendeskAddCommentToTicketOutputSchema, zendeskAddCommentToTicketParamsSchema, zendeskAssignTicketOutputSchema, zendeskAssignTicketParamsSchema, zendeskListZendeskTicketsOutputSchema, zendeskListZendeskTicketsParamsSchema, zendeskSearchZendeskByQueryOutputSchema, zendeskSearchZendeskByQueryParamsSchema, jiraAssignJiraTicketParamsSchema, jiraAssignJiraTicketOutputSchema, jiraCommentJiraTicketParamsSchema, jiraCommentJiraTicketOutputSchema, jiraCommentJiraTicketWithMentionsParamsSchema, jiraCommentJiraTicketWithMentionsOutputSchema, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraMoveJiraTicketToProjectParamsSchema, jiraMoveJiraTicketToProjectOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema, jiraCreateServiceDeskRequestParamsSchema, jiraCreateServiceDeskRequestOutputSchema, jiraLinkJiraIssuesParamsSchema, jiraLinkJiraIssuesOutputSchema, jiraLinkAndAssignJiraIssuesParamsSchema, jiraLinkAndAssignJiraIssuesOutputSchema, openstreetmapGetLatitudeLongitudeFromLocationParamsSchema, openstreetmapGetLatitudeLongitudeFromLocationOutputSchema, nwsGetForecastForLocationParamsSchema, nwsGetForecastForLocationOutputSchema, googlemapsNearbysearchRestaurantsOutputSchema, googlemapsNearbysearchRestaurantsParamsSchema, firecrawlScrapeUrlOutputSchema, firecrawlScrapeUrlParamsSchema, resendSendEmailOutputSchema, resendSendEmailHtmlParamsSchema, resendSendEmailHtmlOutputSchema, firecrawlScrapeTweetDataWithNitterParamsSchema, firecrawlScrapeTweetDataWithNitterOutputSchema, resendSendEmailParamsSchema, linkedinCreateShareLinkedinPostUrlParamsSchema, linkedinCreateShareLinkedinPostUrlOutputSchema, xCreateShareXPostUrlParamsSchema, xCreateShareXPostUrlOutputSchema, finnhubSymbolLookupParamsSchema, finnhubSymbolLookupOutputSchema, finnhubGetBasicFinancialsParamsSchema, finnhubGetBasicFinancialsOutputSchema, confluenceFetchPageContentParamsSchema, confluenceFetchPageContentOutputSchema, confluenceDataCenterOverwritePageParamsSchema, confluenceDataCenterOverwritePageOutputSchema, confluenceDataCenterFetchPageContentParamsSchema, confluenceDataCenterFetchPageContentOutputSchema, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthAddTextToTopOfDocParamsSchema, googleOauthAddTextToTopOfDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, googleOauthGetSpreadsheetMetadataParamsSchema, googleOauthGetSpreadsheetMetadataOutputSchema, googleOauthUpdateSpreadsheetParamsSchema, googleOauthUpdateSpreadsheetOutputSchema, googleOauthAppendRowsToSpreadsheetParamsSchema, googleOauthAppendRowsToSpreadsheetOutputSchema, googleOauthDeleteRowFromSpreadsheetParamsSchema, googleOauthDeleteRowFromSpreadsheetOutputSchema, googleOauthScheduleCalendarMeetingParamsSchema, googleOauthScheduleCalendarMeetingOutputSchema, googleOauthListCalendarsParamsSchema, googleOauthListCalendarsOutputSchema, googleOauthListCalendarEventsParamsSchema, googleOauthListCalendarEventsOutputSchema, googleOauthUpdateCalendarEventParamsSchema, googleOauthUpdateCalendarEventOutputSchema, googleOauthDeleteCalendarEventParamsSchema, googleOauthDeleteCalendarEventOutputSchema, googleOauthEditAGoogleCalendarEventParamsSchema, googleOauthEditAGoogleCalendarEventOutputSchema, googleOauthCreatePresentationParamsSchema, googleOauthCreatePresentationOutputSchema, googleOauthUpdatePresentationParamsSchema, googleOauthUpdatePresentationOutputSchema, googleOauthGetPresentationParamsSchema, googleOauthGetPresentationOutputSchema, googleOauthSearchDriveByKeywordsParamsSchema, googleOauthSearchDriveByKeywordsOutputSchema, googleOauthListGroupsOutputSchema, googleOauthListGroupsParamsSchema, googleOauthGetGroupOutputSchema, googleOauthGetGroupParamsSchema, googleOauthListGroupMembersOutputSchema, googleOauthListGroupMembersParamsSchema, googleOauthHasGroupMemberOutputSchema, googleOauthHasGroupMemberParamsSchema, googleOauthAddGroupMemberOutputSchema, googleOauthAddGroupMemberParamsSchema, googleOauthDeleteGroupMemberOutputSchema, googleOauthDeleteGroupMemberParamsSchema, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, gitlabSearchGroupOutputSchema, gitlabSearchGroupParamsSchema, githubSearchOrganizationOutputSchema, githubSearchOrganizationParamsSchema, salesforceSearchSalesforceRecordsParamsSchema, salesforceSearchSalesforceRecordsOutputSchema, googleOauthGetDriveFileContentByIdOutputSchema, googleOauthGetDriveFileContentByIdParamsSchema, googleOauthSearchDriveByQueryOutputSchema, googleOauthSearchDriveByQueryParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentOutputSchema, googleOauthQueryGoogleBigQueryParamsSchema, googleOauthQueryGoogleBigQueryOutputSchema, githubGetFileContentParamsSchema, githubGetFileContentOutputSchema, githubListDirectoryOutputSchema, githubListDirectoryParamsSchema, githubGetBranchParamsSchema, githubGetBranchOutputSchema, githubListCommitsParamsSchema, githubListCommitsOutputSchema, githubGetPullRequestDetailsParamsSchema, githubGetPullRequestDetailsOutputSchema, linearGetIssuesParamsSchema, linearGetIssuesOutputSchema, linearGetIssueDetailsParamsSchema, linearGetIssueDetailsOutputSchema, linearGetProjectDetailsParamsSchema, linearGetProjectDetailsOutputSchema, linearGetTeamDetailsParamsSchema, linearGetTeamDetailsOutputSchema, linearGetProjectsParamsSchema, linearGetProjectsOutputSchema, linearGetTeamsParamsSchema, linearGetTeamsOutputSchema, linearCreateIssueParamsSchema, linearCreateIssueOutputSchema, hubspotGetContactsParamsSchema, hubspotGetContactsOutputSchema, hubspotGetContactDetailsParamsSchema, hubspotGetContactDetailsOutputSchema, hubspotGetCompaniesParamsSchema, hubspotGetCompaniesOutputSchema, hubspotGetCompanyDetailsParamsSchema, hubspotGetCompanyDetailsOutputSchema, hubspotGetDealsParamsSchema, hubspotGetDealsOutputSchema, hubspotGetDealDetailsParamsSchema, hubspotGetDealDetailsOutputSchema, hubspotGetTicketsParamsSchema, hubspotGetTicketsOutputSchema, hubspotGetTicketDetailsParamsSchema, hubspotGetTicketDetailsOutputSchema, gitlabGetFileContentParamsSchema, gitlabGetFileContentOutputSchema, gitlabGetMergeRequestParamsSchema, gitlabGetMergeRequestOutputSchema, jiraPublicCommentOnServiceDeskRequestParamsSchema, jiraPublicCommentOnServiceDeskRequestOutputSchema, googlemailSendGmailParamsSchema, googlemailSendGmailOutputSchema, googlemailReplyToGmailParamsSchema, googlemailReplyToGmailOutputSchema, gitlabListDirectoryParamsSchema, gitlabListDirectoryOutputSchema, firecrawlSearchAndScrapeOutputSchema, firecrawlSearchAndScrapeParamsSchema, firecrawlGetTopNSearchResultUrlsParamsSchema, firecrawlGetTopNSearchResultUrlsOutputSchema, googleOauthSearchDriveByKeywordsAndGetFileContentParamsSchema, googleOauthSearchDriveByKeywordsAndGetFileContentOutputSchema, perplexityPerplexityDeepResearchParamsSchema, perplexityPerplexityDeepResearchOutputSchema, slackUserSearchSlackParamsSchema, slackUserSearchSlackOutputSchema, slackUserSearchSlackRTSParamsSchema, slackUserSearchSlackRTSOutputSchema, oktaOrgGetOktaUserByNameParamsSchema, oktaOrgGetOktaUserByNameOutputSchema, googleSearchCustomSearchParamsSchema, googleSearchCustomSearchOutputSchema, salesforceSearchAllSalesforceRecordsParamsSchema, salesforceSearchAllSalesforceRecordsOutputSchema, salesforceListReportsParamsSchema, salesforceListReportsOutputSchema, salesforceExecuteReportParamsSchema, salesforceExecuteReportOutputSchema, slackSendDmFromBotParamsSchema, slackSendDmFromBotOutputSchema, slackGetChannelMembersParamsSchema, slackGetChannelMembersOutputSchema, salesforceGetReportMetadataParamsSchema, salesforceGetReportMetadataOutputSchema, googleOauthUpdateRowsInSpreadsheetParamsSchema, googleOauthUpdateRowsInSpreadsheetOutputSchema, } from "./autogen/types.js";
|
|
1
|
+
import { genericFillTemplateParamsSchema, genericFillTemplateOutputSchema, confluenceOverwritePageParamsSchema, confluenceOverwritePageOutputSchema, googlemapsValidateAddressOutputSchema, googlemapsValidateAddressParamsSchema, googleOauthCreateNewGoogleDocParamsSchema, googleOauthCreateNewGoogleDocOutputSchema, mathAddOutputSchema, mathAddParamsSchema, mongoInsertMongoDocOutputSchema, mongoInsertMongoDocParamsSchema, slackSendMessageOutputSchema, slackSendMessageParamsSchema, slackGetChannelMessagesOutputSchema, slackGetChannelMessagesParamsSchema, slackCreateChannelParamsSchema, slackCreateChannelOutputSchema, snowflakeGetRowByFieldValueOutputSchema, snowflakeGetRowByFieldValueParamsSchema, zendeskCreateZendeskTicketOutputSchema, zendeskCreateZendeskTicketParamsSchema, zendeskGetTicketDetailsOutputSchema, zendeskGetTicketDetailsParamsSchema, zendeskUpdateTicketStatusOutputSchema, zendeskUpdateTicketStatusParamsSchema, zendeskAddCommentToTicketOutputSchema, zendeskAddCommentToTicketParamsSchema, zendeskAssignTicketOutputSchema, zendeskAssignTicketParamsSchema, zendeskListZendeskTicketsOutputSchema, zendeskListZendeskTicketsParamsSchema, zendeskSearchZendeskByQueryOutputSchema, zendeskSearchZendeskByQueryParamsSchema, jiraAssignJiraTicketParamsSchema, jiraAssignJiraTicketOutputSchema, jiraCommentJiraTicketParamsSchema, jiraCommentJiraTicketOutputSchema, jiraCommentJiraTicketWithMentionsParamsSchema, jiraCommentJiraTicketWithMentionsOutputSchema, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraMoveJiraTicketToProjectParamsSchema, jiraMoveJiraTicketToProjectOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema, jiraCreateServiceDeskRequestParamsSchema, jiraCreateServiceDeskRequestOutputSchema, jiraLinkJiraIssuesParamsSchema, jiraLinkJiraIssuesOutputSchema, jiraLinkAndAssignJiraIssuesParamsSchema, jiraLinkAndAssignJiraIssuesOutputSchema, openstreetmapGetLatitudeLongitudeFromLocationParamsSchema, openstreetmapGetLatitudeLongitudeFromLocationOutputSchema, nwsGetForecastForLocationParamsSchema, nwsGetForecastForLocationOutputSchema, googlemapsNearbysearchRestaurantsOutputSchema, googlemapsNearbysearchRestaurantsParamsSchema, firecrawlScrapeUrlOutputSchema, firecrawlScrapeUrlParamsSchema, resendSendEmailOutputSchema, resendSendEmailHtmlParamsSchema, resendSendEmailHtmlOutputSchema, firecrawlScrapeTweetDataWithNitterParamsSchema, firecrawlScrapeTweetDataWithNitterOutputSchema, resendSendEmailParamsSchema, linkedinCreateShareLinkedinPostUrlParamsSchema, linkedinCreateShareLinkedinPostUrlOutputSchema, xCreateShareXPostUrlParamsSchema, xCreateShareXPostUrlOutputSchema, finnhubSymbolLookupParamsSchema, finnhubSymbolLookupOutputSchema, finnhubGetBasicFinancialsParamsSchema, finnhubGetBasicFinancialsOutputSchema, confluenceFetchPageContentParamsSchema, confluenceFetchPageContentOutputSchema, confluenceDataCenterOverwritePageParamsSchema, confluenceDataCenterOverwritePageOutputSchema, confluenceDataCenterFetchPageContentParamsSchema, confluenceDataCenterFetchPageContentOutputSchema, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthAddTextToTopOfDocParamsSchema, googleOauthAddTextToTopOfDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, googleOauthGetSpreadsheetMetadataParamsSchema, googleOauthGetSpreadsheetMetadataOutputSchema, googleOauthUpdateSpreadsheetParamsSchema, googleOauthUpdateSpreadsheetOutputSchema, googleOauthAppendRowsToSpreadsheetParamsSchema, googleOauthAppendRowsToSpreadsheetOutputSchema, googleOauthDeleteRowFromSpreadsheetParamsSchema, googleOauthDeleteRowFromSpreadsheetOutputSchema, googleOauthScheduleCalendarMeetingParamsSchema, googleOauthScheduleCalendarMeetingOutputSchema, googleOauthListCalendarsParamsSchema, googleOauthListCalendarsOutputSchema, googleOauthListCalendarEventsParamsSchema, googleOauthListCalendarEventsOutputSchema, googleOauthUpdateCalendarEventParamsSchema, googleOauthUpdateCalendarEventOutputSchema, googleOauthDeleteCalendarEventParamsSchema, googleOauthDeleteCalendarEventOutputSchema, googleOauthEditAGoogleCalendarEventParamsSchema, googleOauthEditAGoogleCalendarEventOutputSchema, googleOauthCreatePresentationParamsSchema, googleOauthCreatePresentationOutputSchema, googleOauthUpdatePresentationParamsSchema, googleOauthUpdatePresentationOutputSchema, googleOauthGetPresentationParamsSchema, googleOauthGetPresentationOutputSchema, googleOauthSearchDriveByKeywordsParamsSchema, googleOauthSearchDriveByKeywordsOutputSchema, googleOauthListGroupsOutputSchema, googleOauthListGroupsParamsSchema, googleOauthGetGroupOutputSchema, googleOauthGetGroupParamsSchema, googleOauthListGroupMembersOutputSchema, googleOauthListGroupMembersParamsSchema, googleOauthHasGroupMemberOutputSchema, googleOauthHasGroupMemberParamsSchema, googleOauthAddGroupMemberOutputSchema, googleOauthAddGroupMemberParamsSchema, googleOauthDeleteGroupMemberOutputSchema, googleOauthDeleteGroupMemberParamsSchema, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, jiraDataCenterGetJiraIssuesByQueryOutputSchema, jiraDataCenterGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, gitlabSearchGroupOutputSchema, gitlabSearchGroupParamsSchema, githubSearchOrganizationOutputSchema, githubSearchOrganizationParamsSchema, salesforceSearchSalesforceRecordsParamsSchema, salesforceSearchSalesforceRecordsOutputSchema, googleOauthGetDriveFileContentByIdOutputSchema, googleOauthGetDriveFileContentByIdParamsSchema, googleOauthSearchDriveByQueryOutputSchema, googleOauthSearchDriveByQueryParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentOutputSchema, googleOauthQueryGoogleBigQueryParamsSchema, googleOauthQueryGoogleBigQueryOutputSchema, githubGetFileContentParamsSchema, githubGetFileContentOutputSchema, githubListDirectoryOutputSchema, githubListDirectoryParamsSchema, githubGetBranchParamsSchema, githubGetBranchOutputSchema, githubListCommitsParamsSchema, githubListCommitsOutputSchema, githubGetPullRequestDetailsParamsSchema, githubGetPullRequestDetailsOutputSchema, linearGetIssuesParamsSchema, linearGetIssuesOutputSchema, linearGetIssueDetailsParamsSchema, linearGetIssueDetailsOutputSchema, linearGetProjectDetailsParamsSchema, linearGetProjectDetailsOutputSchema, linearGetTeamDetailsParamsSchema, linearGetTeamDetailsOutputSchema, linearGetProjectsParamsSchema, linearGetProjectsOutputSchema, linearGetTeamsParamsSchema, linearGetTeamsOutputSchema, linearCreateIssueParamsSchema, linearCreateIssueOutputSchema, hubspotGetContactsParamsSchema, hubspotGetContactsOutputSchema, hubspotGetContactDetailsParamsSchema, hubspotGetContactDetailsOutputSchema, hubspotGetCompaniesParamsSchema, hubspotGetCompaniesOutputSchema, hubspotGetCompanyDetailsParamsSchema, hubspotGetCompanyDetailsOutputSchema, hubspotGetDealsParamsSchema, hubspotGetDealsOutputSchema, hubspotGetDealDetailsParamsSchema, hubspotGetDealDetailsOutputSchema, hubspotGetTicketsParamsSchema, hubspotGetTicketsOutputSchema, hubspotGetTicketDetailsParamsSchema, hubspotGetTicketDetailsOutputSchema, gitlabGetFileContentParamsSchema, gitlabGetFileContentOutputSchema, gitlabGetMergeRequestParamsSchema, gitlabGetMergeRequestOutputSchema, jiraPublicCommentOnServiceDeskRequestParamsSchema, jiraPublicCommentOnServiceDeskRequestOutputSchema, googlemailSendGmailParamsSchema, googlemailSendGmailOutputSchema, googlemailReplyToGmailParamsSchema, googlemailReplyToGmailOutputSchema, gitlabListDirectoryParamsSchema, gitlabListDirectoryOutputSchema, firecrawlSearchAndScrapeOutputSchema, firecrawlSearchAndScrapeParamsSchema, firecrawlGetTopNSearchResultUrlsParamsSchema, firecrawlGetTopNSearchResultUrlsOutputSchema, googleOauthSearchDriveByKeywordsAndGetFileContentParamsSchema, googleOauthSearchDriveByKeywordsAndGetFileContentOutputSchema, perplexityPerplexityDeepResearchParamsSchema, perplexityPerplexityDeepResearchOutputSchema, slackUserSearchSlackParamsSchema, slackUserSearchSlackOutputSchema, slackUserSearchSlackRTSParamsSchema, slackUserSearchSlackRTSOutputSchema, oktaOrgGetOktaUserByNameParamsSchema, oktaOrgGetOktaUserByNameOutputSchema, googleSearchCustomSearchParamsSchema, googleSearchCustomSearchOutputSchema, salesforceSearchAllSalesforceRecordsParamsSchema, salesforceSearchAllSalesforceRecordsOutputSchema, salesforceListReportsParamsSchema, salesforceListReportsOutputSchema, salesforceExecuteReportParamsSchema, salesforceExecuteReportOutputSchema, slackSendDmFromBotParamsSchema, slackSendDmFromBotOutputSchema, slackGetChannelMembersParamsSchema, slackGetChannelMembersOutputSchema, salesforceGetReportMetadataParamsSchema, salesforceGetReportMetadataOutputSchema, googleOauthUpdateRowsInSpreadsheetParamsSchema, googleOauthUpdateRowsInSpreadsheetOutputSchema, } from "./autogen/types.js";
|
|
2
2
|
import validateAddress from "./providers/googlemaps/validateAddress.js";
|
|
3
3
|
import add from "./providers/math/add.js";
|
|
4
4
|
import fillTemplate from "./providers/generic/fillTemplate.js";
|
|
@@ -462,8 +462,8 @@ export const ActionMapper = {
|
|
|
462
462
|
// Exclude Service Desk: createServiceDeskRequest, publicCommentOnServiceDeskRequest
|
|
463
463
|
getJiraIssuesByQuery: {
|
|
464
464
|
fn: getJiraDCIssuesByQuery,
|
|
465
|
-
paramsSchema:
|
|
466
|
-
outputSchema:
|
|
465
|
+
paramsSchema: jiraDataCenterGetJiraIssuesByQueryParamsSchema,
|
|
466
|
+
outputSchema: jiraDataCenterGetJiraIssuesByQueryOutputSchema,
|
|
467
467
|
actionType: "read",
|
|
468
468
|
},
|
|
469
469
|
assignJiraTicket: {
|
|
@@ -2018,13 +2018,25 @@ export const jiraGetJiraIssuesByQueryDefinition = {
|
|
|
2018
2018
|
},
|
|
2019
2019
|
limit: {
|
|
2020
2020
|
type: "number",
|
|
2021
|
-
description: "The maximum number of records to retrieve. Defaults to 100.
|
|
2021
|
+
description: "The maximum number of records to retrieve per call (page size). Defaults to 100. Keep this small enough that the response is not truncated before you read it — if truncation occurs, lower the limit and retry.",
|
|
2022
|
+
},
|
|
2023
|
+
nextPageToken: {
|
|
2024
|
+
type: "string",
|
|
2025
|
+
description: "Cursor token returned by the previous response. Pass this to fetch the next page. Omit on the first call. If the system truncates your results (i.e. you receive fewer items than itemsReturned indicates), reduce the limit and retry the same page without advancing the cursor — only move to the next page once you receive a complete, untruncated response.",
|
|
2022
2026
|
},
|
|
2023
2027
|
},
|
|
2024
2028
|
},
|
|
2025
2029
|
output: {
|
|
2026
2030
|
type: "object",
|
|
2027
2031
|
properties: {
|
|
2032
|
+
itemsReturned: {
|
|
2033
|
+
type: "number",
|
|
2034
|
+
description: "Number of items fetched by this action. This field intentionally appears before results so it survives system-level response truncation. Warning: the system may truncate the results array before you see it, so you may receive fewer results than this number.",
|
|
2035
|
+
},
|
|
2036
|
+
nextPageToken: {
|
|
2037
|
+
type: "string",
|
|
2038
|
+
description: "Cursor token for the next page. Pass this as nextPageToken in the next call. Absent when there are no more results.",
|
|
2039
|
+
},
|
|
2028
2040
|
results: {
|
|
2029
2041
|
type: "array",
|
|
2030
2042
|
description: "The results of the Jira issues",
|
|
@@ -2194,14 +2206,6 @@ export const jiraGetJiraIssuesByQueryDefinition = {
|
|
|
2194
2206
|
},
|
|
2195
2207
|
},
|
|
2196
2208
|
},
|
|
2197
|
-
total: {
|
|
2198
|
-
type: "number",
|
|
2199
|
-
description: "The total number of Jira issues matching the query. When present and greater than the number of results returned, re-run with a higher limit to retrieve all issues.",
|
|
2200
|
-
},
|
|
2201
|
-
truncated: {
|
|
2202
|
-
type: "boolean",
|
|
2203
|
-
description: "True when the result set was cut off at the requested limit and more issues exist. Re-run with a higher limit to retrieve all issues.",
|
|
2204
|
-
},
|
|
2205
2209
|
error: {
|
|
2206
2210
|
type: "string",
|
|
2207
2211
|
description: "The error that occurred if the records were not successfully retrieved",
|
|
@@ -2882,13 +2886,25 @@ export const jiraOrgGetJiraIssuesByQueryDefinition = {
|
|
|
2882
2886
|
},
|
|
2883
2887
|
limit: {
|
|
2884
2888
|
type: "number",
|
|
2885
|
-
description: "The maximum number of records to retrieve. Defaults to 100.
|
|
2889
|
+
description: "The maximum number of records to retrieve per call (page size). Defaults to 100. Keep this small enough that the response is not truncated before you read it — if truncation occurs, lower the limit and retry.",
|
|
2890
|
+
},
|
|
2891
|
+
nextPageToken: {
|
|
2892
|
+
type: "string",
|
|
2893
|
+
description: "Cursor token returned by the previous response. Pass this to fetch the next page. Omit on the first call. If the system truncates your results (i.e. you receive fewer items than itemsReturned indicates), reduce the limit and retry the same page without advancing the cursor — only move to the next page once you receive a complete, untruncated response.",
|
|
2886
2894
|
},
|
|
2887
2895
|
},
|
|
2888
2896
|
},
|
|
2889
2897
|
output: {
|
|
2890
2898
|
type: "object",
|
|
2891
2899
|
properties: {
|
|
2900
|
+
itemsReturned: {
|
|
2901
|
+
type: "number",
|
|
2902
|
+
description: "Number of items fetched by this action. This field intentionally appears before results so it survives system-level response truncation. Warning: the system may truncate the results array before you see it, so you may receive fewer results than this number.",
|
|
2903
|
+
},
|
|
2904
|
+
nextPageToken: {
|
|
2905
|
+
type: "string",
|
|
2906
|
+
description: "Cursor token for the next page. Pass this as nextPageToken in the next call. Absent when there are no more results.",
|
|
2907
|
+
},
|
|
2892
2908
|
results: {
|
|
2893
2909
|
type: "array",
|
|
2894
2910
|
description: "The results of the Jira issues",
|
|
@@ -3058,14 +3074,6 @@ export const jiraOrgGetJiraIssuesByQueryDefinition = {
|
|
|
3058
3074
|
},
|
|
3059
3075
|
},
|
|
3060
3076
|
},
|
|
3061
|
-
total: {
|
|
3062
|
-
type: "number",
|
|
3063
|
-
description: "The total number of Jira issues matching the query. When present and greater than the number of results returned, re-run with a higher limit to retrieve all issues.",
|
|
3064
|
-
},
|
|
3065
|
-
truncated: {
|
|
3066
|
-
type: "boolean",
|
|
3067
|
-
description: "True when the result set was cut off at the requested limit and more issues exist. Re-run with a higher limit to retrieve all issues.",
|
|
3068
|
-
},
|
|
3069
3077
|
error: {
|
|
3070
3078
|
type: "string",
|
|
3071
3079
|
description: "The error that occurred if the records were not successfully retrieved",
|
|
@@ -3746,7 +3754,7 @@ export const jiraDataCenterGetJiraIssuesByQueryDefinition = {
|
|
|
3746
3754
|
},
|
|
3747
3755
|
limit: {
|
|
3748
3756
|
type: "number",
|
|
3749
|
-
description: "The maximum number of records to retrieve. Defaults to 100.
|
|
3757
|
+
description: "The maximum number of records to retrieve per call (page size). Defaults to 100. Keep this small enough that the response is not truncated before you read it — if truncation occurs, lower the limit and retry.",
|
|
3750
3758
|
},
|
|
3751
3759
|
},
|
|
3752
3760
|
},
|
|
@@ -3922,14 +3930,6 @@ export const jiraDataCenterGetJiraIssuesByQueryDefinition = {
|
|
|
3922
3930
|
},
|
|
3923
3931
|
},
|
|
3924
3932
|
},
|
|
3925
|
-
total: {
|
|
3926
|
-
type: "number",
|
|
3927
|
-
description: "The total number of Jira issues matching the query. When present and greater than the number of results returned, re-run with a higher limit to retrieve all issues.",
|
|
3928
|
-
},
|
|
3929
|
-
truncated: {
|
|
3930
|
-
type: "boolean",
|
|
3931
|
-
description: "True when the result set was cut off at the requested limit and more issues exist. Re-run with a higher limit to retrieve all issues.",
|
|
3932
|
-
},
|
|
3933
3933
|
error: {
|
|
3934
3934
|
type: "string",
|
|
3935
3935
|
description: "The error that occurred if the records were not successfully retrieved",
|
|
@@ -2029,15 +2029,20 @@ export type jiraUpdateJiraTicketStatusFunction = ActionFunction<jiraUpdateJiraTi
|
|
|
2029
2029
|
export declare const jiraGetJiraIssuesByQueryParamsSchema: z.ZodObject<{
|
|
2030
2030
|
query: z.ZodString;
|
|
2031
2031
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
2032
|
+
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
2032
2033
|
}, "strip", z.ZodTypeAny, {
|
|
2033
2034
|
query: string;
|
|
2034
2035
|
limit?: number | undefined;
|
|
2036
|
+
nextPageToken?: string | undefined;
|
|
2035
2037
|
}, {
|
|
2036
2038
|
query: string;
|
|
2037
2039
|
limit?: number | undefined;
|
|
2040
|
+
nextPageToken?: string | undefined;
|
|
2038
2041
|
}>;
|
|
2039
2042
|
export type jiraGetJiraIssuesByQueryParamsType = z.infer<typeof jiraGetJiraIssuesByQueryParamsSchema>;
|
|
2040
2043
|
export declare const jiraGetJiraIssuesByQueryOutputSchema: z.ZodObject<{
|
|
2044
|
+
itemsReturned: z.ZodOptional<z.ZodNumber>;
|
|
2045
|
+
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
2041
2046
|
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2042
2047
|
name: z.ZodString;
|
|
2043
2048
|
url: z.ZodString;
|
|
@@ -2292,8 +2297,6 @@ export declare const jiraGetJiraIssuesByQueryOutputSchema: z.ZodObject<{
|
|
|
2292
2297
|
resolution?: string | null | undefined;
|
|
2293
2298
|
};
|
|
2294
2299
|
}>, "many">>;
|
|
2295
|
-
total: z.ZodOptional<z.ZodNumber>;
|
|
2296
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
2297
2300
|
error: z.ZodOptional<z.ZodString>;
|
|
2298
2301
|
}, "strip", z.ZodTypeAny, {
|
|
2299
2302
|
error?: string | undefined;
|
|
@@ -2341,8 +2344,8 @@ export declare const jiraGetJiraIssuesByQueryOutputSchema: z.ZodObject<{
|
|
|
2341
2344
|
resolution?: string | null | undefined;
|
|
2342
2345
|
};
|
|
2343
2346
|
}[] | undefined;
|
|
2344
|
-
|
|
2345
|
-
|
|
2347
|
+
nextPageToken?: string | undefined;
|
|
2348
|
+
itemsReturned?: number | undefined;
|
|
2346
2349
|
}, {
|
|
2347
2350
|
error?: string | undefined;
|
|
2348
2351
|
results?: {
|
|
@@ -2389,8 +2392,8 @@ export declare const jiraGetJiraIssuesByQueryOutputSchema: z.ZodObject<{
|
|
|
2389
2392
|
resolution?: string | null | undefined;
|
|
2390
2393
|
};
|
|
2391
2394
|
}[] | undefined;
|
|
2392
|
-
|
|
2393
|
-
|
|
2395
|
+
nextPageToken?: string | undefined;
|
|
2396
|
+
itemsReturned?: number | undefined;
|
|
2394
2397
|
}>;
|
|
2395
2398
|
export type jiraGetJiraIssuesByQueryOutputType = z.infer<typeof jiraGetJiraIssuesByQueryOutputSchema>;
|
|
2396
2399
|
export type jiraGetJiraIssuesByQueryFunction = ActionFunction<jiraGetJiraIssuesByQueryParamsType, AuthParamsType, jiraGetJiraIssuesByQueryOutputType>;
|
|
@@ -2844,15 +2847,20 @@ export type jiraOrgUpdateJiraTicketStatusFunction = ActionFunction<jiraOrgUpdate
|
|
|
2844
2847
|
export declare const jiraOrgGetJiraIssuesByQueryParamsSchema: z.ZodObject<{
|
|
2845
2848
|
query: z.ZodString;
|
|
2846
2849
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
2850
|
+
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
2847
2851
|
}, "strip", z.ZodTypeAny, {
|
|
2848
2852
|
query: string;
|
|
2849
2853
|
limit?: number | undefined;
|
|
2854
|
+
nextPageToken?: string | undefined;
|
|
2850
2855
|
}, {
|
|
2851
2856
|
query: string;
|
|
2852
2857
|
limit?: number | undefined;
|
|
2858
|
+
nextPageToken?: string | undefined;
|
|
2853
2859
|
}>;
|
|
2854
2860
|
export type jiraOrgGetJiraIssuesByQueryParamsType = z.infer<typeof jiraOrgGetJiraIssuesByQueryParamsSchema>;
|
|
2855
2861
|
export declare const jiraOrgGetJiraIssuesByQueryOutputSchema: z.ZodObject<{
|
|
2862
|
+
itemsReturned: z.ZodOptional<z.ZodNumber>;
|
|
2863
|
+
nextPageToken: z.ZodOptional<z.ZodString>;
|
|
2856
2864
|
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2857
2865
|
name: z.ZodString;
|
|
2858
2866
|
url: z.ZodString;
|
|
@@ -3107,8 +3115,6 @@ export declare const jiraOrgGetJiraIssuesByQueryOutputSchema: z.ZodObject<{
|
|
|
3107
3115
|
resolution?: string | null | undefined;
|
|
3108
3116
|
};
|
|
3109
3117
|
}>, "many">>;
|
|
3110
|
-
total: z.ZodOptional<z.ZodNumber>;
|
|
3111
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
3112
3118
|
error: z.ZodOptional<z.ZodString>;
|
|
3113
3119
|
}, "strip", z.ZodTypeAny, {
|
|
3114
3120
|
error?: string | undefined;
|
|
@@ -3156,8 +3162,8 @@ export declare const jiraOrgGetJiraIssuesByQueryOutputSchema: z.ZodObject<{
|
|
|
3156
3162
|
resolution?: string | null | undefined;
|
|
3157
3163
|
};
|
|
3158
3164
|
}[] | undefined;
|
|
3159
|
-
|
|
3160
|
-
|
|
3165
|
+
nextPageToken?: string | undefined;
|
|
3166
|
+
itemsReturned?: number | undefined;
|
|
3161
3167
|
}, {
|
|
3162
3168
|
error?: string | undefined;
|
|
3163
3169
|
results?: {
|
|
@@ -3204,8 +3210,8 @@ export declare const jiraOrgGetJiraIssuesByQueryOutputSchema: z.ZodObject<{
|
|
|
3204
3210
|
resolution?: string | null | undefined;
|
|
3205
3211
|
};
|
|
3206
3212
|
}[] | undefined;
|
|
3207
|
-
|
|
3208
|
-
|
|
3213
|
+
nextPageToken?: string | undefined;
|
|
3214
|
+
itemsReturned?: number | undefined;
|
|
3209
3215
|
}>;
|
|
3210
3216
|
export type jiraOrgGetJiraIssuesByQueryOutputType = z.infer<typeof jiraOrgGetJiraIssuesByQueryOutputSchema>;
|
|
3211
3217
|
export type jiraOrgGetJiraIssuesByQueryFunction = ActionFunction<jiraOrgGetJiraIssuesByQueryParamsType, AuthParamsType, jiraOrgGetJiraIssuesByQueryOutputType>;
|
|
@@ -3922,8 +3928,6 @@ export declare const jiraDataCenterGetJiraIssuesByQueryOutputSchema: z.ZodObject
|
|
|
3922
3928
|
resolution?: string | null | undefined;
|
|
3923
3929
|
};
|
|
3924
3930
|
}>, "many">>;
|
|
3925
|
-
total: z.ZodOptional<z.ZodNumber>;
|
|
3926
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
3927
3931
|
error: z.ZodOptional<z.ZodString>;
|
|
3928
3932
|
}, "strip", z.ZodTypeAny, {
|
|
3929
3933
|
error?: string | undefined;
|
|
@@ -3971,8 +3975,6 @@ export declare const jiraDataCenterGetJiraIssuesByQueryOutputSchema: z.ZodObject
|
|
|
3971
3975
|
resolution?: string | null | undefined;
|
|
3972
3976
|
};
|
|
3973
3977
|
}[] | undefined;
|
|
3974
|
-
total?: number | undefined;
|
|
3975
|
-
truncated?: boolean | undefined;
|
|
3976
3978
|
}, {
|
|
3977
3979
|
error?: string | undefined;
|
|
3978
3980
|
results?: {
|
|
@@ -4019,8 +4021,6 @@ export declare const jiraDataCenterGetJiraIssuesByQueryOutputSchema: z.ZodObject
|
|
|
4019
4021
|
resolution?: string | null | undefined;
|
|
4020
4022
|
};
|
|
4021
4023
|
}[] | undefined;
|
|
4022
|
-
total?: number | undefined;
|
|
4023
|
-
truncated?: boolean | undefined;
|
|
4024
4024
|
}>;
|
|
4025
4025
|
export type jiraDataCenterGetJiraIssuesByQueryOutputType = z.infer<typeof jiraDataCenterGetJiraIssuesByQueryOutputSchema>;
|
|
4026
4026
|
export type jiraDataCenterGetJiraIssuesByQueryFunction = ActionFunction<jiraDataCenterGetJiraIssuesByQueryParamsType, AuthParamsType, jiraDataCenterGetJiraIssuesByQueryOutputType>;
|
|
@@ -823,10 +823,22 @@ export const jiraGetJiraIssuesByQueryParamsSchema = z.object({
|
|
|
823
823
|
query: z.string().describe("The JQL query to execute"),
|
|
824
824
|
limit: z.coerce
|
|
825
825
|
.number()
|
|
826
|
-
.describe("The maximum number of records to retrieve. Defaults to 100.
|
|
826
|
+
.describe("The maximum number of records to retrieve per call (page size). Defaults to 100. Keep this small enough that the response is not truncated before you read it — if truncation occurs, lower the limit and retry.")
|
|
827
|
+
.optional(),
|
|
828
|
+
nextPageToken: z
|
|
829
|
+
.string()
|
|
830
|
+
.describe("Cursor token returned by the previous response. Pass this to fetch the next page. Omit on the first call. If the system truncates your results (i.e. you receive fewer items than itemsReturned indicates), reduce the limit and retry the same page without advancing the cursor — only move to the next page once you receive a complete, untruncated response.")
|
|
827
831
|
.optional(),
|
|
828
832
|
});
|
|
829
833
|
export const jiraGetJiraIssuesByQueryOutputSchema = z.object({
|
|
834
|
+
itemsReturned: z.coerce
|
|
835
|
+
.number()
|
|
836
|
+
.describe("Number of items fetched by this action. This field intentionally appears before results so it survives system-level response truncation. Warning: the system may truncate the results array before you see it, so you may receive fewer results than this number.")
|
|
837
|
+
.optional(),
|
|
838
|
+
nextPageToken: z
|
|
839
|
+
.string()
|
|
840
|
+
.describe("Cursor token for the next page. Pass this as nextPageToken in the next call. Absent when there are no more results.")
|
|
841
|
+
.optional(),
|
|
830
842
|
results: z
|
|
831
843
|
.array(z.object({
|
|
832
844
|
name: z.string().describe("The name of the result"),
|
|
@@ -881,14 +893,6 @@ export const jiraGetJiraIssuesByQueryOutputSchema = z.object({
|
|
|
881
893
|
}))
|
|
882
894
|
.describe("The results of the Jira issues")
|
|
883
895
|
.optional(),
|
|
884
|
-
total: z.coerce
|
|
885
|
-
.number()
|
|
886
|
-
.describe("The total number of Jira issues matching the query. When present and greater than the number of results returned, re-run with a higher limit to retrieve all issues.")
|
|
887
|
-
.optional(),
|
|
888
|
-
truncated: z
|
|
889
|
-
.boolean()
|
|
890
|
-
.describe("True when the result set was cut off at the requested limit and more issues exist. Re-run with a higher limit to retrieve all issues.")
|
|
891
|
-
.optional(),
|
|
892
896
|
error: z.string().describe("The error that occurred if the records were not successfully retrieved").optional(),
|
|
893
897
|
});
|
|
894
898
|
export const jiraLinkJiraIssuesParamsSchema = z.object({
|
|
@@ -1086,10 +1090,22 @@ export const jiraOrgGetJiraIssuesByQueryParamsSchema = z.object({
|
|
|
1086
1090
|
query: z.string().describe("The JQL query to execute"),
|
|
1087
1091
|
limit: z.coerce
|
|
1088
1092
|
.number()
|
|
1089
|
-
.describe("The maximum number of records to retrieve. Defaults to 100.
|
|
1093
|
+
.describe("The maximum number of records to retrieve per call (page size). Defaults to 100. Keep this small enough that the response is not truncated before you read it — if truncation occurs, lower the limit and retry.")
|
|
1094
|
+
.optional(),
|
|
1095
|
+
nextPageToken: z
|
|
1096
|
+
.string()
|
|
1097
|
+
.describe("Cursor token returned by the previous response. Pass this to fetch the next page. Omit on the first call. If the system truncates your results (i.e. you receive fewer items than itemsReturned indicates), reduce the limit and retry the same page without advancing the cursor — only move to the next page once you receive a complete, untruncated response.")
|
|
1090
1098
|
.optional(),
|
|
1091
1099
|
});
|
|
1092
1100
|
export const jiraOrgGetJiraIssuesByQueryOutputSchema = z.object({
|
|
1101
|
+
itemsReturned: z.coerce
|
|
1102
|
+
.number()
|
|
1103
|
+
.describe("Number of items fetched by this action. This field intentionally appears before results so it survives system-level response truncation. Warning: the system may truncate the results array before you see it, so you may receive fewer results than this number.")
|
|
1104
|
+
.optional(),
|
|
1105
|
+
nextPageToken: z
|
|
1106
|
+
.string()
|
|
1107
|
+
.describe("Cursor token for the next page. Pass this as nextPageToken in the next call. Absent when there are no more results.")
|
|
1108
|
+
.optional(),
|
|
1093
1109
|
results: z
|
|
1094
1110
|
.array(z.object({
|
|
1095
1111
|
name: z.string().describe("The name of the result"),
|
|
@@ -1144,14 +1160,6 @@ export const jiraOrgGetJiraIssuesByQueryOutputSchema = z.object({
|
|
|
1144
1160
|
}))
|
|
1145
1161
|
.describe("The results of the Jira issues")
|
|
1146
1162
|
.optional(),
|
|
1147
|
-
total: z.coerce
|
|
1148
|
-
.number()
|
|
1149
|
-
.describe("The total number of Jira issues matching the query. When present and greater than the number of results returned, re-run with a higher limit to retrieve all issues.")
|
|
1150
|
-
.optional(),
|
|
1151
|
-
truncated: z
|
|
1152
|
-
.boolean()
|
|
1153
|
-
.describe("True when the result set was cut off at the requested limit and more issues exist. Re-run with a higher limit to retrieve all issues.")
|
|
1154
|
-
.optional(),
|
|
1155
1163
|
error: z.string().describe("The error that occurred if the records were not successfully retrieved").optional(),
|
|
1156
1164
|
});
|
|
1157
1165
|
export const jiraOrgLinkJiraIssuesParamsSchema = z.object({
|
|
@@ -1349,7 +1357,7 @@ export const jiraDataCenterGetJiraIssuesByQueryParamsSchema = z.object({
|
|
|
1349
1357
|
query: z.string().describe("The JQL query to execute"),
|
|
1350
1358
|
limit: z.coerce
|
|
1351
1359
|
.number()
|
|
1352
|
-
.describe("The maximum number of records to retrieve. Defaults to 100.
|
|
1360
|
+
.describe("The maximum number of records to retrieve per call (page size). Defaults to 100. Keep this small enough that the response is not truncated before you read it — if truncation occurs, lower the limit and retry.")
|
|
1353
1361
|
.optional(),
|
|
1354
1362
|
});
|
|
1355
1363
|
export const jiraDataCenterGetJiraIssuesByQueryOutputSchema = z.object({
|
|
@@ -1407,14 +1415,6 @@ export const jiraDataCenterGetJiraIssuesByQueryOutputSchema = z.object({
|
|
|
1407
1415
|
}))
|
|
1408
1416
|
.describe("The results of the Jira issues")
|
|
1409
1417
|
.optional(),
|
|
1410
|
-
total: z.coerce
|
|
1411
|
-
.number()
|
|
1412
|
-
.describe("The total number of Jira issues matching the query. When present and greater than the number of results returned, re-run with a higher limit to retrieve all issues.")
|
|
1413
|
-
.optional(),
|
|
1414
|
-
truncated: z
|
|
1415
|
-
.boolean()
|
|
1416
|
-
.describe("True when the result set was cut off at the requested limit and more issues exist. Re-run with a higher limit to retrieve all issues.")
|
|
1417
|
-
.optional(),
|
|
1418
1418
|
error: z.string().describe("The error that occurred if the records were not successfully retrieved").optional(),
|
|
1419
1419
|
});
|
|
1420
1420
|
export const jiraDataCenterLinkJiraIssuesParamsSchema = z.object({
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
* Get Jira issues from Jira Data Center using offset-based pagination (startAt).
|
|
4
|
-
* Returns `total` from the Jira API response so callers can detect truncation by
|
|
5
|
-
* comparing total > results.length. Does not return `truncated` — use `total` instead.
|
|
6
|
-
* (Contrast with the Cloud implementation which returns `truncated` but not `total`.)
|
|
7
|
-
*/
|
|
8
|
-
declare const getJiraDCIssuesByQuery: jiraGetJiraIssuesByQueryFunction;
|
|
1
|
+
import type { jiraDataCenterGetJiraIssuesByQueryFunction } from "../../autogen/types.js";
|
|
2
|
+
declare const getJiraDCIssuesByQuery: jiraDataCenterGetJiraIssuesByQueryFunction;
|
|
9
3
|
export default getJiraDCIssuesByQuery;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { axiosClient } from "../../util/axiosClient.js";
|
|
2
2
|
import { getJiraApiConfig, getErrorMessage, extractPlainText } from "./utils.js";
|
|
3
3
|
const DEFAULT_LIMIT = 100;
|
|
4
|
-
/**
|
|
5
|
-
* Get Jira issues from Jira Data Center using offset-based pagination (startAt).
|
|
6
|
-
* Returns `total` from the Jira API response so callers can detect truncation by
|
|
7
|
-
* comparing total > results.length. Does not return `truncated` — use `total` instead.
|
|
8
|
-
* (Contrast with the Cloud implementation which returns `truncated` but not `total`.)
|
|
9
|
-
*/
|
|
10
4
|
const getJiraDCIssuesByQuery = async ({ params, authParams, }) => {
|
|
11
5
|
const { authToken } = authParams;
|
|
12
6
|
const { query, limit } = params;
|
|
@@ -37,11 +31,8 @@ const getJiraDCIssuesByQuery = async ({ params, authParams, }) => {
|
|
|
37
31
|
const requestedLimit = limit ?? DEFAULT_LIMIT;
|
|
38
32
|
const allIssues = [];
|
|
39
33
|
let startAt = 0;
|
|
40
|
-
let jiraTotal = undefined;
|
|
41
34
|
try {
|
|
42
|
-
// Keep fetching pages until we have all requested issues
|
|
43
35
|
while (allIssues.length < requestedLimit) {
|
|
44
|
-
// Calculate how many results to fetch in this request
|
|
45
36
|
const remainingIssues = requestedLimit - allIssues.length;
|
|
46
37
|
const maxResults = Math.min(remainingIssues, DEFAULT_LIMIT);
|
|
47
38
|
const queryParams = new URLSearchParams();
|
|
@@ -57,7 +48,6 @@ const getJiraDCIssuesByQuery = async ({ params, authParams, }) => {
|
|
|
57
48
|
},
|
|
58
49
|
});
|
|
59
50
|
const { issues, total } = response.data;
|
|
60
|
-
jiraTotal = total;
|
|
61
51
|
allIssues.push(...issues);
|
|
62
52
|
if (allIssues.length >= total || issues.length === 0) {
|
|
63
53
|
break;
|
|
@@ -65,7 +55,6 @@ const getJiraDCIssuesByQuery = async ({ params, authParams, }) => {
|
|
|
65
55
|
startAt += issues.length;
|
|
66
56
|
}
|
|
67
57
|
return {
|
|
68
|
-
total: jiraTotal,
|
|
69
58
|
results: allIssues.map(issue => {
|
|
70
59
|
const { id, key, fields } = issue;
|
|
71
60
|
const { summary, description, project, issuetype, status, assignee, reporter, creator, created, updated, resolution, duedate, } = fields;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { Version3Client } from "jira.js";
|
|
2
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
2
3
|
import { getJiraApiConfig, getErrorMessage, extractPlainText, getUserInfoFromAccountId } from "./utils.js";
|
|
3
4
|
const DEFAULT_LIMIT = 100;
|
|
4
|
-
// Jira Cloud implementation using the enhanced search API (cursor-based pagination).
|
|
5
|
-
// Returns `truncated: true` when results were cut off at the limit and more pages exist.
|
|
6
|
-
// Note: the enhanced API does not expose a total count, so `total` is never returned here.
|
|
7
|
-
// Use `jiraDataCenter` provider if you need the exact total count.
|
|
8
5
|
const getJiraIssuesByQuery = async ({ params, authParams, }) => {
|
|
9
6
|
const { authToken, cloudId } = authParams;
|
|
10
|
-
const { query, limit } = params;
|
|
7
|
+
const { query, limit, nextPageToken: paramNextPageToken } = params;
|
|
11
8
|
const { browseUrl } = getJiraApiConfig(authParams);
|
|
12
9
|
if (!authToken)
|
|
13
10
|
throw new Error("Auth token is required");
|
|
@@ -34,47 +31,33 @@ const getJiraIssuesByQuery = async ({ params, authParams, }) => {
|
|
|
34
31
|
];
|
|
35
32
|
const requestedLimit = limit ?? DEFAULT_LIMIT;
|
|
36
33
|
const allIssues = [];
|
|
37
|
-
let
|
|
38
|
-
|
|
34
|
+
let currentNextPageToken = paramNextPageToken;
|
|
35
|
+
const client = new Version3Client({
|
|
36
|
+
host: `https://api.atlassian.com/ex/jira/${cloudId}`,
|
|
37
|
+
authentication: { oauth2: { accessToken: authToken } },
|
|
38
|
+
});
|
|
39
39
|
try {
|
|
40
|
-
// Initialize jira.js client with OAuth 2.0 authentication
|
|
41
|
-
const client = new Version3Client({
|
|
42
|
-
host: `https://api.atlassian.com/ex/jira/${cloudId}`,
|
|
43
|
-
authentication: {
|
|
44
|
-
oauth2: {
|
|
45
|
-
accessToken: authToken,
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
// Keep fetching pages until we have all requested issues
|
|
50
40
|
while (allIssues.length < requestedLimit) {
|
|
51
|
-
// Calculate how many results to fetch in this request
|
|
52
41
|
const remainingIssues = requestedLimit - allIssues.length;
|
|
53
42
|
const maxResults = Math.min(remainingIssues, DEFAULT_LIMIT);
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
});
|
|
61
|
-
if (!searchResults.issues || searchResults.issues.length === 0) {
|
|
62
|
-
break;
|
|
43
|
+
const queryParams = new URLSearchParams();
|
|
44
|
+
queryParams.set("jql", query);
|
|
45
|
+
queryParams.set("maxResults", String(maxResults));
|
|
46
|
+
queryParams.set("fields", fields.join(","));
|
|
47
|
+
if (currentNextPageToken) {
|
|
48
|
+
queryParams.set("nextPageToken", currentNextPageToken);
|
|
63
49
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
50
|
+
const response = await axiosClient.get(`https://api.atlassian.com/ex/jira/${cloudId}/rest/api/3/search/jql?${queryParams.toString()}`, { headers: { Authorization: `Bearer ${authToken}`, Accept: "application/json" } });
|
|
51
|
+
const { issues, nextPageToken } = response.data;
|
|
52
|
+
allIssues.push(...issues);
|
|
53
|
+
currentNextPageToken = nextPageToken;
|
|
54
|
+
if (!nextPageToken || issues.length === 0) {
|
|
69
55
|
break;
|
|
70
56
|
}
|
|
71
|
-
nextPageToken = searchResults.nextPageToken;
|
|
72
57
|
}
|
|
73
|
-
// Map issues with email addresses
|
|
74
58
|
const results = await Promise.all(allIssues.map(async ({ id, key, fields }) => {
|
|
75
59
|
const ticketUrl = `${browseUrl}/browse/${key}`;
|
|
76
60
|
const { summary, description, project, issuetype, status, assignee, reporter, creator, created, updated, resolution, duedate, } = fields;
|
|
77
|
-
// Fetch user info in parallel
|
|
78
61
|
const [assigneeInfo, reporterInfo, creatorInfo] = await Promise.all([
|
|
79
62
|
getUserInfoFromAccountId(assignee?.accountId, client),
|
|
80
63
|
getUserInfoFromAccountId(reporter?.accountId, client),
|
|
@@ -88,39 +71,29 @@ const getJiraIssuesByQuery = async ({ params, authParams, }) => {
|
|
|
88
71
|
key,
|
|
89
72
|
summary,
|
|
90
73
|
description: extractPlainText(description),
|
|
91
|
-
project: {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
name: project?.name,
|
|
95
|
-
},
|
|
96
|
-
issueType: {
|
|
97
|
-
id: issuetype?.id,
|
|
98
|
-
name: issuetype?.name,
|
|
99
|
-
},
|
|
100
|
-
status: {
|
|
101
|
-
id: status?.id,
|
|
102
|
-
name: status?.name,
|
|
103
|
-
category: status?.statusCategory?.name,
|
|
104
|
-
},
|
|
74
|
+
project: { id: project?.id, key: project?.key, name: project?.name },
|
|
75
|
+
issueType: { id: issuetype?.id, name: issuetype?.name },
|
|
76
|
+
status: { id: status?.id, name: status?.name, category: status?.statusCategory?.name },
|
|
105
77
|
assignee: assigneeInfo,
|
|
106
78
|
reporter: reporterInfo,
|
|
107
79
|
creator: creatorInfo,
|
|
108
|
-
created
|
|
109
|
-
updated
|
|
80
|
+
created,
|
|
81
|
+
updated,
|
|
110
82
|
resolution: resolution?.name,
|
|
111
83
|
dueDate: duedate,
|
|
112
84
|
url: ticketUrl,
|
|
113
85
|
},
|
|
114
86
|
};
|
|
115
87
|
}));
|
|
116
|
-
return {
|
|
88
|
+
return {
|
|
89
|
+
itemsReturned: allIssues.length,
|
|
90
|
+
nextPageToken: currentNextPageToken,
|
|
91
|
+
results,
|
|
92
|
+
};
|
|
117
93
|
}
|
|
118
94
|
catch (error) {
|
|
119
95
|
console.error("Error retrieving Jira issues:", error);
|
|
120
|
-
return {
|
|
121
|
-
results: [],
|
|
122
|
-
error: getErrorMessage(error),
|
|
123
|
-
};
|
|
96
|
+
return { results: [], error: getErrorMessage(error) };
|
|
124
97
|
}
|
|
125
98
|
};
|
|
126
99
|
export default getJiraIssuesByQuery;
|