@credal/actions 0.2.221 → 0.2.222

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 (75) hide show
  1. package/dist/actions/autogen/templates.js +15 -0
  2. package/dist/actions/autogen/types.d.ts +15 -4
  3. package/dist/actions/autogen/types.js +12 -0
  4. package/dist/actions/groups.d.ts +6 -0
  5. package/dist/actions/groups.js +248 -0
  6. package/dist/actions/providers/ashby/addCandidateToProject.d.ts +3 -0
  7. package/dist/actions/providers/ashby/addCandidateToProject.js +31 -0
  8. package/dist/actions/providers/ashby/createCandidate.d.ts +3 -0
  9. package/dist/actions/providers/ashby/createCandidate.js +38 -0
  10. package/dist/actions/providers/ashby/createNote.d.ts +3 -0
  11. package/dist/actions/providers/ashby/createNote.js +31 -0
  12. package/dist/actions/providers/ashby/getCandidateInfo.d.ts +3 -0
  13. package/dist/actions/providers/ashby/getCandidateInfo.js +33 -0
  14. package/dist/actions/providers/ashby/listCandidateNotes.d.ts +3 -0
  15. package/dist/actions/providers/ashby/listCandidateNotes.js +33 -0
  16. package/dist/actions/providers/ashby/listCandidates.d.ts +3 -0
  17. package/dist/actions/providers/ashby/listCandidates.js +30 -0
  18. package/dist/actions/providers/ashby/searchCandidates.d.ts +3 -0
  19. package/dist/actions/providers/ashby/searchCandidates.js +34 -0
  20. package/dist/actions/providers/ashby/updateCandidate.d.ts +3 -0
  21. package/dist/actions/providers/ashby/updateCandidate.js +56 -0
  22. package/dist/actions/providers/credal/callCopilot.d.ts +3 -0
  23. package/dist/actions/providers/credal/callCopilot.js +36 -0
  24. package/dist/actions/providers/gong/getGongTranscripts.d.ts +3 -0
  25. package/dist/actions/providers/gong/getGongTranscripts.js +315 -0
  26. package/dist/actions/providers/google-oauth/editAGoogleCalendarEvent.js +3 -1
  27. package/dist/actions/providers/google-oauth/scheduleCalendarMeeting.js +16 -5
  28. package/dist/actions/providers/google-oauth/updateCalendarEvent.js +2 -0
  29. package/dist/actions/providers/jamf/getJamfComputerInventory.d.ts +3 -0
  30. package/dist/actions/providers/jamf/getJamfComputerInventory.js +37 -0
  31. package/dist/actions/providers/jamf/getJamfFileVaultRecoveryKey.d.ts +3 -0
  32. package/dist/actions/providers/jamf/getJamfFileVaultRecoveryKey.js +39 -0
  33. package/dist/actions/providers/jamf/getJamfUserComputerId.d.ts +3 -0
  34. package/dist/actions/providers/jamf/getJamfUserComputerId.js +45 -0
  35. package/dist/actions/providers/jamf/lockJamfComputerById.d.ts +3 -0
  36. package/dist/actions/providers/jamf/lockJamfComputerById.js +39 -0
  37. package/dist/actions/providers/kandji/getFVRecoveryKeyForDevice.d.ts +3 -0
  38. package/dist/actions/providers/kandji/getFVRecoveryKeyForDevice.js +85 -0
  39. package/dist/actions/providers/math/index.d.ts +1 -0
  40. package/dist/actions/providers/math/index.js +37 -0
  41. package/dist/actions/providers/okta/addUserToGroup.d.ts +3 -0
  42. package/dist/actions/providers/okta/addUserToGroup.js +56 -0
  43. package/dist/actions/providers/okta/getOktaGroup.d.ts +3 -0
  44. package/dist/actions/providers/okta/getOktaGroup.js +73 -0
  45. package/dist/actions/providers/okta/getOktaUser.d.ts +3 -0
  46. package/dist/actions/providers/okta/getOktaUser.js +40 -0
  47. package/dist/actions/providers/okta/listMFA.d.ts +3 -0
  48. package/dist/actions/providers/okta/listMFA.js +52 -0
  49. package/dist/actions/providers/okta/listOktaGroupMembers.d.ts +3 -0
  50. package/dist/actions/providers/okta/listOktaGroupMembers.js +99 -0
  51. package/dist/actions/providers/okta/listOktaGroups.d.ts +3 -0
  52. package/dist/actions/providers/okta/listOktaGroups.js +92 -0
  53. package/dist/actions/providers/okta/listOktaUserGroups.d.ts +3 -0
  54. package/dist/actions/providers/okta/listOktaUserGroups.js +83 -0
  55. package/dist/actions/providers/okta/listOktaUsers.d.ts +3 -0
  56. package/dist/actions/providers/okta/listOktaUsers.js +100 -0
  57. package/dist/actions/providers/okta/removeUserFromGroup.d.ts +3 -0
  58. package/dist/actions/providers/okta/removeUserFromGroup.js +56 -0
  59. package/dist/actions/providers/okta/resetMFA.d.ts +3 -0
  60. package/dist/actions/providers/okta/resetMFA.js +62 -0
  61. package/dist/actions/providers/okta/resetPassword.d.ts +3 -0
  62. package/dist/actions/providers/okta/resetPassword.js +57 -0
  63. package/dist/actions/providers/okta/triggerOktaWorkflow.d.ts +3 -0
  64. package/dist/actions/providers/okta/triggerOktaWorkflow.js +44 -0
  65. package/dist/actions/providers/salesforce/fetchSalesforceSchema.d.ts +3 -0
  66. package/dist/actions/providers/salesforce/fetchSalesforceSchema.js +40 -0
  67. package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +3 -0
  68. package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.js +43 -0
  69. package/dist/actions/providers/slack/archiveChannel.d.ts +3 -0
  70. package/dist/actions/providers/slack/archiveChannel.js +35 -0
  71. package/dist/actions/providers/slack/index.d.ts +1 -0
  72. package/dist/actions/providers/slack/index.js +37 -0
  73. package/dist/actions/providers/slack/listConversations.d.ts +3 -0
  74. package/dist/actions/providers/slack/listConversations.js +41 -0
  75. package/package.json +1 -1
@@ -6616,6 +6616,11 @@ export const googleOauthScheduleCalendarMeetingDefinition = {
6616
6616
  type: "string",
6617
6617
  description: "The time zone for the meeting, IANA Time Zone identifier (e.g., 'America/New_York')",
6618
6618
  },
6619
+ transparency: {
6620
+ type: "string",
6621
+ enum: ["opaque", "transparent"],
6622
+ description: 'Opaque is the default value, and it blocks time on the calendar. This is equivalent to setting "Show me as" to "Busy" in the UI. Transparent means the event does not block time on the calendar. This is equivalent to setting "Show me as" to "Available" in the UI.',
6623
+ },
6619
6624
  recurrence: {
6620
6625
  type: "object",
6621
6626
  description: "Recurring meeting configuration. If not provided, creates a one-time meeting.",
@@ -6994,6 +6999,11 @@ export const googleOauthUpdateCalendarEventDefinition = {
6994
6999
  type: "string",
6995
7000
  description: "The time zone for the event, IANA Time Zone identifier (e.g., 'America/New_York')",
6996
7001
  },
7002
+ transparency: {
7003
+ type: "string",
7004
+ enum: ["opaque", "transparent"],
7005
+ description: 'Opaque is the default value, and it blocks time on the calendar. This is equivalent to setting "Show me as" to "Busy" in the UI. Transparent means the event does not block time on the calendar.',
7006
+ },
6997
7007
  },
6998
7008
  },
6999
7009
  },
@@ -7091,6 +7101,11 @@ export const googleOauthEditAGoogleCalendarEventDefinition = {
7091
7101
  type: "string",
7092
7102
  description: "The time zone for the event, IANA Time Zone identifier (e.g., 'America/New_York')",
7093
7103
  },
7104
+ transparency: {
7105
+ type: "string",
7106
+ enum: ["opaque", "transparent"],
7107
+ description: 'Opaque is the default value, and it blocks time on the calendar. This is equivalent to setting "Show me as" to "Busy" in the UI. Transparent means the event does not block time on the calendar.',
7108
+ },
7094
7109
  },
7095
7110
  },
7096
7111
  output: {
@@ -5252,6 +5252,7 @@ export declare const googleOauthScheduleCalendarMeetingParamsSchema: z.ZodObject
5252
5252
  attendees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5253
5253
  useGoogleMeet: z.ZodOptional<z.ZodBoolean>;
5254
5254
  timeZone: z.ZodOptional<z.ZodString>;
5255
+ transparency: z.ZodOptional<z.ZodEnum<["opaque", "transparent"]>>;
5255
5256
  recurrence: z.ZodOptional<z.ZodObject<{
5256
5257
  frequency: z.ZodOptional<z.ZodEnum<["DAILY", "WEEKLY", "MONTHLY", "YEARLY"]>>;
5257
5258
  interval: z.ZodOptional<z.ZodNumber>;
@@ -5283,6 +5284,7 @@ export declare const googleOauthScheduleCalendarMeetingParamsSchema: z.ZodObject
5283
5284
  attendees?: string[] | undefined;
5284
5285
  useGoogleMeet?: boolean | undefined;
5285
5286
  timeZone?: string | undefined;
5287
+ transparency?: "opaque" | "transparent" | undefined;
5286
5288
  recurrence?: {
5287
5289
  count?: number | undefined;
5288
5290
  until?: string | undefined;
@@ -5300,6 +5302,7 @@ export declare const googleOauthScheduleCalendarMeetingParamsSchema: z.ZodObject
5300
5302
  attendees?: string[] | undefined;
5301
5303
  useGoogleMeet?: boolean | undefined;
5302
5304
  timeZone?: string | undefined;
5305
+ transparency?: "opaque" | "transparent" | undefined;
5303
5306
  recurrence?: {
5304
5307
  count?: number | undefined;
5305
5308
  until?: string | undefined;
@@ -5462,6 +5465,7 @@ export declare const googleOauthListCalendarEventsOutputSchema: z.ZodObject<{
5462
5465
  email?: string | undefined;
5463
5466
  responseStatus?: string | undefined;
5464
5467
  }[] | undefined;
5468
+ transparency?: string | undefined;
5465
5469
  organizer?: {
5466
5470
  displayName?: string | undefined;
5467
5471
  email?: string | undefined;
@@ -5476,7 +5480,6 @@ export declare const googleOauthListCalendarEventsOutputSchema: z.ZodObject<{
5476
5480
  fileUrl?: string | undefined;
5477
5481
  }[] | undefined;
5478
5482
  eventType?: string | undefined;
5479
- transparency?: string | undefined;
5480
5483
  }, {
5481
5484
  status?: string | undefined;
5482
5485
  description?: string | undefined;
@@ -5493,6 +5496,7 @@ export declare const googleOauthListCalendarEventsOutputSchema: z.ZodObject<{
5493
5496
  email?: string | undefined;
5494
5497
  responseStatus?: string | undefined;
5495
5498
  }[] | undefined;
5499
+ transparency?: string | undefined;
5496
5500
  organizer?: {
5497
5501
  displayName?: string | undefined;
5498
5502
  email?: string | undefined;
@@ -5507,7 +5511,6 @@ export declare const googleOauthListCalendarEventsOutputSchema: z.ZodObject<{
5507
5511
  fileUrl?: string | undefined;
5508
5512
  }[] | undefined;
5509
5513
  eventType?: string | undefined;
5510
- transparency?: string | undefined;
5511
5514
  }>, "many">;
5512
5515
  timezone: z.ZodOptional<z.ZodString>;
5513
5516
  error: z.ZodOptional<z.ZodString>;
@@ -5529,6 +5532,7 @@ export declare const googleOauthListCalendarEventsOutputSchema: z.ZodObject<{
5529
5532
  email?: string | undefined;
5530
5533
  responseStatus?: string | undefined;
5531
5534
  }[] | undefined;
5535
+ transparency?: string | undefined;
5532
5536
  organizer?: {
5533
5537
  displayName?: string | undefined;
5534
5538
  email?: string | undefined;
@@ -5543,7 +5547,6 @@ export declare const googleOauthListCalendarEventsOutputSchema: z.ZodObject<{
5543
5547
  fileUrl?: string | undefined;
5544
5548
  }[] | undefined;
5545
5549
  eventType?: string | undefined;
5546
- transparency?: string | undefined;
5547
5550
  }[];
5548
5551
  error?: string | undefined;
5549
5552
  timezone?: string | undefined;
@@ -5565,6 +5568,7 @@ export declare const googleOauthListCalendarEventsOutputSchema: z.ZodObject<{
5565
5568
  email?: string | undefined;
5566
5569
  responseStatus?: string | undefined;
5567
5570
  }[] | undefined;
5571
+ transparency?: string | undefined;
5568
5572
  organizer?: {
5569
5573
  displayName?: string | undefined;
5570
5574
  email?: string | undefined;
@@ -5579,7 +5583,6 @@ export declare const googleOauthListCalendarEventsOutputSchema: z.ZodObject<{
5579
5583
  fileUrl?: string | undefined;
5580
5584
  }[] | undefined;
5581
5585
  eventType?: string | undefined;
5582
- transparency?: string | undefined;
5583
5586
  }[];
5584
5587
  error?: string | undefined;
5585
5588
  timezone?: string | undefined;
@@ -5608,6 +5611,7 @@ export declare const googleOauthUpdateCalendarEventParamsSchema: z.ZodObject<{
5608
5611
  email?: string | undefined;
5609
5612
  }>>;
5610
5613
  timeZone: z.ZodOptional<z.ZodString>;
5614
+ transparency: z.ZodOptional<z.ZodEnum<["opaque", "transparent"]>>;
5611
5615
  }, "strip", z.ZodTypeAny, {
5612
5616
  status?: string | undefined;
5613
5617
  description?: string | undefined;
@@ -5617,6 +5621,7 @@ export declare const googleOauthUpdateCalendarEventParamsSchema: z.ZodObject<{
5617
5621
  end?: string | undefined;
5618
5622
  attendees?: string[] | undefined;
5619
5623
  timeZone?: string | undefined;
5624
+ transparency?: "opaque" | "transparent" | undefined;
5620
5625
  organizer?: {
5621
5626
  displayName?: string | undefined;
5622
5627
  email?: string | undefined;
@@ -5630,6 +5635,7 @@ export declare const googleOauthUpdateCalendarEventParamsSchema: z.ZodObject<{
5630
5635
  end?: string | undefined;
5631
5636
  attendees?: string[] | undefined;
5632
5637
  timeZone?: string | undefined;
5638
+ transparency?: "opaque" | "transparent" | undefined;
5633
5639
  organizer?: {
5634
5640
  displayName?: string | undefined;
5635
5641
  email?: string | undefined;
@@ -5647,6 +5653,7 @@ export declare const googleOauthUpdateCalendarEventParamsSchema: z.ZodObject<{
5647
5653
  end?: string | undefined;
5648
5654
  attendees?: string[] | undefined;
5649
5655
  timeZone?: string | undefined;
5656
+ transparency?: "opaque" | "transparent" | undefined;
5650
5657
  organizer?: {
5651
5658
  displayName?: string | undefined;
5652
5659
  email?: string | undefined;
@@ -5664,6 +5671,7 @@ export declare const googleOauthUpdateCalendarEventParamsSchema: z.ZodObject<{
5664
5671
  end?: string | undefined;
5665
5672
  attendees?: string[] | undefined;
5666
5673
  timeZone?: string | undefined;
5674
+ transparency?: "opaque" | "transparent" | undefined;
5667
5675
  organizer?: {
5668
5676
  displayName?: string | undefined;
5669
5677
  email?: string | undefined;
@@ -5710,6 +5718,7 @@ export declare const googleOauthEditAGoogleCalendarEventParamsSchema: z.ZodObjec
5710
5718
  email?: string | undefined;
5711
5719
  }>>;
5712
5720
  timeZone: z.ZodOptional<z.ZodString>;
5721
+ transparency: z.ZodOptional<z.ZodEnum<["opaque", "transparent"]>>;
5713
5722
  }, "strip", z.ZodTypeAny, {
5714
5723
  calendarId: string;
5715
5724
  eventId: string;
@@ -5721,6 +5730,7 @@ export declare const googleOauthEditAGoogleCalendarEventParamsSchema: z.ZodObjec
5721
5730
  end?: string | undefined;
5722
5731
  attendees?: string[] | undefined;
5723
5732
  timeZone?: string | undefined;
5733
+ transparency?: "opaque" | "transparent" | undefined;
5724
5734
  organizer?: {
5725
5735
  displayName?: string | undefined;
5726
5736
  email?: string | undefined;
@@ -5736,6 +5746,7 @@ export declare const googleOauthEditAGoogleCalendarEventParamsSchema: z.ZodObjec
5736
5746
  end?: string | undefined;
5737
5747
  attendees?: string[] | undefined;
5738
5748
  timeZone?: string | undefined;
5749
+ transparency?: "opaque" | "transparent" | undefined;
5739
5750
  organizer?: {
5740
5751
  displayName?: string | undefined;
5741
5752
  email?: string | undefined;
@@ -2413,6 +2413,10 @@ export const googleOauthScheduleCalendarMeetingParamsSchema = z.object({
2413
2413
  .string()
2414
2414
  .describe("The time zone for the meeting, IANA Time Zone identifier (e.g., 'America/New_York')")
2415
2415
  .optional(),
2416
+ transparency: z
2417
+ .enum(["opaque", "transparent"])
2418
+ .describe('Opaque is the default value, and it blocks time on the calendar. This is equivalent to setting "Show me as" to "Busy" in the UI. Transparent means the event does not block time on the calendar. This is equivalent to setting "Show me as" to "Available" in the UI.')
2419
+ .optional(),
2416
2420
  recurrence: z
2417
2421
  .object({
2418
2422
  frequency: z.enum(["DAILY", "WEEKLY", "MONTHLY", "YEARLY"]).describe("How often the meeting repeats").optional(),
@@ -2558,6 +2562,10 @@ export const googleOauthUpdateCalendarEventParamsSchema = z.object({
2558
2562
  .string()
2559
2563
  .describe("The time zone for the event, IANA Time Zone identifier (e.g., 'America/New_York')")
2560
2564
  .optional(),
2565
+ transparency: z
2566
+ .enum(["opaque", "transparent"])
2567
+ .describe('Opaque is the default value, and it blocks time on the calendar. This is equivalent to setting "Show me as" to "Busy" in the UI. Transparent means the event does not block time on the calendar.')
2568
+ .optional(),
2561
2569
  })
2562
2570
  .describe("The fields to update on the event")
2563
2571
  .optional(),
@@ -2592,6 +2600,10 @@ export const googleOauthEditAGoogleCalendarEventParamsSchema = z.object({
2592
2600
  .string()
2593
2601
  .describe("The time zone for the event, IANA Time Zone identifier (e.g., 'America/New_York')")
2594
2602
  .optional(),
2603
+ transparency: z
2604
+ .enum(["opaque", "transparent"])
2605
+ .describe('Opaque is the default value, and it blocks time on the calendar. This is equivalent to setting "Show me as" to "Busy" in the UI. Transparent means the event does not block time on the calendar.')
2606
+ .optional(),
2595
2607
  });
2596
2608
  export const googleOauthEditAGoogleCalendarEventOutputSchema = z.object({
2597
2609
  success: z.boolean().describe("Whether the event was edited successfully"),
@@ -0,0 +1,6 @@
1
+ import type { ActionTemplate } from "./parse.js";
2
+ export type ActionGroups = Record<string, {
3
+ description: string;
4
+ actions: ActionTemplate[];
5
+ }>;
6
+ export declare const ACTION_GROUPS: ActionGroups;
@@ -0,0 +1,248 @@
1
+ import { genericFillTemplateDefinition, confluenceOverwritePageDefinition, googlemapsValidateAddressDefinition, mathAddDefinition, mongoInsertMongoDocDefinition, slackSendMessageDefinition, slackGetChannelMessagesDefinition, slackCreateChannelDefinition, slackArchiveChannelDefinition, snowflakeGetRowByFieldValueDefinition, zendeskCreateZendeskTicketDefinition, zendeskListZendeskTicketsDefinition, zendeskGetTicketDetailsDefinition, zendeskUpdateTicketStatusDefinition, zendeskAddCommentToTicketDefinition, zendeskAssignTicketDefinition, openstreetmapGetLatitudeLongitudeFromLocationDefinition, nwsGetForecastForLocationDefinition, jiraAssignJiraTicketDefinition, jiraCommentJiraTicketDefinition, jiraCreateJiraTicketDefinition, jiraGetJiraTicketDetailsDefinition, jiraGetJiraTicketHistoryDefinition, jiraUpdateJiraTicketDetailsDefinition, jiraUpdateJiraTicketStatusDefinition, jiraGetServiceDesksDefinition, jiraCreateServiceDeskRequestDefinition, googlemapsNearbysearchRestaurantsDefinition, firecrawlScrapeUrlDefinition, resendSendEmailDefinition, linkedinCreateShareLinkedinPostUrlDefinition, googleOauthCreateNewGoogleDocDefinition, xCreateShareXPostUrlDefinition, firecrawlScrapeTweetDataWithNitterDefinition, finnhubSymbolLookupDefinition, finnhubGetBasicFinancialsDefinition, confluenceFetchPageContentDefinition, snowflakeRunSnowflakeQueryDefinition, lookerEnableUserByEmailDefinition, googleOauthUpdateDocDefinition, googleOauthScheduleCalendarMeetingDefinition, googleOauthListCalendarsDefinition, googleOauthListCalendarEventsDefinition, googleOauthUpdateCalendarEventDefinition, googleOauthDeleteCalendarEventDefinition, googleOauthCreateSpreadsheetDefinition, googleOauthUpdateSpreadsheetDefinition, googleOauthCreatePresentationDefinition, googleOauthUpdatePresentationDefinition, googleOauthSearchDriveByKeywordsDefinition, googlemailSearchGmailMessagesDefinition, googlemailListGmailThreadsDefinition, googleOauthListGroupsDefinition, googleOauthGetGroupDefinition, googleOauthListGroupMembersDefinition, googleOauthHasGroupMemberDefinition, googleOauthAddGroupMemberDefinition, googleOauthDeleteGroupMemberDefinition, salesforceUpdateRecordDefinition, salesforceCreateCaseDefinition, salesforceGenerateSalesReportDefinition, salesforceGetRecordDefinition, salesforceGetSalesforceRecordsByQueryDefinition, microsoftMessageTeamsChatDefinition, microsoftMessageTeamsChannelDefinition, asanaCommentTaskDefinition, asanaCreateTaskDefinition, asanaUpdateTaskDefinition, asanaSearchTasksDefinition, githubCreateOrUpdateFileDefinition, githubCreateBranchDefinition, githubCreatePullRequestDefinition, microsoftUpdateSpreadsheetDefinition, microsoftUpdateDocumentDefinition, microsoftCreateDocumentDefinition, microsoftGetDocumentDefinition, salesforceFetchSalesforceSchemaByObjectDefinition, firecrawlDeepResearchDefinition, jiraGetJiraIssuesByQueryDefinition, githubListPullRequestsDefinition, salesforceCreateRecordDefinition, ashbyCreateNoteDefinition, ashbyGetCandidateInfoDefinition, ashbyListCandidatesDefinition, ashbyListCandidateNotesDefinition, ashbySearchCandidatesDefinition, ashbyCreateCandidateDefinition, ashbyUpdateCandidateDefinition, ashbyAddCandidateToProjectDefinition, bingGetTopNSearchResultUrlsDefinition, gongGetGongTranscriptsDefinition, kandjiGetFVRecoveryKeyForDeviceDefinition, asanaListAsanaTasksByProjectDefinition, notionSearchByTitleDefinition, asanaGetTasksDetailsDefinition, jamfGetJamfComputerInventoryDefinition, jamfGetJamfFileVaultRecoveryKeyDefinition, oktaListOktaUsersDefinition, oktaGetOktaUserDefinition, oktaListOktaUserGroupsDefinition, oktaListOktaGroupsDefinition, oktaGetOktaGroupDefinition, oktaListOktaGroupMembersDefinition, oktaRemoveUserFromGroupDefinition, oktaAddUserToGroupDefinition, oktaResetPasswordDefinition, oktaResetMFADefinition, oktaListMFADefinition, jamfGetJamfUserComputerIdDefinition, jamfLockJamfComputerByIdDefinition, oktaTriggerOktaWorkflowDefinition, jiraOrgAssignJiraTicketDefinition, jiraOrgCreateJiraTicketDefinition, jiraOrgCommentJiraTicketDefinition, jiraOrgGetJiraTicketDetailsDefinition, jiraOrgGetJiraTicketHistoryDefinition, jiraOrgUpdateJiraTicketDetailsDefinition, jiraOrgUpdateJiraTicketStatusDefinition, jiraOrgGetJiraIssuesByQueryDefinition, googleOauthGetDriveFileContentByIdDefinition, googleOauthSearchDriveByQueryDefinition, } from "./autogen/templates.js";
2
+ export const ACTION_GROUPS = {
3
+ GENERIC: {
4
+ description: "Generic utility actions",
5
+ actions: [genericFillTemplateDefinition],
6
+ },
7
+ ASANA: {
8
+ description: "Actions for interacting with Asana",
9
+ actions: [
10
+ asanaCommentTaskDefinition,
11
+ asanaCreateTaskDefinition,
12
+ asanaUpdateTaskDefinition,
13
+ asanaSearchTasksDefinition,
14
+ asanaListAsanaTasksByProjectDefinition,
15
+ asanaGetTasksDetailsDefinition,
16
+ ],
17
+ },
18
+ SLACK_LIST_CONVERSATIONS: {
19
+ description: "Actions for interacting with Slack",
20
+ actions: [
21
+ slackSendMessageDefinition,
22
+ slackGetChannelMessagesDefinition,
23
+ slackCreateChannelDefinition,
24
+ slackArchiveChannelDefinition,
25
+ ],
26
+ },
27
+ CONFLUENCE: {
28
+ description: "Action for interacting with Confluence",
29
+ actions: [confluenceOverwritePageDefinition, confluenceFetchPageContentDefinition],
30
+ },
31
+ MATH_ADD: {
32
+ description: "Action for adding two numbers",
33
+ actions: [mathAddDefinition],
34
+ },
35
+ GOOGLE_MAPS: {
36
+ description: "Action for interacting with Google Maps",
37
+ actions: [googlemapsValidateAddressDefinition, googlemapsNearbysearchRestaurantsDefinition],
38
+ },
39
+ GOOGLE_DRIVE: {
40
+ description: "Action for interacting with Google Drive",
41
+ actions: [
42
+ googleOauthCreateNewGoogleDocDefinition,
43
+ googleOauthUpdateDocDefinition,
44
+ googleOauthCreateSpreadsheetDefinition,
45
+ googleOauthUpdateSpreadsheetDefinition,
46
+ googleOauthCreatePresentationDefinition,
47
+ googleOauthUpdatePresentationDefinition,
48
+ googleOauthSearchDriveByKeywordsDefinition,
49
+ googleOauthSearchDriveByQueryDefinition,
50
+ googleOauthGetDriveFileContentByIdDefinition,
51
+ ],
52
+ },
53
+ GOOGLE_CALENDAR: {
54
+ description: "Actions for interacting with Google Calendar",
55
+ actions: [
56
+ googleOauthScheduleCalendarMeetingDefinition,
57
+ googleOauthListCalendarsDefinition,
58
+ googleOauthListCalendarEventsDefinition,
59
+ googleOauthUpdateCalendarEventDefinition,
60
+ googleOauthDeleteCalendarEventDefinition,
61
+ ],
62
+ },
63
+ GMAIL: {
64
+ description: "Actions for interacting with Gmail",
65
+ actions: [googlemailSearchGmailMessagesDefinition, googlemailListGmailThreadsDefinition],
66
+ },
67
+ LINKEDIN_SHARE_POST: {
68
+ description: "Action for creating a share post url on linkedin",
69
+ actions: [linkedinCreateShareLinkedinPostUrlDefinition],
70
+ },
71
+ ZENDESK_ACTIONS: {
72
+ description: "Actions for interacting with Zendesk",
73
+ actions: [
74
+ zendeskCreateZendeskTicketDefinition,
75
+ zendeskListZendeskTicketsDefinition,
76
+ zendeskGetTicketDetailsDefinition,
77
+ zendeskUpdateTicketStatusDefinition,
78
+ zendeskAddCommentToTicketDefinition,
79
+ zendeskAssignTicketDefinition,
80
+ ],
81
+ },
82
+ BING_SEARCH: {
83
+ description: "Action for searching Bing",
84
+ actions: [bingGetTopNSearchResultUrlsDefinition],
85
+ },
86
+ MONGO_INSERT_DOC: {
87
+ description: "Action for inserting a document into a MongoDB collection",
88
+ actions: [mongoInsertMongoDocDefinition],
89
+ },
90
+ SNOWFLAKE_ACTIONS: {
91
+ description: "Action for getting content from a Snowflake table",
92
+ actions: [snowflakeGetRowByFieldValueDefinition, snowflakeRunSnowflakeQueryDefinition],
93
+ },
94
+ JIRA_ACTIONS: {
95
+ description: "Action for interacting with Jira tickets",
96
+ actions: [
97
+ jiraAssignJiraTicketDefinition,
98
+ jiraCreateJiraTicketDefinition,
99
+ jiraCommentJiraTicketDefinition,
100
+ jiraGetJiraTicketDetailsDefinition,
101
+ jiraGetJiraTicketHistoryDefinition,
102
+ jiraUpdateJiraTicketDetailsDefinition,
103
+ jiraUpdateJiraTicketStatusDefinition,
104
+ jiraGetJiraIssuesByQueryDefinition,
105
+ jiraGetServiceDesksDefinition,
106
+ jiraCreateServiceDeskRequestDefinition,
107
+ ],
108
+ },
109
+ JIRA_ORG_ACTIONS: {
110
+ description: "Action for interacting with Jira tickets",
111
+ actions: [
112
+ jiraOrgAssignJiraTicketDefinition,
113
+ jiraOrgCreateJiraTicketDefinition,
114
+ jiraOrgCommentJiraTicketDefinition,
115
+ jiraOrgGetJiraTicketDetailsDefinition,
116
+ jiraOrgGetJiraTicketHistoryDefinition,
117
+ jiraOrgUpdateJiraTicketDetailsDefinition,
118
+ jiraOrgUpdateJiraTicketStatusDefinition,
119
+ jiraOrgGetJiraIssuesByQueryDefinition,
120
+ ],
121
+ },
122
+ OPENSTREETMAP_GET_LATITUDE_LONGITUDE_FROM_LOCATION: {
123
+ description: "Action for getting the latitude and longitude of a location",
124
+ actions: [openstreetmapGetLatitudeLongitudeFromLocationDefinition],
125
+ },
126
+ NWS_GET_FORECAST_FOR_LOCATION: {
127
+ description: "Action for getting the weather forecast for a location",
128
+ actions: [nwsGetForecastForLocationDefinition],
129
+ },
130
+ FIRECRAWL: {
131
+ description: "Actions for interacting with Firecrawl",
132
+ actions: [
133
+ firecrawlScrapeUrlDefinition,
134
+ firecrawlScrapeTweetDataWithNitterDefinition,
135
+ firecrawlDeepResearchDefinition,
136
+ ],
137
+ },
138
+ RESEND: {
139
+ description: "Action for sending an email",
140
+ actions: [resendSendEmailDefinition],
141
+ },
142
+ X: {
143
+ description: "Actions for interacting with X(formerly twitter)",
144
+ actions: [xCreateShareXPostUrlDefinition],
145
+ },
146
+ GONG: {
147
+ description: "Actions for interacting with Gong",
148
+ actions: [gongGetGongTranscriptsDefinition],
149
+ },
150
+ FINNHUB: {
151
+ description: "Action for interacting with Finnhub for stock market data",
152
+ actions: [finnhubSymbolLookupDefinition, finnhubGetBasicFinancialsDefinition],
153
+ },
154
+ JAMF: {
155
+ description: "Actions for interacting with Jamf",
156
+ actions: [
157
+ jamfGetJamfComputerInventoryDefinition,
158
+ jamfGetJamfFileVaultRecoveryKeyDefinition,
159
+ jamfGetJamfUserComputerIdDefinition,
160
+ jamfLockJamfComputerByIdDefinition,
161
+ ],
162
+ },
163
+ LOOKER: {
164
+ description: "Actions for interacting with Looker",
165
+ actions: [lookerEnableUserByEmailDefinition],
166
+ },
167
+ SALESFORCE: {
168
+ description: "Actions for interacting with Salesforce",
169
+ actions: [
170
+ salesforceUpdateRecordDefinition,
171
+ salesforceCreateRecordDefinition,
172
+ salesforceCreateCaseDefinition,
173
+ salesforceGenerateSalesReportDefinition,
174
+ salesforceGetRecordDefinition,
175
+ salesforceGetSalesforceRecordsByQueryDefinition,
176
+ salesforceFetchSalesforceSchemaByObjectDefinition,
177
+ ],
178
+ },
179
+ MICROSOFT: {
180
+ description: "Actions for interacting with Microsoft 365",
181
+ actions: [
182
+ microsoftMessageTeamsChatDefinition,
183
+ microsoftMessageTeamsChannelDefinition,
184
+ microsoftUpdateSpreadsheetDefinition,
185
+ microsoftUpdateDocumentDefinition,
186
+ microsoftCreateDocumentDefinition,
187
+ microsoftGetDocumentDefinition,
188
+ ],
189
+ },
190
+ KANDJI: {
191
+ description: "Actions for interacting with Kandji",
192
+ actions: [kandjiGetFVRecoveryKeyForDeviceDefinition],
193
+ },
194
+ GITHUB: {
195
+ description: "Actions for interacting with GitHub",
196
+ actions: [
197
+ githubCreateOrUpdateFileDefinition,
198
+ githubCreateBranchDefinition,
199
+ githubCreatePullRequestDefinition,
200
+ githubListPullRequestsDefinition,
201
+ ],
202
+ },
203
+ ASHBY: {
204
+ description: "Actions for interacting with Ashby",
205
+ actions: [
206
+ ashbyCreateNoteDefinition,
207
+ ashbyGetCandidateInfoDefinition,
208
+ ashbyListCandidatesDefinition,
209
+ ashbyListCandidateNotesDefinition,
210
+ ashbySearchCandidatesDefinition,
211
+ ashbyCreateCandidateDefinition,
212
+ ashbyUpdateCandidateDefinition,
213
+ ashbyAddCandidateToProjectDefinition,
214
+ ],
215
+ },
216
+ NOTION: {
217
+ description: "Actions for interacting with Notion",
218
+ actions: [notionSearchByTitleDefinition],
219
+ },
220
+ GOOGLE_GROUPS: {
221
+ description: "Google Workspace Groups management actions",
222
+ actions: [
223
+ googleOauthListGroupsDefinition,
224
+ googleOauthGetGroupDefinition,
225
+ googleOauthListGroupMembersDefinition,
226
+ googleOauthHasGroupMemberDefinition,
227
+ googleOauthAddGroupMemberDefinition,
228
+ googleOauthDeleteGroupMemberDefinition,
229
+ ],
230
+ },
231
+ OKTA: {
232
+ description: "Actions for interacting with Okta",
233
+ actions: [
234
+ oktaListOktaUsersDefinition,
235
+ oktaGetOktaUserDefinition,
236
+ oktaListOktaUserGroupsDefinition,
237
+ oktaListOktaGroupsDefinition,
238
+ oktaGetOktaGroupDefinition,
239
+ oktaListOktaGroupMembersDefinition,
240
+ oktaRemoveUserFromGroupDefinition,
241
+ oktaAddUserToGroupDefinition,
242
+ oktaResetPasswordDefinition,
243
+ oktaResetMFADefinition,
244
+ oktaListMFADefinition,
245
+ oktaTriggerOktaWorkflowDefinition,
246
+ ],
247
+ },
248
+ };
@@ -0,0 +1,3 @@
1
+ import type { ashbyAddCandidateToProjectFunction } from "../../autogen/types.js";
2
+ declare const addCandidateToProject: ashbyAddCandidateToProjectFunction;
3
+ export default addCandidateToProject;
@@ -0,0 +1,31 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { axiosClient } from "../../util/axiosClient.js";
11
+ import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
12
+ const addCandidateToProject = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
13
+ const { candidateId, projectId } = params;
14
+ const { authToken } = authParams;
15
+ if (!authToken) {
16
+ throw new Error(MISSING_AUTH_TOKEN);
17
+ }
18
+ const response = yield axiosClient.post(`https://api.ashbyhq.com/candidate.addProject`, {
19
+ candidateId,
20
+ projectId,
21
+ }, {
22
+ auth: {
23
+ username: authToken,
24
+ password: "",
25
+ },
26
+ });
27
+ if (!response.data.success) {
28
+ throw new Error(response.data.errors.join("; "));
29
+ }
30
+ });
31
+ export default addCandidateToProject;
@@ -0,0 +1,3 @@
1
+ import type { ashbyCreateCandidateFunction } from "../../autogen/types.js";
2
+ declare const createCandidate: ashbyCreateCandidateFunction;
3
+ export default createCandidate;
@@ -0,0 +1,38 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { axiosClient } from "../../util/axiosClient.js";
11
+ import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
12
+ const createCandidate = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
13
+ const { authToken } = authParams;
14
+ if (!authToken) {
15
+ throw new Error(MISSING_AUTH_TOKEN);
16
+ }
17
+ const response = yield axiosClient.post(`https://api.ashbyhq.com/candidate.create`, {
18
+ name: params.name,
19
+ email: params.email,
20
+ phoneNumber: params.phoneNumber,
21
+ linkedInUrl: params.linkedInUrl,
22
+ githubUrl: params.githubUrl,
23
+ website: params.website,
24
+ alternateEmailAddresses: params.alternateEmailAddresses,
25
+ sourceId: params.sourceId,
26
+ creditedToUserId: params.creditedToUserId,
27
+ location: params.location,
28
+ }, {
29
+ auth: {
30
+ username: authToken,
31
+ password: "",
32
+ },
33
+ });
34
+ if (!response.data.success) {
35
+ throw new Error(response.data.errors.join("; "));
36
+ }
37
+ });
38
+ export default createCandidate;
@@ -0,0 +1,3 @@
1
+ import type { ashbyCreateNoteFunction } from "../../autogen/types.js";
2
+ declare const createNote: ashbyCreateNoteFunction;
3
+ export default createNote;
@@ -0,0 +1,31 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { axiosClient } from "../../util/axiosClient.js";
11
+ import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
12
+ const createNote = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
13
+ const { candidateId, note } = params;
14
+ const { authToken } = authParams;
15
+ if (!authToken) {
16
+ throw new Error(MISSING_AUTH_TOKEN);
17
+ }
18
+ const response = yield axiosClient.post(`https://api.ashbyhq.com/candidate.createNote`, {
19
+ candidateId,
20
+ note,
21
+ }, {
22
+ auth: {
23
+ username: authToken,
24
+ password: "",
25
+ },
26
+ });
27
+ if (!response.data.success) {
28
+ throw new Error(response.data.errors.join("; "));
29
+ }
30
+ });
31
+ export default createNote;
@@ -0,0 +1,3 @@
1
+ import type { ashbyGetCandidateInfoFunction } from "../../autogen/types.js";
2
+ declare const getCandidateInfo: ashbyGetCandidateInfoFunction;
3
+ export default getCandidateInfo;
@@ -0,0 +1,33 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { axiosClient } from "../../util/axiosClient.js";
11
+ import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
12
+ const getCandidateInfo = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
13
+ const { candidateId } = params;
14
+ const { authToken } = authParams;
15
+ if (!authToken) {
16
+ throw new Error(MISSING_AUTH_TOKEN);
17
+ }
18
+ const response = yield axiosClient.post(`https://api.ashbyhq.com/candidate.info`, {
19
+ id: candidateId,
20
+ }, {
21
+ auth: {
22
+ username: authToken,
23
+ password: "",
24
+ },
25
+ });
26
+ if (!response.data.success) {
27
+ throw new Error(response.data.errors.join("; "));
28
+ }
29
+ return {
30
+ candidate: response.data,
31
+ };
32
+ });
33
+ export default getCandidateInfo;
@@ -0,0 +1,3 @@
1
+ import type { ashbyListCandidateNotesFunction } from "../../autogen/types.js";
2
+ declare const listCandidateNotes: ashbyListCandidateNotesFunction;
3
+ export default listCandidateNotes;