@credal/actions 0.2.37 → 0.2.38
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 +7 -1
- package/dist/actions/autogen/templates.d.ts +1 -1
- package/dist/actions/autogen/templates.js +60 -59
- package/dist/actions/autogen/types.d.ts +51 -48
- package/dist/actions/autogen/types.js +17 -15
- package/dist/actions/groups.js +2 -1
- package/dist/actions/providers/google-oauth/searchDriveByQuery.d.ts +3 -0
- package/dist/actions/providers/google-oauth/searchDriveByQuery.js +42 -0
- 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, 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, } 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, } 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";
|
@@ -114,6 +114,7 @@ import getServiceDesks from "./providers/jira/getServiceDesks.js";
|
|
114
114
|
import createServiceDeskRequest from "./providers/jira/createServiceDeskRequest.js";
|
115
115
|
import searchSalesforceRecords from "./providers/salesforce/searchSalesforceRecords.js";
|
116
116
|
import getDriveFileContentById from "./providers/google-oauth/getDriveFileContentById.js";
|
117
|
+
import searchDriveByQuery from "./providers/google-oauth/searchDriveByQuery.js";
|
117
118
|
const jiraActions = {
|
118
119
|
getJiraIssuesByQuery: {
|
119
120
|
fn: getJiraIssuesByQuery,
|
@@ -434,6 +435,11 @@ export const ActionMapper = {
|
|
434
435
|
paramsSchema: googleOauthSearchDriveByKeywordsParamsSchema,
|
435
436
|
outputSchema: googleOauthSearchDriveByKeywordsOutputSchema,
|
436
437
|
},
|
438
|
+
searchDriveByQuery: {
|
439
|
+
fn: searchDriveByQuery,
|
440
|
+
paramsSchema: googleOauthSearchDriveByQueryParamsSchema,
|
441
|
+
outputSchema: googleOauthSearchDriveByQueryOutputSchema,
|
442
|
+
},
|
437
443
|
getDriveFileContentById: {
|
438
444
|
fn: getDriveFileContentById,
|
439
445
|
paramsSchema: googleOauthGetDriveFileContentByIdParamsSchema,
|
@@ -54,7 +54,6 @@ export declare const firecrawlDeepResearchDefinition: ActionTemplate;
|
|
54
54
|
export declare const firecrawlScrapeUrlDefinition: ActionTemplate;
|
55
55
|
export declare const firecrawlScrapeTweetDataWithNitterDefinition: ActionTemplate;
|
56
56
|
export declare const resendSendEmailDefinition: ActionTemplate;
|
57
|
-
export declare const googleOauthSearchFilesByKeywordsDefinition: ActionTemplate;
|
58
57
|
export declare const googleOauthCreateNewGoogleDocDefinition: ActionTemplate;
|
59
58
|
export declare const googleOauthUpdateDocDefinition: ActionTemplate;
|
60
59
|
export declare const googleOauthScheduleCalendarMeetingDefinition: ActionTemplate;
|
@@ -67,6 +66,7 @@ export declare const googleOauthUpdateSpreadsheetDefinition: ActionTemplate;
|
|
67
66
|
export declare const googleOauthCreatePresentationDefinition: ActionTemplate;
|
68
67
|
export declare const googleOauthUpdatePresentationDefinition: ActionTemplate;
|
69
68
|
export declare const googleOauthSearchDriveByKeywordsDefinition: ActionTemplate;
|
69
|
+
export declare const googleOauthSearchDriveByQueryDefinition: ActionTemplate;
|
70
70
|
export declare const googleOauthGetDriveFileContentByIdDefinition: ActionTemplate;
|
71
71
|
export declare const googleOauthListGroupsDefinition: ActionTemplate;
|
72
72
|
export declare const googleOauthGetGroupDefinition: ActionTemplate;
|
@@ -2723,65 +2723,6 @@ export const resendSendEmailDefinition = {
|
|
2723
2723
|
name: "sendEmail",
|
2724
2724
|
provider: "resend",
|
2725
2725
|
};
|
2726
|
-
export const googleOauthSearchFilesByKeywordsDefinition = {
|
2727
|
-
description: "Search Google Drive files that contain one or more keywords in their full text.",
|
2728
|
-
scopes: ["https://www.googleapis.com/auth/drive.readonly"],
|
2729
|
-
parameters: {
|
2730
|
-
type: "object",
|
2731
|
-
required: ["keywords"],
|
2732
|
-
properties: {
|
2733
|
-
keywords: {
|
2734
|
-
type: "array",
|
2735
|
-
description: "List of keywords to search for in file contents.",
|
2736
|
-
items: {
|
2737
|
-
type: "string",
|
2738
|
-
},
|
2739
|
-
},
|
2740
|
-
},
|
2741
|
-
},
|
2742
|
-
output: {
|
2743
|
-
type: "object",
|
2744
|
-
required: ["success", "files"],
|
2745
|
-
properties: {
|
2746
|
-
success: {
|
2747
|
-
type: "boolean",
|
2748
|
-
description: "Whether the search was successful",
|
2749
|
-
},
|
2750
|
-
files: {
|
2751
|
-
type: "array",
|
2752
|
-
description: "List of files matching the search",
|
2753
|
-
items: {
|
2754
|
-
type: "object",
|
2755
|
-
required: ["id", "name", "mimeType", "webViewLink"],
|
2756
|
-
properties: {
|
2757
|
-
id: {
|
2758
|
-
type: "string",
|
2759
|
-
description: "The file ID",
|
2760
|
-
},
|
2761
|
-
name: {
|
2762
|
-
type: "string",
|
2763
|
-
description: "The file name",
|
2764
|
-
},
|
2765
|
-
mimeType: {
|
2766
|
-
type: "string",
|
2767
|
-
description: "The MIME type of the file",
|
2768
|
-
},
|
2769
|
-
webViewLink: {
|
2770
|
-
type: "string",
|
2771
|
-
description: "The web link to view the file",
|
2772
|
-
},
|
2773
|
-
},
|
2774
|
-
},
|
2775
|
-
},
|
2776
|
-
error: {
|
2777
|
-
type: "string",
|
2778
|
-
description: "Error message if search failed",
|
2779
|
-
},
|
2780
|
-
},
|
2781
|
-
},
|
2782
|
-
name: "searchFilesByKeywords",
|
2783
|
-
provider: "googleOauth",
|
2784
|
-
};
|
2785
2726
|
export const googleOauthCreateNewGoogleDocDefinition = {
|
2786
2727
|
description: "Create a new Google Docs document using OAuth authentication",
|
2787
2728
|
scopes: [],
|
@@ -6224,6 +6165,66 @@ export const googleOauthSearchDriveByKeywordsDefinition = {
|
|
6224
6165
|
name: "searchDriveByKeywords",
|
6225
6166
|
provider: "googleOauth",
|
6226
6167
|
};
|
6168
|
+
export const googleOauthSearchDriveByQueryDefinition = {
|
6169
|
+
description: "Search Google Drive files based on a gdrive query provided.",
|
6170
|
+
scopes: ["drive.readonly"],
|
6171
|
+
parameters: {
|
6172
|
+
type: "object",
|
6173
|
+
required: ["query"],
|
6174
|
+
properties: {
|
6175
|
+
query: {
|
6176
|
+
type: "string",
|
6177
|
+
description: "The query to search for in file contents.",
|
6178
|
+
},
|
6179
|
+
limit: {
|
6180
|
+
type: "number",
|
6181
|
+
description: "The maximum number of files to return",
|
6182
|
+
},
|
6183
|
+
},
|
6184
|
+
},
|
6185
|
+
output: {
|
6186
|
+
type: "object",
|
6187
|
+
required: ["success"],
|
6188
|
+
properties: {
|
6189
|
+
success: {
|
6190
|
+
type: "boolean",
|
6191
|
+
description: "Whether the search was successful",
|
6192
|
+
},
|
6193
|
+
files: {
|
6194
|
+
type: "array",
|
6195
|
+
description: "List of files matching the search",
|
6196
|
+
items: {
|
6197
|
+
type: "object",
|
6198
|
+
required: ["id", "name", "mimeType", "url"],
|
6199
|
+
properties: {
|
6200
|
+
id: {
|
6201
|
+
type: "string",
|
6202
|
+
description: "The file ID",
|
6203
|
+
},
|
6204
|
+
name: {
|
6205
|
+
type: "string",
|
6206
|
+
description: "The file name",
|
6207
|
+
},
|
6208
|
+
mimeType: {
|
6209
|
+
type: "string",
|
6210
|
+
description: "The MIME type of the file",
|
6211
|
+
},
|
6212
|
+
url: {
|
6213
|
+
type: "string",
|
6214
|
+
description: "The web link to view the file",
|
6215
|
+
},
|
6216
|
+
},
|
6217
|
+
},
|
6218
|
+
},
|
6219
|
+
error: {
|
6220
|
+
type: "string",
|
6221
|
+
description: "Error message if search failed",
|
6222
|
+
},
|
6223
|
+
},
|
6224
|
+
},
|
6225
|
+
name: "searchDriveByQuery",
|
6226
|
+
provider: "googleOauth",
|
6227
|
+
};
|
6227
6228
|
export const googleOauthGetDriveFileContentByIdDefinition = {
|
6228
6229
|
description: "Get text content of a Google Drive file by its ID.",
|
6229
6230
|
scopes: ["drive.readonly"],
|
@@ -2481,54 +2481,6 @@ export declare const resendSendEmailOutputSchema: z.ZodObject<{
|
|
2481
2481
|
}>;
|
2482
2482
|
export type resendSendEmailOutputType = z.infer<typeof resendSendEmailOutputSchema>;
|
2483
2483
|
export type resendSendEmailFunction = ActionFunction<resendSendEmailParamsType, AuthParamsType, resendSendEmailOutputType>;
|
2484
|
-
export declare const googleOauthSearchFilesByKeywordsParamsSchema: z.ZodObject<{
|
2485
|
-
keywords: z.ZodArray<z.ZodString, "many">;
|
2486
|
-
}, "strip", z.ZodTypeAny, {
|
2487
|
-
keywords: string[];
|
2488
|
-
}, {
|
2489
|
-
keywords: string[];
|
2490
|
-
}>;
|
2491
|
-
export type googleOauthSearchFilesByKeywordsParamsType = z.infer<typeof googleOauthSearchFilesByKeywordsParamsSchema>;
|
2492
|
-
export declare const googleOauthSearchFilesByKeywordsOutputSchema: z.ZodObject<{
|
2493
|
-
success: z.ZodBoolean;
|
2494
|
-
files: z.ZodArray<z.ZodObject<{
|
2495
|
-
id: z.ZodString;
|
2496
|
-
name: z.ZodString;
|
2497
|
-
mimeType: z.ZodString;
|
2498
|
-
webViewLink: z.ZodString;
|
2499
|
-
}, "strip", z.ZodTypeAny, {
|
2500
|
-
name: string;
|
2501
|
-
id: string;
|
2502
|
-
mimeType: string;
|
2503
|
-
webViewLink: string;
|
2504
|
-
}, {
|
2505
|
-
name: string;
|
2506
|
-
id: string;
|
2507
|
-
mimeType: string;
|
2508
|
-
webViewLink: string;
|
2509
|
-
}>, "many">;
|
2510
|
-
error: z.ZodOptional<z.ZodString>;
|
2511
|
-
}, "strip", z.ZodTypeAny, {
|
2512
|
-
success: boolean;
|
2513
|
-
files: {
|
2514
|
-
name: string;
|
2515
|
-
id: string;
|
2516
|
-
mimeType: string;
|
2517
|
-
webViewLink: string;
|
2518
|
-
}[];
|
2519
|
-
error?: string | undefined;
|
2520
|
-
}, {
|
2521
|
-
success: boolean;
|
2522
|
-
files: {
|
2523
|
-
name: string;
|
2524
|
-
id: string;
|
2525
|
-
mimeType: string;
|
2526
|
-
webViewLink: string;
|
2527
|
-
}[];
|
2528
|
-
error?: string | undefined;
|
2529
|
-
}>;
|
2530
|
-
export type googleOauthSearchFilesByKeywordsOutputType = z.infer<typeof googleOauthSearchFilesByKeywordsOutputSchema>;
|
2531
|
-
export type googleOauthSearchFilesByKeywordsFunction = ActionFunction<googleOauthSearchFilesByKeywordsParamsType, AuthParamsType, googleOauthSearchFilesByKeywordsOutputType>;
|
2532
2484
|
export declare const googleOauthCreateNewGoogleDocParamsSchema: z.ZodObject<{
|
2533
2485
|
title: z.ZodString;
|
2534
2486
|
content: z.ZodOptional<z.ZodString>;
|
@@ -3319,6 +3271,57 @@ export declare const googleOauthSearchDriveByKeywordsOutputSchema: z.ZodObject<{
|
|
3319
3271
|
}>;
|
3320
3272
|
export type googleOauthSearchDriveByKeywordsOutputType = z.infer<typeof googleOauthSearchDriveByKeywordsOutputSchema>;
|
3321
3273
|
export type googleOauthSearchDriveByKeywordsFunction = ActionFunction<googleOauthSearchDriveByKeywordsParamsType, AuthParamsType, googleOauthSearchDriveByKeywordsOutputType>;
|
3274
|
+
export declare const googleOauthSearchDriveByQueryParamsSchema: z.ZodObject<{
|
3275
|
+
query: z.ZodString;
|
3276
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
3277
|
+
}, "strip", z.ZodTypeAny, {
|
3278
|
+
query: string;
|
3279
|
+
limit?: number | undefined;
|
3280
|
+
}, {
|
3281
|
+
query: string;
|
3282
|
+
limit?: number | undefined;
|
3283
|
+
}>;
|
3284
|
+
export type googleOauthSearchDriveByQueryParamsType = z.infer<typeof googleOauthSearchDriveByQueryParamsSchema>;
|
3285
|
+
export declare const googleOauthSearchDriveByQueryOutputSchema: z.ZodObject<{
|
3286
|
+
success: z.ZodBoolean;
|
3287
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
3288
|
+
id: z.ZodString;
|
3289
|
+
name: z.ZodString;
|
3290
|
+
mimeType: z.ZodString;
|
3291
|
+
url: z.ZodString;
|
3292
|
+
}, "strip", z.ZodTypeAny, {
|
3293
|
+
name: string;
|
3294
|
+
id: string;
|
3295
|
+
url: string;
|
3296
|
+
mimeType: string;
|
3297
|
+
}, {
|
3298
|
+
name: string;
|
3299
|
+
id: string;
|
3300
|
+
url: string;
|
3301
|
+
mimeType: string;
|
3302
|
+
}>, "many">>;
|
3303
|
+
error: z.ZodOptional<z.ZodString>;
|
3304
|
+
}, "strip", z.ZodTypeAny, {
|
3305
|
+
success: boolean;
|
3306
|
+
error?: string | undefined;
|
3307
|
+
files?: {
|
3308
|
+
name: string;
|
3309
|
+
id: string;
|
3310
|
+
url: string;
|
3311
|
+
mimeType: string;
|
3312
|
+
}[] | undefined;
|
3313
|
+
}, {
|
3314
|
+
success: boolean;
|
3315
|
+
error?: string | undefined;
|
3316
|
+
files?: {
|
3317
|
+
name: string;
|
3318
|
+
id: string;
|
3319
|
+
url: string;
|
3320
|
+
mimeType: string;
|
3321
|
+
}[] | undefined;
|
3322
|
+
}>;
|
3323
|
+
export type googleOauthSearchDriveByQueryOutputType = z.infer<typeof googleOauthSearchDriveByQueryOutputSchema>;
|
3324
|
+
export type googleOauthSearchDriveByQueryFunction = ActionFunction<googleOauthSearchDriveByQueryParamsType, AuthParamsType, googleOauthSearchDriveByQueryOutputType>;
|
3322
3325
|
export declare const googleOauthGetDriveFileContentByIdParamsSchema: z.ZodObject<{
|
3323
3326
|
fileId: z.ZodString;
|
3324
3327
|
limit: z.ZodNumber;
|
@@ -819,21 +819,6 @@ export const resendSendEmailOutputSchema = z.object({
|
|
819
819
|
success: z.boolean().describe("Whether the email was sent successfully"),
|
820
820
|
error: z.string().describe("The error that occurred if the email was not sent successfully").optional(),
|
821
821
|
});
|
822
|
-
export const googleOauthSearchFilesByKeywordsParamsSchema = z.object({
|
823
|
-
keywords: z.array(z.string()).describe("List of keywords to search for in file contents."),
|
824
|
-
});
|
825
|
-
export const googleOauthSearchFilesByKeywordsOutputSchema = z.object({
|
826
|
-
success: z.boolean().describe("Whether the search was successful"),
|
827
|
-
files: z
|
828
|
-
.array(z.object({
|
829
|
-
id: z.string().describe("The file ID"),
|
830
|
-
name: z.string().describe("The file name"),
|
831
|
-
mimeType: z.string().describe("The MIME type of the file"),
|
832
|
-
webViewLink: z.string().describe("The web link to view the file"),
|
833
|
-
}))
|
834
|
-
.describe("List of files matching the search"),
|
835
|
-
error: z.string().describe("Error message if search failed").optional(),
|
836
|
-
});
|
837
822
|
export const googleOauthCreateNewGoogleDocParamsSchema = z.object({
|
838
823
|
title: z.string().describe("The title of the new Google Doc"),
|
839
824
|
content: z.string().describe("The content to add to the new Google Doc").optional(),
|
@@ -2389,6 +2374,23 @@ export const googleOauthSearchDriveByKeywordsOutputSchema = z.object({
|
|
2389
2374
|
.optional(),
|
2390
2375
|
error: z.string().describe("Error message if search failed").optional(),
|
2391
2376
|
});
|
2377
|
+
export const googleOauthSearchDriveByQueryParamsSchema = z.object({
|
2378
|
+
query: z.string().describe("The query to search for in file contents."),
|
2379
|
+
limit: z.number().describe("The maximum number of files to return").optional(),
|
2380
|
+
});
|
2381
|
+
export const googleOauthSearchDriveByQueryOutputSchema = z.object({
|
2382
|
+
success: z.boolean().describe("Whether the search was successful"),
|
2383
|
+
files: z
|
2384
|
+
.array(z.object({
|
2385
|
+
id: z.string().describe("The file ID"),
|
2386
|
+
name: z.string().describe("The file name"),
|
2387
|
+
mimeType: z.string().describe("The MIME type of the file"),
|
2388
|
+
url: z.string().describe("The web link to view the file"),
|
2389
|
+
}))
|
2390
|
+
.describe("List of files matching the search")
|
2391
|
+
.optional(),
|
2392
|
+
error: z.string().describe("Error message if search failed").optional(),
|
2393
|
+
});
|
2392
2394
|
export const googleOauthGetDriveFileContentByIdParamsSchema = z.object({
|
2393
2395
|
fileId: z.string().describe("The ID of the file to get content from"),
|
2394
2396
|
limit: z.number().describe("The character limit for the file content"),
|
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, } 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, } from "./autogen/templates.js";
|
2
2
|
export const ACTION_GROUPS = {
|
3
3
|
GENERIC: {
|
4
4
|
description: "Generic utility actions",
|
@@ -46,6 +46,7 @@ export const ACTION_GROUPS = {
|
|
46
46
|
googleOauthCreatePresentationDefinition,
|
47
47
|
googleOauthUpdatePresentationDefinition,
|
48
48
|
googleOauthSearchDriveByKeywordsDefinition,
|
49
|
+
googleOauthSearchDriveByQueryDefinition,
|
49
50
|
googleOauthGetDriveFileContentByIdDefinition,
|
50
51
|
],
|
51
52
|
},
|
@@ -0,0 +1,42 @@
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
8
|
+
});
|
9
|
+
};
|
10
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
11
|
+
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
|
12
|
+
const searchDriveByQuery = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
13
|
+
var _b;
|
14
|
+
if (!authParams.authToken) {
|
15
|
+
return { success: false, error: MISSING_AUTH_TOKEN, files: [] };
|
16
|
+
}
|
17
|
+
const { query, limit } = params;
|
18
|
+
const url = `https://www.googleapis.com/drive/v3/files?q=${encodeURIComponent(query)}&fields=files(id,name,mimeType,webViewLink)&supportsAllDrives=true&includeItemsFromAllDrives=true`;
|
19
|
+
try {
|
20
|
+
const res = yield axiosClient.get(url, {
|
21
|
+
headers: {
|
22
|
+
Authorization: `Bearer ${authParams.authToken}`,
|
23
|
+
},
|
24
|
+
});
|
25
|
+
const files = ((_b = res.data.files) === null || _b === void 0 ? void 0 : _b.map((file) => ({
|
26
|
+
id: file.id || "",
|
27
|
+
name: file.name || "",
|
28
|
+
mimeType: file.mimeType || "",
|
29
|
+
url: file.webViewLink || "",
|
30
|
+
}))) || [];
|
31
|
+
return { success: true, files: limit ? files.splice(0, limit) : files };
|
32
|
+
}
|
33
|
+
catch (error) {
|
34
|
+
console.error("Error searching Google Drive", error);
|
35
|
+
return {
|
36
|
+
success: false,
|
37
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
38
|
+
files: [],
|
39
|
+
};
|
40
|
+
}
|
41
|
+
});
|
42
|
+
export default searchDriveByQuery;
|