From f7f263711a43db01b466ecba9242d43c8f33dc37 Mon Sep 17 00:00:00 2001 From: Salim Afiune Maya Date: Fri, 18 Oct 2024 17:01:01 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Update=20graphql=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Salim Afiune Maya --- enum.go | 155 ++++++++++++++++++++++++++++--------------------------- input.go | 96 ++++++++++++++++++++++++---------- 2 files changed, 150 insertions(+), 101 deletions(-) diff --git a/enum.go b/enum.go index b8b9647..a14205c 100644 --- a/enum.go +++ b/enum.go @@ -144,6 +144,7 @@ const ( AggregateScoreTypeRisk AggregateScoreType = "RISK" AggregateScoreTypeAsset AggregateScoreType = "ASSET" AggregateScoreTypeControl AggregateScoreType = "CONTROL" + AggregateScoreTypeFramework AggregateScoreType = "FRAMEWORK" AggregateScoreTypeSoftware AggregateScoreType = "SOFTWARE" // Aggregate score for a software package across all versions currently affected by a vulnerability. AggregateScoreTypeVersionedSoftware AggregateScoreType = "VERSIONED_SOFTWARE" // Aggregate score for a software package with a specific version affected by a vulnerability. AggregateScoreTypeOther AggregateScoreType = "OTHER" @@ -244,6 +245,14 @@ const ( AuditLogOrderFieldTimestamp AuditLogOrderField = "TIMESTAMP" ) +// AzureDevopsTicketContextType represents the type of the ticket context. +type AzureDevopsTicketContextType string + +// The type of the ticket context. +const ( + AzureDevopsTicketContextTypeProjects AzureDevopsTicketContextType = "PROJECTS" // The ticket context for Azure Devops projects. +) + // BucketOutputType represents format of the reports for the bucket. type BucketOutputType string @@ -327,34 +336,36 @@ type ClientIntegrationType string // Type of the client integration. const ( - ClientIntegrationTypeUnknown ClientIntegrationType = "UNKNOWN" - ClientIntegrationTypeK8s ClientIntegrationType = "K8S" - ClientIntegrationTypeAws ClientIntegrationType = "AWS" - ClientIntegrationTypeManagedClient ClientIntegrationType = "MANAGED_CLIENT" - ClientIntegrationTypeAzure ClientIntegrationType = "AZURE" - ClientIntegrationTypeMs365 ClientIntegrationType = "MS365" - ClientIntegrationTypeGcp ClientIntegrationType = "GCP" - ClientIntegrationTypeGoogleWorkspace ClientIntegrationType = "GOOGLE_WORKSPACE" - ClientIntegrationTypeOkta ClientIntegrationType = "OKTA" - ClientIntegrationTypeBigquery ClientIntegrationType = "BIGQUERY" - ClientIntegrationTypeSnowflake ClientIntegrationType = "SNOWFLAKE" - ClientIntegrationTypeAwsS3 ClientIntegrationType = "AWS_S3" - ClientIntegrationTypeS3 ClientIntegrationType = "S3" - ClientIntegrationTypeHostedSlack ClientIntegrationType = "HOSTED_SLACK" - ClientIntegrationTypeGitHub ClientIntegrationType = "GITHUB" - ClientIntegrationTypeGitLab ClientIntegrationType = "GITLAB" - ClientIntegrationTypeGcsBucket ClientIntegrationType = "GCS_BUCKET" - ClientIntegrationTypePostgres ClientIntegrationType = "POSTGRES" - ClientIntegrationTypeOci ClientIntegrationType = "OCI" - ClientIntegrationTypeTicketSystemJira ClientIntegrationType = "TICKET_SYSTEM_JIRA" - ClientIntegrationTypeAwsHosted ClientIntegrationType = "AWS_HOSTED" - ClientIntegrationTypeAzureBlob ClientIntegrationType = "AZURE_BLOB" - ClientIntegrationTypeHost ClientIntegrationType = "HOST" - ClientIntegrationTypeTicketSystemEmail ClientIntegrationType = "TICKET_SYSTEM_EMAIL" - ClientIntegrationTypeTicketSystemZendesk ClientIntegrationType = "TICKET_SYSTEM_ZENDESK" - ClientIntegrationTypeMicrosoftDefender ClientIntegrationType = "MICROSOFT_DEFENDER" - ClientIntegrationTypeTicketSystemGitHub ClientIntegrationType = "TICKET_SYSTEM_GITHUB" - ClientIntegrationTypeTicketSystemGitLab ClientIntegrationType = "TICKET_SYSTEM_GITLAB" + ClientIntegrationTypeUnknown ClientIntegrationType = "UNKNOWN" + ClientIntegrationTypeK8s ClientIntegrationType = "K8S" + ClientIntegrationTypeAws ClientIntegrationType = "AWS" + ClientIntegrationTypeManagedClient ClientIntegrationType = "MANAGED_CLIENT" + ClientIntegrationTypeAzure ClientIntegrationType = "AZURE" + ClientIntegrationTypeMs365 ClientIntegrationType = "MS365" + ClientIntegrationTypeGcp ClientIntegrationType = "GCP" + ClientIntegrationTypeGoogleWorkspace ClientIntegrationType = "GOOGLE_WORKSPACE" + ClientIntegrationTypeOkta ClientIntegrationType = "OKTA" + ClientIntegrationTypeBigquery ClientIntegrationType = "BIGQUERY" + ClientIntegrationTypeSnowflake ClientIntegrationType = "SNOWFLAKE" + ClientIntegrationTypeAwsS3 ClientIntegrationType = "AWS_S3" + ClientIntegrationTypeS3 ClientIntegrationType = "S3" + ClientIntegrationTypeHostedSlack ClientIntegrationType = "HOSTED_SLACK" + ClientIntegrationTypeGitHub ClientIntegrationType = "GITHUB" + ClientIntegrationTypeGitLab ClientIntegrationType = "GITLAB" + ClientIntegrationTypeGcsBucket ClientIntegrationType = "GCS_BUCKET" + ClientIntegrationTypePostgres ClientIntegrationType = "POSTGRES" + ClientIntegrationTypeOci ClientIntegrationType = "OCI" + ClientIntegrationTypeTicketSystemJira ClientIntegrationType = "TICKET_SYSTEM_JIRA" + ClientIntegrationTypeAwsHosted ClientIntegrationType = "AWS_HOSTED" + ClientIntegrationTypeAzureBlob ClientIntegrationType = "AZURE_BLOB" + ClientIntegrationTypeHost ClientIntegrationType = "HOST" + ClientIntegrationTypeTicketSystemEmail ClientIntegrationType = "TICKET_SYSTEM_EMAIL" + ClientIntegrationTypeTicketSystemZendesk ClientIntegrationType = "TICKET_SYSTEM_ZENDESK" + ClientIntegrationTypeMicrosoftDefender ClientIntegrationType = "MICROSOFT_DEFENDER" + ClientIntegrationTypeTicketSystemGitHub ClientIntegrationType = "TICKET_SYSTEM_GITHUB" + ClientIntegrationTypeTicketSystemGitLab ClientIntegrationType = "TICKET_SYSTEM_GITLAB" + ClientIntegrationTypeShodan ClientIntegrationType = "SHODAN" + ClientIntegrationTypeTicketSystemAzureDevOps ClientIntegrationType = "TICKET_SYSTEM_AZURE_DEVOPS" ) // ComparisonOperator represents comparison operators for filtering. @@ -702,38 +713,40 @@ type IntegrationType string // Summary of client integrations. const ( - IntegrationTypeUnknown IntegrationType = "UNKNOWN" - IntegrationTypeManagedClient IntegrationType = "MANAGED_CLIENT" - IntegrationTypeK8s IntegrationType = "K8S" - IntegrationTypeAws IntegrationType = "AWS" - IntegrationTypeAzure IntegrationType = "AZURE" - IntegrationTypeMs365 IntegrationType = "MS365" - IntegrationTypeSlack IntegrationType = "SLACK" - IntegrationTypeMsteams IntegrationType = "MSTEAMS" - IntegrationTypeTelegram IntegrationType = "TELEGRAM" - IntegrationTypeHttppost IntegrationType = "HTTPPOST" - IntegrationTypeGcp IntegrationType = "GCP" - IntegrationTypeGoogleWorkspace IntegrationType = "GOOGLE_WORKSPACE" - IntegrationTypeOkta IntegrationType = "OKTA" - IntegrationTypeBigquery IntegrationType = "BIGQUERY" - IntegrationTypeSnowflake IntegrationType = "SNOWFLAKE" - IntegrationTypeAwsS3 IntegrationType = "AWS_S3" - IntegrationTypeS3 IntegrationType = "S3" - IntegrationTypeHostedSlack IntegrationType = "HOSTED_SLACK" - IntegrationTypeGitHub IntegrationType = "GITHUB" - IntegrationTypeGitLab IntegrationType = "GITLAB" - IntegrationTypeGcsBucket IntegrationType = "GCS_BUCKET" - IntegrationTypePostgres IntegrationType = "POSTGRES" - IntegrationTypeOci IntegrationType = "OCI" - IntegrationTypeTicketSystemJira IntegrationType = "TICKET_SYSTEM_JIRA" - IntegrationTypeAzureBlob IntegrationType = "AZURE_BLOB" - IntegrationTypeHost IntegrationType = "HOST" - IntegrationTypeAwsHosted IntegrationType = "AWS_HOSTED" - IntegrationTypeTicketSystemEmail IntegrationType = "TICKET_SYSTEM_EMAIL" - IntegrationTypeTicketSystemZendesk IntegrationType = "TICKET_SYSTEM_ZENDESK" - IntegrationTypeMicrosoftDefender IntegrationType = "MICROSOFT_DEFENDER" - IntegrationTypeTicketSystemGitHub IntegrationType = "TICKET_SYSTEM_GITHUB" - IntegrationTypeTicketSystemGitLab IntegrationType = "TICKET_SYSTEM_GITLAB" + IntegrationTypeUnknown IntegrationType = "UNKNOWN" + IntegrationTypeManagedClient IntegrationType = "MANAGED_CLIENT" + IntegrationTypeK8s IntegrationType = "K8S" + IntegrationTypeAws IntegrationType = "AWS" + IntegrationTypeAzure IntegrationType = "AZURE" + IntegrationTypeMs365 IntegrationType = "MS365" + IntegrationTypeSlack IntegrationType = "SLACK" + IntegrationTypeMsteams IntegrationType = "MSTEAMS" + IntegrationTypeTelegram IntegrationType = "TELEGRAM" + IntegrationTypeHttppost IntegrationType = "HTTPPOST" + IntegrationTypeGcp IntegrationType = "GCP" + IntegrationTypeGoogleWorkspace IntegrationType = "GOOGLE_WORKSPACE" + IntegrationTypeOkta IntegrationType = "OKTA" + IntegrationTypeBigquery IntegrationType = "BIGQUERY" + IntegrationTypeSnowflake IntegrationType = "SNOWFLAKE" + IntegrationTypeAwsS3 IntegrationType = "AWS_S3" + IntegrationTypeS3 IntegrationType = "S3" + IntegrationTypeHostedSlack IntegrationType = "HOSTED_SLACK" + IntegrationTypeGitHub IntegrationType = "GITHUB" + IntegrationTypeGitLab IntegrationType = "GITLAB" + IntegrationTypeGcsBucket IntegrationType = "GCS_BUCKET" + IntegrationTypePostgres IntegrationType = "POSTGRES" + IntegrationTypeOci IntegrationType = "OCI" + IntegrationTypeTicketSystemJira IntegrationType = "TICKET_SYSTEM_JIRA" + IntegrationTypeAzureBlob IntegrationType = "AZURE_BLOB" + IntegrationTypeHost IntegrationType = "HOST" + IntegrationTypeAwsHosted IntegrationType = "AWS_HOSTED" + IntegrationTypeTicketSystemEmail IntegrationType = "TICKET_SYSTEM_EMAIL" + IntegrationTypeTicketSystemZendesk IntegrationType = "TICKET_SYSTEM_ZENDESK" + IntegrationTypeMicrosoftDefender IntegrationType = "MICROSOFT_DEFENDER" + IntegrationTypeTicketSystemGitHub IntegrationType = "TICKET_SYSTEM_GITHUB" + IntegrationTypeTicketSystemGitLab IntegrationType = "TICKET_SYSTEM_GITLAB" + IntegrationTypeShodan IntegrationType = "SHODAN" + IntegrationTypeTicketSystemAzureDevOps IntegrationType = "TICKET_SYSTEM_AZURE_DEVOPS" ) // InvitationOrderField @@ -1168,26 +1181,18 @@ const ( SpacePlanQueryMutationDestinationTypeMilestone SpacePlanQueryMutationDestinationType = "MILESTONE" // Move the query to a milestone. These queries will be run, but their score will not be incorporated into the policy score. If moving to a milestone, a milestone uid must also be provided to indicate which milestone. ) -// TicketFormat represents the format of the ticket content. -type TicketFormat string - -// The format of the ticket content. -const ( - TicketFormatJira TicketFormat = "JIRA" // The ticket content format for Atlassian Jira. - TicketFormatMarkdown TicketFormat = "MARKDOWN" // The ticket content format for Markdown. -) - // TicketRefType represents ticket reference type. type TicketRefType string // Ticket reference type. const ( - TicketRefTypeUnknown TicketRefType = "UNKNOWN" - TicketRefTypeJira TicketRefType = "JIRA" - TicketRefTypeEmail TicketRefType = "EMAIL" - TicketRefTypeZendesk TicketRefType = "ZENDESK" - TicketRefTypeGitHub TicketRefType = "GITHUB" - TicketRefTypeGitLab TicketRefType = "GITLAB" + TicketRefTypeUnknown TicketRefType = "UNKNOWN" + TicketRefTypeJira TicketRefType = "JIRA" + TicketRefTypeEmail TicketRefType = "EMAIL" + TicketRefTypeZendesk TicketRefType = "ZENDESK" + TicketRefTypeGitHub TicketRefType = "GITHUB" + TicketRefTypeGitLab TicketRefType = "GITLAB" + TicketRefTypeAzureDevOps TicketRefType = "AZURE_DEVOPS" ) // TrustLevel represents trust level of the object. diff --git a/input.go b/input.go index 910437c..ef04424 100644 --- a/input.go +++ b/input.go @@ -7,7 +7,7 @@ package mondoogql // Input represents one of the Input structs: // -// APITokenOrder, AWSConfigurationOptionsInput, AWSEventPatternInput, AWSRoleCredential, AWSSecretKeyCredential, AcceptLegalPolicy, ActivePoliciesInput, ActivePolicyOrder, AddSSHKeyRequest, AdvisoryFilter, AdvisoryOrder, AdvisorySummaryOrder, AgentOrder, AgentVersionFilter, AggregateScoreFilter, AggregateScoreOrder, AnalyseAssetVulnerabilitiesInput, AnalyseIncognitoAssetInput, ApplyExceptionForScopesInput, ApplySpacePlanInput, AssetEolFilter, AssetExploitableFilter, AssetGroupOrder, AssetLastPackageUpdateTimeInput, AssetLinkInfoInput, AssetListPoliciesFilter, AssetOSRebootFilter, AssetOrder, AssetOverviewPageInfo, AssetPackageDetailsInput, AssetReportInput, AssetReportListPoliciesFilter, AssetReportPolicyOrder, AssetReportQueryOrder, AssetResourceInput, AssetSearchInput, AssetSearchSuggestionsInput, AssetSummaryOrder, AssetUpdateFilter, AssetUrlSegmentInput, AssetUrlStatsInput, AssetVulnerabilityReportInput, AuditLogOrder, AwsS3ConfigurationOptionsInput, AwsScanOptions, AzureBlobConfigurationOptionsInput, AzureConfigurationOptionsInput, BigqueryConfigurationOptionsInput, BillingSessionInput, CaseContentInput, CaseRefInput, CaseTicketConfigInput, CasesConfigurationInput, CasesInput, CategoriesListInput, ChangeSubscriptionPlanInput, CheckScoreFilter, CheckScoreOrder, ChecksOrder, ChecksSearchInput, CiCdJobPageInfo, CiCdProjectPageInfo, CicdProjectJobsInput, CicdProjectOrder, CicdProjectsInput, ClientIntegrationConfigurationInput, ClientIntegrationInput, CloseCaseInput, ComplianceAssetOrder, ComplianceAssetsSearchInput, ComplianceControlInput, ComplianceFrameworkInput, ComplianceFrameworkMutationInput, ComplianceFrameworksInput, ContentSearchInput, ContentSearchResultItemOrder, ControlDocumentOptionsInput, ControlScoreFilter, ControlScoreOrder, ControlsOrder, ControlsSearchInput, CreateCaseInput, CreateClientIntegrationInput, CreateInvitationInput, CreateOrganizationInput, CreateServiceAccountInput, CreateSpaceInput, CveFilter, CveOrder, CveSummaryOrder, DataQueryFilter, DataQueryOrder, DeleteAPITokenInput, DeleteAgentsInput, DeleteAssetsInput, DeleteCasesInput, DeleteClientIntegrationInput, DeleteCustomPolicyInput, DeleteCustomQueryPackInput, DeleteFrameworkInput, DeleteProjectsInput, DeleteSSHKeyRequest, DeleteSSOProviderInput, DeleteServiceAccountsInput, DownloadBundleInput, DownloadFrameworkInput, EbsScanOptionsInput, Ec2ScanOptionsInput, EmailConfigurationOptionsInput, EmailPreferenceInput, EmailRecipientInput, EmailTicketConfigInput, EnableSSOProviderInput, EolAssetsConfigurationInput, ExceptionGroupsInput, ExceptionMutationInput, ExceptionReviewInput, ForkFrameworkInput, FrameworkDocumentOptionsInput, GarbageCollectAssetsConfigurationInput, GcpConfigurationOptionsInput, GcsBucketConfigurationOptionsInput, GenerateAPITokenInput, GenerateDocumentInput, GetClientIntegrationDeleteCommandInput, GetClientIntegrationTokenInput, GithubConfigurationOptionsInput, GithubTicketConfigInput, GithubTicketingConfigurationOptionsInput, GitlabConfigurationOptionsInput, GitlabTicketConfigInput, GitlabTicketingConfigurationOptionsInput, GoogleWorkspaceConfigurationOptionsInput, GroupFilter, HostConfigurationOptionsInput, HostedAwsConfigurationOptionsInput, IDSuggestionInput, IntegrationInput, IntegrationOptionsInput, IntegrationsSummaryInput, InvitationOrder, JiraConfigurationOptionsInput, JiraTicketConfigInput, JiraTicketContextInput, JiraTicketContextProjectsInput, JiraTicketContextUsersInput, K8sConfigurationOptionsInput, KeyValueInput, LibraryOrder, ListClientIntegrationsFilterInput, ListClientIntegrationsInput, ListDiscoveryResultsInput, ManagedClientsFilters, MembershipOrder, MicrosoftDefenderConfigurationOptionsInput, ModifyRiskFactorInput, MqueryAssetDataInput, MqueryAssetScoresInput, MqueryInput, MqueryScoreInput, Ms365ConfigurationOptionsInput, MvdOrder, OciConfigurationOptionsInput, OktaConfigurationOptionsInput, OrgViewPageInfo, OrganizationOverviewInput, PackageFilter, PackageInput, PackageScoresFilter, PackageScoresInput, PackageScoresOrder, PackagesOrder, PerformDiscoveryInput, PingIntegrationInput, PlanningMilestoneMetadataMutationInput, PlatformInput, PlatformVulnerabilityConfigurationInput, PlatformsListInput, PolicyAddInput, PolicyAssignmentInput, PolicyDashboardStatsInput, PolicyDeleteInput, PolicyInput, PolicyReportMquerySummaryOrder, PolicyReportSummaryOrder, PostgresConfigurationOptionsInput, ProcessCaseEventsInput, PropertyQueryMutationInput, PropertyQueryMutationTarget, PropertyQueryOverride, QueryPackAddInput, RatedPoliciesInput, RegistrationTokenInput, RegistrationTokenOrder, RemediationFilter, RemediationInput, RemediationPackageFields, RemoveOrganizationMembershipInput, RemoveSpaceMembershipInput, RenderedAssetQueryDataInput, ReportViewedInfo, ReportViewedInput, RevokeRegistrationTokenInput, RiskFactorFilter, RiskFactorFilterQuery, RiskFactorMagnitudeModification, RoleInput, S3ConfigurationOptionsInput, SSOProviderInput, ScanConfigurationInput, ScimGroupMapping, ScoreRange, SearchFilters, SecurityDashboardPageInfo, ServiceAccountOrder, SetAssetAnnotationsInput, SetCustomPolicyInput, SetCustomQueryPackInput, SetOrganizationMembershipInput, SetRoleInput, SetRolesInput, SetSSOProviderInput, SetScimGroupMappingInput, SetSpaceMembershipInput, SlackConfigurationOptionsInput, SnowflakeConfigurationOptionsInput, SpacePlanInput, SpacePlanQueryMutationDeltaInput, SpacePolicyReportInput, SpacePolicySummaryInput, SpaceReportInput, SpaceSettingsInput, SpaceVulnerabilitiesInput, SpaceVulnerabilityReportInput, SubscriptionItem, SuppressIntegrationMessageInput, TerminatedAssetsConfigurationInput, TicketContentInput, TicketContextInput, TicketInput, TicketingIntegrationsInput, TimestampFilter, TopPolicyActionsInput, TopVulnerabilityInput, TriggerActionInput, TriggerActionOptionsInput, UnusedServiceAccountsConfigurationInput, UpdateAPITokenInput, UpdateAgentInput, UpdateClientIntegrationConfigurationInput, UpdateClientIntegrationNameInput, UpdateOrganizationInput, UpdateServiceAccountInput, UpdateSpaceInput, UpdateUserInput, UploadFrameworkInput, VPCConfigurationInput, VulnDashboardStatsInput, VulnerabilityDashboardPageInfo, VulnerabilityScoreFilter, VulnerabilityScoreOrder, ZendeskConfigurationOptionsInput. +// APITokenOrder, AWSConfigurationOptionsInput, AWSEventPatternInput, AWSRoleCredential, AWSSecretKeyCredential, AcceptLegalPolicy, ActivePoliciesInput, ActivePolicyOrder, AddSSHKeyRequest, AdvisoryFilter, AdvisoryOrder, AdvisorySummaryOrder, AgentOrder, AgentVersionFilter, AggregateScoreFilter, AggregateScoreOrder, AnalyseAssetVulnerabilitiesInput, AnalyseIncognitoAssetInput, ApplyExceptionForScopesInput, ApplySpacePlanInput, AssetEolFilter, AssetExploitableFilter, AssetGroupOrder, AssetLastPackageUpdateTimeInput, AssetLinkInfoInput, AssetListPoliciesFilter, AssetOSRebootFilter, AssetOrder, AssetOverviewPageInfo, AssetPackageDetailsInput, AssetReportInput, AssetReportListPoliciesFilter, AssetReportPolicyOrder, AssetReportQueryOrder, AssetResourceInput, AssetSearchInput, AssetSearchSuggestionsInput, AssetSummaryOrder, AssetUpdateFilter, AssetUrlSegmentInput, AssetUrlStatsInput, AssetVulnerabilityReportInput, AuditLogOrder, AwsS3ConfigurationOptionsInput, AwsScanOptions, AzureBlobConfigurationOptionsInput, AzureConfigurationOptionsInput, AzureDevopsConfigurationOptionsInput, AzureDevopsTicketConfigInput, AzureDevopsTicketContextInput, AzureDevopsTicketContextProjectsInput, BigqueryConfigurationOptionsInput, BillingSessionInput, CaseContentInput, CaseRefInput, CaseTicketConfigInput, CasesConfigurationInput, CasesInput, CategoriesListInput, ChangeSubscriptionPlanInput, CheckScoreFilter, CheckScoreOrder, ChecksOrder, ChecksSearchInput, CiCdJobPageInfo, CiCdProjectPageInfo, CicdProjectJobsInput, CicdProjectOrder, CicdProjectsInput, ClientIntegrationConfigurationInput, ClientIntegrationInput, CloseCaseInput, ComplianceAssetOrder, ComplianceAssetsSearchInput, ComplianceControlInput, ComplianceFrameworkInput, ComplianceFrameworkMutationInput, ComplianceFrameworksInput, ContentSearchInput, ContentSearchResultItemOrder, ControlDocumentOptionsInput, ControlScoreFilter, ControlScoreOrder, ControlsOrder, ControlsSearchInput, CreateCaseInput, CreateClientIntegrationInput, CreateInvitationInput, CreateOrganizationInput, CreateServiceAccountInput, CreateSpaceInput, CveFilter, CveOrder, CveSummaryOrder, DataQueryFilter, DataQueryOrder, DeleteAPITokenInput, DeleteAgentsInput, DeleteAssetsInput, DeleteCasesInput, DeleteClientIntegrationInput, DeleteCustomPolicyInput, DeleteCustomQueryPackInput, DeleteFrameworkInput, DeleteProjectsInput, DeleteSSHKeyRequest, DeleteSSOProviderInput, DeleteServiceAccountsInput, DownloadBundleInput, DownloadFrameworkInput, EbsScanOptionsInput, Ec2ScanOptionsInput, EmailConfigurationOptionsInput, EmailPreferenceInput, EmailRecipientInput, EmailTicketConfigInput, EnableSSOProviderInput, EolAssetsConfigurationInput, ExceptionGroupsInput, ExceptionMutationInput, ExceptionReviewInput, ForkFrameworkInput, FrameworkDocumentOptionsInput, GarbageCollectAssetsConfigurationInput, GcpConfigurationOptionsInput, GcsBucketConfigurationOptionsInput, GenerateAPITokenInput, GenerateDocumentInput, GetClientIntegrationDeleteCommandInput, GetClientIntegrationTokenInput, GithubConfigurationOptionsInput, GithubTicketConfigInput, GithubTicketingConfigurationOptionsInput, GitlabConfigurationOptionsInput, GitlabTicketConfigInput, GitlabTicketingConfigurationOptionsInput, GoogleWorkspaceConfigurationOptionsInput, GroupFilter, HostConfigurationOptionsInput, HostedAwsConfigurationOptionsInput, IDSuggestionInput, IntegrationInput, IntegrationOptionsInput, IntegrationsSummaryInput, InvitationOrder, JiraConfigurationOptionsInput, JiraTicketConfigInput, JiraTicketContextInput, JiraTicketContextProjectsInput, JiraTicketContextUsersInput, K8sConfigurationOptionsInput, KeyValueInput, LibraryOrder, ListClientIntegrationsFilterInput, ListClientIntegrationsInput, ListDiscoveryResultsInput, ManagedClientsFilters, MembershipOrder, MicrosoftDefenderConfigurationOptionsInput, ModifyRiskFactorInput, MqueryAssetDataInput, MqueryAssetScoresInput, MqueryInput, MqueryScoreInput, Ms365ConfigurationOptionsInput, MvdOrder, OciConfigurationOptionsInput, OktaConfigurationOptionsInput, OrgViewPageInfo, OrganizationOverviewInput, PackageFilter, PackageInput, PackageScoresFilter, PackageScoresInput, PackageScoresOrder, PackagesOrder, PerformDiscoveryInput, PingIntegrationInput, PlanningMilestoneMetadataMutationInput, PlatformInput, PlatformVulnerabilityConfigurationInput, PlatformsListInput, PolicyAddInput, PolicyAssignmentInput, PolicyDashboardStatsInput, PolicyDeleteInput, PolicyInput, PolicyReportMquerySummaryOrder, PolicyReportSummaryOrder, PostgresConfigurationOptionsInput, ProcessCaseEventsInput, PropertyQueryMutationInput, PropertyQueryMutationTarget, PropertyQueryOverride, QueryPackAddInput, RatedPoliciesInput, RegistrationTokenInput, RegistrationTokenOrder, RemediationFilter, RemediationInput, RemediationPackageFields, RemoveOrganizationMembershipInput, RemoveSpaceMembershipInput, RenderedAssetQueryDataInput, ReportViewedInfo, ReportViewedInput, RevokeRegistrationTokenInput, RiskFactorFilter, RiskFactorFilterQuery, RiskFactorMagnitudeModification, RoleInput, S3ConfigurationOptionsInput, SSOProviderInput, ScanConfigurationInput, ScimGroupMapping, ScoreRange, SearchFilters, SecurityDashboardPageInfo, ServiceAccountOrder, SetAssetAnnotationsInput, SetCustomPolicyInput, SetCustomQueryPackInput, SetOrganizationMembershipInput, SetRoleInput, SetRolesInput, SetSSOProviderInput, SetScimGroupMappingInput, SetSpaceMembershipInput, ShodanConfigurationOptionsInput, SlackConfigurationOptionsInput, SnowflakeConfigurationOptionsInput, SpacePlanInput, SpacePlanQueryMutationDeltaInput, SpacePolicyReportInput, SpacePolicySummaryInput, SpaceReportInput, SpaceSettingsInput, SpaceVulnerabilitiesInput, SpaceVulnerabilityReportInput, SubscriptionItem, SuppressIntegrationMessageInput, TerminatedAssetsConfigurationInput, TicketContextInput, TicketingIntegrationsInput, TimestampFilter, TopPolicyActionsInput, TopVulnerabilityInput, TriggerActionInput, TriggerActionOptionsInput, UnusedServiceAccountsConfigurationInput, UpdateAPITokenInput, UpdateAgentInput, UpdateClientIntegrationConfigurationInput, UpdateClientIntegrationNameInput, UpdateOrganizationInput, UpdateServiceAccountInput, UpdateSpaceInput, UpdateUserInput, UploadFrameworkInput, VPCConfigurationInput, VulnDashboardStatsInput, VulnerabilityDashboardPageInfo, VulnerabilityScoreFilter, VulnerabilityScoreOrder, ZendeskConfigurationOptionsInput, ZendeskCustomFieldInput. type Input interface{} // APITokenOrder @@ -476,6 +476,47 @@ type AzureConfigurationOptionsInput struct { ClientSecret *String `json:"clientSecret,omitempty"` } +// AzureDevopsConfigurationOptionsInput represents azure Devops integration input. +type AzureDevopsConfigurationOptionsInput struct { + // (Required.) + OrganizationURL String `json:"organizationUrl"` + // (Required.) + TenantID String `json:"tenantId"` + // (Required.) + ServicePrincipalID String `json:"servicePrincipalId"` + // (Required.) + ClientSecret String `json:"clientSecret"` + // (Required.) + AutoCloseTickets Boolean `json:"autoCloseTickets"` + // (Required.) + AutoCreateTickets Boolean `json:"autoCreateTickets"` + + // (Optional.) + DefaultProjectName *String `json:"defaultProjectName,omitempty"` +} + +// AzureDevopsTicketConfigInput represents azure Devops ticket configuration input. +type AzureDevopsTicketConfigInput struct { + // The Azure Devops project name. (Required.) + ProjectName String `json:"projectName"` +} + +// AzureDevopsTicketContextInput represents parameters for AzureDevopsTicketContext. +type AzureDevopsTicketContextInput struct { + // The type of the ticket context. (Required.) + Type AzureDevopsTicketContextType `json:"type"` + + // The parameters for the ticket context. (Optional.) + Projects *AzureDevopsTicketContextProjectsInput `json:"projects,omitempty"` +} + +// AzureDevopsTicketContextProjectsInput represents azure Devops projects filter parameters for AzureDevopsTicketContext. +type AzureDevopsTicketContextProjectsInput struct { + + // The Azure Devops query to filter the projects by. (Optional.) + Query *String `json:"query,omitempty"` +} + // BigqueryConfigurationOptionsInput represents bigQuery integration input. type BigqueryConfigurationOptionsInput struct { // (Required.) @@ -519,6 +560,8 @@ type CaseTicketConfigInput struct { GitHub *GithubTicketConfigInput `json:"github,omitempty"` // Gitlab ticket configuration. (Optional.) GitLab *GitlabTicketConfigInput `json:"gitlab,omitempty"` + // Azure Devops ticket configuration. (Optional.) + AzureDevOps *AzureDevopsTicketConfigInput `json:"azureDevops,omitempty"` } // CasesConfigurationInput represents cases configuration input. @@ -710,6 +753,10 @@ type ClientIntegrationConfigurationInput struct { GitHubTicketingConfigurationOptions *GithubTicketingConfigurationOptionsInput `json:"githubTicketingConfigurationOptions,omitempty"` // (Optional.) GitLabTicketingConfigurationOptions *GitlabTicketingConfigurationOptionsInput `json:"gitlabTicketingConfigurationOptions,omitempty"` + // (Optional.) + ShodanConfigurationOptions *ShodanConfigurationOptionsInput `json:"shodanConfigurationOptions,omitempty"` + // (Optional.) + AzureDevOpsConfigurationOptions *AzureDevopsConfigurationOptionsInput `json:"azureDevopsConfigurationOptions,omitempty"` } // ClientIntegrationInput represents input for client integration. @@ -2388,6 +2435,15 @@ type SetSpaceMembershipInput struct { Roles []RoleInput `json:"roles"` } +// ShodanConfigurationOptionsInput represents shodan integration input. +type ShodanConfigurationOptionsInput struct { + // Shodan API token. (Required.) + Token String `json:"token"` + + // Shodan scan targets. Can be a domain, IP or CIDR. (Optional.) + Targets *[]String `json:"targets,omitempty"` +} + // SlackConfigurationOptionsInput represents slack integration input. type SlackConfigurationOptionsInput struct { @@ -2526,14 +2582,6 @@ type TerminatedAssetsConfigurationInput struct { Cleanup *Boolean `json:"cleanup,omitempty"` } -// TicketContentInput represents format and scope for the ticket content. -type TicketContentInput struct { - // The MRN of the scope for which the content is fetched. (Required.) - ScopeMrn String `json:"scopeMrn"` - // The format of the ticket content. (Required.) - Format TicketFormat `json:"format"` -} - // TicketContextInput represents fetch Jira ticket context information. type TicketContextInput struct { // The MRN of the scope for which the context is fetched. (Required.) @@ -2541,23 +2589,8 @@ type TicketContextInput struct { // Jira ticket context parameters. (Optional.) Jira *JiraTicketContextInput `json:"jira,omitempty"` -} - -// TicketInput represents parameters for CreateTicket. -type TicketInput struct { - // The MRN of the space where the ticket should be created. (Required.) - SpaceMrn String `json:"spaceMrn"` - // The summary content of the ticket. (Required.) - Summary String `json:"summary"` - // The description of the ticket. (Required.) - Description String `json:"description"` - // The integration that should be used to create the ticket in. (Required.) - Integration IntegrationType `json:"integration"` - - // Optional URL for a reference. (Optional.) - ReferenceURL *String `json:"referenceUrl,omitempty"` - // Optional title for a reference. (Optional.) - ReferenceTitle *String `json:"referenceTitle,omitempty"` + // Azure Devops ticket context parameters. (Optional.) + AzureDevOps *AzureDevopsTicketContextInput `json:"azureDevops,omitempty"` } // TicketingIntegrationsInput represents ticketingIntegrationsInput describes the input for listing ticketing integrations. @@ -2763,4 +2796,15 @@ type ZendeskConfigurationOptionsInput struct { AutoCloseTickets Boolean `json:"autoCloseTickets"` // (Required.) AutoCreateTickets Boolean `json:"autoCreateTickets"` + + // (Optional.) + CustomFields *[]ZendeskCustomFieldInput `json:"customFields,omitempty"` +} + +// ZendeskCustomFieldInput represents zendesk custom field input. +type ZendeskCustomFieldInput struct { + // Field ID. (Required.) + ID Int `json:"id"` + // Value. (Required.) + Value String `json:"value"` }