@credal/actions 0.2.196 → 0.2.197

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 (71) hide show
  1. package/dist/actions/autogen/templates.js +6 -6
  2. package/dist/actions/groups.d.ts +6 -0
  3. package/dist/actions/groups.js +248 -0
  4. package/dist/actions/providers/ashby/addCandidateToProject.d.ts +3 -0
  5. package/dist/actions/providers/ashby/addCandidateToProject.js +31 -0
  6. package/dist/actions/providers/ashby/createCandidate.d.ts +3 -0
  7. package/dist/actions/providers/ashby/createCandidate.js +38 -0
  8. package/dist/actions/providers/ashby/createNote.d.ts +3 -0
  9. package/dist/actions/providers/ashby/createNote.js +31 -0
  10. package/dist/actions/providers/ashby/getCandidateInfo.d.ts +3 -0
  11. package/dist/actions/providers/ashby/getCandidateInfo.js +33 -0
  12. package/dist/actions/providers/ashby/listCandidateNotes.d.ts +3 -0
  13. package/dist/actions/providers/ashby/listCandidateNotes.js +33 -0
  14. package/dist/actions/providers/ashby/listCandidates.d.ts +3 -0
  15. package/dist/actions/providers/ashby/listCandidates.js +30 -0
  16. package/dist/actions/providers/ashby/searchCandidates.d.ts +3 -0
  17. package/dist/actions/providers/ashby/searchCandidates.js +34 -0
  18. package/dist/actions/providers/ashby/updateCandidate.d.ts +3 -0
  19. package/dist/actions/providers/ashby/updateCandidate.js +56 -0
  20. package/dist/actions/providers/credal/callCopilot.d.ts +3 -0
  21. package/dist/actions/providers/credal/callCopilot.js +36 -0
  22. package/dist/actions/providers/gong/getGongTranscripts.d.ts +3 -0
  23. package/dist/actions/providers/gong/getGongTranscripts.js +315 -0
  24. package/dist/actions/providers/jamf/getJamfComputerInventory.d.ts +3 -0
  25. package/dist/actions/providers/jamf/getJamfComputerInventory.js +37 -0
  26. package/dist/actions/providers/jamf/getJamfFileVaultRecoveryKey.d.ts +3 -0
  27. package/dist/actions/providers/jamf/getJamfFileVaultRecoveryKey.js +39 -0
  28. package/dist/actions/providers/jamf/getJamfUserComputerId.d.ts +3 -0
  29. package/dist/actions/providers/jamf/getJamfUserComputerId.js +45 -0
  30. package/dist/actions/providers/jamf/lockJamfComputerById.d.ts +3 -0
  31. package/dist/actions/providers/jamf/lockJamfComputerById.js +39 -0
  32. package/dist/actions/providers/kandji/getFVRecoveryKeyForDevice.d.ts +3 -0
  33. package/dist/actions/providers/kandji/getFVRecoveryKeyForDevice.js +85 -0
  34. package/dist/actions/providers/math/index.d.ts +1 -0
  35. package/dist/actions/providers/math/index.js +37 -0
  36. package/dist/actions/providers/okta/addUserToGroup.d.ts +3 -0
  37. package/dist/actions/providers/okta/addUserToGroup.js +56 -0
  38. package/dist/actions/providers/okta/getOktaGroup.d.ts +3 -0
  39. package/dist/actions/providers/okta/getOktaGroup.js +73 -0
  40. package/dist/actions/providers/okta/getOktaUser.d.ts +3 -0
  41. package/dist/actions/providers/okta/getOktaUser.js +40 -0
  42. package/dist/actions/providers/okta/listMFA.d.ts +3 -0
  43. package/dist/actions/providers/okta/listMFA.js +52 -0
  44. package/dist/actions/providers/okta/listOktaGroupMembers.d.ts +3 -0
  45. package/dist/actions/providers/okta/listOktaGroupMembers.js +99 -0
  46. package/dist/actions/providers/okta/listOktaGroups.d.ts +3 -0
  47. package/dist/actions/providers/okta/listOktaGroups.js +92 -0
  48. package/dist/actions/providers/okta/listOktaUserGroups.d.ts +3 -0
  49. package/dist/actions/providers/okta/listOktaUserGroups.js +83 -0
  50. package/dist/actions/providers/okta/listOktaUsers.d.ts +3 -0
  51. package/dist/actions/providers/okta/listOktaUsers.js +100 -0
  52. package/dist/actions/providers/okta/removeUserFromGroup.d.ts +3 -0
  53. package/dist/actions/providers/okta/removeUserFromGroup.js +56 -0
  54. package/dist/actions/providers/okta/resetMFA.d.ts +3 -0
  55. package/dist/actions/providers/okta/resetMFA.js +62 -0
  56. package/dist/actions/providers/okta/resetPassword.d.ts +3 -0
  57. package/dist/actions/providers/okta/resetPassword.js +57 -0
  58. package/dist/actions/providers/okta/triggerOktaWorkflow.d.ts +3 -0
  59. package/dist/actions/providers/okta/triggerOktaWorkflow.js +44 -0
  60. package/dist/actions/providers/salesforce/fetchSalesforceSchema.d.ts +3 -0
  61. package/dist/actions/providers/salesforce/fetchSalesforceSchema.js +40 -0
  62. package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +3 -0
  63. package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.js +43 -0
  64. package/dist/actions/providers/slack/archiveChannel.d.ts +3 -0
  65. package/dist/actions/providers/slack/archiveChannel.js +35 -0
  66. package/dist/actions/providers/slack/index.d.ts +1 -0
  67. package/dist/actions/providers/slack/index.js +37 -0
  68. package/dist/actions/providers/slack/listConversations.d.ts +3 -0
  69. package/dist/actions/providers/slack/listConversations.js +41 -0
  70. package/dist/actions/providers/slackUser/searchSlackRTS.js +21 -5
  71. package/package.json +1 -1
@@ -1691,8 +1691,8 @@ export const jiraGetJiraTicketHistoryDefinition = {
1691
1691
  provider: "jira",
1692
1692
  };
1693
1693
  export const jiraMoveJiraTicketToProjectDefinition = {
1694
- displayName: "Move Jira ticket to another project",
1695
- description: "Moves a single Jira ticket from one project to another, optionally updating the issue type. Note: This action only works with Jira Cloud, not Jira Data Center.",
1694
+ displayName: "[BETA] Move Jira ticket to another project",
1695
+ description: "Moves a Jira ticket from one project to another, optionally updating the issue type. Note: This action only works with Jira Cloud, not Jira Data Center.",
1696
1696
  scopes: ["write:jira-work", "read:jira-work"],
1697
1697
  tags: [],
1698
1698
  parameters: {
@@ -2402,8 +2402,8 @@ export const jiraOrgGetJiraTicketHistoryDefinition = {
2402
2402
  provider: "jiraOrg",
2403
2403
  };
2404
2404
  export const jiraOrgMoveJiraTicketToProjectDefinition = {
2405
- displayName: "Move Jira ticket to another project",
2406
- description: "Moves a single Jira ticket from one project to another, optionally updating the issue type. Note: This action only works with Jira Cloud, not Jira Data Center.",
2405
+ displayName: "[BETA] Move Jira ticket to another project",
2406
+ description: "Moves a Jira ticket from one project to another, optionally updating the issue type. Note: This action only works with Jira Cloud, not Jira Data Center.",
2407
2407
  scopes: ["write:jira-work", "read:jira-work"],
2408
2408
  tags: [],
2409
2409
  parameters: {
@@ -3113,8 +3113,8 @@ export const jiraDataCenterGetJiraTicketHistoryDefinition = {
3113
3113
  provider: "jiraDataCenter",
3114
3114
  };
3115
3115
  export const jiraDataCenterMoveJiraTicketToProjectDefinition = {
3116
- displayName: "Move Jira ticket to another project",
3117
- description: "Moves a single Jira ticket from one project to another, optionally updating the issue type. Note: This action only works with Jira Cloud, not Jira Data Center.",
3116
+ displayName: "[BETA] Move Jira ticket to another project",
3117
+ description: "Moves a Jira ticket from one project to another, optionally updating the issue type. Note: This action only works with Jira Cloud, not Jira Data Center.",
3118
3118
  scopes: ["write:jira-work", "read:jira-work"],
3119
3119
  tags: [],
3120
3120
  parameters: {
@@ -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;
@@ -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 listCandidateNotes = (_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.listNotes`, {
19
+ 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
+ notes: response.data.results,
31
+ };
32
+ });
33
+ export default listCandidateNotes;
@@ -0,0 +1,3 @@
1
+ import type { ashbyListCandidatesFunction } from "../../autogen/types.js";
2
+ declare const listCandidates: ashbyListCandidatesFunction;
3
+ export default listCandidates;
@@ -0,0 +1,30 @@
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 listCandidates = (_a) => __awaiter(void 0, [_a], void 0, function* ({ 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.list`, null, {
18
+ auth: {
19
+ username: authToken,
20
+ password: "",
21
+ },
22
+ });
23
+ if (!response.data.success) {
24
+ throw new Error(response.data.errors.join("; "));
25
+ }
26
+ return {
27
+ candidates: response.data.results,
28
+ };
29
+ });
30
+ export default listCandidates;
@@ -0,0 +1,3 @@
1
+ import type { ashbySearchCandidatesFunction } from "../../autogen/types.js";
2
+ declare const searchCandidates: ashbySearchCandidatesFunction;
3
+ export default searchCandidates;
@@ -0,0 +1,34 @@
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 searchCandidates = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
13
+ const { email, name } = 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.search`, {
19
+ email,
20
+ name,
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
+ return {
31
+ candidates: response.data.results,
32
+ };
33
+ });
34
+ export default searchCandidates;
@@ -0,0 +1,3 @@
1
+ import type { ashbyUpdateCandidateFunction } from "../../autogen/types.js";
2
+ declare const updateCandidate: ashbyUpdateCandidateFunction;
3
+ export default updateCandidate;
@@ -0,0 +1,56 @@
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 updateCandidate = (_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 body = {
18
+ candidateId: params.candidateId,
19
+ };
20
+ if (params.name !== undefined)
21
+ body.name = params.name;
22
+ if (params.email !== undefined)
23
+ body.email = params.email;
24
+ if (params.phoneNumber !== undefined)
25
+ body.phoneNumber = params.phoneNumber;
26
+ if (params.linkedInUrl !== undefined)
27
+ body.linkedInUrl = params.linkedInUrl;
28
+ if (params.githubUrl !== undefined)
29
+ body.githubUrl = params.githubUrl;
30
+ if (params.websiteUrl !== undefined)
31
+ body.websiteUrl = params.websiteUrl;
32
+ if (params.alternateEmail !== undefined)
33
+ body.alternateEmail = params.alternateEmail;
34
+ if (params.socialLinks !== undefined)
35
+ body.socialLinks = params.socialLinks;
36
+ if (params.sourceId !== undefined)
37
+ body.sourceId = params.sourceId;
38
+ if (params.creditedToUserId !== undefined)
39
+ body.creditedToUserId = params.creditedToUserId;
40
+ if (params.location !== undefined)
41
+ body.location = params.location;
42
+ if (params.createdAt !== undefined)
43
+ body.createdAt = params.createdAt;
44
+ if (params.sendNotifications !== undefined)
45
+ body.sendNotifications = params.sendNotifications;
46
+ const response = yield axiosClient.post(`https://api.ashbyhq.com/candidate.update`, body, {
47
+ auth: {
48
+ username: authToken,
49
+ password: "",
50
+ },
51
+ });
52
+ if (!response.data.success) {
53
+ throw new Error(response.data.errors.join("; "));
54
+ }
55
+ });
56
+ export default updateCandidate;
@@ -0,0 +1,3 @@
1
+ import type { credalCallCopilotFunction } from "../../autogen/types";
2
+ declare const callCopilot: credalCallCopilotFunction;
3
+ export default callCopilot;