@credal/actions 0.2.46 → 0.2.48
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 +13 -1
- package/dist/actions/autogen/templates.d.ts +2 -0
- package/dist/actions/autogen/templates.js +122 -0
- package/dist/actions/autogen/types.d.ts +97 -0
- package/dist/actions/autogen/types.js +32 -0
- package/dist/actions/groups.js +3 -1
- package/dist/actions/providers/confluence/updatePage.js +15 -14
- package/dist/actions/providers/github/getFileContent.d.ts +6 -0
- package/dist/actions/providers/github/getFileContent.js +57 -0
- package/dist/actions/providers/github/listDirectory.d.ts +6 -0
- package/dist/actions/providers/github/listDirectory.js +54 -0
- package/dist/actions/providers/gitlab/searchGroup.js +11 -5
- package/dist/actions/providers/jamf/types.d.ts +8 -0
- package/dist/actions/providers/jamf/types.js +7 -0
- package/package.json +1 -1
- package/dist/actions/providers/generic/fillTemplateAction.d.ts +0 -7
- package/dist/actions/providers/generic/fillTemplateAction.js +0 -18
- package/dist/actions/providers/generic/genericApiCall.d.ts +0 -3
- package/dist/actions/providers/generic/genericApiCall.js +0 -38
- package/dist/actions/providers/google-oauth/getDriveContentById.d.ts +0 -3
- package/dist/actions/providers/google-oauth/getDriveContentById.js +0 -161
- package/dist/actions/providers/google-oauth/searchAndGetDriveContentByKeywords.d.ts +0 -3
- package/dist/actions/providers/google-oauth/searchAndGetDriveContentByKeywords.js +0 -47
- package/dist/actions/providers/google-oauth/searchDriveAndGetContentByKeywords.d.ts +0 -3
- package/dist/actions/providers/google-oauth/searchDriveAndGetContentByKeywords.js +0 -110
- package/dist/actions/providers/google-oauth/searchDriveAndGetContentByQuery.d.ts +0 -3
- package/dist/actions/providers/google-oauth/searchDriveAndGetContentByQuery.js +0 -78
- package/dist/actions/providers/google-oauth/utils/extractContentFromDriveFileId.d.ts +0 -15
- package/dist/actions/providers/google-oauth/utils/extractContentFromDriveFileId.js +0 -129
- package/dist/actions/providers/googlemaps/nearbysearch.d.ts +0 -3
- package/dist/actions/providers/googlemaps/nearbysearch.js +0 -96
- package/dist/actions/providers/snowflake/runSnowflakeQueryWriteResultsToS3.d.ts +0 -3
- package/dist/actions/providers/snowflake/runSnowflakeQueryWriteResultsToS3.js +0 -154
- package/dist/actions/providers/x/scrapeTweetDataWithNitter.d.ts +0 -3
- package/dist/actions/providers/x/scrapeTweetDataWithNitter.js +0 -45
@@ -1,4 +1,4 @@
|
|
1
|
-
import { genericFillTemplateParamsSchema, genericFillTemplateOutputSchema, confluenceOverwritePageParamsSchema, confluenceOverwritePageOutputSchema, googlemapsValidateAddressOutputSchema, googlemapsValidateAddressParamsSchema, googleOauthCreateNewGoogleDocParamsSchema, googleOauthCreateNewGoogleDocOutputSchema, mathAddOutputSchema, mathAddParamsSchema, mongoInsertMongoDocOutputSchema, mongoInsertMongoDocParamsSchema, slackSendMessageOutputSchema, slackSendMessageParamsSchema, slackGetChannelMessagesOutputSchema, slackGetChannelMessagesParamsSchema, slackArchiveChannelParamsSchema, slackArchiveChannelOutputSchema, slackCreateChannelParamsSchema, slackCreateChannelOutputSchema, snowflakeGetRowByFieldValueOutputSchema, snowflakeGetRowByFieldValueParamsSchema, zendeskCreateZendeskTicketOutputSchema, zendeskCreateZendeskTicketParamsSchema, zendeskGetTicketDetailsOutputSchema, zendeskGetTicketDetailsParamsSchema, zendeskUpdateTicketStatusOutputSchema, zendeskUpdateTicketStatusParamsSchema, zendeskAddCommentToTicketOutputSchema, zendeskAddCommentToTicketParamsSchema, zendeskAssignTicketOutputSchema, zendeskAssignTicketParamsSchema, zendeskListZendeskTicketsOutputSchema, zendeskListZendeskTicketsParamsSchema, jiraAssignJiraTicketParamsSchema, jiraAssignJiraTicketOutputSchema, jiraCommentJiraTicketParamsSchema, jiraCommentJiraTicketOutputSchema, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema, jiraGetServiceDesksParamsSchema, jiraGetServiceDesksOutputSchema, jiraCreateServiceDeskRequestParamsSchema, jiraCreateServiceDeskRequestOutputSchema, openstreetmapGetLatitudeLongitudeFromLocationParamsSchema, openstreetmapGetLatitudeLongitudeFromLocationOutputSchema, nwsGetForecastForLocationParamsSchema, nwsGetForecastForLocationOutputSchema, googlemapsNearbysearchRestaurantsOutputSchema, googlemapsNearbysearchRestaurantsParamsSchema, firecrawlScrapeUrlOutputSchema, firecrawlScrapeUrlParamsSchema, resendSendEmailOutputSchema, firecrawlScrapeTweetDataWithNitterParamsSchema, firecrawlScrapeTweetDataWithNitterOutputSchema, resendSendEmailParamsSchema, linkedinCreateShareLinkedinPostUrlParamsSchema, linkedinCreateShareLinkedinPostUrlOutputSchema, xCreateShareXPostUrlParamsSchema, xCreateShareXPostUrlOutputSchema, finnhubSymbolLookupParamsSchema, finnhubSymbolLookupOutputSchema, finnhubGetBasicFinancialsParamsSchema, finnhubGetBasicFinancialsOutputSchema, confluenceFetchPageContentParamsSchema, confluenceFetchPageContentOutputSchema, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, googleOauthUpdateSpreadsheetParamsSchema, googleOauthUpdateSpreadsheetOutputSchema, googleOauthScheduleCalendarMeetingParamsSchema, googleOauthScheduleCalendarMeetingOutputSchema, googleOauthListCalendarsParamsSchema, googleOauthListCalendarsOutputSchema, googleOauthListCalendarEventsParamsSchema, googleOauthListCalendarEventsOutputSchema, googleOauthUpdateCalendarEventParamsSchema, googleOauthUpdateCalendarEventOutputSchema, googleOauthDeleteCalendarEventParamsSchema, googleOauthDeleteCalendarEventOutputSchema, googleOauthCreatePresentationParamsSchema, googleOauthCreatePresentationOutputSchema, googleOauthUpdatePresentationParamsSchema, googleOauthUpdatePresentationOutputSchema, googleOauthSearchDriveByKeywordsParamsSchema, googleOauthSearchDriveByKeywordsOutputSchema, googleOauthListGroupsOutputSchema, googleOauthListGroupsParamsSchema, googleOauthGetGroupOutputSchema, googleOauthGetGroupParamsSchema, googleOauthListGroupMembersOutputSchema, googleOauthListGroupMembersParamsSchema, googleOauthHasGroupMemberOutputSchema, googleOauthHasGroupMemberParamsSchema, googleOauthAddGroupMemberOutputSchema, googleOauthAddGroupMemberParamsSchema, googleOauthDeleteGroupMemberOutputSchema, googleOauthDeleteGroupMemberParamsSchema, gongGetGongTranscriptsParamsSchema, gongGetGongTranscriptsOutputSchema, ashbyCreateNoteParamsSchema, ashbyCreateNoteOutputSchema, ashbyGetCandidateInfoParamsSchema, ashbyGetCandidateInfoOutputSchema, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, ashbyListCandidatesParamsSchema, ashbyListCandidatesOutputSchema, ashbyListCandidateNotesParamsSchema, ashbyListCandidateNotesOutputSchema, ashbySearchCandidatesParamsSchema, ashbySearchCandidatesOutputSchema, ashbyCreateCandidateParamsSchema, ashbyCreateCandidateOutputSchema, ashbyUpdateCandidateParamsSchema, ashbyUpdateCandidateOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, salesforceFetchSalesforceSchemaByObjectParamsSchema, salesforceFetchSalesforceSchemaByObjectOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, ashbyAddCandidateToProjectParamsSchema, ashbyAddCandidateToProjectOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, kandjiGetFVRecoveryKeyForDeviceParamsSchema, kandjiGetFVRecoveryKeyForDeviceOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, jamfGetJamfComputerInventoryParamsSchema, jamfGetJamfComputerInventoryOutputSchema, jamfGetJamfFileVaultRecoveryKeyParamsSchema, jamfGetJamfFileVaultRecoveryKeyOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, oktaListOktaUsersParamsSchema, oktaListOktaUsersOutputSchema, oktaGetOktaUserParamsSchema, oktaGetOktaUserOutputSchema, oktaListOktaUserGroupsParamsSchema, oktaListOktaUserGroupsOutputSchema, oktaListOktaGroupsParamsSchema, oktaListOktaGroupsOutputSchema, oktaGetOktaGroupParamsSchema, oktaGetOktaGroupOutputSchema, oktaListOktaGroupMembersParamsSchema, oktaListOktaGroupMembersOutputSchema, oktaRemoveUserFromGroupParamsSchema, oktaRemoveUserFromGroupOutputSchema, oktaAddUserToGroupParamsSchema, oktaAddUserToGroupOutputSchema, oktaResetPasswordParamsSchema, oktaResetPasswordOutputSchema, oktaResetMFAParamsSchema, oktaResetMFAOutputSchema, oktaListMFAParamsSchema, oktaListMFAOutputSchema, jamfGetJamfUserComputerIdParamsSchema, jamfGetJamfUserComputerIdOutputSchema, jamfLockJamfComputerByIdParamsSchema, jamfLockJamfComputerByIdOutputSchema, oktaTriggerOktaWorkflowParamsSchema, oktaTriggerOktaWorkflowOutputSchema, gitlabSearchGroupOutputSchema, gitlabSearchGroupParamsSchema, githubSearchRepositoryOutputSchema, githubSearchRepositoryParamsSchema, salesforceSearchSalesforceRecordsParamsSchema, salesforceSearchSalesforceRecordsOutputSchema, googleOauthGetDriveFileContentByIdOutputSchema, googleOauthGetDriveFileContentByIdParamsSchema, googleOauthSearchDriveByQueryOutputSchema, googleOauthSearchDriveByQueryParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentOutputSchema, } from "./autogen/types.js";
|
1
|
+
import { genericFillTemplateParamsSchema, genericFillTemplateOutputSchema, confluenceOverwritePageParamsSchema, confluenceOverwritePageOutputSchema, googlemapsValidateAddressOutputSchema, googlemapsValidateAddressParamsSchema, googleOauthCreateNewGoogleDocParamsSchema, googleOauthCreateNewGoogleDocOutputSchema, mathAddOutputSchema, mathAddParamsSchema, mongoInsertMongoDocOutputSchema, mongoInsertMongoDocParamsSchema, slackSendMessageOutputSchema, slackSendMessageParamsSchema, slackGetChannelMessagesOutputSchema, slackGetChannelMessagesParamsSchema, slackArchiveChannelParamsSchema, slackArchiveChannelOutputSchema, slackCreateChannelParamsSchema, slackCreateChannelOutputSchema, snowflakeGetRowByFieldValueOutputSchema, snowflakeGetRowByFieldValueParamsSchema, zendeskCreateZendeskTicketOutputSchema, zendeskCreateZendeskTicketParamsSchema, zendeskGetTicketDetailsOutputSchema, zendeskGetTicketDetailsParamsSchema, zendeskUpdateTicketStatusOutputSchema, zendeskUpdateTicketStatusParamsSchema, zendeskAddCommentToTicketOutputSchema, zendeskAddCommentToTicketParamsSchema, zendeskAssignTicketOutputSchema, zendeskAssignTicketParamsSchema, zendeskListZendeskTicketsOutputSchema, zendeskListZendeskTicketsParamsSchema, jiraAssignJiraTicketParamsSchema, jiraAssignJiraTicketOutputSchema, jiraCommentJiraTicketParamsSchema, jiraCommentJiraTicketOutputSchema, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema, jiraGetServiceDesksParamsSchema, jiraGetServiceDesksOutputSchema, jiraCreateServiceDeskRequestParamsSchema, jiraCreateServiceDeskRequestOutputSchema, openstreetmapGetLatitudeLongitudeFromLocationParamsSchema, openstreetmapGetLatitudeLongitudeFromLocationOutputSchema, nwsGetForecastForLocationParamsSchema, nwsGetForecastForLocationOutputSchema, googlemapsNearbysearchRestaurantsOutputSchema, googlemapsNearbysearchRestaurantsParamsSchema, firecrawlScrapeUrlOutputSchema, firecrawlScrapeUrlParamsSchema, resendSendEmailOutputSchema, firecrawlScrapeTweetDataWithNitterParamsSchema, firecrawlScrapeTweetDataWithNitterOutputSchema, resendSendEmailParamsSchema, linkedinCreateShareLinkedinPostUrlParamsSchema, linkedinCreateShareLinkedinPostUrlOutputSchema, xCreateShareXPostUrlParamsSchema, xCreateShareXPostUrlOutputSchema, finnhubSymbolLookupParamsSchema, finnhubSymbolLookupOutputSchema, finnhubGetBasicFinancialsParamsSchema, finnhubGetBasicFinancialsOutputSchema, confluenceFetchPageContentParamsSchema, confluenceFetchPageContentOutputSchema, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, googleOauthUpdateSpreadsheetParamsSchema, googleOauthUpdateSpreadsheetOutputSchema, googleOauthScheduleCalendarMeetingParamsSchema, googleOauthScheduleCalendarMeetingOutputSchema, googleOauthListCalendarsParamsSchema, googleOauthListCalendarsOutputSchema, googleOauthListCalendarEventsParamsSchema, googleOauthListCalendarEventsOutputSchema, googleOauthUpdateCalendarEventParamsSchema, googleOauthUpdateCalendarEventOutputSchema, googleOauthDeleteCalendarEventParamsSchema, googleOauthDeleteCalendarEventOutputSchema, googleOauthCreatePresentationParamsSchema, googleOauthCreatePresentationOutputSchema, googleOauthUpdatePresentationParamsSchema, googleOauthUpdatePresentationOutputSchema, googleOauthSearchDriveByKeywordsParamsSchema, googleOauthSearchDriveByKeywordsOutputSchema, googleOauthListGroupsOutputSchema, googleOauthListGroupsParamsSchema, googleOauthGetGroupOutputSchema, googleOauthGetGroupParamsSchema, googleOauthListGroupMembersOutputSchema, googleOauthListGroupMembersParamsSchema, googleOauthHasGroupMemberOutputSchema, googleOauthHasGroupMemberParamsSchema, googleOauthAddGroupMemberOutputSchema, googleOauthAddGroupMemberParamsSchema, googleOauthDeleteGroupMemberOutputSchema, googleOauthDeleteGroupMemberParamsSchema, gongGetGongTranscriptsParamsSchema, gongGetGongTranscriptsOutputSchema, ashbyCreateNoteParamsSchema, ashbyCreateNoteOutputSchema, ashbyGetCandidateInfoParamsSchema, ashbyGetCandidateInfoOutputSchema, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, ashbyListCandidatesParamsSchema, ashbyListCandidatesOutputSchema, ashbyListCandidateNotesParamsSchema, ashbyListCandidateNotesOutputSchema, ashbySearchCandidatesParamsSchema, ashbySearchCandidatesOutputSchema, ashbyCreateCandidateParamsSchema, ashbyCreateCandidateOutputSchema, ashbyUpdateCandidateParamsSchema, ashbyUpdateCandidateOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, salesforceFetchSalesforceSchemaByObjectParamsSchema, salesforceFetchSalesforceSchemaByObjectOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, ashbyAddCandidateToProjectParamsSchema, ashbyAddCandidateToProjectOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, kandjiGetFVRecoveryKeyForDeviceParamsSchema, kandjiGetFVRecoveryKeyForDeviceOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, jamfGetJamfComputerInventoryParamsSchema, jamfGetJamfComputerInventoryOutputSchema, jamfGetJamfFileVaultRecoveryKeyParamsSchema, jamfGetJamfFileVaultRecoveryKeyOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, oktaListOktaUsersParamsSchema, oktaListOktaUsersOutputSchema, oktaGetOktaUserParamsSchema, oktaGetOktaUserOutputSchema, oktaListOktaUserGroupsParamsSchema, oktaListOktaUserGroupsOutputSchema, oktaListOktaGroupsParamsSchema, oktaListOktaGroupsOutputSchema, oktaGetOktaGroupParamsSchema, oktaGetOktaGroupOutputSchema, oktaListOktaGroupMembersParamsSchema, oktaListOktaGroupMembersOutputSchema, oktaRemoveUserFromGroupParamsSchema, oktaRemoveUserFromGroupOutputSchema, oktaAddUserToGroupParamsSchema, oktaAddUserToGroupOutputSchema, oktaResetPasswordParamsSchema, oktaResetPasswordOutputSchema, oktaResetMFAParamsSchema, oktaResetMFAOutputSchema, oktaListMFAParamsSchema, oktaListMFAOutputSchema, jamfGetJamfUserComputerIdParamsSchema, jamfGetJamfUserComputerIdOutputSchema, jamfLockJamfComputerByIdParamsSchema, jamfLockJamfComputerByIdOutputSchema, oktaTriggerOktaWorkflowParamsSchema, oktaTriggerOktaWorkflowOutputSchema, gitlabSearchGroupOutputSchema, gitlabSearchGroupParamsSchema, githubSearchRepositoryOutputSchema, githubSearchRepositoryParamsSchema, salesforceSearchSalesforceRecordsParamsSchema, salesforceSearchSalesforceRecordsOutputSchema, googleOauthGetDriveFileContentByIdOutputSchema, googleOauthGetDriveFileContentByIdParamsSchema, googleOauthSearchDriveByQueryOutputSchema, googleOauthSearchDriveByQueryParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentOutputSchema, githubGetFileContentParamsSchema, githubGetFileContentOutputSchema, githubListDirectoryOutputSchema, githubListDirectoryParamsSchema, } 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";
|
@@ -116,6 +116,8 @@ import searchSalesforceRecords from "./providers/salesforce/searchSalesforceReco
|
|
116
116
|
import getDriveFileContentById from "./providers/google-oauth/getDriveFileContentById.js";
|
117
117
|
import searchDriveByQuery from "./providers/google-oauth/searchDriveByQuery.js";
|
118
118
|
import searchDriveByQueryAndGetFileContent from "./providers/google-oauth/searchDriveByQueryAndGetFileContent.js";
|
119
|
+
import getFileContent from "./providers/github/getFileContent.js";
|
120
|
+
import listDirectory from "./providers/github/listDirectory.js";
|
119
121
|
const jiraActions = {
|
120
122
|
getJiraIssuesByQuery: {
|
121
123
|
fn: getJiraIssuesByQuery,
|
@@ -689,6 +691,16 @@ export const ActionMapper = {
|
|
689
691
|
paramsSchema: githubListPullRequestsParamsSchema,
|
690
692
|
outputSchema: githubListPullRequestsOutputSchema,
|
691
693
|
},
|
694
|
+
getFileContent: {
|
695
|
+
fn: getFileContent,
|
696
|
+
paramsSchema: githubGetFileContentParamsSchema,
|
697
|
+
outputSchema: githubGetFileContentOutputSchema,
|
698
|
+
},
|
699
|
+
listDirectory: {
|
700
|
+
fn: listDirectory,
|
701
|
+
paramsSchema: githubListDirectoryParamsSchema,
|
702
|
+
outputSchema: githubListDirectoryOutputSchema,
|
703
|
+
},
|
692
704
|
},
|
693
705
|
notion: {
|
694
706
|
searchByTitle: {
|
@@ -119,6 +119,8 @@ export declare const githubCreateOrUpdateFileDefinition: ActionTemplate;
|
|
119
119
|
export declare const githubCreateBranchDefinition: ActionTemplate;
|
120
120
|
export declare const githubCreatePullRequestDefinition: ActionTemplate;
|
121
121
|
export declare const githubListPullRequestsDefinition: ActionTemplate;
|
122
|
+
export declare const githubGetFileContentDefinition: ActionTemplate;
|
123
|
+
export declare const githubListDirectoryDefinition: ActionTemplate;
|
122
124
|
export declare const githubSearchRepositoryDefinition: ActionTemplate;
|
123
125
|
export declare const notionSearchByTitleDefinition: ActionTemplate;
|
124
126
|
export declare const jamfGetJamfFileVaultRecoveryKeyDefinition: ActionTemplate;
|
@@ -9244,6 +9244,128 @@ export const githubListPullRequestsDefinition = {
|
|
9244
9244
|
name: "listPullRequests",
|
9245
9245
|
provider: "github",
|
9246
9246
|
};
|
9247
|
+
export const githubGetFileContentDefinition = {
|
9248
|
+
description: "Get specified file content from a GitHub repository",
|
9249
|
+
scopes: [],
|
9250
|
+
parameters: {
|
9251
|
+
type: "object",
|
9252
|
+
required: ["organization", "repository", "path"],
|
9253
|
+
properties: {
|
9254
|
+
organization: {
|
9255
|
+
type: "string",
|
9256
|
+
description: "The organization that owns the repository",
|
9257
|
+
},
|
9258
|
+
repository: {
|
9259
|
+
type: "string",
|
9260
|
+
description: "The repository name",
|
9261
|
+
},
|
9262
|
+
path: {
|
9263
|
+
type: "string",
|
9264
|
+
description: "The file path to get content from",
|
9265
|
+
},
|
9266
|
+
},
|
9267
|
+
},
|
9268
|
+
output: {
|
9269
|
+
type: "object",
|
9270
|
+
required: ["success"],
|
9271
|
+
properties: {
|
9272
|
+
success: {
|
9273
|
+
type: "boolean",
|
9274
|
+
description: "Whether the operation was successful",
|
9275
|
+
},
|
9276
|
+
error: {
|
9277
|
+
type: "string",
|
9278
|
+
description: "The error that occurred if the operation was not successful",
|
9279
|
+
},
|
9280
|
+
content: {
|
9281
|
+
type: "string",
|
9282
|
+
description: "The decoded file content as a string",
|
9283
|
+
},
|
9284
|
+
size: {
|
9285
|
+
type: "number",
|
9286
|
+
description: "The size of the file in bytes",
|
9287
|
+
},
|
9288
|
+
name: {
|
9289
|
+
type: "string",
|
9290
|
+
description: "The name of the file",
|
9291
|
+
},
|
9292
|
+
htmlUrl: {
|
9293
|
+
type: "string",
|
9294
|
+
description: "The URL of the file in the Github UI",
|
9295
|
+
},
|
9296
|
+
},
|
9297
|
+
},
|
9298
|
+
name: "getFileContent",
|
9299
|
+
provider: "github",
|
9300
|
+
};
|
9301
|
+
export const githubListDirectoryDefinition = {
|
9302
|
+
description: "List directory contents of a path in a GitHub repository",
|
9303
|
+
scopes: [],
|
9304
|
+
parameters: {
|
9305
|
+
type: "object",
|
9306
|
+
required: ["organization", "repository", "path"],
|
9307
|
+
properties: {
|
9308
|
+
organization: {
|
9309
|
+
type: "string",
|
9310
|
+
description: "The organization that owns the repository",
|
9311
|
+
},
|
9312
|
+
repository: {
|
9313
|
+
type: "string",
|
9314
|
+
description: "The repository name",
|
9315
|
+
},
|
9316
|
+
path: {
|
9317
|
+
type: "string",
|
9318
|
+
description: "The path to list directory contents from",
|
9319
|
+
},
|
9320
|
+
},
|
9321
|
+
},
|
9322
|
+
output: {
|
9323
|
+
type: "object",
|
9324
|
+
required: ["success"],
|
9325
|
+
properties: {
|
9326
|
+
success: {
|
9327
|
+
type: "boolean",
|
9328
|
+
description: "Whether the operation was successful",
|
9329
|
+
},
|
9330
|
+
error: {
|
9331
|
+
type: "string",
|
9332
|
+
description: "Error message if the operation failed",
|
9333
|
+
},
|
9334
|
+
content: {
|
9335
|
+
type: "array",
|
9336
|
+
description: "Array of directory contents",
|
9337
|
+
items: {
|
9338
|
+
type: "object",
|
9339
|
+
required: ["name", "path", "type", "size", "htmlUrl"],
|
9340
|
+
properties: {
|
9341
|
+
name: {
|
9342
|
+
type: "string",
|
9343
|
+
description: "The name of the file",
|
9344
|
+
},
|
9345
|
+
path: {
|
9346
|
+
type: "string",
|
9347
|
+
description: "The path of the file",
|
9348
|
+
},
|
9349
|
+
type: {
|
9350
|
+
type: "string",
|
9351
|
+
description: "The type of the file",
|
9352
|
+
},
|
9353
|
+
size: {
|
9354
|
+
type: "number",
|
9355
|
+
description: "The size of the file in bytes",
|
9356
|
+
},
|
9357
|
+
htmlUrl: {
|
9358
|
+
type: "string",
|
9359
|
+
description: "The URL of the file in the Github UI",
|
9360
|
+
},
|
9361
|
+
},
|
9362
|
+
},
|
9363
|
+
},
|
9364
|
+
},
|
9365
|
+
},
|
9366
|
+
name: "listDirectory",
|
9367
|
+
provider: "github",
|
9368
|
+
};
|
9247
9369
|
export const githubSearchRepositoryDefinition = {
|
9248
9370
|
description: "Search for code, issues and pull requests within a repository in a GitHub organization",
|
9249
9371
|
scopes: [],
|
@@ -6077,6 +6077,103 @@ export declare const githubListPullRequestsOutputSchema: z.ZodObject<{
|
|
6077
6077
|
}>;
|
6078
6078
|
export type githubListPullRequestsOutputType = z.infer<typeof githubListPullRequestsOutputSchema>;
|
6079
6079
|
export type githubListPullRequestsFunction = ActionFunction<githubListPullRequestsParamsType, AuthParamsType, githubListPullRequestsOutputType>;
|
6080
|
+
export declare const githubGetFileContentParamsSchema: z.ZodObject<{
|
6081
|
+
organization: z.ZodString;
|
6082
|
+
repository: z.ZodString;
|
6083
|
+
path: z.ZodString;
|
6084
|
+
}, "strip", z.ZodTypeAny, {
|
6085
|
+
path: string;
|
6086
|
+
organization: string;
|
6087
|
+
repository: string;
|
6088
|
+
}, {
|
6089
|
+
path: string;
|
6090
|
+
organization: string;
|
6091
|
+
repository: string;
|
6092
|
+
}>;
|
6093
|
+
export type githubGetFileContentParamsType = z.infer<typeof githubGetFileContentParamsSchema>;
|
6094
|
+
export declare const githubGetFileContentOutputSchema: z.ZodObject<{
|
6095
|
+
success: z.ZodBoolean;
|
6096
|
+
error: z.ZodOptional<z.ZodString>;
|
6097
|
+
content: z.ZodOptional<z.ZodString>;
|
6098
|
+
size: z.ZodOptional<z.ZodNumber>;
|
6099
|
+
name: z.ZodOptional<z.ZodString>;
|
6100
|
+
htmlUrl: z.ZodOptional<z.ZodString>;
|
6101
|
+
}, "strip", z.ZodTypeAny, {
|
6102
|
+
success: boolean;
|
6103
|
+
name?: string | undefined;
|
6104
|
+
error?: string | undefined;
|
6105
|
+
content?: string | undefined;
|
6106
|
+
size?: number | undefined;
|
6107
|
+
htmlUrl?: string | undefined;
|
6108
|
+
}, {
|
6109
|
+
success: boolean;
|
6110
|
+
name?: string | undefined;
|
6111
|
+
error?: string | undefined;
|
6112
|
+
content?: string | undefined;
|
6113
|
+
size?: number | undefined;
|
6114
|
+
htmlUrl?: string | undefined;
|
6115
|
+
}>;
|
6116
|
+
export type githubGetFileContentOutputType = z.infer<typeof githubGetFileContentOutputSchema>;
|
6117
|
+
export type githubGetFileContentFunction = ActionFunction<githubGetFileContentParamsType, AuthParamsType, githubGetFileContentOutputType>;
|
6118
|
+
export declare const githubListDirectoryParamsSchema: z.ZodObject<{
|
6119
|
+
organization: z.ZodString;
|
6120
|
+
repository: z.ZodString;
|
6121
|
+
path: z.ZodString;
|
6122
|
+
}, "strip", z.ZodTypeAny, {
|
6123
|
+
path: string;
|
6124
|
+
organization: string;
|
6125
|
+
repository: string;
|
6126
|
+
}, {
|
6127
|
+
path: string;
|
6128
|
+
organization: string;
|
6129
|
+
repository: string;
|
6130
|
+
}>;
|
6131
|
+
export type githubListDirectoryParamsType = z.infer<typeof githubListDirectoryParamsSchema>;
|
6132
|
+
export declare const githubListDirectoryOutputSchema: z.ZodObject<{
|
6133
|
+
success: z.ZodBoolean;
|
6134
|
+
error: z.ZodOptional<z.ZodString>;
|
6135
|
+
content: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
6136
|
+
name: z.ZodString;
|
6137
|
+
path: z.ZodString;
|
6138
|
+
type: z.ZodString;
|
6139
|
+
size: z.ZodNumber;
|
6140
|
+
htmlUrl: z.ZodString;
|
6141
|
+
}, "strip", z.ZodTypeAny, {
|
6142
|
+
type: string;
|
6143
|
+
path: string;
|
6144
|
+
name: string;
|
6145
|
+
size: number;
|
6146
|
+
htmlUrl: string;
|
6147
|
+
}, {
|
6148
|
+
type: string;
|
6149
|
+
path: string;
|
6150
|
+
name: string;
|
6151
|
+
size: number;
|
6152
|
+
htmlUrl: string;
|
6153
|
+
}>, "many">>;
|
6154
|
+
}, "strip", z.ZodTypeAny, {
|
6155
|
+
success: boolean;
|
6156
|
+
error?: string | undefined;
|
6157
|
+
content?: {
|
6158
|
+
type: string;
|
6159
|
+
path: string;
|
6160
|
+
name: string;
|
6161
|
+
size: number;
|
6162
|
+
htmlUrl: string;
|
6163
|
+
}[] | undefined;
|
6164
|
+
}, {
|
6165
|
+
success: boolean;
|
6166
|
+
error?: string | undefined;
|
6167
|
+
content?: {
|
6168
|
+
type: string;
|
6169
|
+
path: string;
|
6170
|
+
name: string;
|
6171
|
+
size: number;
|
6172
|
+
htmlUrl: string;
|
6173
|
+
}[] | undefined;
|
6174
|
+
}>;
|
6175
|
+
export type githubListDirectoryOutputType = z.infer<typeof githubListDirectoryOutputSchema>;
|
6176
|
+
export type githubListDirectoryFunction = ActionFunction<githubListDirectoryParamsType, AuthParamsType, githubListDirectoryOutputType>;
|
6080
6177
|
export declare const githubSearchRepositoryParamsSchema: z.ZodObject<{
|
6081
6178
|
organization: z.ZodString;
|
6082
6179
|
repository: z.ZodString;
|
@@ -3286,6 +3286,38 @@ export const githubListPullRequestsOutputSchema = z.object({
|
|
3286
3286
|
}))
|
3287
3287
|
.describe("A list of pull requests in the repository"),
|
3288
3288
|
});
|
3289
|
+
export const githubGetFileContentParamsSchema = z.object({
|
3290
|
+
organization: z.string().describe("The organization that owns the repository"),
|
3291
|
+
repository: z.string().describe("The repository name"),
|
3292
|
+
path: z.string().describe("The file path to get content from"),
|
3293
|
+
});
|
3294
|
+
export const githubGetFileContentOutputSchema = z.object({
|
3295
|
+
success: z.boolean().describe("Whether the operation was successful"),
|
3296
|
+
error: z.string().describe("The error that occurred if the operation was not successful").optional(),
|
3297
|
+
content: z.string().describe("The decoded file content as a string").optional(),
|
3298
|
+
size: z.number().describe("The size of the file in bytes").optional(),
|
3299
|
+
name: z.string().describe("The name of the file").optional(),
|
3300
|
+
htmlUrl: z.string().describe("The URL of the file in the Github UI").optional(),
|
3301
|
+
});
|
3302
|
+
export const githubListDirectoryParamsSchema = z.object({
|
3303
|
+
organization: z.string().describe("The organization that owns the repository"),
|
3304
|
+
repository: z.string().describe("The repository name"),
|
3305
|
+
path: z.string().describe("The path to list directory contents from"),
|
3306
|
+
});
|
3307
|
+
export const githubListDirectoryOutputSchema = z.object({
|
3308
|
+
success: z.boolean().describe("Whether the operation was successful"),
|
3309
|
+
error: z.string().describe("Error message if the operation failed").optional(),
|
3310
|
+
content: z
|
3311
|
+
.array(z.object({
|
3312
|
+
name: z.string().describe("The name of the file"),
|
3313
|
+
path: z.string().describe("The path of the file"),
|
3314
|
+
type: z.string().describe("The type of the file"),
|
3315
|
+
size: z.number().describe("The size of the file in bytes"),
|
3316
|
+
htmlUrl: z.string().describe("The URL of the file in the Github UI"),
|
3317
|
+
}))
|
3318
|
+
.describe("Array of directory contents")
|
3319
|
+
.optional(),
|
3320
|
+
});
|
3289
3321
|
export const githubSearchRepositoryParamsSchema = z.object({
|
3290
3322
|
organization: z.string().describe("The organization to search for data in"),
|
3291
3323
|
repository: z.string().describe("The repository to search for data in"),
|
package/dist/actions/groups.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { genericFillTemplateDefinition, confluenceOverwritePageDefinition, googlemapsValidateAddressDefinition, mathAddDefinition, mongoInsertMongoDocDefinition, slackSendMessageDefinition, slackGetChannelMessagesDefinition, slackCreateChannelDefinition, slackArchiveChannelDefinition, snowflakeGetRowByFieldValueDefinition, zendeskCreateZendeskTicketDefinition, zendeskListZendeskTicketsDefinition, zendeskGetTicketDetailsDefinition, zendeskUpdateTicketStatusDefinition, zendeskAddCommentToTicketDefinition, zendeskAssignTicketDefinition, openstreetmapGetLatitudeLongitudeFromLocationDefinition, nwsGetForecastForLocationDefinition, jiraAssignJiraTicketDefinition, jiraCommentJiraTicketDefinition, jiraCreateJiraTicketDefinition, jiraGetJiraTicketDetailsDefinition, jiraGetJiraTicketHistoryDefinition, jiraUpdateJiraTicketDetailsDefinition, jiraUpdateJiraTicketStatusDefinition, jiraGetServiceDesksDefinition, jiraCreateServiceDeskRequestDefinition, googlemapsNearbysearchRestaurantsDefinition, firecrawlScrapeUrlDefinition, resendSendEmailDefinition, linkedinCreateShareLinkedinPostUrlDefinition, googleOauthCreateNewGoogleDocDefinition, xCreateShareXPostUrlDefinition, firecrawlScrapeTweetDataWithNitterDefinition, finnhubSymbolLookupDefinition, finnhubGetBasicFinancialsDefinition, confluenceFetchPageContentDefinition, snowflakeRunSnowflakeQueryDefinition, lookerEnableUserByEmailDefinition, googleOauthUpdateDocDefinition, googleOauthScheduleCalendarMeetingDefinition, googleOauthListCalendarsDefinition, googleOauthListCalendarEventsDefinition, googleOauthUpdateCalendarEventDefinition, googleOauthDeleteCalendarEventDefinition, googleOauthCreateSpreadsheetDefinition, googleOauthUpdateSpreadsheetDefinition, googleOauthCreatePresentationDefinition, googleOauthUpdatePresentationDefinition, googleOauthSearchDriveByKeywordsDefinition, googlemailSearchGmailMessagesDefinition, googlemailListGmailThreadsDefinition, googleOauthListGroupsDefinition, googleOauthGetGroupDefinition, googleOauthListGroupMembersDefinition, googleOauthHasGroupMemberDefinition, googleOauthAddGroupMemberDefinition, googleOauthDeleteGroupMemberDefinition, salesforceUpdateRecordDefinition, salesforceCreateCaseDefinition, salesforceGenerateSalesReportDefinition, salesforceGetRecordDefinition, salesforceGetSalesforceRecordsByQueryDefinition, microsoftMessageTeamsChatDefinition, microsoftMessageTeamsChannelDefinition, asanaCommentTaskDefinition, asanaCreateTaskDefinition, asanaUpdateTaskDefinition, asanaSearchTasksDefinition, githubCreateOrUpdateFileDefinition, githubCreateBranchDefinition, githubCreatePullRequestDefinition, microsoftUpdateSpreadsheetDefinition, microsoftUpdateDocumentDefinition, microsoftCreateDocumentDefinition, microsoftGetDocumentDefinition, salesforceFetchSalesforceSchemaByObjectDefinition, firecrawlDeepResearchDefinition, jiraGetJiraIssuesByQueryDefinition, githubListPullRequestsDefinition, salesforceCreateRecordDefinition, ashbyCreateNoteDefinition, ashbyGetCandidateInfoDefinition, ashbyListCandidatesDefinition, ashbyListCandidateNotesDefinition, ashbySearchCandidatesDefinition, ashbyCreateCandidateDefinition, ashbyUpdateCandidateDefinition, ashbyAddCandidateToProjectDefinition, bingGetTopNSearchResultUrlsDefinition, gongGetGongTranscriptsDefinition, kandjiGetFVRecoveryKeyForDeviceDefinition, asanaListAsanaTasksByProjectDefinition, notionSearchByTitleDefinition, asanaGetTasksDetailsDefinition, jamfGetJamfComputerInventoryDefinition, jamfGetJamfFileVaultRecoveryKeyDefinition, oktaListOktaUsersDefinition, oktaGetOktaUserDefinition, oktaListOktaUserGroupsDefinition, oktaListOktaGroupsDefinition, oktaGetOktaGroupDefinition, oktaListOktaGroupMembersDefinition, oktaRemoveUserFromGroupDefinition, oktaAddUserToGroupDefinition, oktaResetPasswordDefinition, oktaResetMFADefinition, oktaListMFADefinition, jamfGetJamfUserComputerIdDefinition, jamfLockJamfComputerByIdDefinition, oktaTriggerOktaWorkflowDefinition, jiraOrgAssignJiraTicketDefinition, jiraOrgCreateJiraTicketDefinition, jiraOrgCommentJiraTicketDefinition, jiraOrgGetJiraTicketDetailsDefinition, jiraOrgGetJiraTicketHistoryDefinition, jiraOrgUpdateJiraTicketDetailsDefinition, jiraOrgUpdateJiraTicketStatusDefinition, jiraOrgGetJiraIssuesByQueryDefinition, googleOauthGetDriveFileContentByIdDefinition, googleOauthSearchDriveByQueryDefinition, googleOauthSearchDriveByQueryAndGetFileContentDefinition, } from "./autogen/templates.js";
|
1
|
+
import { genericFillTemplateDefinition, confluenceOverwritePageDefinition, googlemapsValidateAddressDefinition, mathAddDefinition, mongoInsertMongoDocDefinition, slackSendMessageDefinition, slackGetChannelMessagesDefinition, slackCreateChannelDefinition, slackArchiveChannelDefinition, snowflakeGetRowByFieldValueDefinition, zendeskCreateZendeskTicketDefinition, zendeskListZendeskTicketsDefinition, zendeskGetTicketDetailsDefinition, zendeskUpdateTicketStatusDefinition, zendeskAddCommentToTicketDefinition, zendeskAssignTicketDefinition, openstreetmapGetLatitudeLongitudeFromLocationDefinition, nwsGetForecastForLocationDefinition, jiraAssignJiraTicketDefinition, jiraCommentJiraTicketDefinition, jiraCreateJiraTicketDefinition, jiraGetJiraTicketDetailsDefinition, jiraGetJiraTicketHistoryDefinition, jiraUpdateJiraTicketDetailsDefinition, jiraUpdateJiraTicketStatusDefinition, jiraGetServiceDesksDefinition, jiraCreateServiceDeskRequestDefinition, googlemapsNearbysearchRestaurantsDefinition, firecrawlScrapeUrlDefinition, resendSendEmailDefinition, linkedinCreateShareLinkedinPostUrlDefinition, googleOauthCreateNewGoogleDocDefinition, xCreateShareXPostUrlDefinition, firecrawlScrapeTweetDataWithNitterDefinition, finnhubSymbolLookupDefinition, finnhubGetBasicFinancialsDefinition, confluenceFetchPageContentDefinition, snowflakeRunSnowflakeQueryDefinition, lookerEnableUserByEmailDefinition, googleOauthUpdateDocDefinition, googleOauthScheduleCalendarMeetingDefinition, googleOauthListCalendarsDefinition, googleOauthListCalendarEventsDefinition, googleOauthUpdateCalendarEventDefinition, googleOauthDeleteCalendarEventDefinition, googleOauthCreateSpreadsheetDefinition, googleOauthUpdateSpreadsheetDefinition, googleOauthCreatePresentationDefinition, googleOauthUpdatePresentationDefinition, googleOauthSearchDriveByKeywordsDefinition, googlemailSearchGmailMessagesDefinition, googlemailListGmailThreadsDefinition, googleOauthListGroupsDefinition, googleOauthGetGroupDefinition, googleOauthListGroupMembersDefinition, googleOauthHasGroupMemberDefinition, googleOauthAddGroupMemberDefinition, googleOauthDeleteGroupMemberDefinition, salesforceUpdateRecordDefinition, salesforceCreateCaseDefinition, salesforceGenerateSalesReportDefinition, salesforceGetRecordDefinition, salesforceGetSalesforceRecordsByQueryDefinition, microsoftMessageTeamsChatDefinition, microsoftMessageTeamsChannelDefinition, asanaCommentTaskDefinition, asanaCreateTaskDefinition, asanaUpdateTaskDefinition, asanaSearchTasksDefinition, githubCreateOrUpdateFileDefinition, githubCreateBranchDefinition, githubCreatePullRequestDefinition, microsoftUpdateSpreadsheetDefinition, microsoftUpdateDocumentDefinition, microsoftCreateDocumentDefinition, microsoftGetDocumentDefinition, salesforceFetchSalesforceSchemaByObjectDefinition, firecrawlDeepResearchDefinition, jiraGetJiraIssuesByQueryDefinition, githubListPullRequestsDefinition, salesforceCreateRecordDefinition, ashbyCreateNoteDefinition, ashbyGetCandidateInfoDefinition, ashbyListCandidatesDefinition, ashbyListCandidateNotesDefinition, ashbySearchCandidatesDefinition, ashbyCreateCandidateDefinition, ashbyUpdateCandidateDefinition, ashbyAddCandidateToProjectDefinition, bingGetTopNSearchResultUrlsDefinition, gongGetGongTranscriptsDefinition, kandjiGetFVRecoveryKeyForDeviceDefinition, asanaListAsanaTasksByProjectDefinition, notionSearchByTitleDefinition, asanaGetTasksDetailsDefinition, jamfGetJamfComputerInventoryDefinition, jamfGetJamfFileVaultRecoveryKeyDefinition, oktaListOktaUsersDefinition, oktaGetOktaUserDefinition, oktaListOktaUserGroupsDefinition, oktaListOktaGroupsDefinition, oktaGetOktaGroupDefinition, oktaListOktaGroupMembersDefinition, oktaRemoveUserFromGroupDefinition, oktaAddUserToGroupDefinition, oktaResetPasswordDefinition, oktaResetMFADefinition, oktaListMFADefinition, jamfGetJamfUserComputerIdDefinition, jamfLockJamfComputerByIdDefinition, oktaTriggerOktaWorkflowDefinition, jiraOrgAssignJiraTicketDefinition, jiraOrgCreateJiraTicketDefinition, jiraOrgCommentJiraTicketDefinition, jiraOrgGetJiraTicketDetailsDefinition, jiraOrgGetJiraTicketHistoryDefinition, jiraOrgUpdateJiraTicketDetailsDefinition, jiraOrgUpdateJiraTicketStatusDefinition, jiraOrgGetJiraIssuesByQueryDefinition, googleOauthGetDriveFileContentByIdDefinition, googleOauthSearchDriveByQueryDefinition, googleOauthSearchDriveByQueryAndGetFileContentDefinition, githubGetFileContentDefinition, githubListDirectoryDefinition, } from "./autogen/templates.js";
|
2
2
|
export const ACTION_GROUPS = {
|
3
3
|
GENERIC: {
|
4
4
|
description: "Generic utility actions",
|
@@ -199,6 +199,8 @@ export const ACTION_GROUPS = {
|
|
199
199
|
githubCreateBranchDefinition,
|
200
200
|
githubCreatePullRequestDefinition,
|
201
201
|
githubListPullRequestsDefinition,
|
202
|
+
githubGetFileContentDefinition,
|
203
|
+
githubListDirectoryDefinition,
|
202
204
|
],
|
203
205
|
},
|
204
206
|
ASHBY: {
|
@@ -8,28 +8,30 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
9
|
});
|
10
10
|
};
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
+
};
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
const
|
13
|
-
function
|
14
|
-
|
15
|
+
const axios_1 = __importDefault(require("axios"));
|
16
|
+
function getConfluenceApi(baseUrl, username, apiToken) {
|
17
|
+
const api = axios_1.default.create({
|
15
18
|
baseURL: baseUrl,
|
16
19
|
headers: {
|
17
20
|
Accept: "application/json",
|
21
|
+
// Tokens are associated with a specific user.
|
18
22
|
Authorization: `Basic ${Buffer.from(`${username}:${apiToken}`).toString("base64")}`,
|
19
23
|
},
|
20
|
-
};
|
24
|
+
});
|
25
|
+
return api;
|
21
26
|
}
|
22
27
|
const confluenceUpdatePage = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
23
|
-
const { pageId, content, title } = params;
|
24
|
-
const { baseUrl, authToken
|
25
|
-
|
26
|
-
throw new Error("Missing required authentication information");
|
27
|
-
}
|
28
|
-
const config = getConfluenceRequestConfig(baseUrl, username, authToken);
|
28
|
+
const { pageId, username, content, title } = params;
|
29
|
+
const { baseUrl, authToken } = authParams;
|
30
|
+
const api = getConfluenceApi(baseUrl, username, authToken);
|
29
31
|
// Get current version number
|
30
|
-
const response = yield
|
32
|
+
const response = yield api.get(`/api/v2/pages/${pageId}`);
|
31
33
|
const currVersion = response.data.version.number;
|
32
|
-
|
34
|
+
yield api.put(`/api/v2/pages/${pageId}`, {
|
33
35
|
id: pageId,
|
34
36
|
status: "current",
|
35
37
|
title,
|
@@ -40,7 +42,6 @@ const confluenceUpdatePage = (_a) => __awaiter(void 0, [_a], void 0, function* (
|
|
40
42
|
version: {
|
41
43
|
number: currVersion + 1,
|
42
44
|
},
|
43
|
-
};
|
44
|
-
yield axiosClient_1.axiosClient.put(`/api/v2/pages/${pageId}`, payload, config);
|
45
|
+
});
|
45
46
|
});
|
46
47
|
exports.default = confluenceUpdatePage;
|
@@ -0,0 +1,57 @@
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
8
|
+
});
|
9
|
+
};
|
10
|
+
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
|
11
|
+
/**
|
12
|
+
* Get file content
|
13
|
+
*/
|
14
|
+
const getFileContent = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
15
|
+
var _b;
|
16
|
+
const { Octokit } = yield import("octokit");
|
17
|
+
if (!authParams.authToken) {
|
18
|
+
return {
|
19
|
+
success: false,
|
20
|
+
error: MISSING_AUTH_TOKEN,
|
21
|
+
};
|
22
|
+
}
|
23
|
+
const octokit = new Octokit({ auth: authParams.authToken });
|
24
|
+
const { organization, repository, path } = params;
|
25
|
+
const contentResponse = yield octokit.rest.repos.getContent({
|
26
|
+
owner: organization,
|
27
|
+
repo: repository,
|
28
|
+
path,
|
29
|
+
headers: {
|
30
|
+
accept: "application/vnd.github.v3.text-match+json",
|
31
|
+
},
|
32
|
+
});
|
33
|
+
const data = contentResponse.data;
|
34
|
+
if (Array.isArray(data)) {
|
35
|
+
return {
|
36
|
+
success: false,
|
37
|
+
error: "Path is a directory. Use the directory list tool instead.",
|
38
|
+
};
|
39
|
+
}
|
40
|
+
if (data.type !== "file") {
|
41
|
+
return {
|
42
|
+
success: false,
|
43
|
+
error: `Content is not a file. Type: ${data.type}`,
|
44
|
+
};
|
45
|
+
}
|
46
|
+
// GitHub API returns content as base64 encoded string
|
47
|
+
// We need to decode it properly to UTF-8 text
|
48
|
+
const content = Buffer.from(data.content, data.encoding).toString("utf-8");
|
49
|
+
return {
|
50
|
+
success: true,
|
51
|
+
content,
|
52
|
+
size: data.size,
|
53
|
+
name: data.name,
|
54
|
+
htmlUrl: (_b = data.html_url) !== null && _b !== void 0 ? _b : data.url,
|
55
|
+
};
|
56
|
+
});
|
57
|
+
export default getFileContent;
|
@@ -0,0 +1,54 @@
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
8
|
+
});
|
9
|
+
};
|
10
|
+
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
|
11
|
+
/**
|
12
|
+
* List directory contents
|
13
|
+
*/
|
14
|
+
const listDirectory = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
15
|
+
const { Octokit } = yield import("octokit");
|
16
|
+
if (!authParams.authToken) {
|
17
|
+
return {
|
18
|
+
success: false,
|
19
|
+
error: MISSING_AUTH_TOKEN,
|
20
|
+
};
|
21
|
+
}
|
22
|
+
const octokit = new Octokit({ auth: authParams.authToken });
|
23
|
+
const { organization, repository, path } = params;
|
24
|
+
const contentResponse = yield octokit.rest.repos.getContent({
|
25
|
+
owner: organization,
|
26
|
+
repo: repository,
|
27
|
+
path,
|
28
|
+
headers: {
|
29
|
+
accept: "application/vnd.github.v3.text-match+json",
|
30
|
+
},
|
31
|
+
});
|
32
|
+
const data = contentResponse.data;
|
33
|
+
if (!Array.isArray(data)) {
|
34
|
+
return {
|
35
|
+
success: false,
|
36
|
+
error: "Content is not a directory",
|
37
|
+
};
|
38
|
+
}
|
39
|
+
const content = data.map(item => {
|
40
|
+
var _a;
|
41
|
+
return {
|
42
|
+
name: item.name,
|
43
|
+
path: item.path,
|
44
|
+
type: item.type,
|
45
|
+
size: item.size,
|
46
|
+
htmlUrl: (_a = item.html_url) !== null && _a !== void 0 ? _a : item.url,
|
47
|
+
};
|
48
|
+
});
|
49
|
+
return {
|
50
|
+
success: true,
|
51
|
+
content,
|
52
|
+
};
|
53
|
+
});
|
54
|
+
export default listDirectory;
|
@@ -22,13 +22,14 @@ function gitlabFetch(endpoint, authToken) {
|
|
22
22
|
function globalSearch(input) {
|
23
23
|
return __awaiter(this, void 0, void 0, function* () {
|
24
24
|
const { scope, query, groupId, authToken, baseUrl } = input;
|
25
|
-
const endpoint = `${baseUrl}/
|
25
|
+
const endpoint = `${baseUrl}/groups/${groupId}/search?scope=${scope}&search=${encodeURIComponent(query)}`;
|
26
26
|
return gitlabFetch(endpoint, authToken);
|
27
27
|
});
|
28
28
|
}
|
29
|
-
function getMRDiffs(
|
29
|
+
function getMRDiffs(input) {
|
30
30
|
return __awaiter(this, void 0, void 0, function* () {
|
31
|
-
const
|
31
|
+
const { projectId, mrIid, authToken, baseUrl } = input;
|
32
|
+
const endpoint = `${baseUrl}/projects/${projectId}/merge_requests/${mrIid}/diffs`;
|
32
33
|
return gitlabFetch(endpoint, authToken);
|
33
34
|
});
|
34
35
|
}
|
@@ -37,7 +38,7 @@ function getMRDiffs(projectId, mrIid, authToken) {
|
|
37
38
|
*/
|
38
39
|
const searchGroup = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
39
40
|
const { authToken, baseUrl } = authParams;
|
40
|
-
const gitlabBaseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : GITLAB_API_URL
|
41
|
+
const gitlabBaseUrl = `${baseUrl !== null && baseUrl !== void 0 ? baseUrl : GITLAB_API_URL}/api/v4`;
|
41
42
|
if (!authToken) {
|
42
43
|
throw new Error(MISSING_AUTH_TOKEN);
|
43
44
|
}
|
@@ -47,7 +48,12 @@ const searchGroup = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params,
|
|
47
48
|
globalSearch({ scope: "blobs", query, groupId, authToken, baseUrl: gitlabBaseUrl }),
|
48
49
|
]);
|
49
50
|
const mergeRequests = yield Promise.all(mrResults.map((metadata) => __awaiter(void 0, void 0, void 0, function* () {
|
50
|
-
const diffs = yield getMRDiffs(
|
51
|
+
const diffs = yield getMRDiffs({
|
52
|
+
projectId: metadata.project_id,
|
53
|
+
mrIid: metadata.iid,
|
54
|
+
authToken,
|
55
|
+
baseUrl: gitlabBaseUrl,
|
56
|
+
});
|
51
57
|
return { metadata, diffs };
|
52
58
|
})));
|
53
59
|
const blobs = blobResults.map(blob => {
|
package/package.json
CHANGED