@credal/actions 0.1.68 → 0.1.70
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 +0 -6
- package/dist/actions/autogen/templates.d.ts +0 -1
- package/dist/actions/autogen/templates.js +2 -41
- package/dist/actions/autogen/types.d.ts +6 -42
- package/dist/actions/autogen/types.js +4 -18
- package/dist/actions/groups.js +1 -1
- package/dist/actions/providers/confluence/updatePage.d.ts +3 -0
- package/dist/actions/providers/confluence/updatePage.js +47 -0
- package/dist/actions/util/formatDataForCodeInterpreter.js +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/package.json +1 -1
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +0 -3
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.js +0 -43
@@ -10,7 +10,6 @@ const validateAddress_1 = __importDefault(require("./providers/googlemaps/valida
|
|
10
10
|
const add_1 = __importDefault(require("./providers/math/add"));
|
11
11
|
const fillTemplate_1 = __importDefault(require("./providers/generic/fillTemplate"));
|
12
12
|
const insertMongoDoc_1 = __importDefault(require("./providers/mongodb/insertMongoDoc"));
|
13
|
-
const listConversations_1 = __importDefault(require("./providers/slack/listConversations"));
|
14
13
|
const sendMessage_1 = __importDefault(require("./providers/slack/sendMessage"));
|
15
14
|
const getChannelMessages_1 = __importDefault(require("./providers/slack/getChannelMessages"));
|
16
15
|
const getRowByFieldValue_1 = __importDefault(require("./providers/snowflake/getRowByFieldValue"));
|
@@ -114,11 +113,6 @@ exports.ActionMapper = {
|
|
114
113
|
},
|
115
114
|
},
|
116
115
|
slack: {
|
117
|
-
listConversations: {
|
118
|
-
fn: listConversations_1.default,
|
119
|
-
paramsSchema: types_1.slackListConversationsParamsSchema,
|
120
|
-
outputSchema: types_1.slackListConversationsOutputSchema,
|
121
|
-
},
|
122
116
|
sendMessage: {
|
123
117
|
fn: sendMessage_1.default,
|
124
118
|
paramsSchema: types_1.slackSendMessageParamsSchema,
|
@@ -4,7 +4,6 @@ export declare const asanaCommentTaskDefinition: ActionTemplate;
|
|
4
4
|
export declare const asanaCreateTaskDefinition: ActionTemplate;
|
5
5
|
export declare const asanaUpdateTaskDefinition: ActionTemplate;
|
6
6
|
export declare const slackSendMessageDefinition: ActionTemplate;
|
7
|
-
export declare const slackListConversationsDefinition: ActionTemplate;
|
8
7
|
export declare const slackGetChannelMessagesDefinition: ActionTemplate;
|
9
8
|
export declare const mathAddDefinition: ActionTemplate;
|
10
9
|
export declare const confluenceOverwritePageDefinition: ActionTemplate;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.lookerEnableUserByEmailDefinition = exports.finnhubGetBasicFinancialsDefinition = exports.finnhubSymbolLookupDefinition = exports.gongGetGongTranscriptsDefinition = exports.googleOauthUpdatePresentationDefinition = exports.googleOauthCreatePresentationDefinition = exports.googleOauthUpdateSpreadsheetDefinition = exports.googleOauthCreateSpreadsheetDefinition = exports.googleOauthScheduleCalendarMeetingDefinition = exports.googleOauthUpdateDocDefinition = exports.googleOauthCreateNewGoogleDocDefinition = exports.resendSendEmailDefinition = exports.firecrawlScrapeTweetDataWithNitterDefinition = exports.firecrawlScrapeUrlDefinition = exports.firecrawlDeepResearchDefinition = exports.nwsGetForecastForLocationDefinition = exports.openstreetmapGetLatitudeLongitudeFromLocationDefinition = exports.snowflakeRunSnowflakeQueryDefinition = exports.snowflakeGetRowByFieldValueDefinition = exports.mongoInsertMongoDocDefinition = exports.xCreateShareXPostUrlDefinition = exports.linkedinCreateShareLinkedinPostUrlDefinition = exports.zendeskAssignTicketDefinition = exports.zendeskAddCommentToTicketDefinition = exports.zendeskUpdateTicketStatusDefinition = exports.zendeskGetTicketDetailsDefinition = exports.zendeskListZendeskTicketsDefinition = exports.zendeskCreateZendeskTicketDefinition = exports.credalCallCopilotDefinition = exports.bingGetTopNSearchResultUrlsDefinition = exports.googlemapsNearbysearchRestaurantsDefinition = exports.googlemapsValidateAddressDefinition = exports.jiraGetJiraIssuesByQueryDefinition = exports.jiraUpdateJiraTicketStatusDefinition = exports.jiraUpdateJiraTicketDetailsDefinition = exports.jiraGetJiraTicketHistoryDefinition = exports.jiraGetJiraTicketDetailsDefinition = exports.jiraCreateJiraTicketDefinition = exports.jiraCommentJiraTicketDefinition = exports.jiraAssignJiraTicketDefinition = exports.confluenceFetchPageContentDefinition = exports.confluenceOverwritePageDefinition = exports.mathAddDefinition = exports.slackGetChannelMessagesDefinition = exports.
|
4
|
-
exports.githubListPullRequestsDefinition = exports.githubCreatePullRequestDefinition = exports.githubCreateBranchDefinition = exports.githubCreateOrUpdateFileDefinition = exports.microsoftGetDocumentDefinition = exports.microsoftMessageTeamsChannelDefinition = exports.microsoftMessageTeamsChatDefinition = exports.microsoftUpdateSpreadsheetDefinition = exports.microsoftUpdateDocumentDefinition = exports.microsoftCreateDocumentDefinition = exports.salesforceFetchSalesforceSchemaByObjectDefinition = exports.salesforceGetRecordDefinition = exports.salesforceGetSalesforceRecordsByQueryDefinition = exports.salesforceGenerateSalesReportDefinition = exports.salesforceCreateCaseDefinition = exports.salesforceCreateRecordDefinition = exports.salesforceUpdateRecordDefinition = exports.ashbyUpdateCandidateDefinition = exports.ashbyCreateCandidateDefinition = exports.ashbyListCandidateNotesDefinition = exports.ashbySearchCandidatesDefinition = exports.ashbyListCandidatesDefinition = exports.ashbyAddCandidateToProjectDefinition = exports.ashbyGetCandidateInfoDefinition =
|
3
|
+
exports.ashbyCreateNoteDefinition = exports.lookerEnableUserByEmailDefinition = exports.finnhubGetBasicFinancialsDefinition = exports.finnhubSymbolLookupDefinition = exports.gongGetGongTranscriptsDefinition = exports.googleOauthUpdatePresentationDefinition = exports.googleOauthCreatePresentationDefinition = exports.googleOauthUpdateSpreadsheetDefinition = exports.googleOauthCreateSpreadsheetDefinition = exports.googleOauthScheduleCalendarMeetingDefinition = exports.googleOauthUpdateDocDefinition = exports.googleOauthCreateNewGoogleDocDefinition = exports.resendSendEmailDefinition = exports.firecrawlScrapeTweetDataWithNitterDefinition = exports.firecrawlScrapeUrlDefinition = exports.firecrawlDeepResearchDefinition = exports.nwsGetForecastForLocationDefinition = exports.openstreetmapGetLatitudeLongitudeFromLocationDefinition = exports.snowflakeRunSnowflakeQueryDefinition = exports.snowflakeGetRowByFieldValueDefinition = exports.mongoInsertMongoDocDefinition = exports.xCreateShareXPostUrlDefinition = exports.linkedinCreateShareLinkedinPostUrlDefinition = exports.zendeskAssignTicketDefinition = exports.zendeskAddCommentToTicketDefinition = exports.zendeskUpdateTicketStatusDefinition = exports.zendeskGetTicketDetailsDefinition = exports.zendeskListZendeskTicketsDefinition = exports.zendeskCreateZendeskTicketDefinition = exports.credalCallCopilotDefinition = exports.bingGetTopNSearchResultUrlsDefinition = exports.googlemapsNearbysearchRestaurantsDefinition = exports.googlemapsValidateAddressDefinition = exports.jiraGetJiraIssuesByQueryDefinition = exports.jiraUpdateJiraTicketStatusDefinition = exports.jiraUpdateJiraTicketDetailsDefinition = exports.jiraGetJiraTicketHistoryDefinition = exports.jiraGetJiraTicketDetailsDefinition = exports.jiraCreateJiraTicketDefinition = exports.jiraCommentJiraTicketDefinition = exports.jiraAssignJiraTicketDefinition = exports.confluenceFetchPageContentDefinition = exports.confluenceOverwritePageDefinition = exports.mathAddDefinition = exports.slackGetChannelMessagesDefinition = exports.slackSendMessageDefinition = exports.asanaUpdateTaskDefinition = exports.asanaCreateTaskDefinition = exports.asanaCommentTaskDefinition = exports.genericFillTemplateDefinition = void 0;
|
4
|
+
exports.githubListPullRequestsDefinition = exports.githubCreatePullRequestDefinition = exports.githubCreateBranchDefinition = exports.githubCreateOrUpdateFileDefinition = exports.microsoftGetDocumentDefinition = exports.microsoftMessageTeamsChannelDefinition = exports.microsoftMessageTeamsChatDefinition = exports.microsoftUpdateSpreadsheetDefinition = exports.microsoftUpdateDocumentDefinition = exports.microsoftCreateDocumentDefinition = exports.salesforceFetchSalesforceSchemaByObjectDefinition = exports.salesforceGetRecordDefinition = exports.salesforceGetSalesforceRecordsByQueryDefinition = exports.salesforceGenerateSalesReportDefinition = exports.salesforceCreateCaseDefinition = exports.salesforceCreateRecordDefinition = exports.salesforceUpdateRecordDefinition = exports.ashbyUpdateCandidateDefinition = exports.ashbyCreateCandidateDefinition = exports.ashbyListCandidateNotesDefinition = exports.ashbySearchCandidatesDefinition = exports.ashbyListCandidatesDefinition = exports.ashbyAddCandidateToProjectDefinition = exports.ashbyGetCandidateInfoDefinition = void 0;
|
5
5
|
exports.genericFillTemplateDefinition = {
|
6
6
|
description: "Simple utility that takes a template and returns it filled in",
|
7
7
|
scopes: [],
|
@@ -230,45 +230,6 @@ exports.slackSendMessageDefinition = {
|
|
230
230
|
name: "sendMessage",
|
231
231
|
provider: "slack",
|
232
232
|
};
|
233
|
-
exports.slackListConversationsDefinition = {
|
234
|
-
description: "Lists all conversations in a Slack workspace",
|
235
|
-
scopes: ["channels:read", "groups:read", "im:read", "mpim:read"],
|
236
|
-
output: {
|
237
|
-
type: "object",
|
238
|
-
required: ["channels"],
|
239
|
-
properties: {
|
240
|
-
channels: {
|
241
|
-
type: "array",
|
242
|
-
description: "A list of channels in Slack",
|
243
|
-
items: {
|
244
|
-
type: "object",
|
245
|
-
description: "A channel in Slack",
|
246
|
-
required: ["id", "name", "topic", "purpose"],
|
247
|
-
properties: {
|
248
|
-
id: {
|
249
|
-
type: "string",
|
250
|
-
description: "The ID of the channel",
|
251
|
-
},
|
252
|
-
name: {
|
253
|
-
type: "string",
|
254
|
-
description: "The name of the channel",
|
255
|
-
},
|
256
|
-
topic: {
|
257
|
-
type: "string",
|
258
|
-
description: "The topic of the channel",
|
259
|
-
},
|
260
|
-
purpose: {
|
261
|
-
type: "string",
|
262
|
-
description: "The purpose of the channel",
|
263
|
-
},
|
264
|
-
},
|
265
|
-
},
|
266
|
-
},
|
267
|
-
},
|
268
|
-
},
|
269
|
-
name: "listConversations",
|
270
|
-
provider: "slack",
|
271
|
-
};
|
272
233
|
exports.slackGetChannelMessagesDefinition = {
|
273
234
|
description: "Gets messages from a Slack channel",
|
274
235
|
scopes: ["channels:history"],
|
@@ -219,42 +219,6 @@ export declare const slackSendMessageOutputSchema: z.ZodObject<{
|
|
219
219
|
}>;
|
220
220
|
export type slackSendMessageOutputType = z.infer<typeof slackSendMessageOutputSchema>;
|
221
221
|
export type slackSendMessageFunction = ActionFunction<slackSendMessageParamsType, AuthParamsType, slackSendMessageOutputType>;
|
222
|
-
export declare const slackListConversationsParamsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
223
|
-
export type slackListConversationsParamsType = z.infer<typeof slackListConversationsParamsSchema>;
|
224
|
-
export declare const slackListConversationsOutputSchema: z.ZodObject<{
|
225
|
-
channels: z.ZodArray<z.ZodObject<{
|
226
|
-
id: z.ZodString;
|
227
|
-
name: z.ZodString;
|
228
|
-
topic: z.ZodString;
|
229
|
-
purpose: z.ZodString;
|
230
|
-
}, "strip", z.ZodTypeAny, {
|
231
|
-
name: string;
|
232
|
-
id: string;
|
233
|
-
topic: string;
|
234
|
-
purpose: string;
|
235
|
-
}, {
|
236
|
-
name: string;
|
237
|
-
id: string;
|
238
|
-
topic: string;
|
239
|
-
purpose: string;
|
240
|
-
}>, "many">;
|
241
|
-
}, "strip", z.ZodTypeAny, {
|
242
|
-
channels: {
|
243
|
-
name: string;
|
244
|
-
id: string;
|
245
|
-
topic: string;
|
246
|
-
purpose: string;
|
247
|
-
}[];
|
248
|
-
}, {
|
249
|
-
channels: {
|
250
|
-
name: string;
|
251
|
-
id: string;
|
252
|
-
topic: string;
|
253
|
-
purpose: string;
|
254
|
-
}[];
|
255
|
-
}>;
|
256
|
-
export type slackListConversationsOutputType = z.infer<typeof slackListConversationsOutputSchema>;
|
257
|
-
export type slackListConversationsFunction = ActionFunction<slackListConversationsParamsType, AuthParamsType, slackListConversationsOutputType>;
|
258
222
|
export declare const slackGetChannelMessagesParamsSchema: z.ZodObject<{
|
259
223
|
channelName: z.ZodString;
|
260
224
|
oldest: z.ZodString;
|
@@ -2009,16 +1973,16 @@ export declare const gongGetGongTranscriptsOutputSchema: z.ZodObject<{
|
|
2009
1973
|
end?: number | undefined;
|
2010
1974
|
}>, "many">>;
|
2011
1975
|
}, "strip", z.ZodTypeAny, {
|
2012
|
-
topic?: string | undefined;
|
2013
1976
|
speakerName?: string | undefined;
|
1977
|
+
topic?: string | undefined;
|
2014
1978
|
sentences?: {
|
2015
1979
|
text?: string | undefined;
|
2016
1980
|
start?: number | undefined;
|
2017
1981
|
end?: number | undefined;
|
2018
1982
|
}[] | undefined;
|
2019
1983
|
}, {
|
2020
|
-
topic?: string | undefined;
|
2021
1984
|
speakerName?: string | undefined;
|
1985
|
+
topic?: string | undefined;
|
2022
1986
|
sentences?: {
|
2023
1987
|
text?: string | undefined;
|
2024
1988
|
start?: number | undefined;
|
@@ -2028,8 +1992,8 @@ export declare const gongGetGongTranscriptsOutputSchema: z.ZodObject<{
|
|
2028
1992
|
}, "strip", z.ZodTypeAny, {
|
2029
1993
|
callId?: string | undefined;
|
2030
1994
|
transcript?: {
|
2031
|
-
topic?: string | undefined;
|
2032
1995
|
speakerName?: string | undefined;
|
1996
|
+
topic?: string | undefined;
|
2033
1997
|
sentences?: {
|
2034
1998
|
text?: string | undefined;
|
2035
1999
|
start?: number | undefined;
|
@@ -2039,8 +2003,8 @@ export declare const gongGetGongTranscriptsOutputSchema: z.ZodObject<{
|
|
2039
2003
|
}, {
|
2040
2004
|
callId?: string | undefined;
|
2041
2005
|
transcript?: {
|
2042
|
-
topic?: string | undefined;
|
2043
2006
|
speakerName?: string | undefined;
|
2007
|
+
topic?: string | undefined;
|
2044
2008
|
sentences?: {
|
2045
2009
|
text?: string | undefined;
|
2046
2010
|
start?: number | undefined;
|
@@ -2055,8 +2019,8 @@ export declare const gongGetGongTranscriptsOutputSchema: z.ZodObject<{
|
|
2055
2019
|
callTranscripts?: {
|
2056
2020
|
callId?: string | undefined;
|
2057
2021
|
transcript?: {
|
2058
|
-
topic?: string | undefined;
|
2059
2022
|
speakerName?: string | undefined;
|
2023
|
+
topic?: string | undefined;
|
2060
2024
|
sentences?: {
|
2061
2025
|
text?: string | undefined;
|
2062
2026
|
start?: number | undefined;
|
@@ -2070,8 +2034,8 @@ export declare const gongGetGongTranscriptsOutputSchema: z.ZodObject<{
|
|
2070
2034
|
callTranscripts?: {
|
2071
2035
|
callId?: string | undefined;
|
2072
2036
|
transcript?: {
|
2073
|
-
topic?: string | undefined;
|
2074
2037
|
speakerName?: string | undefined;
|
2038
|
+
topic?: string | undefined;
|
2075
2039
|
sentences?: {
|
2076
2040
|
text?: string | undefined;
|
2077
2041
|
start?: number | undefined;
|
@@ -1,9 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.zendeskGetTicketDetailsParamsSchema = exports.zendeskListZendeskTicketsOutputSchema = exports.zendeskListZendeskTicketsParamsSchema = exports.zendeskCreateZendeskTicketOutputSchema = exports.zendeskCreateZendeskTicketParamsSchema = exports.credalCallCopilotOutputSchema = exports.credalCallCopilotParamsSchema = exports.bingGetTopNSearchResultUrlsOutputSchema = exports.bingGetTopNSearchResultUrlsParamsSchema = exports.googlemapsNearbysearchRestaurantsOutputSchema = exports.googlemapsNearbysearchRestaurantsParamsSchema = exports.googlemapsValidateAddressOutputSchema = exports.googlemapsValidateAddressParamsSchema = exports.jiraGetJiraIssuesByQueryOutputSchema = exports.jiraGetJiraIssuesByQueryParamsSchema = exports.jiraUpdateJiraTicketStatusOutputSchema = exports.jiraUpdateJiraTicketStatusParamsSchema = exports.jiraUpdateJiraTicketDetailsOutputSchema = exports.jiraUpdateJiraTicketDetailsParamsSchema = exports.jiraGetJiraTicketHistoryOutputSchema = exports.jiraGetJiraTicketHistoryParamsSchema = exports.jiraGetJiraTicketDetailsOutputSchema = exports.jiraGetJiraTicketDetailsParamsSchema = exports.jiraCreateJiraTicketOutputSchema = exports.jiraCreateJiraTicketParamsSchema = exports.jiraCommentJiraTicketOutputSchema = exports.jiraCommentJiraTicketParamsSchema = exports.jiraAssignJiraTicketOutputSchema = exports.jiraAssignJiraTicketParamsSchema = exports.confluenceFetchPageContentOutputSchema = exports.confluenceFetchPageContentParamsSchema = exports.confluenceOverwritePageOutputSchema = exports.confluenceOverwritePageParamsSchema = exports.mathAddOutputSchema = exports.mathAddParamsSchema = exports.slackGetChannelMessagesOutputSchema = exports.slackGetChannelMessagesParamsSchema = exports.
|
4
|
-
exports.lookerEnableUserByEmailParamsSchema = exports.finnhubGetBasicFinancialsOutputSchema = exports.finnhubGetBasicFinancialsParamsSchema = exports.finnhubSymbolLookupOutputSchema = exports.finnhubSymbolLookupParamsSchema = exports.gongGetGongTranscriptsOutputSchema = exports.gongGetGongTranscriptsParamsSchema = exports.googleOauthUpdatePresentationOutputSchema = exports.googleOauthUpdatePresentationParamsSchema = exports.googleOauthCreatePresentationOutputSchema = exports.googleOauthCreatePresentationParamsSchema = exports.googleOauthUpdateSpreadsheetOutputSchema = exports.googleOauthUpdateSpreadsheetParamsSchema = exports.googleOauthCreateSpreadsheetOutputSchema = exports.googleOauthCreateSpreadsheetParamsSchema = exports.googleOauthScheduleCalendarMeetingOutputSchema = exports.googleOauthScheduleCalendarMeetingParamsSchema = exports.googleOauthUpdateDocOutputSchema = exports.googleOauthUpdateDocParamsSchema = exports.googleOauthCreateNewGoogleDocOutputSchema = exports.googleOauthCreateNewGoogleDocParamsSchema = exports.resendSendEmailOutputSchema = exports.resendSendEmailParamsSchema = exports.firecrawlScrapeTweetDataWithNitterOutputSchema = exports.firecrawlScrapeTweetDataWithNitterParamsSchema = exports.firecrawlScrapeUrlOutputSchema = exports.firecrawlScrapeUrlParamsSchema = exports.firecrawlDeepResearchOutputSchema = exports.firecrawlDeepResearchParamsSchema = exports.nwsGetForecastForLocationOutputSchema = exports.nwsGetForecastForLocationParamsSchema = exports.openstreetmapGetLatitudeLongitudeFromLocationOutputSchema = exports.openstreetmapGetLatitudeLongitudeFromLocationParamsSchema = exports.snowflakeRunSnowflakeQueryOutputSchema = exports.snowflakeRunSnowflakeQueryParamsSchema = exports.snowflakeGetRowByFieldValueOutputSchema = exports.snowflakeGetRowByFieldValueParamsSchema = exports.mongoInsertMongoDocOutputSchema = exports.mongoInsertMongoDocParamsSchema = exports.xCreateShareXPostUrlOutputSchema = exports.xCreateShareXPostUrlParamsSchema = exports.linkedinCreateShareLinkedinPostUrlOutputSchema = exports.linkedinCreateShareLinkedinPostUrlParamsSchema = exports.zendeskAssignTicketOutputSchema = exports.zendeskAssignTicketParamsSchema = exports.zendeskAddCommentToTicketOutputSchema = exports.zendeskAddCommentToTicketParamsSchema = exports.zendeskUpdateTicketStatusOutputSchema =
|
5
|
-
exports.githubListPullRequestsParamsSchema = exports.githubCreatePullRequestOutputSchema = exports.githubCreatePullRequestParamsSchema = exports.githubCreateBranchOutputSchema = exports.githubCreateBranchParamsSchema = exports.githubCreateOrUpdateFileOutputSchema = exports.githubCreateOrUpdateFileParamsSchema = exports.microsoftGetDocumentOutputSchema = exports.microsoftGetDocumentParamsSchema = exports.microsoftMessageTeamsChannelOutputSchema = exports.microsoftMessageTeamsChannelParamsSchema = exports.microsoftMessageTeamsChatOutputSchema = exports.microsoftMessageTeamsChatParamsSchema = exports.microsoftUpdateSpreadsheetOutputSchema = exports.microsoftUpdateSpreadsheetParamsSchema = exports.microsoftUpdateDocumentOutputSchema = exports.microsoftUpdateDocumentParamsSchema = exports.microsoftCreateDocumentOutputSchema = exports.microsoftCreateDocumentParamsSchema = exports.salesforceFetchSalesforceSchemaByObjectOutputSchema = exports.salesforceFetchSalesforceSchemaByObjectParamsSchema = exports.salesforceGetRecordOutputSchema = exports.salesforceGetRecordParamsSchema = exports.salesforceGetSalesforceRecordsByQueryOutputSchema = exports.salesforceGetSalesforceRecordsByQueryParamsSchema = exports.salesforceGenerateSalesReportOutputSchema = exports.salesforceGenerateSalesReportParamsSchema = exports.salesforceCreateCaseOutputSchema = exports.salesforceCreateCaseParamsSchema = exports.salesforceCreateRecordOutputSchema = exports.salesforceCreateRecordParamsSchema = exports.salesforceUpdateRecordOutputSchema = exports.salesforceUpdateRecordParamsSchema = exports.ashbyUpdateCandidateOutputSchema = exports.ashbyUpdateCandidateParamsSchema = exports.ashbyCreateCandidateOutputSchema = exports.ashbyCreateCandidateParamsSchema = exports.ashbyListCandidateNotesOutputSchema = exports.ashbyListCandidateNotesParamsSchema = exports.ashbySearchCandidatesOutputSchema = exports.ashbySearchCandidatesParamsSchema = exports.ashbyListCandidatesOutputSchema = exports.ashbyListCandidatesParamsSchema = exports.ashbyAddCandidateToProjectOutputSchema = exports.ashbyAddCandidateToProjectParamsSchema = exports.ashbyGetCandidateInfoOutputSchema = exports.ashbyGetCandidateInfoParamsSchema = exports.ashbyCreateNoteOutputSchema =
|
6
|
-
exports.githubListPullRequestsOutputSchema = void 0;
|
3
|
+
exports.zendeskUpdateTicketStatusParamsSchema = exports.zendeskGetTicketDetailsOutputSchema = exports.zendeskGetTicketDetailsParamsSchema = exports.zendeskListZendeskTicketsOutputSchema = exports.zendeskListZendeskTicketsParamsSchema = exports.zendeskCreateZendeskTicketOutputSchema = exports.zendeskCreateZendeskTicketParamsSchema = exports.credalCallCopilotOutputSchema = exports.credalCallCopilotParamsSchema = exports.bingGetTopNSearchResultUrlsOutputSchema = exports.bingGetTopNSearchResultUrlsParamsSchema = exports.googlemapsNearbysearchRestaurantsOutputSchema = exports.googlemapsNearbysearchRestaurantsParamsSchema = exports.googlemapsValidateAddressOutputSchema = exports.googlemapsValidateAddressParamsSchema = exports.jiraGetJiraIssuesByQueryOutputSchema = exports.jiraGetJiraIssuesByQueryParamsSchema = exports.jiraUpdateJiraTicketStatusOutputSchema = exports.jiraUpdateJiraTicketStatusParamsSchema = exports.jiraUpdateJiraTicketDetailsOutputSchema = exports.jiraUpdateJiraTicketDetailsParamsSchema = exports.jiraGetJiraTicketHistoryOutputSchema = exports.jiraGetJiraTicketHistoryParamsSchema = exports.jiraGetJiraTicketDetailsOutputSchema = exports.jiraGetJiraTicketDetailsParamsSchema = exports.jiraCreateJiraTicketOutputSchema = exports.jiraCreateJiraTicketParamsSchema = exports.jiraCommentJiraTicketOutputSchema = exports.jiraCommentJiraTicketParamsSchema = exports.jiraAssignJiraTicketOutputSchema = exports.jiraAssignJiraTicketParamsSchema = exports.confluenceFetchPageContentOutputSchema = exports.confluenceFetchPageContentParamsSchema = exports.confluenceOverwritePageOutputSchema = exports.confluenceOverwritePageParamsSchema = exports.mathAddOutputSchema = exports.mathAddParamsSchema = exports.slackGetChannelMessagesOutputSchema = exports.slackGetChannelMessagesParamsSchema = exports.slackSendMessageOutputSchema = exports.slackSendMessageParamsSchema = exports.asanaUpdateTaskOutputSchema = exports.asanaUpdateTaskParamsSchema = exports.asanaCreateTaskOutputSchema = exports.asanaCreateTaskParamsSchema = exports.asanaCommentTaskOutputSchema = exports.asanaCommentTaskParamsSchema = exports.genericFillTemplateOutputSchema = exports.genericFillTemplateParamsSchema = exports.AuthParamsSchema = void 0;
|
4
|
+
exports.ashbyCreateNoteParamsSchema = exports.lookerEnableUserByEmailOutputSchema = exports.lookerEnableUserByEmailParamsSchema = exports.finnhubGetBasicFinancialsOutputSchema = exports.finnhubGetBasicFinancialsParamsSchema = exports.finnhubSymbolLookupOutputSchema = exports.finnhubSymbolLookupParamsSchema = exports.gongGetGongTranscriptsOutputSchema = exports.gongGetGongTranscriptsParamsSchema = exports.googleOauthUpdatePresentationOutputSchema = exports.googleOauthUpdatePresentationParamsSchema = exports.googleOauthCreatePresentationOutputSchema = exports.googleOauthCreatePresentationParamsSchema = exports.googleOauthUpdateSpreadsheetOutputSchema = exports.googleOauthUpdateSpreadsheetParamsSchema = exports.googleOauthCreateSpreadsheetOutputSchema = exports.googleOauthCreateSpreadsheetParamsSchema = exports.googleOauthScheduleCalendarMeetingOutputSchema = exports.googleOauthScheduleCalendarMeetingParamsSchema = exports.googleOauthUpdateDocOutputSchema = exports.googleOauthUpdateDocParamsSchema = exports.googleOauthCreateNewGoogleDocOutputSchema = exports.googleOauthCreateNewGoogleDocParamsSchema = exports.resendSendEmailOutputSchema = exports.resendSendEmailParamsSchema = exports.firecrawlScrapeTweetDataWithNitterOutputSchema = exports.firecrawlScrapeTweetDataWithNitterParamsSchema = exports.firecrawlScrapeUrlOutputSchema = exports.firecrawlScrapeUrlParamsSchema = exports.firecrawlDeepResearchOutputSchema = exports.firecrawlDeepResearchParamsSchema = exports.nwsGetForecastForLocationOutputSchema = exports.nwsGetForecastForLocationParamsSchema = exports.openstreetmapGetLatitudeLongitudeFromLocationOutputSchema = exports.openstreetmapGetLatitudeLongitudeFromLocationParamsSchema = exports.snowflakeRunSnowflakeQueryOutputSchema = exports.snowflakeRunSnowflakeQueryParamsSchema = exports.snowflakeGetRowByFieldValueOutputSchema = exports.snowflakeGetRowByFieldValueParamsSchema = exports.mongoInsertMongoDocOutputSchema = exports.mongoInsertMongoDocParamsSchema = exports.xCreateShareXPostUrlOutputSchema = exports.xCreateShareXPostUrlParamsSchema = exports.linkedinCreateShareLinkedinPostUrlOutputSchema = exports.linkedinCreateShareLinkedinPostUrlParamsSchema = exports.zendeskAssignTicketOutputSchema = exports.zendeskAssignTicketParamsSchema = exports.zendeskAddCommentToTicketOutputSchema = exports.zendeskAddCommentToTicketParamsSchema = exports.zendeskUpdateTicketStatusOutputSchema = void 0;
|
5
|
+
exports.githubListPullRequestsOutputSchema = exports.githubListPullRequestsParamsSchema = exports.githubCreatePullRequestOutputSchema = exports.githubCreatePullRequestParamsSchema = exports.githubCreateBranchOutputSchema = exports.githubCreateBranchParamsSchema = exports.githubCreateOrUpdateFileOutputSchema = exports.githubCreateOrUpdateFileParamsSchema = exports.microsoftGetDocumentOutputSchema = exports.microsoftGetDocumentParamsSchema = exports.microsoftMessageTeamsChannelOutputSchema = exports.microsoftMessageTeamsChannelParamsSchema = exports.microsoftMessageTeamsChatOutputSchema = exports.microsoftMessageTeamsChatParamsSchema = exports.microsoftUpdateSpreadsheetOutputSchema = exports.microsoftUpdateSpreadsheetParamsSchema = exports.microsoftUpdateDocumentOutputSchema = exports.microsoftUpdateDocumentParamsSchema = exports.microsoftCreateDocumentOutputSchema = exports.microsoftCreateDocumentParamsSchema = exports.salesforceFetchSalesforceSchemaByObjectOutputSchema = exports.salesforceFetchSalesforceSchemaByObjectParamsSchema = exports.salesforceGetRecordOutputSchema = exports.salesforceGetRecordParamsSchema = exports.salesforceGetSalesforceRecordsByQueryOutputSchema = exports.salesforceGetSalesforceRecordsByQueryParamsSchema = exports.salesforceGenerateSalesReportOutputSchema = exports.salesforceGenerateSalesReportParamsSchema = exports.salesforceCreateCaseOutputSchema = exports.salesforceCreateCaseParamsSchema = exports.salesforceCreateRecordOutputSchema = exports.salesforceCreateRecordParamsSchema = exports.salesforceUpdateRecordOutputSchema = exports.salesforceUpdateRecordParamsSchema = exports.ashbyUpdateCandidateOutputSchema = exports.ashbyUpdateCandidateParamsSchema = exports.ashbyCreateCandidateOutputSchema = exports.ashbyCreateCandidateParamsSchema = exports.ashbyListCandidateNotesOutputSchema = exports.ashbyListCandidateNotesParamsSchema = exports.ashbySearchCandidatesOutputSchema = exports.ashbySearchCandidatesParamsSchema = exports.ashbyListCandidatesOutputSchema = exports.ashbyListCandidatesParamsSchema = exports.ashbyAddCandidateToProjectOutputSchema = exports.ashbyAddCandidateToProjectParamsSchema = exports.ashbyGetCandidateInfoOutputSchema = exports.ashbyGetCandidateInfoParamsSchema = exports.ashbyCreateNoteOutputSchema = void 0;
|
7
6
|
const zod_1 = require("zod");
|
8
7
|
exports.AuthParamsSchema = zod_1.z.object({
|
9
8
|
authToken: zod_1.z.string().optional(),
|
@@ -83,19 +82,6 @@ exports.slackSendMessageOutputSchema = zod_1.z.object({
|
|
83
82
|
success: zod_1.z.boolean().describe("Whether the email was sent successfully"),
|
84
83
|
error: zod_1.z.string().describe("The error that occurred if the email was not sent successfully").optional(),
|
85
84
|
});
|
86
|
-
exports.slackListConversationsParamsSchema = zod_1.z.object({});
|
87
|
-
exports.slackListConversationsOutputSchema = zod_1.z.object({
|
88
|
-
channels: zod_1.z
|
89
|
-
.array(zod_1.z
|
90
|
-
.object({
|
91
|
-
id: zod_1.z.string().describe("The ID of the channel"),
|
92
|
-
name: zod_1.z.string().describe("The name of the channel"),
|
93
|
-
topic: zod_1.z.string().describe("The topic of the channel"),
|
94
|
-
purpose: zod_1.z.string().describe("The purpose of the channel"),
|
95
|
-
})
|
96
|
-
.describe("A channel in Slack"))
|
97
|
-
.describe("A list of channels in Slack"),
|
98
|
-
});
|
99
85
|
exports.slackGetChannelMessagesParamsSchema = zod_1.z.object({
|
100
86
|
channelName: zod_1.z.string().describe("Name of the channel to summarize"),
|
101
87
|
oldest: zod_1.z.string().describe("Only messages after this Unix timestamp will be included in results"),
|
@@ -315,7 +301,7 @@ exports.bingGetTopNSearchResultUrlsOutputSchema = zod_1.z.object({
|
|
315
301
|
name: zod_1.z.string().describe("The name or title of the search result").optional(),
|
316
302
|
url: zod_1.z.string().describe("The URL of the search result").optional(),
|
317
303
|
}))
|
318
|
-
.describe("The top
|
304
|
+
.describe("The top five search result objects"),
|
319
305
|
});
|
320
306
|
exports.credalCallCopilotParamsSchema = zod_1.z.object({
|
321
307
|
agentId: zod_1.z.string().describe("The ID of the copilot to call"),
|
package/dist/actions/groups.js
CHANGED
@@ -13,7 +13,7 @@ exports.ACTION_GROUPS = {
|
|
13
13
|
},
|
14
14
|
SLACK_LIST_CONVERSATIONS: {
|
15
15
|
description: "Actions for interacting with Slack",
|
16
|
-
actions: [templates_1.
|
16
|
+
actions: [templates_1.slackSendMessageDefinition, templates_1.slackGetChannelMessagesDefinition],
|
17
17
|
},
|
18
18
|
CONFLUENCE: {
|
19
19
|
description: "Action for interacting with Confluence",
|
@@ -0,0 +1,47 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
+
};
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
+
const axios_1 = __importDefault(require("axios"));
|
16
|
+
function getConfluenceApi(baseUrl, username, apiToken) {
|
17
|
+
const api = axios_1.default.create({
|
18
|
+
baseURL: baseUrl,
|
19
|
+
headers: {
|
20
|
+
Accept: "application/json",
|
21
|
+
// Tokens are associated with a specific user.
|
22
|
+
Authorization: `Basic ${Buffer.from(`${username}:${apiToken}`).toString("base64")}`,
|
23
|
+
},
|
24
|
+
});
|
25
|
+
return api;
|
26
|
+
}
|
27
|
+
const confluenceUpdatePage = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
28
|
+
const { pageId, username, content, title } = params;
|
29
|
+
const { baseUrl, authToken } = authParams;
|
30
|
+
const api = getConfluenceApi(baseUrl, username, authToken);
|
31
|
+
// Get current version number
|
32
|
+
const response = yield api.get(`/api/v2/pages/${pageId}`);
|
33
|
+
const currVersion = response.data.version.number;
|
34
|
+
yield api.put(`/api/v2/pages/${pageId}`, {
|
35
|
+
id: pageId,
|
36
|
+
status: "current",
|
37
|
+
title,
|
38
|
+
body: {
|
39
|
+
representation: "storage",
|
40
|
+
value: content,
|
41
|
+
},
|
42
|
+
version: {
|
43
|
+
number: currVersion + 1,
|
44
|
+
},
|
45
|
+
});
|
46
|
+
});
|
47
|
+
exports.default = confluenceUpdatePage;
|
@@ -19,7 +19,7 @@ function formatDataForCodeInterpreter(queryResults, outputFormat = "json") {
|
|
19
19
|
// Helper function to properly escape CSV fields
|
20
20
|
const escapeCsvField = (field) => {
|
21
21
|
if (field === null || field === undefined)
|
22
|
-
return "";
|
22
|
+
return "null";
|
23
23
|
const stringValue = typeof field === "object" ? JSON.stringify(field) : String(field);
|
24
24
|
// If the field contains commas, quotes, or newlines, it needs to be quoted
|
25
25
|
if (stringValue.includes(",") ||
|
package/dist/index.d.ts
CHANGED
@@ -3,5 +3,3 @@ export { ACTION_GROUPS, type ActionGroups } from "./actions/groups";
|
|
3
3
|
export { ActionMapper } from "./actions/actionMapper";
|
4
4
|
export * from "./actions/autogen/templates";
|
5
5
|
export * from "./actions/autogen/types";
|
6
|
-
export * from "./actions/providers/math/index";
|
7
|
-
export * from "./actions/providers/slack/index";
|
package/dist/index.js
CHANGED
@@ -25,5 +25,3 @@ var actionMapper_1 = require("./actions/actionMapper");
|
|
25
25
|
Object.defineProperty(exports, "ActionMapper", { enumerable: true, get: function () { return actionMapper_1.ActionMapper; } });
|
26
26
|
__exportStar(require("./actions/autogen/templates"), exports);
|
27
27
|
__exportStar(require("./actions/autogen/types"), exports);
|
28
|
-
__exportStar(require("./actions/providers/math/index"), exports);
|
29
|
-
__exportStar(require("./actions/providers/slack/index"), exports);
|
package/package.json
CHANGED
@@ -1,43 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
const axiosClient_1 = require("../../util/axiosClient");
|
13
|
-
const getSalesforceRecordByQuery = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
14
|
-
const { authToken, baseUrl } = authParams;
|
15
|
-
const { query, limit } = params;
|
16
|
-
if (!authToken || !baseUrl) {
|
17
|
-
return {
|
18
|
-
success: false,
|
19
|
-
error: "authToken and baseUrl are required for Salesforce API",
|
20
|
-
};
|
21
|
-
}
|
22
|
-
// The API limits the maximum number of records returned to 2000, the limit lets the user set a smaller custom limit
|
23
|
-
const url = `${baseUrl}/services/data/v56.0/query/?q=${encodeURIComponent(query + " LIMIT " + (limit != undefined && limit <= 2000 ? limit : 2000))}`;
|
24
|
-
try {
|
25
|
-
const response = yield axiosClient_1.axiosClient.get(url, {
|
26
|
-
headers: {
|
27
|
-
Authorization: `Bearer ${authToken}`,
|
28
|
-
},
|
29
|
-
});
|
30
|
-
return {
|
31
|
-
success: true,
|
32
|
-
records: response.data,
|
33
|
-
};
|
34
|
-
}
|
35
|
-
catch (error) {
|
36
|
-
console.error("Error retrieving Salesforce record:", error);
|
37
|
-
return {
|
38
|
-
success: false,
|
39
|
-
error: error instanceof Error ? error.message : "An unknown error occurred",
|
40
|
-
};
|
41
|
-
}
|
42
|
-
});
|
43
|
-
exports.default = getSalesforceRecordByQuery;
|