@credal/actions 0.2.197 → 0.2.198
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/autogen/templates.js +14 -18
- package/dist/actions/autogen/types.js +26 -8
- package/dist/actions/groups.js +4 -1
- package/dist/actions/invoke.js +11 -22
- package/dist/actions/parse.js +231 -244
- package/dist/actions/providers/asana/commentAsanaTask.js +8 -15
- package/dist/actions/providers/asana/createAsanaTask.js +20 -21
- package/dist/actions/providers/asana/getTasksDetails.js +18 -34
- package/dist/actions/providers/asana/listAsanaTasksByProject.js +62 -79
- package/dist/actions/providers/asana/searchAsanaTasks.js +6 -16
- package/dist/actions/providers/asana/updateAsanaTask.js +16 -15
- package/dist/actions/providers/asana/utils.js +47 -64
- package/dist/actions/providers/bing/getTopNSearchResultUrls.js +4 -14
- package/dist/actions/providers/confluence/fetchPageContent.js +5 -15
- package/dist/actions/providers/confluence/overwritePage.js +5 -14
- package/dist/actions/providers/finnhub/getBasicFinancials.js +7 -19
- package/dist/actions/providers/finnhub/symbolLookup.js +3 -12
- package/dist/actions/providers/firecrawl/deepResearch.js +11 -21
- package/dist/actions/providers/firecrawl/getTopNSearchResultUrls.js +8 -21
- package/dist/actions/providers/firecrawl/scrapeTweetDataWithNitter.js +4 -13
- package/dist/actions/providers/firecrawl/scrapeUrl.js +16 -21
- package/dist/actions/providers/firecrawl/searchAndScrape.js +6 -17
- package/dist/actions/providers/generic/fillTemplate.js +2 -11
- package/dist/actions/providers/github/createBranch.js +9 -18
- package/dist/actions/providers/github/createOrUpdateFile.js +6 -15
- package/dist/actions/providers/github/createPullRequest.js +5 -14
- package/dist/actions/providers/github/fetchFile.d.ts +3 -0
- package/dist/actions/providers/github/fetchFile.js +131 -0
- package/dist/actions/providers/github/getBranch.js +4 -13
- package/dist/actions/providers/github/getContents.d.ts +3 -0
- package/dist/actions/providers/github/getContents.js +41 -0
- package/dist/actions/providers/github/getFileContent.js +6 -16
- package/dist/actions/providers/github/getPullRequestDetails.js +39 -18
- package/dist/actions/providers/github/listCommits.js +17 -15
- package/dist/actions/providers/github/listDirectory.js +13 -25
- package/dist/actions/providers/github/listPullRequests.js +4 -13
- package/dist/actions/providers/github/searchOrganization.js +29 -49
- package/dist/actions/providers/github/utils.js +5 -16
- package/dist/actions/providers/gitlab/getFileContent.js +13 -24
- package/dist/actions/providers/gitlab/getMergeRequest.js +18 -30
- package/dist/actions/providers/gitlab/listDirectory.js +15 -27
- package/dist/actions/providers/gitlab/searchGroup.js +45 -52
- package/dist/actions/providers/gitlab/utils.js +19 -32
- package/dist/actions/providers/google-oauth/addGroupMember.js +3 -12
- package/dist/actions/providers/google-oauth/addTextToTopOfDoc.js +3 -12
- package/dist/actions/providers/google-oauth/appendRowsToSpreadsheet.js +4 -13
- package/dist/actions/providers/google-oauth/createNewGoogleDoc.js +7 -17
- package/dist/actions/providers/google-oauth/createPresentation.js +7 -13
- package/dist/actions/providers/google-oauth/createSpreadsheet.js +7 -13
- package/dist/actions/providers/google-oauth/deleteCalendarEvent.js +3 -12
- package/dist/actions/providers/google-oauth/deleteGroupMember.js +3 -12
- package/dist/actions/providers/google-oauth/deleteRowFromSpreadsheet.js +3 -12
- package/dist/actions/providers/google-oauth/editAGoogleCalendarEvent.js +4 -14
- package/dist/actions/providers/google-oauth/getDriveFileContentById.js +23 -33
- package/dist/actions/providers/google-oauth/getGroup.js +3 -12
- package/dist/actions/providers/google-oauth/getPresentation.js +23 -37
- package/dist/actions/providers/google-oauth/hasGroupMember.js +3 -12
- package/dist/actions/providers/google-oauth/listCalendarEvents.js +27 -21
- package/dist/actions/providers/google-oauth/listCalendars.js +4 -14
- package/dist/actions/providers/google-oauth/listGroupMembers.js +4 -13
- package/dist/actions/providers/google-oauth/listGroups.js +4 -14
- package/dist/actions/providers/google-oauth/queryGoogleBigQuery.js +10 -21
- package/dist/actions/providers/google-oauth/scheduleCalendarMeeting.js +11 -14
- package/dist/actions/providers/google-oauth/searchDriveByKeywords.js +3 -12
- package/dist/actions/providers/google-oauth/searchDriveByKeywordsAndGetFileContent.js +12 -23
- package/dist/actions/providers/google-oauth/searchDriveByQuery.js +30 -42
- package/dist/actions/providers/google-oauth/searchDriveByQueryAndGetFileContent.js +9 -20
- package/dist/actions/providers/google-oauth/updateCalendarEvent.js +3 -12
- package/dist/actions/providers/google-oauth/updateDoc.js +3 -12
- package/dist/actions/providers/google-oauth/updatePresentation.js +3 -12
- package/dist/actions/providers/google-oauth/updateRowsInSpreadsheet.js +4 -13
- package/dist/actions/providers/google-oauth/updateSpreadsheet.js +3 -12
- package/dist/actions/providers/google-oauth/utils/decodeMessage.js +7 -8
- package/dist/actions/providers/googleSearch/customSearch.js +18 -36
- package/dist/actions/providers/googlemail/listGmailThreads.js +7 -16
- package/dist/actions/providers/googlemail/searchGmailMessages.js +10 -20
- package/dist/actions/providers/googlemail/sendGmail.js +7 -17
- package/dist/actions/providers/googlemaps/nearbysearchRestaurants.js +13 -25
- package/dist/actions/providers/googlemaps/validateAddress.js +3 -12
- package/dist/actions/providers/hubspot/getCompanies.js +4 -14
- package/dist/actions/providers/hubspot/getCompanyDetails.js +3 -12
- package/dist/actions/providers/hubspot/getContactDetails.js +3 -12
- package/dist/actions/providers/hubspot/getContacts.js +4 -14
- package/dist/actions/providers/hubspot/getDealDetails.js +3 -12
- package/dist/actions/providers/hubspot/getDeals.js +3 -12
- package/dist/actions/providers/hubspot/getTicketDetails.js +3 -12
- package/dist/actions/providers/hubspot/getTickets.js +3 -12
- package/dist/actions/providers/jira/assignJiraTicket.js +4 -13
- package/dist/actions/providers/jira/commentJiraTicket.js +3 -12
- package/dist/actions/providers/jira/createJiraTicket.js +22 -18
- package/dist/actions/providers/jira/createServiceDeskRequest.js +3 -12
- package/dist/actions/providers/jira/getJiraDCIssuesByQuery.js +5 -14
- package/dist/actions/providers/jira/getJiraIssuesByQuery.js +19 -29
- package/dist/actions/providers/jira/getJiraTicketDetails.js +3 -12
- package/dist/actions/providers/jira/getJiraTicketHistory.js +3 -12
- package/dist/actions/providers/jira/moveJiraTicketToProject.js +11 -21
- package/dist/actions/providers/jira/publicCommentOnServiceDeskRequest.js +3 -12
- package/dist/actions/providers/jira/updateJiraTicketDetails.js +15 -15
- package/dist/actions/providers/jira/updateJiraTicketStatus.js +4 -13
- package/dist/actions/providers/jira/utils.js +104 -126
- package/dist/actions/providers/linear/getIssueDetails.js +10 -20
- package/dist/actions/providers/linear/getIssues.js +11 -21
- package/dist/actions/providers/linear/getProjectDetails.js +10 -20
- package/dist/actions/providers/linear/getProjects.js +6 -16
- package/dist/actions/providers/linear/getTeamDetails.js +7 -17
- package/dist/actions/providers/linear/getTeams.js +5 -15
- package/dist/actions/providers/looker/enableUserByEmail.js +5 -14
- package/dist/actions/providers/math/add.js +2 -11
- package/dist/actions/providers/microsoft/createDocument.js +4 -13
- package/dist/actions/providers/microsoft/getDocument.js +4 -13
- package/dist/actions/providers/microsoft/messageTeamsChannel.js +4 -13
- package/dist/actions/providers/microsoft/messageTeamsChat.js +4 -13
- package/dist/actions/providers/microsoft/updateDocument.js +4 -13
- package/dist/actions/providers/microsoft/updateSpreadsheet.js +4 -13
- package/dist/actions/providers/microsoft/utils.js +9 -20
- package/dist/actions/providers/mongodb/insertMongoDoc.js +5 -14
- package/dist/actions/providers/notion/searchByTitle.js +3 -12
- package/dist/actions/providers/nws/getForecastForLocation.js +4 -13
- package/dist/actions/providers/oktaOrg/getOktaUserByName.js +3 -12
- package/dist/actions/providers/openstreetmap/getLatitudeLongitudeFromLocation.js +3 -12
- package/dist/actions/providers/perplexity/perplexityDeepResearch.js +11 -21
- package/dist/actions/providers/resend/sendEmail.js +3 -12
- package/dist/actions/providers/resend/sendEmailHtml.js +3 -12
- package/dist/actions/providers/salesforce/createCase.js +10 -13
- package/dist/actions/providers/salesforce/createRecord.js +3 -12
- package/dist/actions/providers/salesforce/executeReport.js +3 -12
- package/dist/actions/providers/salesforce/generateSalesReport.js +3 -12
- package/dist/actions/providers/salesforce/getRecord.js +3 -12
- package/dist/actions/providers/salesforce/getReportMetadata.js +11 -21
- package/dist/actions/providers/salesforce/getSalesforceRecordsByQuery.js +7 -17
- package/dist/actions/providers/salesforce/listReports.js +3 -12
- package/dist/actions/providers/salesforce/searchAllSalesforceRecords.js +3 -12
- package/dist/actions/providers/salesforce/searchSalesforceRecords.js +3 -12
- package/dist/actions/providers/salesforce/updateRecord.js +3 -12
- package/dist/actions/providers/slack/archiveChannel.js +9 -2
- package/dist/actions/providers/slack/createChannel.js +7 -17
- package/dist/actions/providers/slack/getChannelMembers.js +8 -18
- package/dist/actions/providers/slack/getChannelMessages.js +8 -18
- package/dist/actions/providers/slack/helpers.js +16 -47
- package/dist/actions/providers/slack/messageTransformers.js +10 -13
- package/dist/actions/providers/slack/sendDmFromBot.js +9 -19
- package/dist/actions/providers/slack/sendMessage.js +7 -17
- package/dist/actions/providers/slackUser/searchSlack.js +179 -212
- package/dist/actions/providers/slackUser/searchSlackRTS.js +20 -33
- package/dist/actions/providers/slackUser/utils.js +1 -1
- package/dist/actions/providers/snowflake/auth/getSnowflakeConnection.js +23 -34
- package/dist/actions/providers/snowflake/getRowByFieldValue.js +4 -13
- package/dist/actions/providers/snowflake/runSnowflakeQuery.js +9 -19
- package/dist/actions/providers/zendesk/addCommentToTicket.js +5 -14
- package/dist/actions/providers/zendesk/assignTicket.js +3 -12
- package/dist/actions/providers/zendesk/createZendeskTicket.js +3 -12
- package/dist/actions/providers/zendesk/getTicketDetails.js +3 -12
- package/dist/actions/providers/zendesk/listTickets.js +3 -12
- package/dist/actions/providers/zendesk/searchZendeskByQuery.js +3 -12
- package/dist/actions/providers/zendesk/updateTicketStatus.js +3 -12
- package/dist/actions/util/axiosClient.js +5 -5
- package/dist/app.js +14 -25
- package/dist/utils/google.js +122 -143
- package/dist/utils/pdf.js +10 -21
- package/package.json +10 -9
- package/dist/actions/providers/credal/callCopilot.d.ts +0 -3
- package/dist/actions/providers/credal/callCopilot.js +0 -36
- package/dist/actions/providers/math/index.d.ts +0 -1
- package/dist/actions/providers/math/index.js +0 -37
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +0 -3
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.js +0 -43
- package/dist/actions/providers/slack/index.d.ts +0 -1
- package/dist/actions/providers/slack/index.js +0 -37
- package/dist/actions/providers/slack/listConversations.d.ts +0 -3
- package/dist/actions/providers/slack/listConversations.js +0 -41
|
@@ -1691,8 +1691,8 @@ export const jiraGetJiraTicketHistoryDefinition = {
|
|
|
1691
1691
|
provider: "jira",
|
|
1692
1692
|
};
|
|
1693
1693
|
export const jiraMoveJiraTicketToProjectDefinition = {
|
|
1694
|
-
displayName: "
|
|
1695
|
-
description: "Moves a Jira ticket from one project to another, optionally updating the issue type. Note: This action only works with Jira Cloud, not Jira Data Center.",
|
|
1694
|
+
displayName: "Move Jira ticket to another project",
|
|
1695
|
+
description: "Moves a single Jira ticket from one project to another, optionally updating the issue type. Note: This action only works with Jira Cloud, not Jira Data Center.",
|
|
1696
1696
|
scopes: ["write:jira-work", "read:jira-work"],
|
|
1697
1697
|
tags: [],
|
|
1698
1698
|
parameters: {
|
|
@@ -2402,8 +2402,8 @@ export const jiraOrgGetJiraTicketHistoryDefinition = {
|
|
|
2402
2402
|
provider: "jiraOrg",
|
|
2403
2403
|
};
|
|
2404
2404
|
export const jiraOrgMoveJiraTicketToProjectDefinition = {
|
|
2405
|
-
displayName: "
|
|
2406
|
-
description: "Moves a Jira ticket from one project to another, optionally updating the issue type. Note: This action only works with Jira Cloud, not Jira Data Center.",
|
|
2405
|
+
displayName: "Move Jira ticket to another project",
|
|
2406
|
+
description: "Moves a single Jira ticket from one project to another, optionally updating the issue type. Note: This action only works with Jira Cloud, not Jira Data Center.",
|
|
2407
2407
|
scopes: ["write:jira-work", "read:jira-work"],
|
|
2408
2408
|
tags: [],
|
|
2409
2409
|
parameters: {
|
|
@@ -3113,8 +3113,8 @@ export const jiraDataCenterGetJiraTicketHistoryDefinition = {
|
|
|
3113
3113
|
provider: "jiraDataCenter",
|
|
3114
3114
|
};
|
|
3115
3115
|
export const jiraDataCenterMoveJiraTicketToProjectDefinition = {
|
|
3116
|
-
displayName: "
|
|
3117
|
-
description: "Moves a Jira ticket from one project to another, optionally updating the issue type. Note: This action only works with Jira Cloud, not Jira Data Center.",
|
|
3116
|
+
displayName: "Move Jira ticket to another project",
|
|
3117
|
+
description: "Moves a single Jira ticket from one project to another, optionally updating the issue type. Note: This action only works with Jira Cloud, not Jira Data Center.",
|
|
3118
3118
|
scopes: ["write:jira-work", "read:jira-work"],
|
|
3119
3119
|
tags: [],
|
|
3120
3120
|
parameters: {
|
|
@@ -8644,7 +8644,7 @@ export const googleOauthSearchDriveByKeywordsDefinition = {
|
|
|
8644
8644
|
},
|
|
8645
8645
|
includeTrashed: {
|
|
8646
8646
|
type: "boolean",
|
|
8647
|
-
description: "Whether to include trashed files in the search results",
|
|
8647
|
+
description: "Whether to include trashed files in the search results. Usually false unless otherwise noted by the user.",
|
|
8648
8648
|
},
|
|
8649
8649
|
},
|
|
8650
8650
|
},
|
|
@@ -8710,7 +8710,7 @@ export const googleOauthSearchDriveByQueryDefinition = {
|
|
|
8710
8710
|
},
|
|
8711
8711
|
searchDriveByDrive: {
|
|
8712
8712
|
type: "boolean",
|
|
8713
|
-
description: "Whether we should search drive by drive or run a general search",
|
|
8713
|
+
description: "Whether we should search drive by drive or run a general search. Usually false unless otherwise noted by the user.",
|
|
8714
8714
|
},
|
|
8715
8715
|
orderByQuery: {
|
|
8716
8716
|
type: "string",
|
|
@@ -8718,7 +8718,7 @@ export const googleOauthSearchDriveByQueryDefinition = {
|
|
|
8718
8718
|
},
|
|
8719
8719
|
includeTrashed: {
|
|
8720
8720
|
type: "boolean",
|
|
8721
|
-
description: "Whether to include trashed files in the search results",
|
|
8721
|
+
description: "Whether to include trashed files in the search results. Usually false unless otherwise noted by the user.",
|
|
8722
8722
|
},
|
|
8723
8723
|
},
|
|
8724
8724
|
},
|
|
@@ -8788,7 +8788,7 @@ export const googleOauthSearchDriveByKeywordsAndGetFileContentDefinition = {
|
|
|
8788
8788
|
},
|
|
8789
8789
|
searchDriveByDrive: {
|
|
8790
8790
|
type: "boolean",
|
|
8791
|
-
description: "Search drive by drive or run a general search",
|
|
8791
|
+
description: "Search drive by drive or run a general search. Usually false unless otherwise noted by the user.",
|
|
8792
8792
|
},
|
|
8793
8793
|
orderByQuery: {
|
|
8794
8794
|
type: "string",
|
|
@@ -8796,8 +8796,7 @@ export const googleOauthSearchDriveByKeywordsAndGetFileContentDefinition = {
|
|
|
8796
8796
|
},
|
|
8797
8797
|
includeTrashed: {
|
|
8798
8798
|
type: "boolean",
|
|
8799
|
-
description: "Whether to include trashed files in the search results",
|
|
8800
|
-
tags: ["recommend-predefined"],
|
|
8799
|
+
description: "Whether to include trashed files in the search results. Usually false unless otherwise noted by the user.",
|
|
8801
8800
|
},
|
|
8802
8801
|
},
|
|
8803
8802
|
},
|
|
@@ -8886,8 +8885,7 @@ export const googleOauthSearchDriveByQueryAndGetFileContentDefinition = {
|
|
|
8886
8885
|
},
|
|
8887
8886
|
searchDriveByDrive: {
|
|
8888
8887
|
type: "boolean",
|
|
8889
|
-
description: "Search drive by drive or run a general search",
|
|
8890
|
-
tags: ["recommend-predefined"],
|
|
8888
|
+
description: "Search drive by drive or run a general search. Usually false unless otherwise noted by the user.",
|
|
8891
8889
|
},
|
|
8892
8890
|
orderByQuery: {
|
|
8893
8891
|
type: "string",
|
|
@@ -8895,8 +8893,7 @@ export const googleOauthSearchDriveByQueryAndGetFileContentDefinition = {
|
|
|
8895
8893
|
},
|
|
8896
8894
|
includeTrashed: {
|
|
8897
8895
|
type: "boolean",
|
|
8898
|
-
description: "Whether to include trashed files in the search results",
|
|
8899
|
-
tags: ["recommend-predefined"],
|
|
8896
|
+
description: "Whether to include trashed files in the search results. Usually false unless otherwise noted by the user.",
|
|
8900
8897
|
},
|
|
8901
8898
|
},
|
|
8902
8899
|
},
|
|
@@ -10240,8 +10237,7 @@ export const salesforceSearchAllSalesforceRecordsDefinition = {
|
|
|
10240
10237
|
},
|
|
10241
10238
|
usesLightningKnowledge: {
|
|
10242
10239
|
type: "boolean",
|
|
10243
|
-
description: 'Whether your Salesforce instance uses lightning knowledge articles ("true" or "false")',
|
|
10244
|
-
tags: ["recommend-predefined"],
|
|
10240
|
+
description: 'Whether your Salesforce instance uses lightning knowledge articles ("true" or "false"). Ask the user if unsure.',
|
|
10245
10241
|
},
|
|
10246
10242
|
limit: {
|
|
10247
10243
|
type: "number",
|
|
@@ -3269,7 +3269,10 @@ export const googleOauthGetPresentationOutputSchema = z.object({
|
|
|
3269
3269
|
export const googleOauthSearchDriveByKeywordsParamsSchema = z.object({
|
|
3270
3270
|
keywords: z.array(z.string()).describe("List of keywords to search for in file contents."),
|
|
3271
3271
|
limit: z.number().describe("The maximum number of files to return").optional(),
|
|
3272
|
-
includeTrashed: z
|
|
3272
|
+
includeTrashed: z
|
|
3273
|
+
.boolean()
|
|
3274
|
+
.describe("Whether to include trashed files in the search results. Usually false unless otherwise noted by the user.")
|
|
3275
|
+
.optional(),
|
|
3273
3276
|
});
|
|
3274
3277
|
export const googleOauthSearchDriveByKeywordsOutputSchema = z.object({
|
|
3275
3278
|
success: z.boolean().describe("Whether the search was successful"),
|
|
@@ -3287,12 +3290,17 @@ export const googleOauthSearchDriveByKeywordsOutputSchema = z.object({
|
|
|
3287
3290
|
export const googleOauthSearchDriveByQueryParamsSchema = z.object({
|
|
3288
3291
|
query: z.string().describe("The query to search for in file contents."),
|
|
3289
3292
|
limit: z.number().describe("The maximum number of files to return").optional(),
|
|
3290
|
-
searchDriveByDrive: z
|
|
3293
|
+
searchDriveByDrive: z
|
|
3294
|
+
.boolean()
|
|
3295
|
+
.describe("Whether we should search drive by drive or run a general search. Usually false unless otherwise noted by the user."),
|
|
3291
3296
|
orderByQuery: z
|
|
3292
3297
|
.string()
|
|
3293
3298
|
.describe("The orderBy query for sorting results (e.g., 'modifiedTime desc', 'name', 'createdTime desc'). Defaults to 'modifiedTime desc'")
|
|
3294
3299
|
.optional(),
|
|
3295
|
-
includeTrashed: z
|
|
3300
|
+
includeTrashed: z
|
|
3301
|
+
.boolean()
|
|
3302
|
+
.describe("Whether to include trashed files in the search results. Usually false unless otherwise noted by the user.")
|
|
3303
|
+
.optional(),
|
|
3296
3304
|
});
|
|
3297
3305
|
export const googleOauthSearchDriveByQueryOutputSchema = z.object({
|
|
3298
3306
|
success: z.boolean().describe("Whether the search was successful"),
|
|
@@ -3311,12 +3319,17 @@ export const googleOauthSearchDriveByKeywordsAndGetFileContentParamsSchema = z.o
|
|
|
3311
3319
|
searchQuery: z.string().describe("The query input to Google Drive search"),
|
|
3312
3320
|
limit: z.number().describe("The maximum number of files to return").optional(),
|
|
3313
3321
|
fileSizeLimit: z.number().describe("The maximum length of a file in characters").optional(),
|
|
3314
|
-
searchDriveByDrive: z
|
|
3322
|
+
searchDriveByDrive: z
|
|
3323
|
+
.boolean()
|
|
3324
|
+
.describe("Search drive by drive or run a general search. Usually false unless otherwise noted by the user."),
|
|
3315
3325
|
orderByQuery: z
|
|
3316
3326
|
.string()
|
|
3317
3327
|
.describe("The orderBy query for sorting results (e.g., 'modifiedTime desc', 'name', 'createdTime desc'). Defaults to 'modifiedTime desc'")
|
|
3318
3328
|
.optional(),
|
|
3319
|
-
includeTrashed: z
|
|
3329
|
+
includeTrashed: z
|
|
3330
|
+
.boolean()
|
|
3331
|
+
.describe("Whether to include trashed files in the search results. Usually false unless otherwise noted by the user.")
|
|
3332
|
+
.optional(),
|
|
3320
3333
|
});
|
|
3321
3334
|
export const googleOauthSearchDriveByKeywordsAndGetFileContentOutputSchema = z.object({
|
|
3322
3335
|
success: z.boolean().describe("Whether the search was successful"),
|
|
@@ -3342,12 +3355,17 @@ export const googleOauthSearchDriveByQueryAndGetFileContentParamsSchema = z.obje
|
|
|
3342
3355
|
query: z.string().describe("Google Drive API search syntax, eg \"fullText contains 'Valentine\\'s Day'\""),
|
|
3343
3356
|
limit: z.number().describe("The maximum number of files to return").optional(),
|
|
3344
3357
|
fileSizeLimit: z.number().describe("The maximum length of a file in characters").optional(),
|
|
3345
|
-
searchDriveByDrive: z
|
|
3358
|
+
searchDriveByDrive: z
|
|
3359
|
+
.boolean()
|
|
3360
|
+
.describe("Search drive by drive or run a general search. Usually false unless otherwise noted by the user."),
|
|
3346
3361
|
orderByQuery: z
|
|
3347
3362
|
.string()
|
|
3348
3363
|
.describe("The orderBy query for sorting results (e.g., 'modifiedTime desc', 'name', 'createdTime desc'). Defaults to 'modifiedTime desc'")
|
|
3349
3364
|
.optional(),
|
|
3350
|
-
includeTrashed: z
|
|
3365
|
+
includeTrashed: z
|
|
3366
|
+
.boolean()
|
|
3367
|
+
.describe("Whether to include trashed files in the search results. Usually false unless otherwise noted by the user.")
|
|
3368
|
+
.optional(),
|
|
3351
3369
|
});
|
|
3352
3370
|
export const googleOauthSearchDriveByQueryAndGetFileContentOutputSchema = z.object({
|
|
3353
3371
|
success: z.boolean().describe("Whether the search was successful"),
|
|
@@ -3742,7 +3760,7 @@ export const salesforceSearchAllSalesforceRecordsParamsSchema = z.object({
|
|
|
3742
3760
|
keyword: z.string().describe("The keyword to search for"),
|
|
3743
3761
|
usesLightningKnowledge: z
|
|
3744
3762
|
.boolean()
|
|
3745
|
-
.describe('Whether your Salesforce instance uses lightning knowledge articles ("true" or "false")')
|
|
3763
|
+
.describe('Whether your Salesforce instance uses lightning knowledge articles ("true" or "false"). Ask the user if unsure.')
|
|
3746
3764
|
.optional(),
|
|
3747
3765
|
limit: z.number().describe("The maximum number of records to return").optional(),
|
|
3748
3766
|
maxLimit: z.number().describe("The absolute maximum limit for records that can be returned").optional(),
|
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, } 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",
|
|
@@ -47,6 +47,7 @@ export const ACTION_GROUPS = {
|
|
|
47
47
|
googleOauthUpdatePresentationDefinition,
|
|
48
48
|
googleOauthSearchDriveByKeywordsDefinition,
|
|
49
49
|
googleOauthSearchDriveByQueryDefinition,
|
|
50
|
+
googleOauthSearchDriveByQueryAndGetFileContentDefinition,
|
|
50
51
|
googleOauthGetDriveFileContentByIdDefinition,
|
|
51
52
|
],
|
|
52
53
|
},
|
|
@@ -198,6 +199,8 @@ export const ACTION_GROUPS = {
|
|
|
198
199
|
githubCreateBranchDefinition,
|
|
199
200
|
githubCreatePullRequestDefinition,
|
|
200
201
|
githubListPullRequestsDefinition,
|
|
202
|
+
githubGetFileContentDefinition,
|
|
203
|
+
githubListDirectoryDefinition,
|
|
201
204
|
],
|
|
202
205
|
},
|
|
203
206
|
ASHBY: {
|
package/dist/actions/invoke.js
CHANGED
|
@@ -1,27 +1,16 @@
|
|
|
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
1
|
import { ActionMapper } from "./actionMapper.js";
|
|
11
2
|
import { ProviderName } from "./autogen/types.js";
|
|
12
|
-
export function invokeAction(input) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return providerFunction({ params: parameters, authParams: Object.assign(Object.assign({}, authParams), { provider }) });
|
|
24
|
-
});
|
|
3
|
+
export async function invokeAction(input) {
|
|
4
|
+
const { provider, name, parameters, authParams } = input;
|
|
5
|
+
if (!isProviderName(provider)) {
|
|
6
|
+
throw new Error(`Provider '${provider}' not found`);
|
|
7
|
+
}
|
|
8
|
+
const providerFunction = ActionMapper[provider][name].fn;
|
|
9
|
+
const safeParseParams = ActionMapper[provider][name].paramsSchema.safeParse(parameters);
|
|
10
|
+
if (!safeParseParams.success) {
|
|
11
|
+
throw new Error(`Invalid parameters for action '${name}': ${safeParseParams.error}`);
|
|
12
|
+
}
|
|
13
|
+
return providerFunction({ params: parameters, authParams: { ...authParams, provider } });
|
|
25
14
|
}
|
|
26
15
|
function isProviderName(value) {
|
|
27
16
|
return Object.values(ProviderName).includes(value);
|