@credal/actions 0.1.49 → 0.1.51
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 +12 -0
- package/dist/actions/autogen/templates.d.ts +2 -0
- package/dist/actions/autogen/templates.js +107 -2
- package/dist/actions/autogen/types.d.ts +77 -2
- package/dist/actions/autogen/types.js +28 -3
- package/dist/actions/groups.js +6 -1
- package/dist/actions/providers/confluence/updatePage.d.ts +3 -0
- package/dist/actions/providers/confluence/updatePage.js +47 -0
- package/dist/actions/providers/firecrawl/deepResearch.d.ts +3 -0
- package/dist/actions/providers/firecrawl/deepResearch.js +38 -0
- package/dist/actions/providers/jira/getJiraIssuesByQuery.d.ts +3 -0
- package/dist/actions/providers/{salesforce/getSalesforceRecordByQuery.js → jira/getJiraIssuesByQuery.js} +16 -14
- package/package.json +1 -1
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +0 -3
@@ -73,6 +73,8 @@ const updateDocument_1 = __importDefault(require("./providers/microsoft/updateDo
|
|
73
73
|
const createDocument_1 = __importDefault(require("./providers/microsoft/createDocument"));
|
74
74
|
const getDocument_1 = __importDefault(require("./providers/microsoft/getDocument"));
|
75
75
|
const fetchSalesforceSchema_1 = __importDefault(require("./providers/salesforce/fetchSalesforceSchema"));
|
76
|
+
const deepResearch_1 = __importDefault(require("./providers/firecrawl/deepResearch"));
|
77
|
+
const getJiraIssuesByQuery_1 = __importDefault(require("./providers/jira/getJiraIssuesByQuery"));
|
76
78
|
exports.ActionMapper = {
|
77
79
|
generic: {
|
78
80
|
fillTemplate: {
|
@@ -207,6 +209,11 @@ exports.ActionMapper = {
|
|
207
209
|
},
|
208
210
|
},
|
209
211
|
jira: {
|
212
|
+
getJiraIssuesByQuery: {
|
213
|
+
fn: getJiraIssuesByQuery_1.default,
|
214
|
+
paramsSchema: types_1.jiraGetJiraIssuesByQueryParamsSchema,
|
215
|
+
outputSchema: types_1.jiraGetJiraIssuesByQueryOutputSchema,
|
216
|
+
},
|
210
217
|
assignJiraTicket: {
|
211
218
|
fn: assignJiraTicket_1.default,
|
212
219
|
paramsSchema: types_1.jiraAssignJiraTicketParamsSchema,
|
@@ -268,6 +275,11 @@ exports.ActionMapper = {
|
|
268
275
|
paramsSchema: types_1.firecrawlScrapeTweetDataWithNitterParamsSchema,
|
269
276
|
outputSchema: types_1.firecrawlScrapeTweetDataWithNitterOutputSchema,
|
270
277
|
},
|
278
|
+
deepResearch: {
|
279
|
+
fn: deepResearch_1.default,
|
280
|
+
paramsSchema: types_1.firecrawlScrapeUrlParamsSchema,
|
281
|
+
outputSchema: types_1.firecrawlScrapeUrlOutputSchema,
|
282
|
+
},
|
271
283
|
},
|
272
284
|
resend: {
|
273
285
|
sendEmail: {
|
@@ -16,6 +16,7 @@ export declare const jiraGetJiraTicketDetailsDefinition: ActionTemplate;
|
|
16
16
|
export declare const jiraGetJiraTicketHistoryDefinition: ActionTemplate;
|
17
17
|
export declare const jiraUpdateJiraTicketDetailsDefinition: ActionTemplate;
|
18
18
|
export declare const jiraUpdateJiraTicketStatusDefinition: ActionTemplate;
|
19
|
+
export declare const jiraGetJiraIssuesByQueryDefinition: ActionTemplate;
|
19
20
|
export declare const googlemapsValidateAddressDefinition: ActionTemplate;
|
20
21
|
export declare const googlemapsNearbysearchRestaurantsDefinition: ActionTemplate;
|
21
22
|
export declare const credalCallCopilotDefinition: ActionTemplate;
|
@@ -31,6 +32,7 @@ export declare const snowflakeGetRowByFieldValueDefinition: ActionTemplate;
|
|
31
32
|
export declare const snowflakeRunSnowflakeQueryDefinition: ActionTemplate;
|
32
33
|
export declare const openstreetmapGetLatitudeLongitudeFromLocationDefinition: ActionTemplate;
|
33
34
|
export declare const nwsGetForecastForLocationDefinition: ActionTemplate;
|
35
|
+
export declare const firecrawlDeepResearchDefinition: ActionTemplate;
|
34
36
|
export declare const firecrawlScrapeUrlDefinition: ActionTemplate;
|
35
37
|
export declare const firecrawlScrapeTweetDataWithNitterDefinition: ActionTemplate;
|
36
38
|
export declare const resendSendEmailDefinition: ActionTemplate;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
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.salesforceUpdateRecordDefinition = exports.ashbyUpdateCandidateDefinition = exports.ashbyCreateCandidateDefinition = exports.ashbyListCandidateNotesDefinition = void 0;
|
3
|
+
exports.ashbyAddCandidateToProjectDefinition = exports.ashbyGetCandidateInfoDefinition = exports.ashbyCreateNoteDefinition = exports.lookerEnableUserByEmailDefinition = exports.finnhubGetBasicFinancialsDefinition = exports.finnhubSymbolLookupDefinition = 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.zendeskCreateZendeskTicketDefinition = exports.credalCallCopilotDefinition = 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.slackListConversationsDefinition = exports.slackSendMessageDefinition = exports.asanaUpdateTaskDefinition = exports.asanaCreateTaskDefinition = exports.asanaCommentTaskDefinition = exports.genericFillTemplateDefinition = void 0;
|
4
|
+
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.salesforceUpdateRecordDefinition = exports.ashbyUpdateCandidateDefinition = exports.ashbyCreateCandidateDefinition = exports.ashbyListCandidateNotesDefinition = exports.ashbySearchCandidatesDefinition = exports.ashbyListCandidatesDefinition = void 0;
|
5
5
|
exports.genericFillTemplateDefinition = {
|
6
6
|
description: "Simple utility that takes a template and returns it filled in",
|
7
7
|
scopes: [],
|
@@ -692,6 +692,51 @@ exports.jiraUpdateJiraTicketStatusDefinition = {
|
|
692
692
|
name: "updateJiraTicketStatus",
|
693
693
|
provider: "jira",
|
694
694
|
};
|
695
|
+
exports.jiraGetJiraIssuesByQueryDefinition = {
|
696
|
+
description: "Retrieve Jira Issues by JQL query",
|
697
|
+
scopes: [],
|
698
|
+
parameters: {
|
699
|
+
type: "object",
|
700
|
+
required: ["query"],
|
701
|
+
properties: {
|
702
|
+
query: {
|
703
|
+
type: "string",
|
704
|
+
description: "The JQL query to execute",
|
705
|
+
},
|
706
|
+
limit: {
|
707
|
+
type: "number",
|
708
|
+
description: "The maximum number of records to retrieve",
|
709
|
+
},
|
710
|
+
},
|
711
|
+
},
|
712
|
+
output: {
|
713
|
+
type: "object",
|
714
|
+
required: ["success"],
|
715
|
+
properties: {
|
716
|
+
success: {
|
717
|
+
type: "boolean",
|
718
|
+
description: "Whether the records were successfully retrieved",
|
719
|
+
},
|
720
|
+
records: {
|
721
|
+
type: "array",
|
722
|
+
description: "The retrieved records",
|
723
|
+
items: {
|
724
|
+
type: "object",
|
725
|
+
description: "An issue from Jira",
|
726
|
+
additionalProperties: {
|
727
|
+
type: "string",
|
728
|
+
},
|
729
|
+
},
|
730
|
+
},
|
731
|
+
error: {
|
732
|
+
type: "string",
|
733
|
+
description: "The error that occurred if the records were not successfully retrieved",
|
734
|
+
},
|
735
|
+
},
|
736
|
+
},
|
737
|
+
name: "getJiraIssuesByQuery",
|
738
|
+
provider: "jira",
|
739
|
+
};
|
695
740
|
exports.googlemapsValidateAddressDefinition = {
|
696
741
|
description: "Validate a Google Maps address",
|
697
742
|
scopes: [],
|
@@ -1519,6 +1564,66 @@ exports.nwsGetForecastForLocationDefinition = {
|
|
1519
1564
|
name: "getForecastForLocation",
|
1520
1565
|
provider: "nws",
|
1521
1566
|
};
|
1567
|
+
exports.firecrawlDeepResearchDefinition = {
|
1568
|
+
description: "Deep research on a topic using Firecrawl",
|
1569
|
+
scopes: [],
|
1570
|
+
parameters: {
|
1571
|
+
type: "object",
|
1572
|
+
required: ["query"],
|
1573
|
+
properties: {
|
1574
|
+
query: {
|
1575
|
+
type: "string",
|
1576
|
+
description: "The query to search for",
|
1577
|
+
},
|
1578
|
+
maxDepth: {
|
1579
|
+
type: "number",
|
1580
|
+
description: "The maximum depth of the search",
|
1581
|
+
},
|
1582
|
+
timeLimit: {
|
1583
|
+
type: "number",
|
1584
|
+
description: "The time limit for the search in seconds",
|
1585
|
+
},
|
1586
|
+
maxUrls: {
|
1587
|
+
type: "number",
|
1588
|
+
description: "The maximum number of URLs to scrape",
|
1589
|
+
},
|
1590
|
+
},
|
1591
|
+
},
|
1592
|
+
output: {
|
1593
|
+
type: "object",
|
1594
|
+
required: ["finalAnalysis", "sources"],
|
1595
|
+
properties: {
|
1596
|
+
finalAnalysis: {
|
1597
|
+
type: "string",
|
1598
|
+
description: "The content of the research",
|
1599
|
+
},
|
1600
|
+
sources: {
|
1601
|
+
type: "array",
|
1602
|
+
description: "The sources of the research",
|
1603
|
+
items: {
|
1604
|
+
type: "object",
|
1605
|
+
required: ["url", "title"],
|
1606
|
+
properties: {
|
1607
|
+
url: {
|
1608
|
+
type: "string",
|
1609
|
+
description: "The URL of the source",
|
1610
|
+
},
|
1611
|
+
title: {
|
1612
|
+
type: "string",
|
1613
|
+
description: "The title of the source",
|
1614
|
+
},
|
1615
|
+
description: {
|
1616
|
+
type: "string",
|
1617
|
+
description: "The description of the source",
|
1618
|
+
},
|
1619
|
+
},
|
1620
|
+
},
|
1621
|
+
},
|
1622
|
+
},
|
1623
|
+
},
|
1624
|
+
name: "deepResearch",
|
1625
|
+
provider: "firecrawl",
|
1626
|
+
};
|
1522
1627
|
exports.firecrawlScrapeUrlDefinition = {
|
1523
1628
|
description: "Scrape a URL and get website content using Firecrawl",
|
1524
1629
|
scopes: [],
|
@@ -552,6 +552,32 @@ export declare const jiraUpdateJiraTicketStatusOutputSchema: z.ZodObject<{
|
|
552
552
|
}>;
|
553
553
|
export type jiraUpdateJiraTicketStatusOutputType = z.infer<typeof jiraUpdateJiraTicketStatusOutputSchema>;
|
554
554
|
export type jiraUpdateJiraTicketStatusFunction = ActionFunction<jiraUpdateJiraTicketStatusParamsType, AuthParamsType, jiraUpdateJiraTicketStatusOutputType>;
|
555
|
+
export declare const jiraGetJiraIssuesByQueryParamsSchema: z.ZodObject<{
|
556
|
+
query: z.ZodString;
|
557
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
558
|
+
}, "strip", z.ZodTypeAny, {
|
559
|
+
query: string;
|
560
|
+
limit?: number | undefined;
|
561
|
+
}, {
|
562
|
+
query: string;
|
563
|
+
limit?: number | undefined;
|
564
|
+
}>;
|
565
|
+
export type jiraGetJiraIssuesByQueryParamsType = z.infer<typeof jiraGetJiraIssuesByQueryParamsSchema>;
|
566
|
+
export declare const jiraGetJiraIssuesByQueryOutputSchema: z.ZodObject<{
|
567
|
+
success: z.ZodBoolean;
|
568
|
+
records: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
|
569
|
+
error: z.ZodOptional<z.ZodString>;
|
570
|
+
}, "strip", z.ZodTypeAny, {
|
571
|
+
success: boolean;
|
572
|
+
error?: string | undefined;
|
573
|
+
records?: Record<string, string>[] | undefined;
|
574
|
+
}, {
|
575
|
+
success: boolean;
|
576
|
+
error?: string | undefined;
|
577
|
+
records?: Record<string, string>[] | undefined;
|
578
|
+
}>;
|
579
|
+
export type jiraGetJiraIssuesByQueryOutputType = z.infer<typeof jiraGetJiraIssuesByQueryOutputSchema>;
|
580
|
+
export type jiraGetJiraIssuesByQueryFunction = ActionFunction<jiraGetJiraIssuesByQueryParamsType, AuthParamsType, jiraGetJiraIssuesByQueryOutputType>;
|
555
581
|
export declare const googlemapsValidateAddressParamsSchema: z.ZodObject<{
|
556
582
|
regionCode: z.ZodString;
|
557
583
|
locality: z.ZodString;
|
@@ -844,12 +870,12 @@ export declare const credalCallCopilotParamsSchema: z.ZodObject<{
|
|
844
870
|
query: z.ZodString;
|
845
871
|
userEmail: z.ZodString;
|
846
872
|
}, "strip", z.ZodTypeAny, {
|
847
|
-
agentId: string;
|
848
873
|
query: string;
|
874
|
+
agentId: string;
|
849
875
|
userEmail: string;
|
850
876
|
}, {
|
851
|
-
agentId: string;
|
852
877
|
query: string;
|
878
|
+
agentId: string;
|
853
879
|
userEmail: string;
|
854
880
|
}>;
|
855
881
|
export type credalCallCopilotParamsType = z.infer<typeof credalCallCopilotParamsSchema>;
|
@@ -1337,6 +1363,55 @@ export declare const nwsGetForecastForLocationOutputSchema: z.ZodObject<{
|
|
1337
1363
|
}>;
|
1338
1364
|
export type nwsGetForecastForLocationOutputType = z.infer<typeof nwsGetForecastForLocationOutputSchema>;
|
1339
1365
|
export type nwsGetForecastForLocationFunction = ActionFunction<nwsGetForecastForLocationParamsType, AuthParamsType, nwsGetForecastForLocationOutputType>;
|
1366
|
+
export declare const firecrawlDeepResearchParamsSchema: z.ZodObject<{
|
1367
|
+
query: z.ZodString;
|
1368
|
+
maxDepth: z.ZodOptional<z.ZodNumber>;
|
1369
|
+
timeLimit: z.ZodOptional<z.ZodNumber>;
|
1370
|
+
maxUrls: z.ZodOptional<z.ZodNumber>;
|
1371
|
+
}, "strip", z.ZodTypeAny, {
|
1372
|
+
query: string;
|
1373
|
+
maxDepth?: number | undefined;
|
1374
|
+
timeLimit?: number | undefined;
|
1375
|
+
maxUrls?: number | undefined;
|
1376
|
+
}, {
|
1377
|
+
query: string;
|
1378
|
+
maxDepth?: number | undefined;
|
1379
|
+
timeLimit?: number | undefined;
|
1380
|
+
maxUrls?: number | undefined;
|
1381
|
+
}>;
|
1382
|
+
export type firecrawlDeepResearchParamsType = z.infer<typeof firecrawlDeepResearchParamsSchema>;
|
1383
|
+
export declare const firecrawlDeepResearchOutputSchema: z.ZodObject<{
|
1384
|
+
finalAnalysis: z.ZodString;
|
1385
|
+
sources: z.ZodArray<z.ZodObject<{
|
1386
|
+
url: z.ZodString;
|
1387
|
+
title: z.ZodString;
|
1388
|
+
description: z.ZodOptional<z.ZodString>;
|
1389
|
+
}, "strip", z.ZodTypeAny, {
|
1390
|
+
title: string;
|
1391
|
+
url: string;
|
1392
|
+
description?: string | undefined;
|
1393
|
+
}, {
|
1394
|
+
title: string;
|
1395
|
+
url: string;
|
1396
|
+
description?: string | undefined;
|
1397
|
+
}>, "many">;
|
1398
|
+
}, "strip", z.ZodTypeAny, {
|
1399
|
+
finalAnalysis: string;
|
1400
|
+
sources: {
|
1401
|
+
title: string;
|
1402
|
+
url: string;
|
1403
|
+
description?: string | undefined;
|
1404
|
+
}[];
|
1405
|
+
}, {
|
1406
|
+
finalAnalysis: string;
|
1407
|
+
sources: {
|
1408
|
+
title: string;
|
1409
|
+
url: string;
|
1410
|
+
description?: string | undefined;
|
1411
|
+
}[];
|
1412
|
+
}>;
|
1413
|
+
export type firecrawlDeepResearchOutputType = z.infer<typeof firecrawlDeepResearchOutputSchema>;
|
1414
|
+
export type firecrawlDeepResearchFunction = ActionFunction<firecrawlDeepResearchParamsType, AuthParamsType, firecrawlDeepResearchOutputType>;
|
1340
1415
|
export declare const firecrawlScrapeUrlParamsSchema: z.ZodObject<{
|
1341
1416
|
url: z.ZodString;
|
1342
1417
|
}, "strip", z.ZodTypeAny, {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.
|
5
|
-
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.salesforceUpdateRecordOutputSchema = exports.salesforceUpdateRecordParamsSchema = exports.ashbyUpdateCandidateOutputSchema = exports.ashbyUpdateCandidateParamsSchema = exports.ashbyCreateCandidateOutputSchema = exports.ashbyCreateCandidateParamsSchema = exports.ashbyListCandidateNotesOutputSchema = exports.ashbyListCandidateNotesParamsSchema = exports.ashbySearchCandidatesOutputSchema = void 0;
|
3
|
+
exports.zendeskAddCommentToTicketParamsSchema = exports.zendeskUpdateTicketStatusOutputSchema = exports.zendeskUpdateTicketStatusParamsSchema = exports.zendeskGetTicketDetailsOutputSchema = exports.zendeskGetTicketDetailsParamsSchema = exports.zendeskCreateZendeskTicketOutputSchema = exports.zendeskCreateZendeskTicketParamsSchema = exports.credalCallCopilotOutputSchema = exports.credalCallCopilotParamsSchema = 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.slackListConversationsOutputSchema = exports.slackListConversationsParamsSchema = 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.ashbyAddCandidateToProjectParamsSchema = exports.ashbyGetCandidateInfoOutputSchema = exports.ashbyGetCandidateInfoParamsSchema = exports.ashbyCreateNoteOutputSchema = exports.ashbyCreateNoteParamsSchema = exports.lookerEnableUserByEmailOutputSchema = exports.lookerEnableUserByEmailParamsSchema = exports.finnhubGetBasicFinancialsOutputSchema = exports.finnhubGetBasicFinancialsParamsSchema = exports.finnhubSymbolLookupOutputSchema = exports.finnhubSymbolLookupParamsSchema = 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 = void 0;
|
5
|
+
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.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 = void 0;
|
6
6
|
const zod_1 = require("zod");
|
7
7
|
exports.AuthParamsSchema = zod_1.z.object({
|
8
8
|
authToken: zod_1.z.string().optional(),
|
@@ -208,6 +208,15 @@ exports.jiraUpdateJiraTicketStatusOutputSchema = zod_1.z.object({
|
|
208
208
|
error: zod_1.z.string().describe("The error that occurred if the status was not updated successfully").optional(),
|
209
209
|
ticketUrl: zod_1.z.string().describe("The url to the Jira ticket").optional(),
|
210
210
|
});
|
211
|
+
exports.jiraGetJiraIssuesByQueryParamsSchema = zod_1.z.object({
|
212
|
+
query: zod_1.z.string().describe("The JQL query to execute"),
|
213
|
+
limit: zod_1.z.number().describe("The maximum number of records to retrieve").optional(),
|
214
|
+
});
|
215
|
+
exports.jiraGetJiraIssuesByQueryOutputSchema = zod_1.z.object({
|
216
|
+
success: zod_1.z.boolean().describe("Whether the records were successfully retrieved"),
|
217
|
+
records: zod_1.z.array(zod_1.z.record(zod_1.z.string()).describe("An issue from Jira")).describe("The retrieved records").optional(),
|
218
|
+
error: zod_1.z.string().describe("The error that occurred if the records were not successfully retrieved").optional(),
|
219
|
+
});
|
211
220
|
exports.googlemapsValidateAddressParamsSchema = zod_1.z.object({
|
212
221
|
regionCode: zod_1.z.string().describe("The country of the address being verified."),
|
213
222
|
locality: zod_1.z.string().describe("The locality of the address being verified. This is likely a city."),
|
@@ -459,6 +468,22 @@ exports.nwsGetForecastForLocationOutputSchema = zod_1.z.object({
|
|
459
468
|
})
|
460
469
|
.optional(),
|
461
470
|
});
|
471
|
+
exports.firecrawlDeepResearchParamsSchema = zod_1.z.object({
|
472
|
+
query: zod_1.z.string().describe("The query to search for"),
|
473
|
+
maxDepth: zod_1.z.number().describe("The maximum depth of the search").optional(),
|
474
|
+
timeLimit: zod_1.z.number().describe("The time limit for the search in seconds").optional(),
|
475
|
+
maxUrls: zod_1.z.number().describe("The maximum number of URLs to scrape").optional(),
|
476
|
+
});
|
477
|
+
exports.firecrawlDeepResearchOutputSchema = zod_1.z.object({
|
478
|
+
finalAnalysis: zod_1.z.string().describe("The content of the research"),
|
479
|
+
sources: zod_1.z
|
480
|
+
.array(zod_1.z.object({
|
481
|
+
url: zod_1.z.string().describe("The URL of the source"),
|
482
|
+
title: zod_1.z.string().describe("The title of the source"),
|
483
|
+
description: zod_1.z.string().describe("The description of the source").optional(),
|
484
|
+
}))
|
485
|
+
.describe("The sources of the research"),
|
486
|
+
});
|
462
487
|
exports.firecrawlScrapeUrlParamsSchema = zod_1.z.object({ url: zod_1.z.string().describe("The URL to scrape") });
|
463
488
|
exports.firecrawlScrapeUrlOutputSchema = zod_1.z.object({ content: zod_1.z.string().describe("The content of the URL") });
|
464
489
|
exports.firecrawlScrapeTweetDataWithNitterParamsSchema = zod_1.z.object({
|
package/dist/actions/groups.js
CHANGED
@@ -72,6 +72,7 @@ exports.ACTION_GROUPS = {
|
|
72
72
|
templates_1.jiraGetJiraTicketHistoryDefinition,
|
73
73
|
templates_1.jiraUpdateJiraTicketDetailsDefinition,
|
74
74
|
templates_1.jiraUpdateJiraTicketStatusDefinition,
|
75
|
+
templates_1.jiraGetJiraIssuesByQueryDefinition,
|
75
76
|
],
|
76
77
|
},
|
77
78
|
OPENSTREETMAP_GET_LATITUDE_LONGITUDE_FROM_LOCATION: {
|
@@ -84,7 +85,11 @@ exports.ACTION_GROUPS = {
|
|
84
85
|
},
|
85
86
|
FIRECRAWL: {
|
86
87
|
description: "Actions for interacting with Firecrawl",
|
87
|
-
actions: [
|
88
|
+
actions: [
|
89
|
+
templates_1.firecrawlScrapeUrlDefinition,
|
90
|
+
templates_1.firecrawlScrapeTweetDataWithNitterDefinition,
|
91
|
+
templates_1.firecrawlDeepResearchDefinition,
|
92
|
+
],
|
88
93
|
},
|
89
94
|
RESEND: {
|
90
95
|
description: "Action for sending an email",
|
@@ -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;
|
@@ -0,0 +1,38 @@
|
|
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 firecrawl_js_1 = __importDefault(require("@mendable/firecrawl-js"));
|
16
|
+
const types_1 = require("../../autogen/types");
|
17
|
+
const deepResearch = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
18
|
+
const { query, maxDepth, maxUrls, timeLimit } = params;
|
19
|
+
const firecrawl = new firecrawl_js_1.default({
|
20
|
+
apiKey: authParams.apiKey,
|
21
|
+
});
|
22
|
+
const result = yield firecrawl.deepResearch(query, {
|
23
|
+
maxDepth,
|
24
|
+
maxUrls,
|
25
|
+
timeLimit,
|
26
|
+
});
|
27
|
+
if (result.success && result.data) {
|
28
|
+
return types_1.firecrawlDeepResearchOutputSchema.parse({
|
29
|
+
finalAnalysis: result.data.finalAnalysis,
|
30
|
+
sources: result.data.sources,
|
31
|
+
});
|
32
|
+
}
|
33
|
+
return {
|
34
|
+
finalAnalysis: "Error",
|
35
|
+
sources: [],
|
36
|
+
};
|
37
|
+
});
|
38
|
+
exports.default = deepResearch;
|
@@ -10,21 +10,19 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
const axiosClient_1 = require("../../util/axiosClient");
|
13
|
-
const
|
14
|
-
|
13
|
+
const DEFAULT_LIMIT = 1000;
|
14
|
+
const getJiraIssuesByQuery = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
15
|
+
const { authToken, cloudId } = authParams;
|
15
16
|
const { query, limit } = params;
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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))}`;
|
17
|
+
const queryParams = new URLSearchParams();
|
18
|
+
queryParams.set("jql", query);
|
19
|
+
queryParams.set("maxResults", String(limit != undefined && limit <= DEFAULT_LIMIT ? limit : DEFAULT_LIMIT));
|
20
|
+
const apiUrl = `https://api.atlassian.com/ex/jira/${cloudId}/rest/api/3/search/jql?${queryParams.toString()}`;
|
24
21
|
try {
|
25
|
-
const response = yield axiosClient_1.axiosClient.get(
|
22
|
+
const response = yield axiosClient_1.axiosClient.get(apiUrl, {
|
26
23
|
headers: {
|
27
24
|
Authorization: `Bearer ${authToken}`,
|
25
|
+
Accept: "application/json",
|
28
26
|
},
|
29
27
|
});
|
30
28
|
return {
|
@@ -33,11 +31,15 @@ const getSalesforceRecordByQuery = (_a) => __awaiter(void 0, [_a], void 0, funct
|
|
33
31
|
};
|
34
32
|
}
|
35
33
|
catch (error) {
|
36
|
-
console.error("Error retrieving
|
34
|
+
console.error("Error retrieving Jira issues:", error);
|
37
35
|
return {
|
38
36
|
success: false,
|
39
|
-
error: error instanceof
|
37
|
+
error: error instanceof axiosClient_1.ApiError
|
38
|
+
? error.data.length > 0
|
39
|
+
? error.data[0].message
|
40
|
+
: error.message
|
41
|
+
: "An unknown error occurred",
|
40
42
|
};
|
41
43
|
}
|
42
44
|
});
|
43
|
-
exports.default =
|
45
|
+
exports.default = getJiraIssuesByQuery;
|
package/package.json
CHANGED