@credal/actions 0.2.177 → 0.2.181
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/README.md +29 -0
- package/dist/actions/actionMapper.js +9 -9
- package/dist/actions/autogen/definitions.d.ts +5 -0
- package/dist/actions/autogen/definitions.js +132 -0
- package/dist/actions/autogen/templates.d.ts +1 -3
- package/dist/actions/autogen/templates.js +140 -330
- package/dist/actions/autogen/types.d.ts +100 -341
- package/dist/actions/autogen/types.js +88 -134
- package/dist/actions/definitions.js +35 -0
- package/dist/actions/invokeMapper.d.ts +9 -0
- package/dist/actions/invokeMapper.js +33 -0
- package/dist/actions/providers/confluence/updatePage.js +9 -13
- package/dist/actions/providers/google-oauth/appendRowsToSpreadsheet.d.ts +7 -0
- package/dist/actions/providers/google-oauth/appendRowsToSpreadsheet.js +61 -0
- package/dist/actions/providers/google-oauth/getSheetValue.d.ts +3 -0
- package/dist/actions/providers/google-oauth/getSheetValue.js +50 -0
- package/dist/actions/providers/google-oauth/getSheetValues.d.ts +3 -0
- package/dist/actions/providers/google-oauth/getSheetValues.js +50 -0
- package/dist/actions/providers/google-oauth/listCalendarEvents.js +7 -20
- package/dist/actions/providers/google-oauth/listGmailThreads.d.ts +3 -0
- package/dist/actions/providers/google-oauth/listGmailThreads.js +98 -0
- package/dist/actions/providers/google-oauth/searchGmailMessages.d.ts +3 -0
- package/dist/actions/providers/google-oauth/searchGmailMessages.js +91 -0
- package/dist/actions/providers/googlemaps/nearbysearch.d.ts +3 -0
- package/dist/actions/providers/googlemaps/nearbysearch.js +96 -0
- package/dist/actions/providers/jira/createTicket.d.ts +3 -0
- package/dist/actions/providers/jira/createTicket.js +34 -0
- package/dist/actions/providers/salesforce/createRecord.js +2 -2
- package/dist/actions/providers/salesforce/getRecord.js +2 -2
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +3 -0
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.js +43 -0
- package/dist/actions/providers/salesforce/updateRecord.js +2 -2
- package/dist/actions/providers/slack/listConversations.d.ts +1 -1
- package/dist/actions/providers/slack/list_conversations.d.ts +3 -0
- package/dist/actions/providers/slack/list_conversations.js +60 -0
- package/dist/actions/providers/slack/summarizeChannel.d.ts +3 -0
- package/dist/actions/providers/slack/summarizeChannel.js +51 -0
- package/dist/actions/schema.js +6 -0
- package/dist/actions/types.js +2 -0
- package/dist/main.js +11 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,6 +16,35 @@ We strongly encourage you to develop actions that rely on oauth based credential
|
|
|
16
16
|
6. In `package.json` and `package-lock.json` (which must be updated in two places), bump the version number.
|
|
17
17
|
7. Run `npm publish --access public` to publish the new version to npm. (Need to be logged in via `npm login`)
|
|
18
18
|
|
|
19
|
+
|
|
20
|
+
## Writing good action parameter descriptions
|
|
21
|
+
|
|
22
|
+
When adding new actions to the SDK, follow these guidelines to ensure agents can use them effectively:
|
|
23
|
+
|
|
24
|
+
### 1. Write Parameter Descriptions from the Agent's Perspective
|
|
25
|
+
|
|
26
|
+
Parameter descriptions should be specific and unambiguous for an LLM agent that will be reading them to understand how to call the action.
|
|
27
|
+
|
|
28
|
+
- **Avoid pronouns like "it"** — explicitly name the entity (e.g., "the ticket", "the project", "the message")
|
|
29
|
+
- **Be specific about ownership/relationships** — say "the owner's username" instead of just "owner"
|
|
30
|
+
- **Include context about what the action does** — e.g., clarify that `sendDmFromBot` sends a message *on behalf of the Credal bot*
|
|
31
|
+
|
|
32
|
+
### 2. Specify Formatting Requirements for Content Inputs
|
|
33
|
+
|
|
34
|
+
For parameters that accept blob/rich content, explicitly state the expected format:
|
|
35
|
+
- "HTML-formatted content"
|
|
36
|
+
- "Markdown-formatted text"
|
|
37
|
+
- "Plain text only"
|
|
38
|
+
|
|
39
|
+
### 3. Use Consistent Parameter Names Within a Provider
|
|
40
|
+
|
|
41
|
+
For any given provider, use the exact same parameter name across all actions that reference the same concept. For example, if one action uses `projectId`, all other actions for that provider should also use `projectId` (not `project_id` or `projectID`). This enables our frontend to dedupe parameters when setting recommend-preset params.
|
|
42
|
+
|
|
43
|
+
### 4. Indicate When Parameters Must Be User-Provided
|
|
44
|
+
|
|
45
|
+
If a parameter value should come from the user rather than being inferred (e.g., sheet name in Google Sheets, channel name in Slack), say so explicitly in the description. Otherwise the LLM may hallucinate default values like `Sheet1`.
|
|
46
|
+
|
|
47
|
+
|
|
19
48
|
## Usage
|
|
20
49
|
|
|
21
50
|
Invoking an action:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { genericFillTemplateParamsSchema, genericFillTemplateOutputSchema, confluenceOverwritePageParamsSchema, confluenceOverwritePageOutputSchema, googlemapsValidateAddressOutputSchema, googlemapsValidateAddressParamsSchema, googleOauthCreateNewGoogleDocParamsSchema, googleOauthCreateNewGoogleDocOutputSchema, mathAddOutputSchema, mathAddParamsSchema, mongoInsertMongoDocOutputSchema, mongoInsertMongoDocParamsSchema, slackSendMessageOutputSchema, slackSendMessageParamsSchema, slackGetChannelMessagesOutputSchema, slackGetChannelMessagesParamsSchema, slackCreateChannelParamsSchema, slackCreateChannelOutputSchema, snowflakeGetRowByFieldValueOutputSchema, snowflakeGetRowByFieldValueParamsSchema, zendeskCreateZendeskTicketOutputSchema, zendeskCreateZendeskTicketParamsSchema, zendeskGetTicketDetailsOutputSchema, zendeskGetTicketDetailsParamsSchema, zendeskUpdateTicketStatusOutputSchema, zendeskUpdateTicketStatusParamsSchema, zendeskAddCommentToTicketOutputSchema, zendeskAddCommentToTicketParamsSchema, zendeskAssignTicketOutputSchema, zendeskAssignTicketParamsSchema, zendeskListZendeskTicketsOutputSchema, zendeskListZendeskTicketsParamsSchema, zendeskSearchZendeskByQueryOutputSchema, zendeskSearchZendeskByQueryParamsSchema, jiraAssignJiraTicketParamsSchema, jiraAssignJiraTicketOutputSchema, jiraCommentJiraTicketParamsSchema, jiraCommentJiraTicketOutputSchema, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema,
|
|
1
|
+
import { genericFillTemplateParamsSchema, genericFillTemplateOutputSchema, confluenceOverwritePageParamsSchema, confluenceOverwritePageOutputSchema, googlemapsValidateAddressOutputSchema, googlemapsValidateAddressParamsSchema, googleOauthCreateNewGoogleDocParamsSchema, googleOauthCreateNewGoogleDocOutputSchema, mathAddOutputSchema, mathAddParamsSchema, mongoInsertMongoDocOutputSchema, mongoInsertMongoDocParamsSchema, slackSendMessageOutputSchema, slackSendMessageParamsSchema, slackGetChannelMessagesOutputSchema, slackGetChannelMessagesParamsSchema, slackCreateChannelParamsSchema, slackCreateChannelOutputSchema, snowflakeGetRowByFieldValueOutputSchema, snowflakeGetRowByFieldValueParamsSchema, zendeskCreateZendeskTicketOutputSchema, zendeskCreateZendeskTicketParamsSchema, zendeskGetTicketDetailsOutputSchema, zendeskGetTicketDetailsParamsSchema, zendeskUpdateTicketStatusOutputSchema, zendeskUpdateTicketStatusParamsSchema, zendeskAddCommentToTicketOutputSchema, zendeskAddCommentToTicketParamsSchema, zendeskAssignTicketOutputSchema, zendeskAssignTicketParamsSchema, zendeskListZendeskTicketsOutputSchema, zendeskListZendeskTicketsParamsSchema, zendeskSearchZendeskByQueryOutputSchema, zendeskSearchZendeskByQueryParamsSchema, jiraAssignJiraTicketParamsSchema, jiraAssignJiraTicketOutputSchema, jiraCommentJiraTicketParamsSchema, jiraCommentJiraTicketOutputSchema, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema, jiraCreateServiceDeskRequestParamsSchema, jiraCreateServiceDeskRequestOutputSchema, openstreetmapGetLatitudeLongitudeFromLocationParamsSchema, openstreetmapGetLatitudeLongitudeFromLocationOutputSchema, nwsGetForecastForLocationParamsSchema, nwsGetForecastForLocationOutputSchema, googlemapsNearbysearchRestaurantsOutputSchema, googlemapsNearbysearchRestaurantsParamsSchema, firecrawlScrapeUrlOutputSchema, firecrawlScrapeUrlParamsSchema, resendSendEmailOutputSchema, resendSendEmailHtmlParamsSchema, resendSendEmailHtmlOutputSchema, firecrawlScrapeTweetDataWithNitterParamsSchema, firecrawlScrapeTweetDataWithNitterOutputSchema, resendSendEmailParamsSchema, linkedinCreateShareLinkedinPostUrlParamsSchema, linkedinCreateShareLinkedinPostUrlOutputSchema, xCreateShareXPostUrlParamsSchema, xCreateShareXPostUrlOutputSchema, finnhubSymbolLookupParamsSchema, finnhubSymbolLookupOutputSchema, finnhubGetBasicFinancialsParamsSchema, finnhubGetBasicFinancialsOutputSchema, confluenceFetchPageContentParamsSchema, confluenceFetchPageContentOutputSchema, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, googleOauthUpdateSpreadsheetParamsSchema, googleOauthUpdateSpreadsheetOutputSchema, googleOauthAppendRowsToSpreadsheetParamsSchema, googleOauthAppendRowsToSpreadsheetOutputSchema, googleOauthScheduleCalendarMeetingParamsSchema, googleOauthScheduleCalendarMeetingOutputSchema, googleOauthListCalendarsParamsSchema, googleOauthListCalendarsOutputSchema, googleOauthListCalendarEventsParamsSchema, googleOauthListCalendarEventsOutputSchema, googleOauthUpdateCalendarEventParamsSchema, googleOauthUpdateCalendarEventOutputSchema, googleOauthDeleteCalendarEventParamsSchema, googleOauthDeleteCalendarEventOutputSchema, googleOauthEditAGoogleCalendarEventParamsSchema, googleOauthEditAGoogleCalendarEventOutputSchema, googleOauthCreatePresentationParamsSchema, googleOauthCreatePresentationOutputSchema, googleOauthUpdatePresentationParamsSchema, googleOauthUpdatePresentationOutputSchema, googleOauthGetPresentationParamsSchema, googleOauthGetPresentationOutputSchema, googleOauthSearchDriveByKeywordsParamsSchema, googleOauthSearchDriveByKeywordsOutputSchema, googleOauthListGroupsOutputSchema, googleOauthListGroupsParamsSchema, googleOauthGetGroupOutputSchema, googleOauthGetGroupParamsSchema, googleOauthListGroupMembersOutputSchema, googleOauthListGroupMembersParamsSchema, googleOauthHasGroupMemberOutputSchema, googleOauthHasGroupMemberParamsSchema, googleOauthAddGroupMemberOutputSchema, googleOauthAddGroupMemberParamsSchema, googleOauthDeleteGroupMemberOutputSchema, googleOauthDeleteGroupMemberParamsSchema, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, gitlabSearchGroupOutputSchema, gitlabSearchGroupParamsSchema, githubSearchOrganizationOutputSchema, githubSearchOrganizationParamsSchema, salesforceSearchSalesforceRecordsParamsSchema, salesforceSearchSalesforceRecordsOutputSchema, googleOauthGetDriveFileContentByIdOutputSchema, googleOauthGetDriveFileContentByIdParamsSchema, googleOauthSearchDriveByQueryOutputSchema, googleOauthSearchDriveByQueryParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentOutputSchema, googleOauthQueryGoogleBigQueryParamsSchema, googleOauthQueryGoogleBigQueryOutputSchema, githubGetFileContentParamsSchema, githubGetFileContentOutputSchema, githubListDirectoryOutputSchema, githubListDirectoryParamsSchema, githubGetBranchParamsSchema, githubGetBranchOutputSchema, githubListCommitsParamsSchema, githubListCommitsOutputSchema, githubGetPullRequestDetailsParamsSchema, githubGetPullRequestDetailsOutputSchema, linearGetIssuesParamsSchema, linearGetIssuesOutputSchema, linearGetIssueDetailsParamsSchema, linearGetIssueDetailsOutputSchema, linearGetProjectDetailsParamsSchema, linearGetProjectDetailsOutputSchema, linearGetTeamDetailsParamsSchema, linearGetTeamDetailsOutputSchema, linearGetProjectsParamsSchema, linearGetProjectsOutputSchema, linearGetTeamsParamsSchema, linearGetTeamsOutputSchema, hubspotGetContactsParamsSchema, hubspotGetContactsOutputSchema, hubspotGetContactDetailsParamsSchema, hubspotGetContactDetailsOutputSchema, hubspotGetCompaniesParamsSchema, hubspotGetCompaniesOutputSchema, hubspotGetCompanyDetailsParamsSchema, hubspotGetCompanyDetailsOutputSchema, hubspotGetDealsParamsSchema, hubspotGetDealsOutputSchema, hubspotGetDealDetailsParamsSchema, hubspotGetDealDetailsOutputSchema, hubspotGetTicketsParamsSchema, hubspotGetTicketsOutputSchema, hubspotGetTicketDetailsParamsSchema, hubspotGetTicketDetailsOutputSchema, gitlabGetFileContentParamsSchema, gitlabGetFileContentOutputSchema, gitlabGetMergeRequestParamsSchema, gitlabGetMergeRequestOutputSchema, jiraPublicCommentOnServiceDeskRequestParamsSchema, jiraPublicCommentOnServiceDeskRequestOutputSchema, googlemailSendGmailParamsSchema, googlemailSendGmailOutputSchema, gitlabListDirectoryParamsSchema, gitlabListDirectoryOutputSchema, firecrawlSearchAndScrapeOutputSchema, firecrawlSearchAndScrapeParamsSchema, firecrawlGetTopNSearchResultUrlsParamsSchema, firecrawlGetTopNSearchResultUrlsOutputSchema, googleOauthSearchDriveByKeywordsAndGetFileContentParamsSchema, googleOauthSearchDriveByKeywordsAndGetFileContentOutputSchema, perplexityPerplexityDeepResearchParamsSchema, perplexityPerplexityDeepResearchOutputSchema, slackUserSearchSlackParamsSchema, slackUserSearchSlackOutputSchema, oktaOrgGetOktaUserByNameParamsSchema, oktaOrgGetOktaUserByNameOutputSchema, googleSearchCustomSearchParamsSchema, googleSearchCustomSearchOutputSchema, salesforceSearchAllSalesforceRecordsParamsSchema, salesforceSearchAllSalesforceRecordsOutputSchema, slackSendDmFromBotParamsSchema, slackSendDmFromBotOutputSchema, slackGetChannelMembersParamsSchema, slackGetChannelMembersOutputSchema, } 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";
|
|
@@ -51,6 +51,7 @@ import deleteCalendarEvent from "./providers/google-oauth/deleteCalendarEvent.js
|
|
|
51
51
|
import editAGoogleCalendarEvent from "./providers/google-oauth/editAGoogleCalendarEvent.js";
|
|
52
52
|
import createSpreadsheet from "./providers/google-oauth/createSpreadsheet.js";
|
|
53
53
|
import updateSpreadsheet from "./providers/google-oauth/updateSpreadsheet.js";
|
|
54
|
+
import appendRowsToSpreadsheet from "./providers/google-oauth/appendRowsToSpreadsheet.js";
|
|
54
55
|
import createPresentation from "./providers/google-oauth/createPresentation.js";
|
|
55
56
|
import updatePresentation from "./providers/google-oauth/updatePresentation.js";
|
|
56
57
|
import getPresentation from "./providers/google-oauth/getPresentation.js";
|
|
@@ -88,7 +89,6 @@ import deleteGroupMember from "./providers/google-oauth/deleteGroupMember.js";
|
|
|
88
89
|
import createChannel from "./providers/slack/createChannel.js";
|
|
89
90
|
import searchGroup from "./providers/gitlab/searchGroup.js";
|
|
90
91
|
import searchOrganization from "./providers/github/searchOrganization.js";
|
|
91
|
-
import getServiceDesks from "./providers/jira/getServiceDesks.js";
|
|
92
92
|
import createServiceDeskRequest from "./providers/jira/createServiceDeskRequest.js";
|
|
93
93
|
import searchSalesforceRecords from "./providers/salesforce/searchSalesforceRecords.js";
|
|
94
94
|
import getDriveFileContentById from "./providers/google-oauth/getDriveFileContentById.js";
|
|
@@ -183,12 +183,6 @@ const jiraActions = {
|
|
|
183
183
|
outputSchema: jiraUpdateJiraTicketStatusOutputSchema,
|
|
184
184
|
actionType: "write",
|
|
185
185
|
},
|
|
186
|
-
getServiceDesks: {
|
|
187
|
-
fn: getServiceDesks,
|
|
188
|
-
paramsSchema: jiraGetServiceDesksParamsSchema,
|
|
189
|
-
outputSchema: jiraGetServiceDesksOutputSchema,
|
|
190
|
-
actionType: "read",
|
|
191
|
-
},
|
|
192
186
|
createServiceDeskRequest: {
|
|
193
187
|
fn: createServiceDeskRequest,
|
|
194
188
|
paramsSchema: jiraCreateServiceDeskRequestParamsSchema,
|
|
@@ -405,7 +399,7 @@ export const ActionMapper = {
|
|
|
405
399
|
jira: jiraActions,
|
|
406
400
|
jiraOrg: jiraActions,
|
|
407
401
|
jiraDataCenter: {
|
|
408
|
-
// Exclude Service Desk:
|
|
402
|
+
// Exclude Service Desk: createServiceDeskRequest, publicCommentOnServiceDeskRequest
|
|
409
403
|
getJiraIssuesByQuery: {
|
|
410
404
|
fn: getJiraDCIssuesByQuery,
|
|
411
405
|
paramsSchema: jiraGetJiraIssuesByQueryParamsSchema,
|
|
@@ -541,6 +535,12 @@ export const ActionMapper = {
|
|
|
541
535
|
outputSchema: googleOauthUpdateSpreadsheetOutputSchema,
|
|
542
536
|
actionType: "write",
|
|
543
537
|
},
|
|
538
|
+
appendRowsToSpreadsheet: {
|
|
539
|
+
fn: appendRowsToSpreadsheet,
|
|
540
|
+
paramsSchema: googleOauthAppendRowsToSpreadsheetParamsSchema,
|
|
541
|
+
outputSchema: googleOauthAppendRowsToSpreadsheetOutputSchema,
|
|
542
|
+
actionType: "write",
|
|
543
|
+
},
|
|
544
544
|
createPresentation: {
|
|
545
545
|
fn: createPresentation,
|
|
546
546
|
paramsSchema: googleOauthCreatePresentationParamsSchema,
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ActionTemplate } from "@/actions/parse";
|
|
2
|
+
export declare const slackSendMessageDefinition: ActionTemplate;
|
|
3
|
+
export declare const slackListConversationsDefinition: ActionTemplate;
|
|
4
|
+
export declare const mathAddDefinition: ActionTemplate;
|
|
5
|
+
export declare const confluenceUpdatePageDefinition: ActionTemplate;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.confluenceUpdatePageDefinition = exports.mathAddDefinition = exports.slackListConversationsDefinition = exports.slackSendMessageDefinition = void 0;
|
|
4
|
+
exports.slackSendMessageDefinition = {
|
|
5
|
+
provider: "slack",
|
|
6
|
+
name: "send_message",
|
|
7
|
+
description: "Sends a message to a Slack channel",
|
|
8
|
+
scopes: ["chat:write"],
|
|
9
|
+
parameters: {
|
|
10
|
+
channel: {
|
|
11
|
+
type: "string",
|
|
12
|
+
description: "The Slack channel to send the message to (e.g., \\#general, \\#alerts)",
|
|
13
|
+
required: true,
|
|
14
|
+
},
|
|
15
|
+
message: {
|
|
16
|
+
type: "string",
|
|
17
|
+
description: "The message content to send to Slack. Can include markdown formatting.",
|
|
18
|
+
required: true,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
output: {},
|
|
22
|
+
};
|
|
23
|
+
exports.slackListConversationsDefinition = {
|
|
24
|
+
provider: "slack",
|
|
25
|
+
name: "list_conversations",
|
|
26
|
+
description: "Lists all conversations in a Slack workspace",
|
|
27
|
+
scopes: ["channels:read", "groups:read", "im:read", "mpim:read"],
|
|
28
|
+
authToken: {
|
|
29
|
+
type: "string",
|
|
30
|
+
description: "The Slack access token to use",
|
|
31
|
+
required: true,
|
|
32
|
+
},
|
|
33
|
+
parameters: {},
|
|
34
|
+
output: {
|
|
35
|
+
channels: {
|
|
36
|
+
type: "array",
|
|
37
|
+
description: "A list of channels in Slack",
|
|
38
|
+
required: true,
|
|
39
|
+
items: {
|
|
40
|
+
type: "object",
|
|
41
|
+
description: "A channel in Slack",
|
|
42
|
+
required: true,
|
|
43
|
+
properties: {
|
|
44
|
+
id: {
|
|
45
|
+
type: "string",
|
|
46
|
+
description: "The ID of the channel",
|
|
47
|
+
required: true,
|
|
48
|
+
},
|
|
49
|
+
name: {
|
|
50
|
+
type: "string",
|
|
51
|
+
description: "The name of the channel",
|
|
52
|
+
required: true,
|
|
53
|
+
},
|
|
54
|
+
topic: {
|
|
55
|
+
type: "string",
|
|
56
|
+
description: "The topic of the channel",
|
|
57
|
+
required: true,
|
|
58
|
+
},
|
|
59
|
+
purpose: {
|
|
60
|
+
type: "string",
|
|
61
|
+
description: "The purpose of the channel",
|
|
62
|
+
required: true,
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
exports.mathAddDefinition = {
|
|
70
|
+
provider: "math",
|
|
71
|
+
name: "add",
|
|
72
|
+
description: "Adds two numbers together",
|
|
73
|
+
scopes: [],
|
|
74
|
+
parameters: {
|
|
75
|
+
a: {
|
|
76
|
+
type: "number",
|
|
77
|
+
description: "The first number to add",
|
|
78
|
+
required: true,
|
|
79
|
+
},
|
|
80
|
+
b: {
|
|
81
|
+
type: "number",
|
|
82
|
+
description: "The second number to add",
|
|
83
|
+
required: true,
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
output: {
|
|
87
|
+
result: {
|
|
88
|
+
type: "number",
|
|
89
|
+
description: "The sum of the two numbers",
|
|
90
|
+
required: true,
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
exports.confluenceUpdatePageDefinition = {
|
|
95
|
+
provider: "confluence",
|
|
96
|
+
name: "updatePage",
|
|
97
|
+
description: "Updates a confluence page with the new content specified",
|
|
98
|
+
scopes: [],
|
|
99
|
+
authToken: {
|
|
100
|
+
type: "string",
|
|
101
|
+
description: "The access token to use for confluence",
|
|
102
|
+
required: true,
|
|
103
|
+
},
|
|
104
|
+
baseUrl: {
|
|
105
|
+
type: "string",
|
|
106
|
+
description: "The base url required to access the confluence instance",
|
|
107
|
+
required: true,
|
|
108
|
+
},
|
|
109
|
+
parameters: {
|
|
110
|
+
pageId: {
|
|
111
|
+
type: "string",
|
|
112
|
+
description: "The page id that should be updated",
|
|
113
|
+
required: true,
|
|
114
|
+
},
|
|
115
|
+
title: {
|
|
116
|
+
type: "string",
|
|
117
|
+
description: "The title of the page that should be updated",
|
|
118
|
+
required: true,
|
|
119
|
+
},
|
|
120
|
+
username: {
|
|
121
|
+
type: "string",
|
|
122
|
+
description: "The username of the person updating the page",
|
|
123
|
+
required: true,
|
|
124
|
+
},
|
|
125
|
+
content: {
|
|
126
|
+
type: "string",
|
|
127
|
+
description: "The new content for the page",
|
|
128
|
+
required: true,
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
output: {},
|
|
132
|
+
};
|
|
@@ -20,7 +20,6 @@ export declare const jiraAssignJiraTicketDefinition: ActionTemplate;
|
|
|
20
20
|
export declare const jiraPublicCommentOnServiceDeskRequestDefinition: ActionTemplate;
|
|
21
21
|
export declare const jiraCommentJiraTicketDefinition: ActionTemplate;
|
|
22
22
|
export declare const jiraCreateJiraTicketDefinition: ActionTemplate;
|
|
23
|
-
export declare const jiraGetServiceDesksDefinition: ActionTemplate;
|
|
24
23
|
export declare const jiraCreateServiceDeskRequestDefinition: ActionTemplate;
|
|
25
24
|
export declare const jiraGetJiraTicketDetailsDefinition: ActionTemplate;
|
|
26
25
|
export declare const jiraGetJiraTicketHistoryDefinition: ActionTemplate;
|
|
@@ -31,7 +30,6 @@ export declare const jiraOrgAssignJiraTicketDefinition: ActionTemplate;
|
|
|
31
30
|
export declare const jiraOrgPublicCommentOnServiceDeskRequestDefinition: ActionTemplate;
|
|
32
31
|
export declare const jiraOrgCommentJiraTicketDefinition: ActionTemplate;
|
|
33
32
|
export declare const jiraOrgCreateJiraTicketDefinition: ActionTemplate;
|
|
34
|
-
export declare const jiraOrgGetServiceDesksDefinition: ActionTemplate;
|
|
35
33
|
export declare const jiraOrgCreateServiceDeskRequestDefinition: ActionTemplate;
|
|
36
34
|
export declare const jiraOrgGetJiraTicketDetailsDefinition: ActionTemplate;
|
|
37
35
|
export declare const jiraOrgGetJiraTicketHistoryDefinition: ActionTemplate;
|
|
@@ -42,7 +40,6 @@ export declare const jiraDataCenterAssignJiraTicketDefinition: ActionTemplate;
|
|
|
42
40
|
export declare const jiraDataCenterPublicCommentOnServiceDeskRequestDefinition: ActionTemplate;
|
|
43
41
|
export declare const jiraDataCenterCommentJiraTicketDefinition: ActionTemplate;
|
|
44
42
|
export declare const jiraDataCenterCreateJiraTicketDefinition: ActionTemplate;
|
|
45
|
-
export declare const jiraDataCenterGetServiceDesksDefinition: ActionTemplate;
|
|
46
43
|
export declare const jiraDataCenterCreateServiceDeskRequestDefinition: ActionTemplate;
|
|
47
44
|
export declare const jiraDataCenterGetJiraTicketDetailsDefinition: ActionTemplate;
|
|
48
45
|
export declare const jiraDataCenterGetJiraTicketHistoryDefinition: ActionTemplate;
|
|
@@ -83,6 +80,7 @@ export declare const googleOauthEditAGoogleCalendarEventDefinition: ActionTempla
|
|
|
83
80
|
export declare const googleOauthDeleteCalendarEventDefinition: ActionTemplate;
|
|
84
81
|
export declare const googleOauthCreateSpreadsheetDefinition: ActionTemplate;
|
|
85
82
|
export declare const googleOauthUpdateSpreadsheetDefinition: ActionTemplate;
|
|
83
|
+
export declare const googleOauthAppendRowsToSpreadsheetDefinition: ActionTemplate;
|
|
86
84
|
export declare const googleOauthCreatePresentationDefinition: ActionTemplate;
|
|
87
85
|
export declare const googleOauthUpdatePresentationDefinition: ActionTemplate;
|
|
88
86
|
export declare const googleOauthGetPresentationDefinition: ActionTemplate;
|