@credal/actions 0.2.186 → 0.2.188
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/autogen/templates.js +172 -11
- package/dist/actions/autogen/types.d.ts +28 -28
- package/dist/actions/autogen/types.js +2 -2
- package/dist/actions/groups.js +14 -1
- package/dist/actions/parse.d.ts +3 -0
- package/dist/actions/parse.js +1 -0
- package/dist/actions/providers/confluence/updatePage.d.ts +3 -0
- package/dist/actions/providers/confluence/updatePage.js +47 -0
- package/dist/actions/providers/jamf/types.d.ts +8 -0
- package/dist/actions/providers/jamf/types.js +7 -0
- package/dist/actions/providers/slack/archiveChannel.js +9 -2
- package/package.json +1 -1
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +0 -3
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.js +0 -43
|
@@ -4536,17 +4536,17 @@ export declare const firecrawlScrapeTweetDataWithNitterOutputSchema: z.ZodObject
|
|
|
4536
4536
|
export type firecrawlScrapeTweetDataWithNitterOutputType = z.infer<typeof firecrawlScrapeTweetDataWithNitterOutputSchema>;
|
|
4537
4537
|
export type firecrawlScrapeTweetDataWithNitterFunction = ActionFunction<firecrawlScrapeTweetDataWithNitterParamsType, AuthParamsType, firecrawlScrapeTweetDataWithNitterOutputType>;
|
|
4538
4538
|
export declare const resendSendEmailParamsSchema: z.ZodObject<{
|
|
4539
|
-
to: z.ZodString
|
|
4539
|
+
to: z.ZodArray<z.ZodString, "many">;
|
|
4540
4540
|
subject: z.ZodString;
|
|
4541
4541
|
content: z.ZodString;
|
|
4542
4542
|
}, "strip", z.ZodTypeAny, {
|
|
4543
4543
|
content: string;
|
|
4544
4544
|
subject: string;
|
|
4545
|
-
to: string;
|
|
4545
|
+
to: string[];
|
|
4546
4546
|
}, {
|
|
4547
4547
|
content: string;
|
|
4548
4548
|
subject: string;
|
|
4549
|
-
to: string;
|
|
4549
|
+
to: string[];
|
|
4550
4550
|
}>;
|
|
4551
4551
|
export type resendSendEmailParamsType = z.infer<typeof resendSendEmailParamsSchema>;
|
|
4552
4552
|
export declare const resendSendEmailOutputSchema: z.ZodObject<{
|
|
@@ -4562,17 +4562,17 @@ export declare const resendSendEmailOutputSchema: z.ZodObject<{
|
|
|
4562
4562
|
export type resendSendEmailOutputType = z.infer<typeof resendSendEmailOutputSchema>;
|
|
4563
4563
|
export type resendSendEmailFunction = ActionFunction<resendSendEmailParamsType, AuthParamsType, resendSendEmailOutputType>;
|
|
4564
4564
|
export declare const resendSendEmailHtmlParamsSchema: z.ZodObject<{
|
|
4565
|
-
to: z.ZodString
|
|
4565
|
+
to: z.ZodArray<z.ZodString, "many">;
|
|
4566
4566
|
subject: z.ZodString;
|
|
4567
4567
|
content: z.ZodString;
|
|
4568
4568
|
}, "strip", z.ZodTypeAny, {
|
|
4569
4569
|
content: string;
|
|
4570
4570
|
subject: string;
|
|
4571
|
-
to: string;
|
|
4571
|
+
to: string[];
|
|
4572
4572
|
}, {
|
|
4573
4573
|
content: string;
|
|
4574
4574
|
subject: string;
|
|
4575
|
-
to: string;
|
|
4575
|
+
to: string[];
|
|
4576
4576
|
}>;
|
|
4577
4577
|
export type resendSendEmailHtmlParamsType = z.infer<typeof resendSendEmailHtmlParamsSchema>;
|
|
4578
4578
|
export declare const resendSendEmailHtmlOutputSchema: z.ZodObject<{
|
|
@@ -4806,23 +4806,23 @@ export declare const googleOauthListCalendarEventsOutputSchema: z.ZodObject<{
|
|
|
4806
4806
|
displayName: z.ZodOptional<z.ZodString>;
|
|
4807
4807
|
responseStatus: z.ZodOptional<z.ZodString>;
|
|
4808
4808
|
}, "strip", z.ZodTypeAny, {
|
|
4809
|
-
email?: string | undefined;
|
|
4810
4809
|
displayName?: string | undefined;
|
|
4810
|
+
email?: string | undefined;
|
|
4811
4811
|
responseStatus?: string | undefined;
|
|
4812
4812
|
}, {
|
|
4813
|
-
email?: string | undefined;
|
|
4814
4813
|
displayName?: string | undefined;
|
|
4814
|
+
email?: string | undefined;
|
|
4815
4815
|
responseStatus?: string | undefined;
|
|
4816
4816
|
}>, "many">>;
|
|
4817
4817
|
organizer: z.ZodOptional<z.ZodObject<{
|
|
4818
4818
|
email: z.ZodOptional<z.ZodString>;
|
|
4819
4819
|
displayName: z.ZodOptional<z.ZodString>;
|
|
4820
4820
|
}, "strip", z.ZodTypeAny, {
|
|
4821
|
-
email?: string | undefined;
|
|
4822
4821
|
displayName?: string | undefined;
|
|
4823
|
-
}, {
|
|
4824
4822
|
email?: string | undefined;
|
|
4823
|
+
}, {
|
|
4825
4824
|
displayName?: string | undefined;
|
|
4825
|
+
email?: string | undefined;
|
|
4826
4826
|
}>>;
|
|
4827
4827
|
hangoutLink: z.ZodOptional<z.ZodString>;
|
|
4828
4828
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -4857,13 +4857,13 @@ export declare const googleOauthListCalendarEventsOutputSchema: z.ZodObject<{
|
|
|
4857
4857
|
start?: string | undefined;
|
|
4858
4858
|
end?: string | undefined;
|
|
4859
4859
|
attendees?: {
|
|
4860
|
-
email?: string | undefined;
|
|
4861
4860
|
displayName?: string | undefined;
|
|
4861
|
+
email?: string | undefined;
|
|
4862
4862
|
responseStatus?: string | undefined;
|
|
4863
4863
|
}[] | undefined;
|
|
4864
4864
|
organizer?: {
|
|
4865
|
-
email?: string | undefined;
|
|
4866
4865
|
displayName?: string | undefined;
|
|
4866
|
+
email?: string | undefined;
|
|
4867
4867
|
} | undefined;
|
|
4868
4868
|
startDayOfWeek?: string | undefined;
|
|
4869
4869
|
endDayOfWeek?: string | undefined;
|
|
@@ -4888,13 +4888,13 @@ export declare const googleOauthListCalendarEventsOutputSchema: z.ZodObject<{
|
|
|
4888
4888
|
start?: string | undefined;
|
|
4889
4889
|
end?: string | undefined;
|
|
4890
4890
|
attendees?: {
|
|
4891
|
-
email?: string | undefined;
|
|
4892
4891
|
displayName?: string | undefined;
|
|
4892
|
+
email?: string | undefined;
|
|
4893
4893
|
responseStatus?: string | undefined;
|
|
4894
4894
|
}[] | undefined;
|
|
4895
4895
|
organizer?: {
|
|
4896
|
-
email?: string | undefined;
|
|
4897
4896
|
displayName?: string | undefined;
|
|
4897
|
+
email?: string | undefined;
|
|
4898
4898
|
} | undefined;
|
|
4899
4899
|
startDayOfWeek?: string | undefined;
|
|
4900
4900
|
endDayOfWeek?: string | undefined;
|
|
@@ -4924,13 +4924,13 @@ export declare const googleOauthListCalendarEventsOutputSchema: z.ZodObject<{
|
|
|
4924
4924
|
start?: string | undefined;
|
|
4925
4925
|
end?: string | undefined;
|
|
4926
4926
|
attendees?: {
|
|
4927
|
-
email?: string | undefined;
|
|
4928
4927
|
displayName?: string | undefined;
|
|
4928
|
+
email?: string | undefined;
|
|
4929
4929
|
responseStatus?: string | undefined;
|
|
4930
4930
|
}[] | undefined;
|
|
4931
4931
|
organizer?: {
|
|
4932
|
-
email?: string | undefined;
|
|
4933
4932
|
displayName?: string | undefined;
|
|
4933
|
+
email?: string | undefined;
|
|
4934
4934
|
} | undefined;
|
|
4935
4935
|
startDayOfWeek?: string | undefined;
|
|
4936
4936
|
endDayOfWeek?: string | undefined;
|
|
@@ -4960,13 +4960,13 @@ export declare const googleOauthListCalendarEventsOutputSchema: z.ZodObject<{
|
|
|
4960
4960
|
start?: string | undefined;
|
|
4961
4961
|
end?: string | undefined;
|
|
4962
4962
|
attendees?: {
|
|
4963
|
-
email?: string | undefined;
|
|
4964
4963
|
displayName?: string | undefined;
|
|
4964
|
+
email?: string | undefined;
|
|
4965
4965
|
responseStatus?: string | undefined;
|
|
4966
4966
|
}[] | undefined;
|
|
4967
4967
|
organizer?: {
|
|
4968
|
-
email?: string | undefined;
|
|
4969
4968
|
displayName?: string | undefined;
|
|
4969
|
+
email?: string | undefined;
|
|
4970
4970
|
} | undefined;
|
|
4971
4971
|
startDayOfWeek?: string | undefined;
|
|
4972
4972
|
endDayOfWeek?: string | undefined;
|
|
@@ -5000,11 +5000,11 @@ export declare const googleOauthUpdateCalendarEventParamsSchema: z.ZodObject<{
|
|
|
5000
5000
|
email: z.ZodOptional<z.ZodString>;
|
|
5001
5001
|
displayName: z.ZodOptional<z.ZodString>;
|
|
5002
5002
|
}, "strip", z.ZodTypeAny, {
|
|
5003
|
-
email?: string | undefined;
|
|
5004
5003
|
displayName?: string | undefined;
|
|
5005
|
-
}, {
|
|
5006
5004
|
email?: string | undefined;
|
|
5005
|
+
}, {
|
|
5007
5006
|
displayName?: string | undefined;
|
|
5007
|
+
email?: string | undefined;
|
|
5008
5008
|
}>>;
|
|
5009
5009
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
5010
5010
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5017,8 +5017,8 @@ export declare const googleOauthUpdateCalendarEventParamsSchema: z.ZodObject<{
|
|
|
5017
5017
|
attendees?: string[] | undefined;
|
|
5018
5018
|
timeZone?: string | undefined;
|
|
5019
5019
|
organizer?: {
|
|
5020
|
-
email?: string | undefined;
|
|
5021
5020
|
displayName?: string | undefined;
|
|
5021
|
+
email?: string | undefined;
|
|
5022
5022
|
} | undefined;
|
|
5023
5023
|
}, {
|
|
5024
5024
|
status?: string | undefined;
|
|
@@ -5030,8 +5030,8 @@ export declare const googleOauthUpdateCalendarEventParamsSchema: z.ZodObject<{
|
|
|
5030
5030
|
attendees?: string[] | undefined;
|
|
5031
5031
|
timeZone?: string | undefined;
|
|
5032
5032
|
organizer?: {
|
|
5033
|
-
email?: string | undefined;
|
|
5034
5033
|
displayName?: string | undefined;
|
|
5034
|
+
email?: string | undefined;
|
|
5035
5035
|
} | undefined;
|
|
5036
5036
|
}>>;
|
|
5037
5037
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5047,8 +5047,8 @@ export declare const googleOauthUpdateCalendarEventParamsSchema: z.ZodObject<{
|
|
|
5047
5047
|
attendees?: string[] | undefined;
|
|
5048
5048
|
timeZone?: string | undefined;
|
|
5049
5049
|
organizer?: {
|
|
5050
|
-
email?: string | undefined;
|
|
5051
5050
|
displayName?: string | undefined;
|
|
5051
|
+
email?: string | undefined;
|
|
5052
5052
|
} | undefined;
|
|
5053
5053
|
} | undefined;
|
|
5054
5054
|
}, {
|
|
@@ -5064,8 +5064,8 @@ export declare const googleOauthUpdateCalendarEventParamsSchema: z.ZodObject<{
|
|
|
5064
5064
|
attendees?: string[] | undefined;
|
|
5065
5065
|
timeZone?: string | undefined;
|
|
5066
5066
|
organizer?: {
|
|
5067
|
-
email?: string | undefined;
|
|
5068
5067
|
displayName?: string | undefined;
|
|
5068
|
+
email?: string | undefined;
|
|
5069
5069
|
} | undefined;
|
|
5070
5070
|
} | undefined;
|
|
5071
5071
|
}>;
|
|
@@ -5102,11 +5102,11 @@ export declare const googleOauthEditAGoogleCalendarEventParamsSchema: z.ZodObjec
|
|
|
5102
5102
|
email: z.ZodOptional<z.ZodString>;
|
|
5103
5103
|
displayName: z.ZodOptional<z.ZodString>;
|
|
5104
5104
|
}, "strip", z.ZodTypeAny, {
|
|
5105
|
-
email?: string | undefined;
|
|
5106
5105
|
displayName?: string | undefined;
|
|
5107
|
-
}, {
|
|
5108
5106
|
email?: string | undefined;
|
|
5107
|
+
}, {
|
|
5109
5108
|
displayName?: string | undefined;
|
|
5109
|
+
email?: string | undefined;
|
|
5110
5110
|
}>>;
|
|
5111
5111
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
5112
5112
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5121,8 +5121,8 @@ export declare const googleOauthEditAGoogleCalendarEventParamsSchema: z.ZodObjec
|
|
|
5121
5121
|
attendees?: string[] | undefined;
|
|
5122
5122
|
timeZone?: string | undefined;
|
|
5123
5123
|
organizer?: {
|
|
5124
|
-
email?: string | undefined;
|
|
5125
5124
|
displayName?: string | undefined;
|
|
5125
|
+
email?: string | undefined;
|
|
5126
5126
|
} | undefined;
|
|
5127
5127
|
}, {
|
|
5128
5128
|
calendarId: string;
|
|
@@ -5136,8 +5136,8 @@ export declare const googleOauthEditAGoogleCalendarEventParamsSchema: z.ZodObjec
|
|
|
5136
5136
|
attendees?: string[] | undefined;
|
|
5137
5137
|
timeZone?: string | undefined;
|
|
5138
5138
|
organizer?: {
|
|
5139
|
-
email?: string | undefined;
|
|
5140
5139
|
displayName?: string | undefined;
|
|
5140
|
+
email?: string | undefined;
|
|
5141
5141
|
} | undefined;
|
|
5142
5142
|
}>;
|
|
5143
5143
|
export type googleOauthEditAGoogleCalendarEventParamsType = z.infer<typeof googleOauthEditAGoogleCalendarEventParamsSchema>;
|
|
@@ -1494,7 +1494,7 @@ export const firecrawlScrapeTweetDataWithNitterOutputSchema = z.object({
|
|
|
1494
1494
|
text: z.string().describe("The text in the tweet URL"),
|
|
1495
1495
|
});
|
|
1496
1496
|
export const resendSendEmailParamsSchema = z.object({
|
|
1497
|
-
to: z.string().describe("The email address to send the email to"),
|
|
1497
|
+
to: z.array(z.string()).describe("The email address(es) to send the email to"),
|
|
1498
1498
|
subject: z.string().describe("The subject of the email"),
|
|
1499
1499
|
content: z.string().describe("The content of the email"),
|
|
1500
1500
|
});
|
|
@@ -1503,7 +1503,7 @@ export const resendSendEmailOutputSchema = z.object({
|
|
|
1503
1503
|
error: z.string().describe("The error that occurred if the email was not sent successfully").optional(),
|
|
1504
1504
|
});
|
|
1505
1505
|
export const resendSendEmailHtmlParamsSchema = z.object({
|
|
1506
|
-
to: z.string().describe("The email address to send the email to"),
|
|
1506
|
+
to: z.array(z.string()).describe("The email address(es) to send the email to"),
|
|
1507
1507
|
subject: z.string().describe("The subject of the email"),
|
|
1508
1508
|
content: z.string().describe("The HTML content of the email to be sent"),
|
|
1509
1509
|
});
|
package/dist/actions/groups.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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";
|
|
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, linearGetIssueDetailsDefinition, linearGetProjectsDefinition, linearGetProjectDetailsDefinition, linearGetTeamDetailsDefinition, linearGetTeamsDefinition, 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, googleOauthSearchDriveByQueryAndGetFileContentDefinition, githubGetFileContentDefinition, githubListDirectoryDefinition, } from "./autogen/templates.js";
|
|
2
2
|
export const ACTION_GROUPS = {
|
|
3
3
|
GENERIC: {
|
|
4
4
|
description: "Generic utility actions",
|
|
@@ -47,6 +47,7 @@ export const ACTION_GROUPS = {
|
|
|
47
47
|
googleOauthUpdatePresentationDefinition,
|
|
48
48
|
googleOauthSearchDriveByKeywordsDefinition,
|
|
49
49
|
googleOauthSearchDriveByQueryDefinition,
|
|
50
|
+
googleOauthSearchDriveByQueryAndGetFileContentDefinition,
|
|
50
51
|
googleOauthGetDriveFileContentByIdDefinition,
|
|
51
52
|
],
|
|
52
53
|
},
|
|
@@ -198,6 +199,8 @@ export const ACTION_GROUPS = {
|
|
|
198
199
|
githubCreateBranchDefinition,
|
|
199
200
|
githubCreatePullRequestDefinition,
|
|
200
201
|
githubListPullRequestsDefinition,
|
|
202
|
+
githubGetFileContentDefinition,
|
|
203
|
+
githubListDirectoryDefinition,
|
|
201
204
|
],
|
|
202
205
|
},
|
|
203
206
|
ASHBY: {
|
|
@@ -245,4 +248,14 @@ export const ACTION_GROUPS = {
|
|
|
245
248
|
oktaTriggerOktaWorkflowDefinition,
|
|
246
249
|
],
|
|
247
250
|
},
|
|
251
|
+
LINEAR: {
|
|
252
|
+
description: "Actions for interacting with Linear",
|
|
253
|
+
actions: [
|
|
254
|
+
linearGetIssueDetailsDefinition,
|
|
255
|
+
linearGetProjectsDefinition,
|
|
256
|
+
linearGetProjectDetailsDefinition,
|
|
257
|
+
linearGetTeamDetailsDefinition,
|
|
258
|
+
linearGetTeamsDefinition,
|
|
259
|
+
],
|
|
260
|
+
},
|
|
248
261
|
};
|
package/dist/actions/parse.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
declare const actionTemplateSchema: z.ZodObject<{
|
|
3
|
+
displayName: z.ZodString;
|
|
3
4
|
description: z.ZodString;
|
|
4
5
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
5
6
|
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["read", "write"]>, "many">>>;
|
|
@@ -33,6 +34,7 @@ declare const actionTemplateSchema: z.ZodObject<{
|
|
|
33
34
|
name: z.ZodString;
|
|
34
35
|
provider: z.ZodString;
|
|
35
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
displayName: string;
|
|
36
38
|
description: string;
|
|
37
39
|
scopes: string[];
|
|
38
40
|
tags: ("read" | "write")[];
|
|
@@ -49,6 +51,7 @@ declare const actionTemplateSchema: z.ZodObject<{
|
|
|
49
51
|
properties?: Record<string, any> | undefined;
|
|
50
52
|
} | undefined;
|
|
51
53
|
}, {
|
|
54
|
+
displayName: string;
|
|
52
55
|
description: string;
|
|
53
56
|
scopes: string[];
|
|
54
57
|
name: string;
|
package/dist/actions/parse.js
CHANGED
|
@@ -31,6 +31,7 @@ const jsonObjectSchema = z.object({
|
|
|
31
31
|
const parameterTagEnum = z.enum([...parameterTagValues]);
|
|
32
32
|
const actionTagEnum = z.enum([...actionTagValues]);
|
|
33
33
|
const actionSchema = z.object({
|
|
34
|
+
displayName: z.string(),
|
|
34
35
|
description: z.string(),
|
|
35
36
|
scopes: z.array(z.string()),
|
|
36
37
|
tags: z.array(actionTagEnum).optional().default([]),
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const axios_1 = __importDefault(require("axios"));
|
|
16
|
+
function getConfluenceApi(baseUrl, username, apiToken) {
|
|
17
|
+
const api = axios_1.default.create({
|
|
18
|
+
baseURL: baseUrl,
|
|
19
|
+
headers: {
|
|
20
|
+
Accept: "application/json",
|
|
21
|
+
// Tokens are associated with a specific user.
|
|
22
|
+
Authorization: `Basic ${Buffer.from(`${username}:${apiToken}`).toString("base64")}`,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
return api;
|
|
26
|
+
}
|
|
27
|
+
const confluenceUpdatePage = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
28
|
+
const { pageId, username, content, title } = params;
|
|
29
|
+
const { baseUrl, authToken } = authParams;
|
|
30
|
+
const api = getConfluenceApi(baseUrl, username, authToken);
|
|
31
|
+
// Get current version number
|
|
32
|
+
const response = yield api.get(`/api/v2/pages/${pageId}`);
|
|
33
|
+
const currVersion = response.data.version.number;
|
|
34
|
+
yield api.put(`/api/v2/pages/${pageId}`, {
|
|
35
|
+
id: pageId,
|
|
36
|
+
status: "current",
|
|
37
|
+
title,
|
|
38
|
+
body: {
|
|
39
|
+
representation: "storage",
|
|
40
|
+
value: content,
|
|
41
|
+
},
|
|
42
|
+
version: {
|
|
43
|
+
number: currVersion + 1,
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
exports.default = confluenceUpdatePage;
|
|
@@ -9,14 +9,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { WebClient } from "@slack/web-api";
|
|
11
11
|
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
|
|
12
|
+
import { getSlackChannels } from "./helpers.js";
|
|
12
13
|
const archiveChannel = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
13
14
|
if (!authParams.authToken) {
|
|
14
15
|
throw new Error(MISSING_AUTH_TOKEN);
|
|
15
16
|
}
|
|
16
17
|
try {
|
|
17
18
|
const client = new WebClient(authParams.authToken);
|
|
18
|
-
const {
|
|
19
|
-
const
|
|
19
|
+
const { channelName } = params;
|
|
20
|
+
const allChannels = yield getSlackChannels(client);
|
|
21
|
+
const channel = allChannels.find(channel => channel.name == channelName);
|
|
22
|
+
if (!channel || !channel.id) {
|
|
23
|
+
throw Error(`Channel with name ${channelName} not found`);
|
|
24
|
+
}
|
|
25
|
+
yield client.conversations.join({ channel: channel.id });
|
|
26
|
+
const result = yield client.conversations.archive({ channel: channel.id });
|
|
20
27
|
if (!result.ok) {
|
|
21
28
|
return {
|
|
22
29
|
success: false,
|
package/package.json
CHANGED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const axiosClient_1 = require("../../util/axiosClient");
|
|
13
|
-
const getSalesforceRecordByQuery = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
14
|
-
const { authToken, baseUrl } = authParams;
|
|
15
|
-
const { query, limit } = params;
|
|
16
|
-
if (!authToken || !baseUrl) {
|
|
17
|
-
return {
|
|
18
|
-
success: false,
|
|
19
|
-
error: "authToken and baseUrl are required for Salesforce API",
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
// The API limits the maximum number of records returned to 2000, the limit lets the user set a smaller custom limit
|
|
23
|
-
const url = `${baseUrl}/services/data/v56.0/query/?q=${encodeURIComponent(query + " LIMIT " + (limit != undefined && limit <= 2000 ? limit : 2000))}`;
|
|
24
|
-
try {
|
|
25
|
-
const response = yield axiosClient_1.axiosClient.get(url, {
|
|
26
|
-
headers: {
|
|
27
|
-
Authorization: `Bearer ${authToken}`,
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
return {
|
|
31
|
-
success: true,
|
|
32
|
-
records: response.data,
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
catch (error) {
|
|
36
|
-
console.error("Error retrieving Salesforce record:", error);
|
|
37
|
-
return {
|
|
38
|
-
success: false,
|
|
39
|
-
error: error instanceof Error ? error.message : "An unknown error occurred",
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
exports.default = getSalesforceRecordByQuery;
|