@credal/actions 0.1.97 → 0.1.99

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 (37) hide show
  1. package/dist/actions/actionMapper.js +77 -3
  2. package/dist/actions/autogen/templates.d.ts +12 -0
  3. package/dist/actions/autogen/templates.js +735 -2
  4. package/dist/actions/autogen/types.d.ts +689 -4
  5. package/dist/actions/autogen/types.js +209 -3
  6. package/dist/actions/groups.js +22 -1
  7. package/dist/actions/providers/confluence/updatePage.d.ts +3 -0
  8. package/dist/actions/providers/confluence/updatePage.js +47 -0
  9. package/dist/actions/providers/google-oauth/addGroupMember.d.ts +3 -0
  10. package/dist/actions/providers/google-oauth/addGroupMember.js +37 -0
  11. package/dist/actions/providers/google-oauth/deleteCalendarEvent.d.ts +3 -0
  12. package/dist/actions/providers/google-oauth/deleteCalendarEvent.js +35 -0
  13. package/dist/actions/providers/google-oauth/deleteGroupMember.d.ts +3 -0
  14. package/dist/actions/providers/google-oauth/deleteGroupMember.js +33 -0
  15. package/dist/actions/providers/google-oauth/getGroup.d.ts +3 -0
  16. package/dist/actions/providers/google-oauth/getGroup.js +43 -0
  17. package/dist/actions/providers/google-oauth/hasGroupMember.d.ts +3 -0
  18. package/dist/actions/providers/google-oauth/hasGroupMember.js +37 -0
  19. package/dist/actions/providers/google-oauth/listCalendarEvents.d.ts +3 -0
  20. package/dist/actions/providers/google-oauth/listCalendarEvents.js +86 -0
  21. package/dist/actions/providers/google-oauth/listCalendars.d.ts +3 -0
  22. package/dist/actions/providers/google-oauth/listCalendars.js +63 -0
  23. package/dist/actions/providers/google-oauth/listGroupMembers.d.ts +3 -0
  24. package/dist/actions/providers/google-oauth/listGroupMembers.js +54 -0
  25. package/dist/actions/providers/google-oauth/listGroups.d.ts +3 -0
  26. package/dist/actions/providers/google-oauth/listGroups.js +56 -0
  27. package/dist/actions/providers/google-oauth/updateCalendarEvent.d.ts +3 -0
  28. package/dist/actions/providers/google-oauth/updateCalendarEvent.js +59 -0
  29. package/dist/actions/providers/google-oauth/utils/decodeMessage.d.ts +27 -0
  30. package/dist/actions/providers/google-oauth/utils/decodeMessage.js +41 -0
  31. package/dist/actions/providers/googlemail/listGmailThreads.d.ts +3 -0
  32. package/dist/actions/providers/googlemail/listGmailThreads.js +98 -0
  33. package/dist/actions/providers/googlemail/searchGmailMessages.d.ts +3 -0
  34. package/dist/actions/providers/googlemail/searchGmailMessages.js +91 -0
  35. package/package.json +1 -1
  36. package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +0 -3
  37. package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.js +0 -43
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ exports.googleOauthDeleteCalendarEventDefinition = exports.googleOauthUpdateCalendarEventDefinition = exports.googleOauthListCalendarEventsDefinition = exports.googleOauthListCalendarsDefinition = 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.googlemailListGmailThreadsDefinition = exports.googlemailSearchGmailMessagesDefinition = exports.googleOauthDeleteGroupMemberDefinition = exports.googleOauthAddGroupMemberDefinition = exports.googleOauthHasGroupMemberDefinition = exports.googleOauthListGroupMembersDefinition = exports.googleOauthGetGroupDefinition = exports.googleOauthListGroupsDefinition = exports.googleOauthSearchDriveByKeywordsDefinition = exports.googleOauthUpdatePresentationDefinition = exports.googleOauthCreatePresentationDefinition = exports.googleOauthUpdateSpreadsheetDefinition = exports.googleOauthCreateSpreadsheetDefinition = void 0;
5
5
  exports.genericFillTemplateDefinition = {
6
6
  description: "Simple utility that takes a template and returns it filled in",
7
7
  scopes: [],
@@ -3407,6 +3407,309 @@ exports.googleOauthScheduleCalendarMeetingDefinition = {
3407
3407
  name: "scheduleCalendarMeeting",
3408
3408
  provider: "googleOauth",
3409
3409
  };
3410
+ exports.googleOauthListCalendarsDefinition = {
3411
+ description: "List all Google Calendars for the authenticated user",
3412
+ scopes: ["https://www.googleapis.com/auth/calendar.readonly"],
3413
+ parameters: {
3414
+ type: "object",
3415
+ required: [],
3416
+ properties: {
3417
+ maxResults: {
3418
+ type: "integer",
3419
+ description: "Maximum number of calendars to return, defaults to 250",
3420
+ },
3421
+ },
3422
+ },
3423
+ output: {
3424
+ type: "object",
3425
+ required: ["success", "calendars"],
3426
+ properties: {
3427
+ success: {
3428
+ type: "boolean",
3429
+ description: "Whether the calendars were listed successfully",
3430
+ },
3431
+ calendars: {
3432
+ type: "array",
3433
+ description: "List of calendars",
3434
+ items: {
3435
+ type: "object",
3436
+ required: ["id", "summary"],
3437
+ properties: {
3438
+ id: {
3439
+ type: "string",
3440
+ description: "The calendar ID",
3441
+ },
3442
+ summary: {
3443
+ type: "string",
3444
+ description: "The calendar name",
3445
+ },
3446
+ },
3447
+ },
3448
+ },
3449
+ error: {
3450
+ type: "string",
3451
+ description: "Error message if listing failed",
3452
+ },
3453
+ },
3454
+ },
3455
+ name: "listCalendars",
3456
+ provider: "googleOauth",
3457
+ };
3458
+ exports.googleOauthListCalendarEventsDefinition = {
3459
+ description: "List events on a Google Calendar, optionally searching by query.",
3460
+ scopes: ["https://www.googleapis.com/auth/calendar.readonly"],
3461
+ parameters: {
3462
+ type: "object",
3463
+ required: ["calendarId"],
3464
+ properties: {
3465
+ calendarId: {
3466
+ type: "string",
3467
+ description: "The ID of the calendar to list events from",
3468
+ },
3469
+ query: {
3470
+ type: "string",
3471
+ description: "Optional free-text search query to filter events",
3472
+ },
3473
+ maxResults: {
3474
+ type: "integer",
3475
+ description: "Maximum number of events to return, defaults to 250",
3476
+ },
3477
+ },
3478
+ },
3479
+ output: {
3480
+ type: "object",
3481
+ required: ["success", "events"],
3482
+ properties: {
3483
+ success: {
3484
+ type: "boolean",
3485
+ description: "Whether the events were listed successfully",
3486
+ },
3487
+ events: {
3488
+ type: "array",
3489
+ description: "List of events",
3490
+ items: {
3491
+ type: "object",
3492
+ description: "A calendar event",
3493
+ properties: {
3494
+ id: {
3495
+ type: "string",
3496
+ description: "Event unique identifier",
3497
+ },
3498
+ status: {
3499
+ type: "string",
3500
+ description: "Status of the event (e.g., confirmed, cancelled)",
3501
+ },
3502
+ url: {
3503
+ type: "string",
3504
+ description: "Link to the event in the Google Calendar web UI",
3505
+ },
3506
+ title: {
3507
+ type: "string",
3508
+ description: "Title of the event",
3509
+ },
3510
+ description: {
3511
+ type: "string",
3512
+ description: "Description of the event",
3513
+ },
3514
+ location: {
3515
+ type: "string",
3516
+ description: "Geographic location of the event as free-form text",
3517
+ },
3518
+ start: {
3519
+ type: "string",
3520
+ description: "Start date/time (for timed events, RFC3339 timestamp)",
3521
+ },
3522
+ end: {
3523
+ type: "string",
3524
+ description: "End date/time (for timed events, RFC3339 timestamp)",
3525
+ },
3526
+ attendees: {
3527
+ type: "array",
3528
+ description: "List of attendees",
3529
+ items: {
3530
+ type: "object",
3531
+ properties: {
3532
+ email: {
3533
+ type: "string",
3534
+ description: "The attendee's email address",
3535
+ },
3536
+ displayName: {
3537
+ type: "string",
3538
+ description: "The attendee's name",
3539
+ },
3540
+ responseStatus: {
3541
+ type: "string",
3542
+ description: "The attendee's response status (accepted, declined, etc.)",
3543
+ },
3544
+ },
3545
+ },
3546
+ },
3547
+ organizer: {
3548
+ type: "object",
3549
+ description: "The organizer of the event",
3550
+ properties: {
3551
+ email: {
3552
+ type: "string",
3553
+ description: "The organizer's email address",
3554
+ },
3555
+ displayName: {
3556
+ type: "string",
3557
+ description: "The organizer's name",
3558
+ },
3559
+ },
3560
+ },
3561
+ hangoutLink: {
3562
+ type: "string",
3563
+ description: "Google Meet link for the event, if available",
3564
+ },
3565
+ created: {
3566
+ type: "string",
3567
+ description: "Creation time of the event (RFC3339 timestamp)",
3568
+ },
3569
+ updated: {
3570
+ type: "string",
3571
+ description: "Last modification time of the event (RFC3339 timestamp)",
3572
+ },
3573
+ },
3574
+ },
3575
+ },
3576
+ error: {
3577
+ type: "string",
3578
+ description: "Error message if listing failed",
3579
+ },
3580
+ },
3581
+ },
3582
+ name: "listCalendarEvents",
3583
+ provider: "googleOauth",
3584
+ };
3585
+ exports.googleOauthUpdateCalendarEventDefinition = {
3586
+ description: "Update an event on a Google Calendar using OAuth authentication",
3587
+ scopes: ["https://www.googleapis.com/auth/calendar"],
3588
+ parameters: {
3589
+ type: "object",
3590
+ required: ["calendarId", "eventId"],
3591
+ properties: {
3592
+ calendarId: {
3593
+ type: "string",
3594
+ description: "The ID of the calendar containing the event",
3595
+ },
3596
+ eventId: {
3597
+ type: "string",
3598
+ description: "The ID of the event to update",
3599
+ },
3600
+ updates: {
3601
+ type: "object",
3602
+ description: "The fields to update on the event",
3603
+ properties: {
3604
+ title: {
3605
+ type: "string",
3606
+ description: "The new title of the event",
3607
+ },
3608
+ description: {
3609
+ type: "string",
3610
+ description: "The new description of the event",
3611
+ },
3612
+ start: {
3613
+ type: "string",
3614
+ description: "The new start date/time (RFC3339 timestamp)",
3615
+ },
3616
+ end: {
3617
+ type: "string",
3618
+ description: "The new end date/time (RFC3339 timestamp)",
3619
+ },
3620
+ location: {
3621
+ type: "string",
3622
+ description: "The new location of the event",
3623
+ },
3624
+ attendees: {
3625
+ type: "array",
3626
+ description: "The new list of attendees",
3627
+ items: {
3628
+ type: "string",
3629
+ description: "The email of the attendee",
3630
+ },
3631
+ },
3632
+ status: {
3633
+ type: "string",
3634
+ description: "The new status of the event (e.g., confirmed, cancelled)",
3635
+ },
3636
+ organizer: {
3637
+ type: "object",
3638
+ description: "The new organizer of the event",
3639
+ properties: {
3640
+ email: {
3641
+ type: "string",
3642
+ description: "The organizer's email address",
3643
+ },
3644
+ displayName: {
3645
+ type: "string",
3646
+ description: "The organizer's name",
3647
+ },
3648
+ },
3649
+ },
3650
+ },
3651
+ },
3652
+ },
3653
+ },
3654
+ output: {
3655
+ type: "object",
3656
+ required: ["success"],
3657
+ properties: {
3658
+ success: {
3659
+ type: "boolean",
3660
+ description: "Whether the event was updated successfully",
3661
+ },
3662
+ eventId: {
3663
+ type: "string",
3664
+ description: "The ID of the updated event",
3665
+ },
3666
+ eventUrl: {
3667
+ type: "string",
3668
+ description: "The URL to access the updated event",
3669
+ },
3670
+ error: {
3671
+ type: "string",
3672
+ description: "The error that occurred if the event was not updated successfully",
3673
+ },
3674
+ },
3675
+ },
3676
+ name: "updateCalendarEvent",
3677
+ provider: "googleOauth",
3678
+ };
3679
+ exports.googleOauthDeleteCalendarEventDefinition = {
3680
+ description: "Delete an event from a Google Calendar using OAuth authentication",
3681
+ scopes: ["https://www.googleapis.com/auth/calendar"],
3682
+ parameters: {
3683
+ type: "object",
3684
+ required: ["calendarId", "eventId"],
3685
+ properties: {
3686
+ calendarId: {
3687
+ type: "string",
3688
+ description: "The ID of the calendar containing the event",
3689
+ },
3690
+ eventId: {
3691
+ type: "string",
3692
+ description: "The ID of the event to delete",
3693
+ },
3694
+ },
3695
+ },
3696
+ output: {
3697
+ type: "object",
3698
+ required: ["success"],
3699
+ properties: {
3700
+ success: {
3701
+ type: "boolean",
3702
+ description: "Whether the event was deleted successfully",
3703
+ },
3704
+ error: {
3705
+ type: "string",
3706
+ description: "The error that occurred if the event was not deleted successfully",
3707
+ },
3708
+ },
3709
+ },
3710
+ name: "deleteCalendarEvent",
3711
+ provider: "googleOauth",
3712
+ };
3410
3713
  exports.googleOauthCreateSpreadsheetDefinition = {
3411
3714
  description: "Create a new Google Spreadsheet using OAuth authentication",
3412
3715
  scopes: [],
@@ -5323,6 +5626,436 @@ exports.googleOauthSearchDriveByKeywordsDefinition = {
5323
5626
  name: "searchDriveByKeywords",
5324
5627
  provider: "googleOauth",
5325
5628
  };
5629
+ exports.googleOauthListGroupsDefinition = {
5630
+ description: "List all Google Groups for the customer.",
5631
+ scopes: ["https://www.googleapis.com/auth/admin.directory.group.readonly"],
5632
+ parameters: {
5633
+ type: "object",
5634
+ required: [],
5635
+ properties: {
5636
+ maxResults: {
5637
+ type: "integer",
5638
+ description: "The maximum number of groups to return (max allowed is 200)",
5639
+ },
5640
+ },
5641
+ },
5642
+ output: {
5643
+ type: "object",
5644
+ required: ["success", "groups"],
5645
+ properties: {
5646
+ success: {
5647
+ type: "boolean",
5648
+ description: "Whether the groups were listed successfully",
5649
+ },
5650
+ groups: {
5651
+ type: "array",
5652
+ description: "The list of Google Groups",
5653
+ items: {
5654
+ type: "object",
5655
+ required: ["id", "email", "name"],
5656
+ properties: {
5657
+ id: {
5658
+ type: "string",
5659
+ description: "The unique ID of the group",
5660
+ },
5661
+ email: {
5662
+ type: "string",
5663
+ description: "The email address of the group",
5664
+ },
5665
+ name: {
5666
+ type: "string",
5667
+ description: "The name of the group",
5668
+ },
5669
+ description: {
5670
+ type: "string",
5671
+ description: "The description of the group",
5672
+ },
5673
+ },
5674
+ },
5675
+ },
5676
+ error: {
5677
+ type: "string",
5678
+ description: "The error that occurred if the groups could not be listed",
5679
+ },
5680
+ },
5681
+ },
5682
+ name: "listGroups",
5683
+ provider: "googleOauth",
5684
+ };
5685
+ exports.googleOauthGetGroupDefinition = {
5686
+ description: "Get details for a specific Google Group by group email or ID.",
5687
+ scopes: ["https://www.googleapis.com/auth/admin.directory.group.readonly"],
5688
+ parameters: {
5689
+ type: "object",
5690
+ required: ["groupKey"],
5691
+ properties: {
5692
+ groupKey: {
5693
+ type: "string",
5694
+ description: "The group's email address or unique group ID",
5695
+ },
5696
+ },
5697
+ },
5698
+ output: {
5699
+ type: "object",
5700
+ required: ["success", "group"],
5701
+ properties: {
5702
+ success: {
5703
+ type: "boolean",
5704
+ description: "Whether the group was retrieved successfully",
5705
+ },
5706
+ group: {
5707
+ type: "object",
5708
+ required: ["id", "email", "name"],
5709
+ properties: {
5710
+ id: {
5711
+ type: "string",
5712
+ description: "The unique ID of the group",
5713
+ },
5714
+ email: {
5715
+ type: "string",
5716
+ description: "The email address of the group",
5717
+ },
5718
+ name: {
5719
+ type: "string",
5720
+ description: "The name of the group",
5721
+ },
5722
+ description: {
5723
+ type: "string",
5724
+ description: "The description of the group",
5725
+ },
5726
+ },
5727
+ },
5728
+ error: {
5729
+ type: "string",
5730
+ description: "The error that occurred if the group could not be retrieved",
5731
+ },
5732
+ },
5733
+ },
5734
+ name: "getGroup",
5735
+ provider: "googleOauth",
5736
+ };
5737
+ exports.googleOauthListGroupMembersDefinition = {
5738
+ description: "List all members of a Google Group.",
5739
+ scopes: ["https://www.googleapis.com/auth/admin.directory.group.member.readonly"],
5740
+ parameters: {
5741
+ type: "object",
5742
+ required: ["groupKey"],
5743
+ properties: {
5744
+ groupKey: {
5745
+ type: "string",
5746
+ description: "The group's email address or unique group ID",
5747
+ },
5748
+ maxResults: {
5749
+ type: "integer",
5750
+ description: "The maximum number of members to return (max allowed is 200)",
5751
+ },
5752
+ },
5753
+ },
5754
+ output: {
5755
+ type: "object",
5756
+ required: ["success", "members"],
5757
+ properties: {
5758
+ success: {
5759
+ type: "boolean",
5760
+ description: "Whether the members were listed successfully",
5761
+ },
5762
+ members: {
5763
+ type: "array",
5764
+ description: "The list of group members",
5765
+ items: {
5766
+ type: "object",
5767
+ required: ["id", "email", "role", "type"],
5768
+ properties: {
5769
+ id: {
5770
+ type: "string",
5771
+ description: "The unique ID of the member",
5772
+ },
5773
+ email: {
5774
+ type: "string",
5775
+ description: "The email address of the member",
5776
+ },
5777
+ role: {
5778
+ type: "string",
5779
+ description: "The role of the member in the group (OWNER, MANAGER, MEMBER)",
5780
+ },
5781
+ type: {
5782
+ type: "string",
5783
+ description: "The type of the member (USER, GROUP)",
5784
+ },
5785
+ },
5786
+ },
5787
+ },
5788
+ error: {
5789
+ type: "string",
5790
+ description: "The error that occurred if the members could not be listed",
5791
+ },
5792
+ },
5793
+ },
5794
+ name: "listGroupMembers",
5795
+ provider: "googleOauth",
5796
+ };
5797
+ exports.googleOauthHasGroupMemberDefinition = {
5798
+ description: "Check if a user is a member of a Google Group.",
5799
+ scopes: ["https://www.googleapis.com/auth/admin.directory.group.member.readonly"],
5800
+ parameters: {
5801
+ type: "object",
5802
+ required: ["groupKey", "memberKey"],
5803
+ properties: {
5804
+ groupKey: {
5805
+ type: "string",
5806
+ description: "The group's email address or unique group ID",
5807
+ },
5808
+ memberKey: {
5809
+ type: "string",
5810
+ description: "The member's email address or unique member ID",
5811
+ },
5812
+ },
5813
+ },
5814
+ output: {
5815
+ type: "object",
5816
+ required: ["success", "isMember"],
5817
+ properties: {
5818
+ success: {
5819
+ type: "boolean",
5820
+ description: "Whether the check was performed successfully",
5821
+ },
5822
+ isMember: {
5823
+ type: "boolean",
5824
+ description: "Whether the user is a member of the group",
5825
+ },
5826
+ error: {
5827
+ type: "string",
5828
+ description: "The error that occurred if the check could not be performed",
5829
+ },
5830
+ },
5831
+ },
5832
+ name: "hasGroupMember",
5833
+ provider: "googleOauth",
5834
+ };
5835
+ exports.googleOauthAddGroupMemberDefinition = {
5836
+ description: "Add a member to a Google Group.",
5837
+ scopes: ["https://www.googleapis.com/auth/admin.directory.group.member"],
5838
+ parameters: {
5839
+ type: "object",
5840
+ required: ["groupKey", "email"],
5841
+ properties: {
5842
+ groupKey: {
5843
+ type: "string",
5844
+ description: "The group's email address or unique group ID",
5845
+ },
5846
+ email: {
5847
+ type: "string",
5848
+ description: "The email address of the user to add",
5849
+ },
5850
+ },
5851
+ },
5852
+ output: {
5853
+ type: "object",
5854
+ required: ["success", "memberID"],
5855
+ properties: {
5856
+ success: {
5857
+ type: "boolean",
5858
+ description: "Whether the member was added successfully",
5859
+ },
5860
+ memberID: {
5861
+ type: "string",
5862
+ description: "The unique ID of the member",
5863
+ },
5864
+ error: {
5865
+ type: "string",
5866
+ description: "The error that occurred if the member could not be added",
5867
+ },
5868
+ },
5869
+ },
5870
+ name: "addGroupMember",
5871
+ provider: "googleOauth",
5872
+ };
5873
+ exports.googleOauthDeleteGroupMemberDefinition = {
5874
+ description: "Remove a member from a Google Group.",
5875
+ scopes: ["https://www.googleapis.com/auth/admin.directory.group.member"],
5876
+ parameters: {
5877
+ type: "object",
5878
+ required: ["groupKey", "memberKey"],
5879
+ properties: {
5880
+ groupKey: {
5881
+ type: "string",
5882
+ description: "The group's email address or unique group ID",
5883
+ },
5884
+ memberKey: {
5885
+ type: "string",
5886
+ description: "The member's email address or unique member ID",
5887
+ },
5888
+ },
5889
+ },
5890
+ output: {
5891
+ type: "object",
5892
+ required: ["success"],
5893
+ properties: {
5894
+ success: {
5895
+ type: "boolean",
5896
+ description: "Whether the member was removed successfully",
5897
+ },
5898
+ error: {
5899
+ type: "string",
5900
+ description: "The error that occurred if the member could not be removed",
5901
+ },
5902
+ },
5903
+ },
5904
+ name: "deleteGroupMember",
5905
+ provider: "googleOauth",
5906
+ };
5907
+ exports.googlemailSearchGmailMessagesDefinition = {
5908
+ description: "Search Gmail messages in a user's inbox using a query string.",
5909
+ scopes: ["https://www.googleapis.com/auth/gmail.readonly"],
5910
+ parameters: {
5911
+ type: "object",
5912
+ required: ["query"],
5913
+ properties: {
5914
+ query: {
5915
+ type: "string",
5916
+ description: 'Gmail search query (e.g. "from:alice subject:urgent")',
5917
+ },
5918
+ maxResults: {
5919
+ type: "integer",
5920
+ description: "Maximum number of messages to return (optional)",
5921
+ },
5922
+ },
5923
+ },
5924
+ output: {
5925
+ type: "object",
5926
+ required: ["success", "messages"],
5927
+ properties: {
5928
+ success: {
5929
+ type: "boolean",
5930
+ },
5931
+ messages: {
5932
+ type: "array",
5933
+ description: "List of matching Gmail messages",
5934
+ items: {
5935
+ type: "object",
5936
+ required: ["id", "threadId"],
5937
+ properties: {
5938
+ id: {
5939
+ type: "string",
5940
+ description: "The message ID",
5941
+ },
5942
+ threadId: {
5943
+ type: "string",
5944
+ description: "The thread ID",
5945
+ },
5946
+ snippet: {
5947
+ type: "string",
5948
+ description: "A short part of the message text",
5949
+ },
5950
+ labelIds: {
5951
+ type: "array",
5952
+ items: {
5953
+ type: "string",
5954
+ },
5955
+ description: "Labels on the message",
5956
+ },
5957
+ internalDate: {
5958
+ type: "string",
5959
+ description: "Internal timestamp of the message",
5960
+ },
5961
+ emailBody: {
5962
+ type: "string",
5963
+ description: "The body of the message",
5964
+ },
5965
+ },
5966
+ },
5967
+ },
5968
+ error: {
5969
+ type: "string",
5970
+ description: "Error message if search failed",
5971
+ },
5972
+ },
5973
+ },
5974
+ name: "searchGmailMessages",
5975
+ provider: "googlemail",
5976
+ };
5977
+ exports.googlemailListGmailThreadsDefinition = {
5978
+ description: "List Gmail threads in a user's inbox using a query string.",
5979
+ scopes: ["https://www.googleapis.com/auth/gmail.readonly"],
5980
+ parameters: {
5981
+ type: "object",
5982
+ required: ["query"],
5983
+ properties: {
5984
+ query: {
5985
+ type: "string",
5986
+ description: 'Gmail search query (e.g. "from:alice subject:project")',
5987
+ },
5988
+ maxResults: {
5989
+ type: "integer",
5990
+ description: "Maximum number of threads to return",
5991
+ },
5992
+ },
5993
+ },
5994
+ output: {
5995
+ type: "object",
5996
+ required: ["success", "threads"],
5997
+ properties: {
5998
+ success: {
5999
+ type: "boolean",
6000
+ },
6001
+ threads: {
6002
+ type: "array",
6003
+ description: "List of matching Gmail threads",
6004
+ items: {
6005
+ type: "object",
6006
+ required: ["id", "historyId", "messages"],
6007
+ properties: {
6008
+ id: {
6009
+ type: "string",
6010
+ description: "The thread ID",
6011
+ },
6012
+ historyId: {
6013
+ type: "string",
6014
+ description: "The thread history ID",
6015
+ },
6016
+ messages: {
6017
+ type: "array",
6018
+ description: "The messages in the thread",
6019
+ items: {
6020
+ type: "object",
6021
+ required: ["id", "threadId", "snippet", "labelIds", "internalDate", "emailBody"],
6022
+ properties: {
6023
+ id: {
6024
+ type: "string",
6025
+ },
6026
+ threadId: {
6027
+ type: "string",
6028
+ },
6029
+ snippet: {
6030
+ type: "string",
6031
+ },
6032
+ labelIds: {
6033
+ type: "array",
6034
+ items: {
6035
+ type: "string",
6036
+ },
6037
+ },
6038
+ internalDate: {
6039
+ type: "string",
6040
+ },
6041
+ emailBody: {
6042
+ type: "string",
6043
+ },
6044
+ },
6045
+ },
6046
+ },
6047
+ },
6048
+ },
6049
+ },
6050
+ error: {
6051
+ type: "string",
6052
+ description: "Error message if search failed",
6053
+ },
6054
+ },
6055
+ },
6056
+ name: "listGmailThreads",
6057
+ provider: "googlemail",
6058
+ };
5326
6059
  exports.gongGetGongTranscriptsDefinition = {
5327
6060
  description: "Get sales call transcripts from Gong",
5328
6061
  scopes: [],