@credal/actions 0.2.20 → 0.2.22
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/actionMapper.js +9 -1
- package/dist/actions/autogen/templates.d.ts +1 -0
- package/dist/actions/autogen/templates.js +192 -3
- package/dist/actions/autogen/types.d.ts +286 -4
- package/dist/actions/autogen/types.js +60 -3
- package/dist/actions/providers/gitlab/searchGroup.d.ts +6 -0
- package/dist/actions/providers/gitlab/searchGroup.js +75 -0
- package/dist/actions/providers/okta/triggerOktaWorkflow.js +2 -2
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { genericFillTemplateParamsSchema, genericFillTemplateOutputSchema, confluenceOverwritePageParamsSchema, confluenceOverwritePageOutputSchema, googlemapsValidateAddressOutputSchema, googlemapsValidateAddressParamsSchema, googleOauthCreateNewGoogleDocParamsSchema, googleOauthCreateNewGoogleDocOutputSchema, mathAddOutputSchema, mathAddParamsSchema, mongoInsertMongoDocOutputSchema, mongoInsertMongoDocParamsSchema, slackSendMessageOutputSchema, slackSendMessageParamsSchema, slackGetChannelMessagesOutputSchema, slackGetChannelMessagesParamsSchema, slackArchiveChannelParamsSchema, slackArchiveChannelOutputSchema, slackCreateChannelParamsSchema, slackCreateChannelOutputSchema, snowflakeGetRowByFieldValueOutputSchema, snowflakeGetRowByFieldValueParamsSchema, zendeskCreateZendeskTicketOutputSchema, zendeskCreateZendeskTicketParamsSchema, zendeskGetTicketDetailsOutputSchema, zendeskGetTicketDetailsParamsSchema, zendeskUpdateTicketStatusOutputSchema, zendeskUpdateTicketStatusParamsSchema, zendeskAddCommentToTicketOutputSchema, zendeskAddCommentToTicketParamsSchema, zendeskAssignTicketOutputSchema, zendeskAssignTicketParamsSchema, zendeskListZendeskTicketsOutputSchema, zendeskListZendeskTicketsParamsSchema, jiraAssignJiraTicketParamsSchema, jiraAssignJiraTicketOutputSchema, jiraCommentJiraTicketParamsSchema, jiraCommentJiraTicketOutputSchema, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema, openstreetmapGetLatitudeLongitudeFromLocationParamsSchema, openstreetmapGetLatitudeLongitudeFromLocationOutputSchema, nwsGetForecastForLocationParamsSchema, nwsGetForecastForLocationOutputSchema, googlemapsNearbysearchRestaurantsOutputSchema, googlemapsNearbysearchRestaurantsParamsSchema, firecrawlScrapeUrlOutputSchema, firecrawlScrapeUrlParamsSchema, resendSendEmailOutputSchema, firecrawlScrapeTweetDataWithNitterParamsSchema, firecrawlScrapeTweetDataWithNitterOutputSchema, resendSendEmailParamsSchema, linkedinCreateShareLinkedinPostUrlParamsSchema, linkedinCreateShareLinkedinPostUrlOutputSchema, xCreateShareXPostUrlParamsSchema, xCreateShareXPostUrlOutputSchema, finnhubSymbolLookupParamsSchema, finnhubSymbolLookupOutputSchema, finnhubGetBasicFinancialsParamsSchema, finnhubGetBasicFinancialsOutputSchema, confluenceFetchPageContentParamsSchema, confluenceFetchPageContentOutputSchema, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, googleOauthUpdateSpreadsheetParamsSchema, googleOauthUpdateSpreadsheetOutputSchema, googleOauthScheduleCalendarMeetingParamsSchema, googleOauthScheduleCalendarMeetingOutputSchema, googleOauthListCalendarsParamsSchema, googleOauthListCalendarsOutputSchema, googleOauthListCalendarEventsParamsSchema, googleOauthListCalendarEventsOutputSchema, googleOauthUpdateCalendarEventParamsSchema, googleOauthUpdateCalendarEventOutputSchema, googleOauthDeleteCalendarEventParamsSchema, googleOauthDeleteCalendarEventOutputSchema, googleOauthCreatePresentationParamsSchema, googleOauthCreatePresentationOutputSchema, googleOauthUpdatePresentationParamsSchema, googleOauthUpdatePresentationOutputSchema, googleOauthSearchDriveByKeywordsParamsSchema, googleOauthSearchDriveByKeywordsOutputSchema, googleOauthListGroupsOutputSchema, googleOauthListGroupsParamsSchema, googleOauthGetGroupOutputSchema, googleOauthGetGroupParamsSchema, googleOauthListGroupMembersOutputSchema, googleOauthListGroupMembersParamsSchema, googleOauthHasGroupMemberOutputSchema, googleOauthHasGroupMemberParamsSchema, googleOauthAddGroupMemberOutputSchema, googleOauthAddGroupMemberParamsSchema, googleOauthDeleteGroupMemberOutputSchema, googleOauthDeleteGroupMemberParamsSchema, gongGetGongTranscriptsParamsSchema, gongGetGongTranscriptsOutputSchema, ashbyCreateNoteParamsSchema, ashbyCreateNoteOutputSchema, ashbyGetCandidateInfoParamsSchema, ashbyGetCandidateInfoOutputSchema, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, ashbyListCandidatesParamsSchema, ashbyListCandidatesOutputSchema, ashbyListCandidateNotesParamsSchema, ashbyListCandidateNotesOutputSchema, ashbySearchCandidatesParamsSchema, ashbySearchCandidatesOutputSchema, ashbyCreateCandidateParamsSchema, ashbyCreateCandidateOutputSchema, ashbyUpdateCandidateParamsSchema, ashbyUpdateCandidateOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, salesforceFetchSalesforceSchemaByObjectParamsSchema, salesforceFetchSalesforceSchemaByObjectOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, ashbyAddCandidateToProjectParamsSchema, ashbyAddCandidateToProjectOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, kandjiGetFVRecoveryKeyForDeviceParamsSchema, kandjiGetFVRecoveryKeyForDeviceOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, jamfGetJamfComputerInventoryParamsSchema, jamfGetJamfComputerInventoryOutputSchema, jamfGetJamfFileVaultRecoveryKeyParamsSchema, jamfGetJamfFileVaultRecoveryKeyOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, oktaListOktaUsersParamsSchema, oktaListOktaUsersOutputSchema, oktaGetOktaUserParamsSchema, oktaGetOktaUserOutputSchema, oktaListOktaUserGroupsParamsSchema, oktaListOktaUserGroupsOutputSchema, oktaListOktaGroupsParamsSchema, oktaListOktaGroupsOutputSchema, oktaGetOktaGroupParamsSchema, oktaGetOktaGroupOutputSchema, oktaListOktaGroupMembersParamsSchema, oktaListOktaGroupMembersOutputSchema, oktaRemoveUserFromGroupParamsSchema, oktaRemoveUserFromGroupOutputSchema, oktaAddUserToGroupParamsSchema, oktaAddUserToGroupOutputSchema, oktaResetPasswordParamsSchema, oktaResetPasswordOutputSchema, oktaResetMFAParamsSchema, oktaResetMFAOutputSchema, oktaListMFAParamsSchema, oktaListMFAOutputSchema, jamfGetJamfUserComputerIdParamsSchema, jamfGetJamfUserComputerIdOutputSchema, jamfLockJamfComputerByIdParamsSchema, jamfLockJamfComputerByIdOutputSchema, oktaTriggerOktaWorkflowParamsSchema, oktaTriggerOktaWorkflowOutputSchema, } from "./autogen/types.js";
|
1
|
+
import { genericFillTemplateParamsSchema, genericFillTemplateOutputSchema, confluenceOverwritePageParamsSchema, confluenceOverwritePageOutputSchema, googlemapsValidateAddressOutputSchema, googlemapsValidateAddressParamsSchema, googleOauthCreateNewGoogleDocParamsSchema, googleOauthCreateNewGoogleDocOutputSchema, mathAddOutputSchema, mathAddParamsSchema, mongoInsertMongoDocOutputSchema, mongoInsertMongoDocParamsSchema, slackSendMessageOutputSchema, slackSendMessageParamsSchema, slackGetChannelMessagesOutputSchema, slackGetChannelMessagesParamsSchema, slackArchiveChannelParamsSchema, slackArchiveChannelOutputSchema, slackCreateChannelParamsSchema, slackCreateChannelOutputSchema, snowflakeGetRowByFieldValueOutputSchema, snowflakeGetRowByFieldValueParamsSchema, zendeskCreateZendeskTicketOutputSchema, zendeskCreateZendeskTicketParamsSchema, zendeskGetTicketDetailsOutputSchema, zendeskGetTicketDetailsParamsSchema, zendeskUpdateTicketStatusOutputSchema, zendeskUpdateTicketStatusParamsSchema, zendeskAddCommentToTicketOutputSchema, zendeskAddCommentToTicketParamsSchema, zendeskAssignTicketOutputSchema, zendeskAssignTicketParamsSchema, zendeskListZendeskTicketsOutputSchema, zendeskListZendeskTicketsParamsSchema, jiraAssignJiraTicketParamsSchema, jiraAssignJiraTicketOutputSchema, jiraCommentJiraTicketParamsSchema, jiraCommentJiraTicketOutputSchema, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema, openstreetmapGetLatitudeLongitudeFromLocationParamsSchema, openstreetmapGetLatitudeLongitudeFromLocationOutputSchema, nwsGetForecastForLocationParamsSchema, nwsGetForecastForLocationOutputSchema, googlemapsNearbysearchRestaurantsOutputSchema, googlemapsNearbysearchRestaurantsParamsSchema, firecrawlScrapeUrlOutputSchema, firecrawlScrapeUrlParamsSchema, resendSendEmailOutputSchema, firecrawlScrapeTweetDataWithNitterParamsSchema, firecrawlScrapeTweetDataWithNitterOutputSchema, resendSendEmailParamsSchema, linkedinCreateShareLinkedinPostUrlParamsSchema, linkedinCreateShareLinkedinPostUrlOutputSchema, xCreateShareXPostUrlParamsSchema, xCreateShareXPostUrlOutputSchema, finnhubSymbolLookupParamsSchema, finnhubSymbolLookupOutputSchema, finnhubGetBasicFinancialsParamsSchema, finnhubGetBasicFinancialsOutputSchema, confluenceFetchPageContentParamsSchema, confluenceFetchPageContentOutputSchema, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, googleOauthUpdateSpreadsheetParamsSchema, googleOauthUpdateSpreadsheetOutputSchema, googleOauthScheduleCalendarMeetingParamsSchema, googleOauthScheduleCalendarMeetingOutputSchema, googleOauthListCalendarsParamsSchema, googleOauthListCalendarsOutputSchema, googleOauthListCalendarEventsParamsSchema, googleOauthListCalendarEventsOutputSchema, googleOauthUpdateCalendarEventParamsSchema, googleOauthUpdateCalendarEventOutputSchema, googleOauthDeleteCalendarEventParamsSchema, googleOauthDeleteCalendarEventOutputSchema, googleOauthCreatePresentationParamsSchema, googleOauthCreatePresentationOutputSchema, googleOauthUpdatePresentationParamsSchema, googleOauthUpdatePresentationOutputSchema, googleOauthSearchDriveByKeywordsParamsSchema, googleOauthSearchDriveByKeywordsOutputSchema, googleOauthListGroupsOutputSchema, googleOauthListGroupsParamsSchema, googleOauthGetGroupOutputSchema, googleOauthGetGroupParamsSchema, googleOauthListGroupMembersOutputSchema, googleOauthListGroupMembersParamsSchema, googleOauthHasGroupMemberOutputSchema, googleOauthHasGroupMemberParamsSchema, googleOauthAddGroupMemberOutputSchema, googleOauthAddGroupMemberParamsSchema, googleOauthDeleteGroupMemberOutputSchema, googleOauthDeleteGroupMemberParamsSchema, gongGetGongTranscriptsParamsSchema, gongGetGongTranscriptsOutputSchema, ashbyCreateNoteParamsSchema, ashbyCreateNoteOutputSchema, ashbyGetCandidateInfoParamsSchema, ashbyGetCandidateInfoOutputSchema, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, ashbyListCandidatesParamsSchema, ashbyListCandidatesOutputSchema, ashbyListCandidateNotesParamsSchema, ashbyListCandidateNotesOutputSchema, ashbySearchCandidatesParamsSchema, ashbySearchCandidatesOutputSchema, ashbyCreateCandidateParamsSchema, ashbyCreateCandidateOutputSchema, ashbyUpdateCandidateParamsSchema, ashbyUpdateCandidateOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, salesforceFetchSalesforceSchemaByObjectParamsSchema, salesforceFetchSalesforceSchemaByObjectOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, ashbyAddCandidateToProjectParamsSchema, ashbyAddCandidateToProjectOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, kandjiGetFVRecoveryKeyForDeviceParamsSchema, kandjiGetFVRecoveryKeyForDeviceOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, jamfGetJamfComputerInventoryParamsSchema, jamfGetJamfComputerInventoryOutputSchema, jamfGetJamfFileVaultRecoveryKeyParamsSchema, jamfGetJamfFileVaultRecoveryKeyOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, oktaListOktaUsersParamsSchema, oktaListOktaUsersOutputSchema, oktaGetOktaUserParamsSchema, oktaGetOktaUserOutputSchema, oktaListOktaUserGroupsParamsSchema, oktaListOktaUserGroupsOutputSchema, oktaListOktaGroupsParamsSchema, oktaListOktaGroupsOutputSchema, oktaGetOktaGroupParamsSchema, oktaGetOktaGroupOutputSchema, oktaListOktaGroupMembersParamsSchema, oktaListOktaGroupMembersOutputSchema, oktaRemoveUserFromGroupParamsSchema, oktaRemoveUserFromGroupOutputSchema, oktaAddUserToGroupParamsSchema, oktaAddUserToGroupOutputSchema, oktaResetPasswordParamsSchema, oktaResetPasswordOutputSchema, oktaResetMFAParamsSchema, oktaResetMFAOutputSchema, oktaListMFAParamsSchema, oktaListMFAOutputSchema, jamfGetJamfUserComputerIdParamsSchema, jamfGetJamfUserComputerIdOutputSchema, jamfLockJamfComputerByIdParamsSchema, jamfLockJamfComputerByIdOutputSchema, oktaTriggerOktaWorkflowParamsSchema, oktaTriggerOktaWorkflowOutputSchema, gitlabSearchGroupOutputSchema, gitlabSearchGroupParamsSchema, } from "./autogen/types.js";
|
2
2
|
import validateAddress from "./providers/googlemaps/validateAddress.js";
|
3
3
|
import add from "./providers/math/add.js";
|
4
4
|
import fillTemplate from "./providers/generic/fillTemplate.js";
|
@@ -108,6 +108,7 @@ import archiveChannel from "./providers/slack/archiveChannel.js";
|
|
108
108
|
import getJamfUserComputerId from "./providers/jamf/getJamfUserComputerId.js";
|
109
109
|
import lockJamfComputerById from "./providers/jamf/lockJamfComputerById.js";
|
110
110
|
import triggerOktaWorkflow from "./providers/okta/triggerOktaWorkflow.js";
|
111
|
+
import searchGroup from "./providers/gitlab/searchGroup.js";
|
111
112
|
export const ActionMapper = {
|
112
113
|
generic: {
|
113
114
|
fillTemplate: {
|
@@ -714,4 +715,11 @@ export const ActionMapper = {
|
|
714
715
|
outputSchema: oktaTriggerOktaWorkflowOutputSchema,
|
715
716
|
},
|
716
717
|
},
|
718
|
+
gitlab: {
|
719
|
+
searchGroup: {
|
720
|
+
fn: searchGroup,
|
721
|
+
paramsSchema: gitlabSearchGroupParamsSchema,
|
722
|
+
outputSchema: gitlabSearchGroupOutputSchema,
|
723
|
+
},
|
724
|
+
},
|
717
725
|
};
|
@@ -109,3 +109,4 @@ export declare const jamfGetJamfFileVaultRecoveryKeyDefinition: ActionTemplate;
|
|
109
109
|
export declare const jamfGetJamfComputerInventoryDefinition: ActionTemplate;
|
110
110
|
export declare const jamfGetJamfUserComputerIdDefinition: ActionTemplate;
|
111
111
|
export declare const jamfLockJamfComputerByIdDefinition: ActionTemplate;
|
112
|
+
export declare const gitlabSearchGroupDefinition: ActionTemplate;
|
@@ -6888,11 +6888,11 @@ export const oktaTriggerOktaWorkflowDefinition = {
|
|
6888
6888
|
scopes: ["okta.workflows.manage"],
|
6889
6889
|
parameters: {
|
6890
6890
|
type: "object",
|
6891
|
-
required: ["
|
6891
|
+
required: ["workflowId"],
|
6892
6892
|
properties: {
|
6893
|
-
|
6893
|
+
workflowId: {
|
6894
6894
|
type: "string",
|
6895
|
-
description: "The unique
|
6895
|
+
description: "The unique ID of the workflow",
|
6896
6896
|
},
|
6897
6897
|
workflowParameters: {
|
6898
6898
|
type: "object",
|
@@ -8541,3 +8541,192 @@ export const jamfLockJamfComputerByIdDefinition = {
|
|
8541
8541
|
name: "lockJamfComputerById",
|
8542
8542
|
provider: "jamf",
|
8543
8543
|
};
|
8544
|
+
export const gitlabSearchGroupDefinition = {
|
8545
|
+
description: "Searches gitlab for details about a query. This will return a list of merge requests and blobs that match the query.",
|
8546
|
+
scopes: [],
|
8547
|
+
parameters: {
|
8548
|
+
type: "object",
|
8549
|
+
required: ["query", "groupId"],
|
8550
|
+
properties: {
|
8551
|
+
query: {
|
8552
|
+
type: "string",
|
8553
|
+
description: "The query that will be used to search gitlab blobs and merge requests",
|
8554
|
+
},
|
8555
|
+
groupId: {
|
8556
|
+
type: "string",
|
8557
|
+
description: "The group ID of the project to search in",
|
8558
|
+
},
|
8559
|
+
},
|
8560
|
+
},
|
8561
|
+
output: {
|
8562
|
+
type: "object",
|
8563
|
+
required: ["mergeRequests", "blobs"],
|
8564
|
+
properties: {
|
8565
|
+
mergeRequests: {
|
8566
|
+
type: "array",
|
8567
|
+
description: "A list of merge requests that match the query",
|
8568
|
+
items: {
|
8569
|
+
type: "object",
|
8570
|
+
required: ["metadata", "diffs"],
|
8571
|
+
properties: {
|
8572
|
+
metadata: {
|
8573
|
+
type: "object",
|
8574
|
+
required: ["id", "iid", "project_id", "title", "web_url"],
|
8575
|
+
description: "The metadata of the merge request",
|
8576
|
+
properties: {
|
8577
|
+
id: {
|
8578
|
+
type: "number",
|
8579
|
+
description: "The ID of the merge request",
|
8580
|
+
},
|
8581
|
+
iid: {
|
8582
|
+
type: "number",
|
8583
|
+
description: "The internal ID of the merge request",
|
8584
|
+
},
|
8585
|
+
project_id: {
|
8586
|
+
type: "number",
|
8587
|
+
description: "The ID of the project the merge request belongs to",
|
8588
|
+
},
|
8589
|
+
title: {
|
8590
|
+
type: "string",
|
8591
|
+
description: "The title of the merge request",
|
8592
|
+
},
|
8593
|
+
web_url: {
|
8594
|
+
type: "string",
|
8595
|
+
description: "The URL of the merge request",
|
8596
|
+
},
|
8597
|
+
description: {
|
8598
|
+
type: "string",
|
8599
|
+
description: "The description of the merge request",
|
8600
|
+
},
|
8601
|
+
author: {
|
8602
|
+
type: "object",
|
8603
|
+
description: "The author of the merge request",
|
8604
|
+
properties: {
|
8605
|
+
name: {
|
8606
|
+
type: "string",
|
8607
|
+
description: "The name of the author",
|
8608
|
+
},
|
8609
|
+
},
|
8610
|
+
},
|
8611
|
+
merged_at: {
|
8612
|
+
type: "string",
|
8613
|
+
description: "The date and time the merge request was merged",
|
8614
|
+
},
|
8615
|
+
},
|
8616
|
+
},
|
8617
|
+
diffs: {
|
8618
|
+
type: "array",
|
8619
|
+
description: "A list of diffs that match the query",
|
8620
|
+
items: {
|
8621
|
+
type: "object",
|
8622
|
+
required: ["old_path", "new_path", "diff", "new_file", "renamed_file", "deleted_file"],
|
8623
|
+
properties: {
|
8624
|
+
old_path: {
|
8625
|
+
type: "string",
|
8626
|
+
description: "The old path of the diff",
|
8627
|
+
},
|
8628
|
+
new_path: {
|
8629
|
+
type: "string",
|
8630
|
+
description: "The new path of the diff",
|
8631
|
+
},
|
8632
|
+
diff: {
|
8633
|
+
type: "string",
|
8634
|
+
description: "The contents of the diff",
|
8635
|
+
},
|
8636
|
+
new_file: {
|
8637
|
+
type: "boolean",
|
8638
|
+
description: "Whether the diff is a new file",
|
8639
|
+
},
|
8640
|
+
renamed_file: {
|
8641
|
+
type: "boolean",
|
8642
|
+
description: "Whether the diff is a renamed file",
|
8643
|
+
},
|
8644
|
+
deleted_file: {
|
8645
|
+
type: "boolean",
|
8646
|
+
description: "Whether the diff is a deleted file",
|
8647
|
+
},
|
8648
|
+
too_large: {
|
8649
|
+
type: "boolean",
|
8650
|
+
description: "Whether the diff is too large",
|
8651
|
+
},
|
8652
|
+
},
|
8653
|
+
},
|
8654
|
+
},
|
8655
|
+
},
|
8656
|
+
},
|
8657
|
+
},
|
8658
|
+
blobs: {
|
8659
|
+
type: "array",
|
8660
|
+
description: "A list of blobs that match the query",
|
8661
|
+
items: {
|
8662
|
+
type: "object",
|
8663
|
+
required: ["metadata", "diffs"],
|
8664
|
+
properties: {
|
8665
|
+
metadata: {
|
8666
|
+
type: "object",
|
8667
|
+
required: ["path", "basename", "data", "project_id", "ref", "startline", "filename"],
|
8668
|
+
properties: {
|
8669
|
+
path: {
|
8670
|
+
type: "string",
|
8671
|
+
description: "The path of the blob",
|
8672
|
+
},
|
8673
|
+
basename: {
|
8674
|
+
type: "string",
|
8675
|
+
description: "The basename of the blob",
|
8676
|
+
},
|
8677
|
+
data: {
|
8678
|
+
type: "string",
|
8679
|
+
description: "The data of the blob",
|
8680
|
+
},
|
8681
|
+
project_id: {
|
8682
|
+
type: "number",
|
8683
|
+
description: "The ID of the project the blob belongs to",
|
8684
|
+
},
|
8685
|
+
ref: {
|
8686
|
+
type: "string",
|
8687
|
+
description: "The ref of the blob",
|
8688
|
+
},
|
8689
|
+
startline: {
|
8690
|
+
type: "number",
|
8691
|
+
description: "The start line of the blob",
|
8692
|
+
},
|
8693
|
+
filename: {
|
8694
|
+
type: "string",
|
8695
|
+
description: "The filename of the blob",
|
8696
|
+
},
|
8697
|
+
},
|
8698
|
+
},
|
8699
|
+
matchedMergeRequests: {
|
8700
|
+
type: "array",
|
8701
|
+
description: "A list of merge requests that match the blob",
|
8702
|
+
items: {
|
8703
|
+
type: "object",
|
8704
|
+
required: ["title", "web_url"],
|
8705
|
+
properties: {
|
8706
|
+
title: {
|
8707
|
+
type: "string",
|
8708
|
+
description: "The title of the merge request",
|
8709
|
+
},
|
8710
|
+
web_url: {
|
8711
|
+
type: "string",
|
8712
|
+
description: "The URL of the merge request",
|
8713
|
+
},
|
8714
|
+
author: {
|
8715
|
+
type: "object",
|
8716
|
+
description: "The author of the merge request",
|
8717
|
+
},
|
8718
|
+
merged_at: {
|
8719
|
+
type: "string",
|
8720
|
+
description: "The date and time the merge request was merged",
|
8721
|
+
},
|
8722
|
+
},
|
8723
|
+
},
|
8724
|
+
},
|
8725
|
+
},
|
8726
|
+
},
|
8727
|
+
},
|
8728
|
+
},
|
8729
|
+
},
|
8730
|
+
name: "searchGroup",
|
8731
|
+
provider: "gitlab",
|
8732
|
+
};
|
@@ -29,7 +29,8 @@ export declare enum ProviderName {
|
|
29
29
|
MICROSOFT = "microsoft",
|
30
30
|
GITHUB = "github",
|
31
31
|
NOTION = "notion",
|
32
|
-
JAMF = "jamf"
|
32
|
+
JAMF = "jamf",
|
33
|
+
GITLAB = "gitlab"
|
33
34
|
}
|
34
35
|
export type ActionFunction<P, A, O> = (input: {
|
35
36
|
params: P;
|
@@ -4150,13 +4151,13 @@ export declare const oktaResetPasswordOutputSchema: z.ZodObject<{
|
|
4150
4151
|
export type oktaResetPasswordOutputType = z.infer<typeof oktaResetPasswordOutputSchema>;
|
4151
4152
|
export type oktaResetPasswordFunction = ActionFunction<oktaResetPasswordParamsType, AuthParamsType, oktaResetPasswordOutputType>;
|
4152
4153
|
export declare const oktaTriggerOktaWorkflowParamsSchema: z.ZodObject<{
|
4153
|
-
|
4154
|
+
workflowId: z.ZodString;
|
4154
4155
|
workflowParameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
4155
4156
|
}, "strip", z.ZodTypeAny, {
|
4156
|
-
|
4157
|
+
workflowId: string;
|
4157
4158
|
workflowParameters?: Record<string, string> | undefined;
|
4158
4159
|
}, {
|
4159
|
-
|
4160
|
+
workflowId: string;
|
4160
4161
|
workflowParameters?: Record<string, string> | undefined;
|
4161
4162
|
}>;
|
4162
4163
|
export type oktaTriggerOktaWorkflowParamsType = z.infer<typeof oktaTriggerOktaWorkflowParamsSchema>;
|
@@ -5464,3 +5465,284 @@ export declare const jamfLockJamfComputerByIdOutputSchema: z.ZodObject<{
|
|
5464
5465
|
}>;
|
5465
5466
|
export type jamfLockJamfComputerByIdOutputType = z.infer<typeof jamfLockJamfComputerByIdOutputSchema>;
|
5466
5467
|
export type jamfLockJamfComputerByIdFunction = ActionFunction<jamfLockJamfComputerByIdParamsType, AuthParamsType, jamfLockJamfComputerByIdOutputType>;
|
5468
|
+
export declare const gitlabSearchGroupParamsSchema: z.ZodObject<{
|
5469
|
+
query: z.ZodString;
|
5470
|
+
groupId: z.ZodString;
|
5471
|
+
}, "strip", z.ZodTypeAny, {
|
5472
|
+
query: string;
|
5473
|
+
groupId: string;
|
5474
|
+
}, {
|
5475
|
+
query: string;
|
5476
|
+
groupId: string;
|
5477
|
+
}>;
|
5478
|
+
export type gitlabSearchGroupParamsType = z.infer<typeof gitlabSearchGroupParamsSchema>;
|
5479
|
+
export declare const gitlabSearchGroupOutputSchema: z.ZodObject<{
|
5480
|
+
mergeRequests: z.ZodArray<z.ZodObject<{
|
5481
|
+
metadata: z.ZodObject<{
|
5482
|
+
id: z.ZodNumber;
|
5483
|
+
iid: z.ZodNumber;
|
5484
|
+
project_id: z.ZodNumber;
|
5485
|
+
title: z.ZodString;
|
5486
|
+
web_url: z.ZodString;
|
5487
|
+
description: z.ZodOptional<z.ZodString>;
|
5488
|
+
author: z.ZodOptional<z.ZodObject<{
|
5489
|
+
name: z.ZodOptional<z.ZodString>;
|
5490
|
+
}, "strip", z.ZodTypeAny, {
|
5491
|
+
name?: string | undefined;
|
5492
|
+
}, {
|
5493
|
+
name?: string | undefined;
|
5494
|
+
}>>;
|
5495
|
+
merged_at: z.ZodOptional<z.ZodString>;
|
5496
|
+
}, "strip", z.ZodTypeAny, {
|
5497
|
+
id: number;
|
5498
|
+
title: string;
|
5499
|
+
iid: number;
|
5500
|
+
project_id: number;
|
5501
|
+
web_url: string;
|
5502
|
+
description?: string | undefined;
|
5503
|
+
author?: {
|
5504
|
+
name?: string | undefined;
|
5505
|
+
} | undefined;
|
5506
|
+
merged_at?: string | undefined;
|
5507
|
+
}, {
|
5508
|
+
id: number;
|
5509
|
+
title: string;
|
5510
|
+
iid: number;
|
5511
|
+
project_id: number;
|
5512
|
+
web_url: string;
|
5513
|
+
description?: string | undefined;
|
5514
|
+
author?: {
|
5515
|
+
name?: string | undefined;
|
5516
|
+
} | undefined;
|
5517
|
+
merged_at?: string | undefined;
|
5518
|
+
}>;
|
5519
|
+
diffs: z.ZodArray<z.ZodObject<{
|
5520
|
+
old_path: z.ZodString;
|
5521
|
+
new_path: z.ZodString;
|
5522
|
+
diff: z.ZodString;
|
5523
|
+
new_file: z.ZodBoolean;
|
5524
|
+
renamed_file: z.ZodBoolean;
|
5525
|
+
deleted_file: z.ZodBoolean;
|
5526
|
+
too_large: z.ZodOptional<z.ZodBoolean>;
|
5527
|
+
}, "strip", z.ZodTypeAny, {
|
5528
|
+
old_path: string;
|
5529
|
+
new_path: string;
|
5530
|
+
diff: string;
|
5531
|
+
new_file: boolean;
|
5532
|
+
renamed_file: boolean;
|
5533
|
+
deleted_file: boolean;
|
5534
|
+
too_large?: boolean | undefined;
|
5535
|
+
}, {
|
5536
|
+
old_path: string;
|
5537
|
+
new_path: string;
|
5538
|
+
diff: string;
|
5539
|
+
new_file: boolean;
|
5540
|
+
renamed_file: boolean;
|
5541
|
+
deleted_file: boolean;
|
5542
|
+
too_large?: boolean | undefined;
|
5543
|
+
}>, "many">;
|
5544
|
+
}, "strip", z.ZodTypeAny, {
|
5545
|
+
metadata: {
|
5546
|
+
id: number;
|
5547
|
+
title: string;
|
5548
|
+
iid: number;
|
5549
|
+
project_id: number;
|
5550
|
+
web_url: string;
|
5551
|
+
description?: string | undefined;
|
5552
|
+
author?: {
|
5553
|
+
name?: string | undefined;
|
5554
|
+
} | undefined;
|
5555
|
+
merged_at?: string | undefined;
|
5556
|
+
};
|
5557
|
+
diffs: {
|
5558
|
+
old_path: string;
|
5559
|
+
new_path: string;
|
5560
|
+
diff: string;
|
5561
|
+
new_file: boolean;
|
5562
|
+
renamed_file: boolean;
|
5563
|
+
deleted_file: boolean;
|
5564
|
+
too_large?: boolean | undefined;
|
5565
|
+
}[];
|
5566
|
+
}, {
|
5567
|
+
metadata: {
|
5568
|
+
id: number;
|
5569
|
+
title: string;
|
5570
|
+
iid: number;
|
5571
|
+
project_id: number;
|
5572
|
+
web_url: string;
|
5573
|
+
description?: string | undefined;
|
5574
|
+
author?: {
|
5575
|
+
name?: string | undefined;
|
5576
|
+
} | undefined;
|
5577
|
+
merged_at?: string | undefined;
|
5578
|
+
};
|
5579
|
+
diffs: {
|
5580
|
+
old_path: string;
|
5581
|
+
new_path: string;
|
5582
|
+
diff: string;
|
5583
|
+
new_file: boolean;
|
5584
|
+
renamed_file: boolean;
|
5585
|
+
deleted_file: boolean;
|
5586
|
+
too_large?: boolean | undefined;
|
5587
|
+
}[];
|
5588
|
+
}>, "many">;
|
5589
|
+
blobs: z.ZodArray<z.ZodObject<{
|
5590
|
+
metadata: z.ZodObject<{
|
5591
|
+
path: z.ZodString;
|
5592
|
+
basename: z.ZodString;
|
5593
|
+
data: z.ZodString;
|
5594
|
+
project_id: z.ZodNumber;
|
5595
|
+
ref: z.ZodString;
|
5596
|
+
startline: z.ZodNumber;
|
5597
|
+
filename: z.ZodString;
|
5598
|
+
}, "strip", z.ZodTypeAny, {
|
5599
|
+
path: string;
|
5600
|
+
data: string;
|
5601
|
+
project_id: number;
|
5602
|
+
basename: string;
|
5603
|
+
ref: string;
|
5604
|
+
startline: number;
|
5605
|
+
filename: string;
|
5606
|
+
}, {
|
5607
|
+
path: string;
|
5608
|
+
data: string;
|
5609
|
+
project_id: number;
|
5610
|
+
basename: string;
|
5611
|
+
ref: string;
|
5612
|
+
startline: number;
|
5613
|
+
filename: string;
|
5614
|
+
}>;
|
5615
|
+
matchedMergeRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
5616
|
+
title: z.ZodString;
|
5617
|
+
web_url: z.ZodString;
|
5618
|
+
author: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodAny, z.objectOutputType<{}, z.ZodAny, "strip">, z.objectInputType<{}, z.ZodAny, "strip">>>;
|
5619
|
+
merged_at: z.ZodOptional<z.ZodString>;
|
5620
|
+
}, "strip", z.ZodTypeAny, {
|
5621
|
+
title: string;
|
5622
|
+
web_url: string;
|
5623
|
+
author?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
|
5624
|
+
merged_at?: string | undefined;
|
5625
|
+
}, {
|
5626
|
+
title: string;
|
5627
|
+
web_url: string;
|
5628
|
+
author?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
|
5629
|
+
merged_at?: string | undefined;
|
5630
|
+
}>, "many">>;
|
5631
|
+
}, "strip", z.ZodTypeAny, {
|
5632
|
+
metadata: {
|
5633
|
+
path: string;
|
5634
|
+
data: string;
|
5635
|
+
project_id: number;
|
5636
|
+
basename: string;
|
5637
|
+
ref: string;
|
5638
|
+
startline: number;
|
5639
|
+
filename: string;
|
5640
|
+
};
|
5641
|
+
matchedMergeRequests?: {
|
5642
|
+
title: string;
|
5643
|
+
web_url: string;
|
5644
|
+
author?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
|
5645
|
+
merged_at?: string | undefined;
|
5646
|
+
}[] | undefined;
|
5647
|
+
}, {
|
5648
|
+
metadata: {
|
5649
|
+
path: string;
|
5650
|
+
data: string;
|
5651
|
+
project_id: number;
|
5652
|
+
basename: string;
|
5653
|
+
ref: string;
|
5654
|
+
startline: number;
|
5655
|
+
filename: string;
|
5656
|
+
};
|
5657
|
+
matchedMergeRequests?: {
|
5658
|
+
title: string;
|
5659
|
+
web_url: string;
|
5660
|
+
author?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
|
5661
|
+
merged_at?: string | undefined;
|
5662
|
+
}[] | undefined;
|
5663
|
+
}>, "many">;
|
5664
|
+
}, "strip", z.ZodTypeAny, {
|
5665
|
+
mergeRequests: {
|
5666
|
+
metadata: {
|
5667
|
+
id: number;
|
5668
|
+
title: string;
|
5669
|
+
iid: number;
|
5670
|
+
project_id: number;
|
5671
|
+
web_url: string;
|
5672
|
+
description?: string | undefined;
|
5673
|
+
author?: {
|
5674
|
+
name?: string | undefined;
|
5675
|
+
} | undefined;
|
5676
|
+
merged_at?: string | undefined;
|
5677
|
+
};
|
5678
|
+
diffs: {
|
5679
|
+
old_path: string;
|
5680
|
+
new_path: string;
|
5681
|
+
diff: string;
|
5682
|
+
new_file: boolean;
|
5683
|
+
renamed_file: boolean;
|
5684
|
+
deleted_file: boolean;
|
5685
|
+
too_large?: boolean | undefined;
|
5686
|
+
}[];
|
5687
|
+
}[];
|
5688
|
+
blobs: {
|
5689
|
+
metadata: {
|
5690
|
+
path: string;
|
5691
|
+
data: string;
|
5692
|
+
project_id: number;
|
5693
|
+
basename: string;
|
5694
|
+
ref: string;
|
5695
|
+
startline: number;
|
5696
|
+
filename: string;
|
5697
|
+
};
|
5698
|
+
matchedMergeRequests?: {
|
5699
|
+
title: string;
|
5700
|
+
web_url: string;
|
5701
|
+
author?: z.objectOutputType<{}, z.ZodAny, "strip"> | undefined;
|
5702
|
+
merged_at?: string | undefined;
|
5703
|
+
}[] | undefined;
|
5704
|
+
}[];
|
5705
|
+
}, {
|
5706
|
+
mergeRequests: {
|
5707
|
+
metadata: {
|
5708
|
+
id: number;
|
5709
|
+
title: string;
|
5710
|
+
iid: number;
|
5711
|
+
project_id: number;
|
5712
|
+
web_url: string;
|
5713
|
+
description?: string | undefined;
|
5714
|
+
author?: {
|
5715
|
+
name?: string | undefined;
|
5716
|
+
} | undefined;
|
5717
|
+
merged_at?: string | undefined;
|
5718
|
+
};
|
5719
|
+
diffs: {
|
5720
|
+
old_path: string;
|
5721
|
+
new_path: string;
|
5722
|
+
diff: string;
|
5723
|
+
new_file: boolean;
|
5724
|
+
renamed_file: boolean;
|
5725
|
+
deleted_file: boolean;
|
5726
|
+
too_large?: boolean | undefined;
|
5727
|
+
}[];
|
5728
|
+
}[];
|
5729
|
+
blobs: {
|
5730
|
+
metadata: {
|
5731
|
+
path: string;
|
5732
|
+
data: string;
|
5733
|
+
project_id: number;
|
5734
|
+
basename: string;
|
5735
|
+
ref: string;
|
5736
|
+
startline: number;
|
5737
|
+
filename: string;
|
5738
|
+
};
|
5739
|
+
matchedMergeRequests?: {
|
5740
|
+
title: string;
|
5741
|
+
web_url: string;
|
5742
|
+
author?: z.objectInputType<{}, z.ZodAny, "strip"> | undefined;
|
5743
|
+
merged_at?: string | undefined;
|
5744
|
+
}[] | undefined;
|
5745
|
+
}[];
|
5746
|
+
}>;
|
5747
|
+
export type gitlabSearchGroupOutputType = z.infer<typeof gitlabSearchGroupOutputSchema>;
|
5748
|
+
export type gitlabSearchGroupFunction = ActionFunction<gitlabSearchGroupParamsType, AuthParamsType, gitlabSearchGroupOutputType>;
|
@@ -31,6 +31,7 @@ export var ProviderName;
|
|
31
31
|
ProviderName["GITHUB"] = "github";
|
32
32
|
ProviderName["NOTION"] = "notion";
|
33
33
|
ProviderName["JAMF"] = "jamf";
|
34
|
+
ProviderName["GITLAB"] = "gitlab";
|
34
35
|
})(ProviderName || (ProviderName = {}));
|
35
36
|
export const AuthParamsSchema = z.object({
|
36
37
|
authToken: z.string().optional(),
|
@@ -2610,9 +2611,7 @@ export const oktaResetPasswordOutputSchema = z.object({
|
|
2610
2611
|
resetPasswordUrl: z.string().describe("The URL for resetting the password manually.").optional(),
|
2611
2612
|
});
|
2612
2613
|
export const oktaTriggerOktaWorkflowParamsSchema = z.object({
|
2613
|
-
|
2614
|
-
.string()
|
2615
|
-
.describe("The unique URL path, which is created when a Workflow HTTP Connector card is configured."),
|
2614
|
+
workflowId: z.string().describe("The unique ID of the workflow"),
|
2616
2615
|
workflowParameters: z
|
2617
2616
|
.record(z.string())
|
2618
2617
|
.describe("A key,value pair where the keys are the input variables the values are the values of those fields.")
|
@@ -3076,3 +3075,61 @@ export const jamfLockJamfComputerByIdOutputSchema = z.object({
|
|
3076
3075
|
success: z.boolean().describe("Whether the lock command was successful"),
|
3077
3076
|
error: z.string().describe("Error message if the lock command failed").optional(),
|
3078
3077
|
});
|
3078
|
+
export const gitlabSearchGroupParamsSchema = z.object({
|
3079
|
+
query: z.string().describe("The query that will be used to search gitlab blobs and merge requests"),
|
3080
|
+
groupId: z.string().describe("The group ID of the project to search in"),
|
3081
|
+
});
|
3082
|
+
export const gitlabSearchGroupOutputSchema = z.object({
|
3083
|
+
mergeRequests: z
|
3084
|
+
.array(z.object({
|
3085
|
+
metadata: z
|
3086
|
+
.object({
|
3087
|
+
id: z.number().describe("The ID of the merge request"),
|
3088
|
+
iid: z.number().describe("The internal ID of the merge request"),
|
3089
|
+
project_id: z.number().describe("The ID of the project the merge request belongs to"),
|
3090
|
+
title: z.string().describe("The title of the merge request"),
|
3091
|
+
web_url: z.string().describe("The URL of the merge request"),
|
3092
|
+
description: z.string().describe("The description of the merge request").optional(),
|
3093
|
+
author: z
|
3094
|
+
.object({ name: z.string().describe("The name of the author").optional() })
|
3095
|
+
.describe("The author of the merge request")
|
3096
|
+
.optional(),
|
3097
|
+
merged_at: z.string().describe("The date and time the merge request was merged").optional(),
|
3098
|
+
})
|
3099
|
+
.describe("The metadata of the merge request"),
|
3100
|
+
diffs: z
|
3101
|
+
.array(z.object({
|
3102
|
+
old_path: z.string().describe("The old path of the diff"),
|
3103
|
+
new_path: z.string().describe("The new path of the diff"),
|
3104
|
+
diff: z.string().describe("The contents of the diff"),
|
3105
|
+
new_file: z.boolean().describe("Whether the diff is a new file"),
|
3106
|
+
renamed_file: z.boolean().describe("Whether the diff is a renamed file"),
|
3107
|
+
deleted_file: z.boolean().describe("Whether the diff is a deleted file"),
|
3108
|
+
too_large: z.boolean().describe("Whether the diff is too large").optional(),
|
3109
|
+
}))
|
3110
|
+
.describe("A list of diffs that match the query"),
|
3111
|
+
}))
|
3112
|
+
.describe("A list of merge requests that match the query"),
|
3113
|
+
blobs: z
|
3114
|
+
.array(z.object({
|
3115
|
+
metadata: z.object({
|
3116
|
+
path: z.string().describe("The path of the blob"),
|
3117
|
+
basename: z.string().describe("The basename of the blob"),
|
3118
|
+
data: z.string().describe("The data of the blob"),
|
3119
|
+
project_id: z.number().describe("The ID of the project the blob belongs to"),
|
3120
|
+
ref: z.string().describe("The ref of the blob"),
|
3121
|
+
startline: z.number().describe("The start line of the blob"),
|
3122
|
+
filename: z.string().describe("The filename of the blob"),
|
3123
|
+
}),
|
3124
|
+
matchedMergeRequests: z
|
3125
|
+
.array(z.object({
|
3126
|
+
title: z.string().describe("The title of the merge request"),
|
3127
|
+
web_url: z.string().describe("The URL of the merge request"),
|
3128
|
+
author: z.object({}).catchall(z.any()).describe("The author of the merge request").optional(),
|
3129
|
+
merged_at: z.string().describe("The date and time the merge request was merged").optional(),
|
3130
|
+
}))
|
3131
|
+
.describe("A list of merge requests that match the blob")
|
3132
|
+
.optional(),
|
3133
|
+
}))
|
3134
|
+
.describe("A list of blobs that match the query"),
|
3135
|
+
});
|
@@ -0,0 +1,75 @@
|
|
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 { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
|
11
|
+
const GITLAB_API_URL = "https://gitlab.com";
|
12
|
+
function gitlabFetch(endpoint, authToken) {
|
13
|
+
return __awaiter(this, void 0, void 0, function* () {
|
14
|
+
const res = yield fetch(`${GITLAB_API_URL}${endpoint}`, {
|
15
|
+
headers: { Authorization: `Bearer ${authToken}` },
|
16
|
+
});
|
17
|
+
if (!res.ok)
|
18
|
+
throw new Error(`GitLab API error: ${res.status} ${res.statusText}`);
|
19
|
+
return res.json();
|
20
|
+
});
|
21
|
+
}
|
22
|
+
function globalSearch(input) {
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
24
|
+
const { scope, query, groupId, authToken, baseUrl } = input;
|
25
|
+
const endpoint = `${baseUrl}/api/v4/groups/${groupId}/search?scope=${scope}&search=${encodeURIComponent(query)}`;
|
26
|
+
return gitlabFetch(endpoint, authToken);
|
27
|
+
});
|
28
|
+
}
|
29
|
+
function getMRDiffs(projectId, mrIid, authToken) {
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
31
|
+
const endpoint = `/projects/${projectId}/merge_requests/${mrIid}/diffs`;
|
32
|
+
return gitlabFetch(endpoint, authToken);
|
33
|
+
});
|
34
|
+
}
|
35
|
+
/**
|
36
|
+
* Creates a new branch in a GitHub repository
|
37
|
+
*/
|
38
|
+
const searchGroup = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
39
|
+
const { authToken, baseUrl } = authParams;
|
40
|
+
const gitlabBaseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : GITLAB_API_URL;
|
41
|
+
if (!authToken) {
|
42
|
+
throw new Error(MISSING_AUTH_TOKEN);
|
43
|
+
}
|
44
|
+
const { query, groupId } = params;
|
45
|
+
const [mrResults, blobResults] = yield Promise.all([
|
46
|
+
globalSearch({ scope: "merge_requests", query, groupId, authToken, baseUrl: gitlabBaseUrl }),
|
47
|
+
globalSearch({ scope: "blobs", query, groupId, authToken, baseUrl: gitlabBaseUrl }),
|
48
|
+
]);
|
49
|
+
const mergeRequests = yield Promise.all(mrResults.map((metadata) => __awaiter(void 0, void 0, void 0, function* () {
|
50
|
+
const diffs = yield getMRDiffs(metadata.project_id, metadata.iid, authToken);
|
51
|
+
return { metadata, diffs };
|
52
|
+
})));
|
53
|
+
const blobs = blobResults.map(blob => {
|
54
|
+
const matches = mergeRequests
|
55
|
+
.filter(mr => mr.metadata.project_id === blob.project_id && mr.diffs.some(diff => diff.new_path === blob.path))
|
56
|
+
.map(mr => {
|
57
|
+
var _a;
|
58
|
+
return ({
|
59
|
+
title: mr.metadata.title,
|
60
|
+
web_url: mr.metadata.web_url,
|
61
|
+
author: (_a = mr.metadata.author) === null || _a === void 0 ? void 0 : _a.name,
|
62
|
+
merged_at: mr.metadata.merged_at,
|
63
|
+
});
|
64
|
+
});
|
65
|
+
return {
|
66
|
+
metadata: blob,
|
67
|
+
matched_merge_requests: matches,
|
68
|
+
};
|
69
|
+
});
|
70
|
+
return {
|
71
|
+
mergeRequests,
|
72
|
+
blobs,
|
73
|
+
};
|
74
|
+
});
|
75
|
+
export default searchGroup;
|
@@ -12,7 +12,7 @@ import { axiosClient } from "../../util/axiosClient.js";
|
|
12
12
|
const triggerOktaWorkflow = (_a) => __awaiter(void 0, [_a], void 0, function* ({ authParams, params, }) {
|
13
13
|
var _b, _c;
|
14
14
|
const { authToken, subdomain } = authParams;
|
15
|
-
const {
|
15
|
+
const { workflowId, workflowParameters } = params;
|
16
16
|
if (!authToken || !subdomain) {
|
17
17
|
return { success: false, error: "Missing authToken or subdomain in authParams." };
|
18
18
|
}
|
@@ -20,7 +20,7 @@ const triggerOktaWorkflow = (_a) => __awaiter(void 0, [_a], void 0, function* ({
|
|
20
20
|
const requestConfig = {
|
21
21
|
headers: Object.assign({ Accept: "application/json", "Content-Type": "application/json" }, (authToken && { Authorization: `Bearer ${authToken}` })),
|
22
22
|
};
|
23
|
-
const workflowUrl = `https://${subdomain}.okta.com/api/flo
|
23
|
+
const workflowUrl = `https://${subdomain}.workflows.okta.com/api/flo/${workflowId}/invoke`;
|
24
24
|
const response = yield axiosClient.post(workflowUrl, workflowParameters || {}, requestConfig);
|
25
25
|
if (response.status >= 200 && response.status < 300) {
|
26
26
|
return { success: true, output: response.data };
|