@credal/actions 0.1.97 → 0.1.98

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.
Files changed (32) hide show
  1. package/dist/actions/actionMapper.js +12 -0
  2. package/dist/actions/autogen/definitions.d.ts +5 -0
  3. package/dist/actions/autogen/definitions.js +132 -0
  4. package/dist/actions/autogen/templates.d.ts +2 -0
  5. package/dist/actions/autogen/templates.js +153 -1
  6. package/dist/actions/autogen/types.d.ts +156 -0
  7. package/dist/actions/autogen/types.js +44 -2
  8. package/dist/actions/definitions.js +35 -0
  9. package/dist/actions/groups.js +4 -0
  10. package/dist/actions/invokeMapper.d.ts +9 -0
  11. package/dist/actions/invokeMapper.js +33 -0
  12. package/dist/actions/providers/confluence/updatePage.d.ts +3 -0
  13. package/dist/actions/providers/confluence/updatePage.js +43 -0
  14. package/dist/actions/providers/google-oauth/listGmailThreads.d.ts +3 -0
  15. package/dist/actions/providers/google-oauth/listGmailThreads.js +98 -0
  16. package/dist/actions/providers/google-oauth/searchGmailMessages.d.ts +3 -0
  17. package/dist/actions/providers/google-oauth/searchGmailMessages.js +91 -0
  18. package/dist/actions/providers/google-oauth/utils/decodeMessage.d.ts +27 -0
  19. package/dist/actions/providers/google-oauth/utils/decodeMessage.js +41 -0
  20. package/dist/actions/providers/googlemaps/nearbysearch.d.ts +3 -0
  21. package/dist/actions/providers/googlemaps/nearbysearch.js +96 -0
  22. package/dist/actions/providers/jira/createTicket.d.ts +3 -0
  23. package/dist/actions/providers/jira/createTicket.js +34 -0
  24. package/dist/actions/providers/slack/listConversations.d.ts +1 -1
  25. package/dist/actions/providers/slack/list_conversations.d.ts +3 -0
  26. package/dist/actions/providers/slack/list_conversations.js +60 -0
  27. package/dist/actions/providers/slack/summarizeChannel.d.ts +3 -0
  28. package/dist/actions/providers/slack/summarizeChannel.js +51 -0
  29. package/dist/actions/schema.js +6 -0
  30. package/dist/actions/types.js +2 -0
  31. package/dist/main.js +11 -0
  32. package/package.json +1 -1
@@ -86,6 +86,8 @@ const getFVRecoveryKeyForDevice_1 = __importDefault(require("./providers/kandji/
86
86
  const listAsanaTasksByProject_1 = __importDefault(require("./providers/asana/listAsanaTasksByProject"));
87
87
  const getTasksDetails_1 = __importDefault(require("./providers/asana/getTasksDetails"));
88
88
  const searchByTitle_1 = __importDefault(require("./providers/notion/searchByTitle"));
89
+ const searchGmailMessages_1 = __importDefault(require("./providers/google-oauth/searchGmailMessages"));
90
+ const listGmailThreads_1 = __importDefault(require("./providers/google-oauth/listGmailThreads"));
89
91
  exports.ActionMapper = {
90
92
  generic: {
91
93
  fillTemplate: {
@@ -369,6 +371,16 @@ exports.ActionMapper = {
369
371
  paramsSchema: types_1.googleOauthSearchDriveByKeywordsParamsSchema,
370
372
  outputSchema: types_1.googleOauthSearchDriveByKeywordsOutputSchema,
371
373
  },
374
+ searchGmailMessages: {
375
+ fn: searchGmailMessages_1.default,
376
+ paramsSchema: types_1.googleOauthSearchGmailMessagesParamsSchema,
377
+ outputSchema: types_1.googleOauthSearchGmailMessagesOutputSchema,
378
+ },
379
+ listGmailThreads: {
380
+ fn: listGmailThreads_1.default,
381
+ paramsSchema: types_1.googleOauthListGmailThreadsParamsSchema,
382
+ outputSchema: types_1.googleOauthListGmailThreadsOutputSchema,
383
+ },
372
384
  },
373
385
  x: {
374
386
  createShareXPostUrl: {
@@ -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
+ };
@@ -50,6 +50,8 @@ export declare const googleOauthUpdateSpreadsheetDefinition: ActionTemplate;
50
50
  export declare const googleOauthCreatePresentationDefinition: ActionTemplate;
51
51
  export declare const googleOauthUpdatePresentationDefinition: ActionTemplate;
52
52
  export declare const googleOauthSearchDriveByKeywordsDefinition: ActionTemplate;
53
+ export declare const googleOauthSearchGmailMessagesDefinition: ActionTemplate;
54
+ export declare const googleOauthListGmailThreadsDefinition: ActionTemplate;
53
55
  export declare const gongGetGongTranscriptsDefinition: ActionTemplate;
54
56
  export declare const finnhubSymbolLookupDefinition: ActionTemplate;
55
57
  export declare const finnhubGetBasicFinancialsDefinition: ActionTemplate;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.googleOauthUpdatePresentationDefinition = exports.googleOauthCreatePresentationDefinition = exports.googleOauthUpdateSpreadsheetDefinition = exports.googleOauthCreateSpreadsheetDefinition = exports.googleOauthScheduleCalendarMeetingDefinition = exports.googleOauthUpdateDocDefinition = exports.googleOauthCreateNewGoogleDocDefinition = exports.googleOauthSearchFilesByKeywordsDefinition = 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.kandjiGetFVRecoveryKeyForDeviceDefinition = 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.asanaGetTasksDetailsDefinition = exports.asanaSearchTasksDefinition = exports.asanaUpdateTaskDefinition = exports.asanaCreateTaskDefinition = exports.asanaListAsanaTasksByProjectDefinition = exports.asanaCommentTaskDefinition = exports.genericFillTemplateDefinition = void 0;
4
- exports.notionSearchByTitleDefinition = 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 = exports.ashbyCreateNoteDefinition = exports.lookerEnableUserByEmailDefinition = exports.finnhubGetBasicFinancialsDefinition = exports.finnhubSymbolLookupDefinition = exports.gongGetGongTranscriptsDefinition = exports.googleOauthSearchDriveByKeywordsDefinition = void 0;
4
+ exports.notionSearchByTitleDefinition = 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 = exports.ashbyCreateNoteDefinition = exports.lookerEnableUserByEmailDefinition = exports.finnhubGetBasicFinancialsDefinition = exports.finnhubSymbolLookupDefinition = exports.gongGetGongTranscriptsDefinition = exports.googleOauthListGmailThreadsDefinition = exports.googleOauthSearchGmailMessagesDefinition = exports.googleOauthSearchDriveByKeywordsDefinition = void 0;
5
5
  exports.genericFillTemplateDefinition = {
6
6
  description: "Simple utility that takes a template and returns it filled in",
7
7
  scopes: [],
@@ -5323,6 +5323,158 @@ exports.googleOauthSearchDriveByKeywordsDefinition = {
5323
5323
  name: "searchDriveByKeywords",
5324
5324
  provider: "googleOauth",
5325
5325
  };
5326
+ exports.googleOauthSearchGmailMessagesDefinition = {
5327
+ description: "Search Gmail messages in a user's inbox using a query string.",
5328
+ scopes: ["https://www.googleapis.com/auth/gmail.readonly"],
5329
+ parameters: {
5330
+ type: "object",
5331
+ required: ["query"],
5332
+ properties: {
5333
+ query: {
5334
+ type: "string",
5335
+ description: 'Gmail search query (e.g. "from:alice subject:urgent")',
5336
+ },
5337
+ maxResults: {
5338
+ type: "integer",
5339
+ description: "Maximum number of messages to return (optional)",
5340
+ },
5341
+ },
5342
+ },
5343
+ output: {
5344
+ type: "object",
5345
+ required: ["success", "messages"],
5346
+ properties: {
5347
+ success: {
5348
+ type: "boolean",
5349
+ },
5350
+ messages: {
5351
+ type: "array",
5352
+ description: "List of matching Gmail messages",
5353
+ items: {
5354
+ type: "object",
5355
+ required: ["id", "threadId"],
5356
+ properties: {
5357
+ id: {
5358
+ type: "string",
5359
+ description: "The message ID",
5360
+ },
5361
+ threadId: {
5362
+ type: "string",
5363
+ description: "The thread ID",
5364
+ },
5365
+ snippet: {
5366
+ type: "string",
5367
+ description: "A short part of the message text",
5368
+ },
5369
+ labelIds: {
5370
+ type: "array",
5371
+ items: {
5372
+ type: "string",
5373
+ },
5374
+ description: "Labels on the message",
5375
+ },
5376
+ internalDate: {
5377
+ type: "string",
5378
+ description: "Internal timestamp of the message",
5379
+ },
5380
+ emailBody: {
5381
+ type: "string",
5382
+ description: "The body of the message",
5383
+ },
5384
+ },
5385
+ },
5386
+ },
5387
+ error: {
5388
+ type: "string",
5389
+ description: "Error message if search failed",
5390
+ },
5391
+ },
5392
+ },
5393
+ name: "searchGmailMessages",
5394
+ provider: "googleOauth",
5395
+ };
5396
+ exports.googleOauthListGmailThreadsDefinition = {
5397
+ description: "List Gmail threads in a user's inbox using a query string.",
5398
+ scopes: ["https://www.googleapis.com/auth/gmail.readonly"],
5399
+ parameters: {
5400
+ type: "object",
5401
+ required: ["query"],
5402
+ properties: {
5403
+ query: {
5404
+ type: "string",
5405
+ description: 'Gmail search query (e.g. "from:alice subject:project")',
5406
+ },
5407
+ maxResults: {
5408
+ type: "integer",
5409
+ description: "Maximum number of threads to return",
5410
+ },
5411
+ },
5412
+ },
5413
+ output: {
5414
+ type: "object",
5415
+ required: ["success", "threads"],
5416
+ properties: {
5417
+ success: {
5418
+ type: "boolean",
5419
+ },
5420
+ threads: {
5421
+ type: "array",
5422
+ description: "List of matching Gmail threads",
5423
+ items: {
5424
+ type: "object",
5425
+ required: ["id", "historyId", "messages"],
5426
+ properties: {
5427
+ id: {
5428
+ type: "string",
5429
+ description: "The thread ID",
5430
+ },
5431
+ historyId: {
5432
+ type: "string",
5433
+ description: "The thread history ID",
5434
+ },
5435
+ messages: {
5436
+ type: "array",
5437
+ description: "The messages in the thread",
5438
+ items: {
5439
+ type: "object",
5440
+ required: ["id", "threadId", "snippet", "labelIds", "internalDate", "emailBody"],
5441
+ properties: {
5442
+ id: {
5443
+ type: "string",
5444
+ },
5445
+ threadId: {
5446
+ type: "string",
5447
+ },
5448
+ snippet: {
5449
+ type: "string",
5450
+ },
5451
+ labelIds: {
5452
+ type: "array",
5453
+ items: {
5454
+ type: "string",
5455
+ },
5456
+ },
5457
+ internalDate: {
5458
+ type: "string",
5459
+ },
5460
+ emailBody: {
5461
+ type: "string",
5462
+ },
5463
+ },
5464
+ },
5465
+ },
5466
+ },
5467
+ },
5468
+ },
5469
+ error: {
5470
+ type: "string",
5471
+ description: "Error message if search failed",
5472
+ },
5473
+ },
5474
+ },
5475
+ name: "listGmailThreads",
5476
+ provider: "googleOauth",
5477
+ };
5326
5478
  exports.gongGetGongTranscriptsDefinition = {
5327
5479
  description: "Get sales call transcripts from Gong",
5328
5480
  scopes: [],
@@ -2527,6 +2527,162 @@ export declare const googleOauthSearchDriveByKeywordsOutputSchema: z.ZodObject<{
2527
2527
  }>;
2528
2528
  export type googleOauthSearchDriveByKeywordsOutputType = z.infer<typeof googleOauthSearchDriveByKeywordsOutputSchema>;
2529
2529
  export type googleOauthSearchDriveByKeywordsFunction = ActionFunction<googleOauthSearchDriveByKeywordsParamsType, AuthParamsType, googleOauthSearchDriveByKeywordsOutputType>;
2530
+ export declare const googleOauthSearchGmailMessagesParamsSchema: z.ZodObject<{
2531
+ query: z.ZodString;
2532
+ maxResults: z.ZodOptional<z.ZodNumber>;
2533
+ }, "strip", z.ZodTypeAny, {
2534
+ query: string;
2535
+ maxResults?: number | undefined;
2536
+ }, {
2537
+ query: string;
2538
+ maxResults?: number | undefined;
2539
+ }>;
2540
+ export type googleOauthSearchGmailMessagesParamsType = z.infer<typeof googleOauthSearchGmailMessagesParamsSchema>;
2541
+ export declare const googleOauthSearchGmailMessagesOutputSchema: z.ZodObject<{
2542
+ success: z.ZodBoolean;
2543
+ messages: z.ZodArray<z.ZodObject<{
2544
+ id: z.ZodString;
2545
+ threadId: z.ZodString;
2546
+ snippet: z.ZodOptional<z.ZodString>;
2547
+ labelIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2548
+ internalDate: z.ZodOptional<z.ZodString>;
2549
+ emailBody: z.ZodOptional<z.ZodString>;
2550
+ }, "strip", z.ZodTypeAny, {
2551
+ id: string;
2552
+ threadId: string;
2553
+ snippet?: string | undefined;
2554
+ labelIds?: string[] | undefined;
2555
+ internalDate?: string | undefined;
2556
+ emailBody?: string | undefined;
2557
+ }, {
2558
+ id: string;
2559
+ threadId: string;
2560
+ snippet?: string | undefined;
2561
+ labelIds?: string[] | undefined;
2562
+ internalDate?: string | undefined;
2563
+ emailBody?: string | undefined;
2564
+ }>, "many">;
2565
+ error: z.ZodOptional<z.ZodString>;
2566
+ }, "strip", z.ZodTypeAny, {
2567
+ success: boolean;
2568
+ messages: {
2569
+ id: string;
2570
+ threadId: string;
2571
+ snippet?: string | undefined;
2572
+ labelIds?: string[] | undefined;
2573
+ internalDate?: string | undefined;
2574
+ emailBody?: string | undefined;
2575
+ }[];
2576
+ error?: string | undefined;
2577
+ }, {
2578
+ success: boolean;
2579
+ messages: {
2580
+ id: string;
2581
+ threadId: string;
2582
+ snippet?: string | undefined;
2583
+ labelIds?: string[] | undefined;
2584
+ internalDate?: string | undefined;
2585
+ emailBody?: string | undefined;
2586
+ }[];
2587
+ error?: string | undefined;
2588
+ }>;
2589
+ export type googleOauthSearchGmailMessagesOutputType = z.infer<typeof googleOauthSearchGmailMessagesOutputSchema>;
2590
+ export type googleOauthSearchGmailMessagesFunction = ActionFunction<googleOauthSearchGmailMessagesParamsType, AuthParamsType, googleOauthSearchGmailMessagesOutputType>;
2591
+ export declare const googleOauthListGmailThreadsParamsSchema: z.ZodObject<{
2592
+ query: z.ZodString;
2593
+ maxResults: z.ZodOptional<z.ZodNumber>;
2594
+ }, "strip", z.ZodTypeAny, {
2595
+ query: string;
2596
+ maxResults?: number | undefined;
2597
+ }, {
2598
+ query: string;
2599
+ maxResults?: number | undefined;
2600
+ }>;
2601
+ export type googleOauthListGmailThreadsParamsType = z.infer<typeof googleOauthListGmailThreadsParamsSchema>;
2602
+ export declare const googleOauthListGmailThreadsOutputSchema: z.ZodObject<{
2603
+ success: z.ZodBoolean;
2604
+ threads: z.ZodArray<z.ZodObject<{
2605
+ id: z.ZodString;
2606
+ historyId: z.ZodString;
2607
+ messages: z.ZodArray<z.ZodObject<{
2608
+ id: z.ZodString;
2609
+ threadId: z.ZodString;
2610
+ snippet: z.ZodString;
2611
+ labelIds: z.ZodArray<z.ZodString, "many">;
2612
+ internalDate: z.ZodString;
2613
+ emailBody: z.ZodString;
2614
+ }, "strip", z.ZodTypeAny, {
2615
+ id: string;
2616
+ threadId: string;
2617
+ snippet: string;
2618
+ labelIds: string[];
2619
+ internalDate: string;
2620
+ emailBody: string;
2621
+ }, {
2622
+ id: string;
2623
+ threadId: string;
2624
+ snippet: string;
2625
+ labelIds: string[];
2626
+ internalDate: string;
2627
+ emailBody: string;
2628
+ }>, "many">;
2629
+ }, "strip", z.ZodTypeAny, {
2630
+ id: string;
2631
+ messages: {
2632
+ id: string;
2633
+ threadId: string;
2634
+ snippet: string;
2635
+ labelIds: string[];
2636
+ internalDate: string;
2637
+ emailBody: string;
2638
+ }[];
2639
+ historyId: string;
2640
+ }, {
2641
+ id: string;
2642
+ messages: {
2643
+ id: string;
2644
+ threadId: string;
2645
+ snippet: string;
2646
+ labelIds: string[];
2647
+ internalDate: string;
2648
+ emailBody: string;
2649
+ }[];
2650
+ historyId: string;
2651
+ }>, "many">;
2652
+ error: z.ZodOptional<z.ZodString>;
2653
+ }, "strip", z.ZodTypeAny, {
2654
+ success: boolean;
2655
+ threads: {
2656
+ id: string;
2657
+ messages: {
2658
+ id: string;
2659
+ threadId: string;
2660
+ snippet: string;
2661
+ labelIds: string[];
2662
+ internalDate: string;
2663
+ emailBody: string;
2664
+ }[];
2665
+ historyId: string;
2666
+ }[];
2667
+ error?: string | undefined;
2668
+ }, {
2669
+ success: boolean;
2670
+ threads: {
2671
+ id: string;
2672
+ messages: {
2673
+ id: string;
2674
+ threadId: string;
2675
+ snippet: string;
2676
+ labelIds: string[];
2677
+ internalDate: string;
2678
+ emailBody: string;
2679
+ }[];
2680
+ historyId: string;
2681
+ }[];
2682
+ error?: string | undefined;
2683
+ }>;
2684
+ export type googleOauthListGmailThreadsOutputType = z.infer<typeof googleOauthListGmailThreadsOutputSchema>;
2685
+ export type googleOauthListGmailThreadsFunction = ActionFunction<googleOauthListGmailThreadsParamsType, AuthParamsType, googleOauthListGmailThreadsOutputType>;
2530
2686
  export declare const gongGetGongTranscriptsParamsSchema: z.ZodObject<{
2531
2687
  userRole: z.ZodString;
2532
2688
  trackers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.credalCallCopilotParamsSchema = exports.bingGetTopNSearchResultUrlsOutputSchema = exports.bingGetTopNSearchResultUrlsParamsSchema = exports.googlemapsNearbysearchRestaurantsOutputSchema = exports.googlemapsNearbysearchRestaurantsParamsSchema = exports.googlemapsValidateAddressOutputSchema = exports.googlemapsValidateAddressParamsSchema = exports.kandjiGetFVRecoveryKeyForDeviceOutputSchema = exports.kandjiGetFVRecoveryKeyForDeviceParamsSchema = 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.asanaGetTasksDetailsOutputSchema = exports.asanaGetTasksDetailsParamsSchema = exports.asanaSearchTasksOutputSchema = exports.asanaSearchTasksParamsSchema = exports.asanaUpdateTaskOutputSchema = exports.asanaUpdateTaskParamsSchema = exports.asanaCreateTaskOutputSchema = exports.asanaCreateTaskParamsSchema = exports.asanaListAsanaTasksByProjectOutputSchema = exports.asanaListAsanaTasksByProjectParamsSchema = exports.asanaCommentTaskOutputSchema = exports.asanaCommentTaskParamsSchema = exports.genericFillTemplateOutputSchema = exports.genericFillTemplateParamsSchema = exports.AuthParamsSchema = void 0;
4
4
  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.googleOauthSearchFilesByKeywordsOutputSchema = exports.googleOauthSearchFilesByKeywordsParamsSchema = 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 = exports.zendeskUpdateTicketStatusParamsSchema = exports.zendeskGetTicketDetailsOutputSchema = exports.zendeskGetTicketDetailsParamsSchema = exports.zendeskListZendeskTicketsOutputSchema = exports.zendeskListZendeskTicketsParamsSchema = exports.zendeskCreateZendeskTicketOutputSchema = exports.zendeskCreateZendeskTicketParamsSchema = exports.credalCallCopilotOutputSchema = void 0;
5
- 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 = exports.ashbyCreateNoteParamsSchema = exports.lookerEnableUserByEmailOutputSchema = exports.lookerEnableUserByEmailParamsSchema = exports.finnhubGetBasicFinancialsOutputSchema = exports.finnhubGetBasicFinancialsParamsSchema = exports.finnhubSymbolLookupOutputSchema = exports.finnhubSymbolLookupParamsSchema = exports.gongGetGongTranscriptsOutputSchema = exports.gongGetGongTranscriptsParamsSchema = exports.googleOauthSearchDriveByKeywordsOutputSchema = exports.googleOauthSearchDriveByKeywordsParamsSchema = exports.googleOauthUpdatePresentationOutputSchema = void 0;
6
- exports.notionSearchByTitleOutputSchema = exports.notionSearchByTitleParamsSchema = exports.githubListPullRequestsOutputSchema = exports.githubListPullRequestsParamsSchema = exports.githubCreatePullRequestOutputSchema = exports.githubCreatePullRequestParamsSchema = exports.githubCreateBranchOutputSchema = exports.githubCreateBranchParamsSchema = exports.githubCreateOrUpdateFileOutputSchema = exports.githubCreateOrUpdateFileParamsSchema = exports.microsoftGetDocumentOutputSchema = exports.microsoftGetDocumentParamsSchema = exports.microsoftMessageTeamsChannelOutputSchema = void 0;
5
+ 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 = exports.ashbyCreateNoteParamsSchema = exports.lookerEnableUserByEmailOutputSchema = exports.lookerEnableUserByEmailParamsSchema = exports.finnhubGetBasicFinancialsOutputSchema = exports.finnhubGetBasicFinancialsParamsSchema = exports.finnhubSymbolLookupOutputSchema = exports.finnhubSymbolLookupParamsSchema = exports.gongGetGongTranscriptsOutputSchema = exports.gongGetGongTranscriptsParamsSchema = exports.googleOauthListGmailThreadsOutputSchema = exports.googleOauthListGmailThreadsParamsSchema = exports.googleOauthSearchGmailMessagesOutputSchema = exports.googleOauthSearchGmailMessagesParamsSchema = exports.googleOauthSearchDriveByKeywordsOutputSchema = exports.googleOauthSearchDriveByKeywordsParamsSchema = exports.googleOauthUpdatePresentationOutputSchema = void 0;
6
+ exports.notionSearchByTitleOutputSchema = exports.notionSearchByTitleParamsSchema = 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 = void 0;
7
7
  const zod_1 = require("zod");
8
8
  exports.AuthParamsSchema = zod_1.z.object({
9
9
  authToken: zod_1.z.string().optional(),
@@ -2118,6 +2118,48 @@ exports.googleOauthSearchDriveByKeywordsOutputSchema = zod_1.z.object({
2118
2118
  .optional(),
2119
2119
  error: zod_1.z.string().describe("Error message if search failed").optional(),
2120
2120
  });
2121
+ exports.googleOauthSearchGmailMessagesParamsSchema = zod_1.z.object({
2122
+ query: zod_1.z.string().describe('Gmail search query (e.g. "from:alice subject:urgent")'),
2123
+ maxResults: zod_1.z.number().int().describe("Maximum number of messages to return (optional)").optional(),
2124
+ });
2125
+ exports.googleOauthSearchGmailMessagesOutputSchema = zod_1.z.object({
2126
+ success: zod_1.z.boolean(),
2127
+ messages: zod_1.z
2128
+ .array(zod_1.z.object({
2129
+ id: zod_1.z.string().describe("The message ID"),
2130
+ threadId: zod_1.z.string().describe("The thread ID"),
2131
+ snippet: zod_1.z.string().describe("A short part of the message text").optional(),
2132
+ labelIds: zod_1.z.array(zod_1.z.string()).describe("Labels on the message").optional(),
2133
+ internalDate: zod_1.z.string().describe("Internal timestamp of the message").optional(),
2134
+ emailBody: zod_1.z.string().describe("The body of the message").optional(),
2135
+ }))
2136
+ .describe("List of matching Gmail messages"),
2137
+ error: zod_1.z.string().describe("Error message if search failed").optional(),
2138
+ });
2139
+ exports.googleOauthListGmailThreadsParamsSchema = zod_1.z.object({
2140
+ query: zod_1.z.string().describe('Gmail search query (e.g. "from:alice subject:project")'),
2141
+ maxResults: zod_1.z.number().int().describe("Maximum number of threads to return").optional(),
2142
+ });
2143
+ exports.googleOauthListGmailThreadsOutputSchema = zod_1.z.object({
2144
+ success: zod_1.z.boolean(),
2145
+ threads: zod_1.z
2146
+ .array(zod_1.z.object({
2147
+ id: zod_1.z.string().describe("The thread ID"),
2148
+ historyId: zod_1.z.string().describe("The thread history ID"),
2149
+ messages: zod_1.z
2150
+ .array(zod_1.z.object({
2151
+ id: zod_1.z.string(),
2152
+ threadId: zod_1.z.string(),
2153
+ snippet: zod_1.z.string(),
2154
+ labelIds: zod_1.z.array(zod_1.z.string()),
2155
+ internalDate: zod_1.z.string(),
2156
+ emailBody: zod_1.z.string(),
2157
+ }))
2158
+ .describe("The messages in the thread"),
2159
+ }))
2160
+ .describe("List of matching Gmail threads"),
2161
+ error: zod_1.z.string().describe("Error message if search failed").optional(),
2162
+ });
2121
2163
  exports.gongGetGongTranscriptsParamsSchema = zod_1.z.object({
2122
2164
  userRole: zod_1.z.string().describe("The role of users whose transcripts are being fetched"),
2123
2165
  trackers: zod_1.z
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mathAddDefinition = exports.slackSendMessageDefinition = void 0;
4
+ exports.slackSendMessageDefinition = {
5
+ name: "send_message",
6
+ description: "Sends a message to a Slack channel",
7
+ parameters: {
8
+ "channel": {
9
+ "type": "string",
10
+ "description": "The Slack channel to send the message to (e.g., \\#general, \\#alerts)",
11
+ "required": true
12
+ },
13
+ "message": {
14
+ "type": "string",
15
+ "description": "The message content to send to Slack. Can include markdown formatting.",
16
+ "required": true
17
+ }
18
+ }
19
+ };
20
+ exports.mathAddDefinition = {
21
+ name: "add",
22
+ description: "Adds two numbers together",
23
+ parameters: {
24
+ "a": {
25
+ "type": "number",
26
+ "description": "The first number to add",
27
+ "required": true
28
+ },
29
+ "b": {
30
+ "type": "number",
31
+ "description": "The second number to add",
32
+ "required": true
33
+ }
34
+ }
35
+ };
@@ -50,6 +50,10 @@ exports.ACTION_GROUPS = {
50
50
  description: "Actions for interacting with Google Calendar",
51
51
  actions: [templates_1.googleOauthScheduleCalendarMeetingDefinition],
52
52
  },
53
+ GMAIL: {
54
+ description: "Actions for interacting with Gmail",
55
+ actions: [templates_1.googleOauthSearchGmailMessagesDefinition, templates_1.googleOauthListGmailThreadsDefinition],
56
+ },
53
57
  CREDAL_CALL_COPILOT: {
54
58
  description: "Action for calling a Credal Copilot",
55
59
  actions: [templates_1.credalCallCopilotDefinition],
@@ -0,0 +1,9 @@
1
+ import { type ActionFunction } from "./autogen/types";
2
+ import { z } from "zod";
3
+ interface ActionFunctionComponents {
4
+ fn: ActionFunction<any, any, any>;
5
+ paramsSchema: z.ZodSchema;
6
+ outputSchema: z.ZodSchema;
7
+ }
8
+ export declare const FunctionMapper: Record<string, Record<string, ActionFunctionComponents>>;
9
+ export {};