diff --git a/enum.go b/enum.go index 807a477..971009f 100644 --- a/enum.go +++ b/enum.go @@ -109,13 +109,15 @@ const ( type AggregateScoreType string const ( - AggregateScoreTypeVulnerability AggregateScoreType = "VULNERABILITY" - AggregateScoreTypeAdvisory AggregateScoreType = "ADVISORY" - AggregateScoreTypeCheck AggregateScoreType = "CHECK" - AggregateScoreTypePolicy AggregateScoreType = "POLICY" - AggregateScoreTypeRisk AggregateScoreType = "RISK" - AggregateScoreTypeAsset AggregateScoreType = "ASSET" - AggregateScoreTypeOther AggregateScoreType = "OTHER" + AggregateScoreTypeVulnerability AggregateScoreType = "VULNERABILITY" + AggregateScoreTypeAdvisory AggregateScoreType = "ADVISORY" + AggregateScoreTypeCheck AggregateScoreType = "CHECK" + AggregateScoreTypePolicy AggregateScoreType = "POLICY" + AggregateScoreTypeRisk AggregateScoreType = "RISK" + AggregateScoreTypeAsset AggregateScoreType = "ASSET" + AggregateScoreTypeSoftware AggregateScoreType = "SOFTWARE" + AggregateScoreTypeVersionedSoftware AggregateScoreType = "VERSIONED_SOFTWARE" + AggregateScoreTypeOther AggregateScoreType = "OTHER" ) // AssetLinkType @@ -719,6 +721,16 @@ const ( PackageManagerPowershell PackageManager = "POWERSHELL" ) +// PackageScoresOrderField +type PackageScoresOrderField string + +const ( + PackageScoresOrderFieldScore PackageScoresOrderField = "SCORE" + PackageScoresOrderFieldAssetName PackageScoresOrderField = "ASSET_NAME" + PackageScoresOrderFieldLastUpdated PackageScoresOrderField = "LAST_UPDATED" + PackageScoresOrderFieldRiskFactors PackageScoresOrderField = "RISK_FACTORS" +) + // PackageType type PackageType string @@ -851,6 +863,23 @@ const ( ReviewStatusRejected ReviewStatus = "REJECTED" ) +// ScoreState +type ScoreState string + +const ( + ScoreStateOpen ScoreState = "OPEN" + ScoreStateClosed ScoreState = "CLOSED" +) + +// ScoreStateFilter +type ScoreStateFilter string + +const ( + ScoreStateFilterAll ScoreStateFilter = "ALL" + ScoreStateFilterOpen ScoreStateFilter = "OPEN" + ScoreStateFilterClosed ScoreStateFilter = "CLOSED" +) + // ScoreType type ScoreType string @@ -936,3 +965,20 @@ const ( VulnerabilityOrderTypeNewest VulnerabilityOrderType = "NEWEST" VulnerabilityOrderTypeSevere VulnerabilityOrderType = "SEVERE" ) + +// VulnerabilityScoreOrderField +type VulnerabilityScoreOrderField string + +const ( + VulnerabilityScoreOrderFieldCvssScore VulnerabilityScoreOrderField = "CVSS_SCORE" + VulnerabilityScoreOrderFieldMrn VulnerabilityScoreOrderField = "MRN" + VulnerabilityScoreOrderFieldPublishedDate VulnerabilityScoreOrderField = "PUBLISHED_DATE" +) + +// VulnerabilityScoreType +type VulnerabilityScoreType string + +const ( + VulnerabilityScoreTypeCve VulnerabilityScoreType = "CVE" + VulnerabilityScoreTypeAdvisory VulnerabilityScoreType = "ADVISORY" +) diff --git a/input.go b/input.go index eae08b5..f87df40 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, AddSSHKeyRequest, AdvisoryFilter, AdvisoryOrder, AdvisorySummaryOrder, AgentOrder, AgentVersionFilter, AggregateScoreFilter, AggregateScoreOrder, AnalyseAssetVulnerabilitiesInput, AnalyseIncognitoAssetInput, ApplyExceptionForScopesInput, ApplySpacePlanInput, AssetEolFilter, AssetExploitableFilter, AssetGroupOrder, AssetLastPackageUpdateTimeInput, AssetLinkInfoInput, AssetOSRebootFilter, AssetOrder, AssetOverviewPageInfo, AssetPackageDetailsInput, AssetReportInput, AssetReportListPoliciesFilter, AssetReportPolicyOrder, AssetReportQueryOrder, AssetResourceInput, AssetSearchInput, AssetSearchSuggestionsInput, AssetSummaryOrder, AssetUpdateFilter, AssetUrlSegmentInput, AssetUrlStatsInput, AssetVulnerabilityReportInput, AuditLogOrder, AwsS3ConfigurationOptionsInput, AwsScanOptions, AzureBlobConfigurationOptionsInput, AzureConfigurationOptionsInput, BigqueryConfigurationOptionsInput, BillingSessionInput, CategoriesListInput, ChangeSubscriptionPlanInput, ChecksOrder, ChecksSearchInput, CiCdJobPageInfo, CiCdProjectPageInfo, CicdProjectJobsInput, CicdProjectOrder, CicdProjectsInput, ClientIntegrationConfigurationInput, ClientIntegrationInput, ComplianceAssetOrder, ComplianceAssetsSearchInput, ComplianceControlInput, ComplianceFrameworkInput, ComplianceFrameworkMutationInput, ComplianceFrameworksInput, ContentSearchInput, ContentSearchResultItemOrder, ControlDocumentOptionsInput, ControlsOrder, ControlsSearchInput, CreateClientIntegrationInput, CreateInvitationInput, CreateOrganizationInput, CreateServiceAccountInput, CreateSpaceInput, CveFilter, CveOrder, CveSummaryOrder, DeleteAPITokenInput, DeleteAgentsInput, DeleteAssetsInput, DeleteClientIntegrationInput, DeleteCustomPolicyInput, DeleteCustomQueryPackInput, DeleteFrameworkInput, DeleteProjectsInput, DeleteSSHKeyRequest, DeleteSSOProviderInput, DeleteServiceAccountsInput, DownloadBundleInput, DownloadFrameworkInput, EbsScanOptionsInput, Ec2ScanOptionsInput, EmailPreferenceInput, EnableSSOProviderInput, ExceptionGroupsInput, ExceptionMutationInput, ExceptionReviewInput, FrameworkDocumentOptionsInput, GarbageCollectAssetsConfigurationInput, GcpConfigurationOptionsInput, GcsBucketConfigurationOptionsInput, GenerateAPITokenInput, GenerateDocumentInput, GetClientIntegrationDeleteCommandInput, GetClientIntegrationTokenInput, GithubConfigurationOptionsInput, GitlabConfigurationOptionsInput, GoogleWorkspaceConfigurationOptionsInput, GroupFilter, HostConfigurationOptionsInput, HostedAwsConfigurationOptionsInput, IDSuggestionInput, IntegrationInput, IntegrationOptionsInput, IntegrationsSummaryInput, InvitationOrder, JiraConfigurationOptionsInput, JiraTicketContextInput, JiraTicketContextProjectsInput, JiraTicketContextUsersInput, K8sConfigurationOptionsInput, KeyValueInput, LibraryOrder, ListClientIntegrationsFilterInput, ListClientIntegrationsInput, ListDiscoveryResultsInput, ManagedClientsFilters, MembershipOrder, MqueryAssetDataInput, MqueryAssetScoresInput, MqueryInput, MqueryScoreInput, Ms365ConfigurationOptionsInput, OciConfigurationOptionsInput, OktaConfigurationOptionsInput, OrgViewPageInfo, OrganizationOverviewInput, PackageFilter, PackageInput, PackagesOrder, PerformDiscoveryInput, PingIntegrationInput, PlanningMilestoneMetadataMutationInput, PlatformInput, PlatformVulnerabilityConfigurationInput, PlatformsListInput, PolicyAddInput, PolicyAssignmentInput, PolicyDashboardStatsInput, PolicyDeleteInput, PolicyInput, PolicyReportMquerySummaryOrder, PolicyReportSummaryOrder, PostgresConfigurationOptionsInput, PropertyQueryMutationInput, PropertyQueryMutationTarget, PropertyQueryOverride, QueryPackAddInput, RatedPoliciesInput, RegistrationTokenInput, RegistrationTokenOrder, RemediationFilter, RemediationInput, RemediationPackageFields, RemoveOrganizationMembershipInput, RemoveSpaceMembershipInput, ReportViewedInfo, ReportViewedInput, RevokeRegistrationTokenInput, RiskFactorFilter, RiskFactorFilterQuery, 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, TimestampFilter, TopPolicyActionsInput, TopVulnerabilityInput, TriggerActionInput, TriggerActionOptionsInput, UnusedServiceAccountsConfigurationInput, UpdateAPITokenInput, UpdateAgentInput, UpdateClientIntegrationConfigurationInput, UpdateClientIntegrationNameInput, UpdateOrganizationInput, UpdateServiceAccountInput, UpdateSpaceInput, UpdateUserInput, UploadFrameworkInput, VulnDashboardStatsInput, VulnerabilityDashboardPageInfo. +// APITokenOrder, AWSConfigurationOptionsInput, AWSEventPatternInput, AWSRoleCredential, AWSSecretKeyCredential, AcceptLegalPolicy, AddSSHKeyRequest, AdvisoryFilter, AdvisoryOrder, AdvisorySummaryOrder, AgentOrder, AgentVersionFilter, AggregateScoreFilter, AggregateScoreOrder, AnalyseAssetVulnerabilitiesInput, AnalyseIncognitoAssetInput, ApplyExceptionForScopesInput, ApplySpacePlanInput, AssetEolFilter, AssetExploitableFilter, AssetGroupOrder, AssetLastPackageUpdateTimeInput, AssetLinkInfoInput, AssetOSRebootFilter, AssetOrder, AssetOverviewPageInfo, AssetPackageDetailsInput, AssetReportInput, AssetReportListPoliciesFilter, AssetReportPolicyOrder, AssetReportQueryOrder, AssetResourceInput, AssetSearchInput, AssetSearchSuggestionsInput, AssetSummaryOrder, AssetUpdateFilter, AssetUrlSegmentInput, AssetUrlStatsInput, AssetVulnerabilityReportInput, AuditLogOrder, AwsS3ConfigurationOptionsInput, AwsScanOptions, AzureBlobConfigurationOptionsInput, AzureConfigurationOptionsInput, BigqueryConfigurationOptionsInput, BillingSessionInput, CategoriesListInput, ChangeSubscriptionPlanInput, ChecksOrder, ChecksSearchInput, CiCdJobPageInfo, CiCdProjectPageInfo, CicdProjectJobsInput, CicdProjectOrder, CicdProjectsInput, ClientIntegrationConfigurationInput, ClientIntegrationInput, ComplianceAssetOrder, ComplianceAssetsSearchInput, ComplianceControlInput, ComplianceFrameworkInput, ComplianceFrameworkMutationInput, ComplianceFrameworksInput, ContentSearchInput, ContentSearchResultItemOrder, ControlDocumentOptionsInput, ControlsOrder, ControlsSearchInput, CreateClientIntegrationInput, CreateInvitationInput, CreateOrganizationInput, CreateServiceAccountInput, CreateSpaceInput, CveFilter, CveOrder, CveSummaryOrder, DeleteAPITokenInput, DeleteAgentsInput, DeleteAssetsInput, DeleteClientIntegrationInput, DeleteCustomPolicyInput, DeleteCustomQueryPackInput, DeleteFrameworkInput, DeleteProjectsInput, DeleteSSHKeyRequest, DeleteSSOProviderInput, DeleteServiceAccountsInput, DownloadBundleInput, DownloadFrameworkInput, EbsScanOptionsInput, Ec2ScanOptionsInput, EmailPreferenceInput, EnableSSOProviderInput, ExceptionGroupsInput, ExceptionMutationInput, ExceptionReviewInput, FrameworkDocumentOptionsInput, GarbageCollectAssetsConfigurationInput, GcpConfigurationOptionsInput, GcsBucketConfigurationOptionsInput, GenerateAPITokenInput, GenerateDocumentInput, GetClientIntegrationDeleteCommandInput, GetClientIntegrationTokenInput, GithubConfigurationOptionsInput, GitlabConfigurationOptionsInput, GoogleWorkspaceConfigurationOptionsInput, GroupFilter, HostConfigurationOptionsInput, HostedAwsConfigurationOptionsInput, IDSuggestionInput, IntegrationInput, IntegrationOptionsInput, IntegrationsSummaryInput, InvitationOrder, JiraConfigurationOptionsInput, JiraTicketContextInput, JiraTicketContextProjectsInput, JiraTicketContextUsersInput, K8sConfigurationOptionsInput, KeyValueInput, LibraryOrder, ListClientIntegrationsFilterInput, ListClientIntegrationsInput, ListDiscoveryResultsInput, ManagedClientsFilters, MembershipOrder, MqueryAssetDataInput, MqueryAssetScoresInput, MqueryInput, MqueryScoreInput, Ms365ConfigurationOptionsInput, OciConfigurationOptionsInput, OktaConfigurationOptionsInput, OrgViewPageInfo, OrganizationOverviewInput, PackageFilter, PackageInput, PackageScoresInput, PackageScoresOrder, PackagesOrder, PerformDiscoveryInput, PingIntegrationInput, PlanningMilestoneMetadataMutationInput, PlatformInput, PlatformVulnerabilityConfigurationInput, PlatformsListInput, PolicyAddInput, PolicyAssignmentInput, PolicyDashboardStatsInput, PolicyDeleteInput, PolicyInput, PolicyReportMquerySummaryOrder, PolicyReportSummaryOrder, PostgresConfigurationOptionsInput, PropertyQueryMutationInput, PropertyQueryMutationTarget, PropertyQueryOverride, QueryPackAddInput, RatedPoliciesInput, RegistrationTokenInput, RegistrationTokenOrder, RemediationFilter, RemediationInput, RemediationPackageFields, RemoveOrganizationMembershipInput, RemoveSpaceMembershipInput, ReportViewedInfo, ReportViewedInput, RevokeRegistrationTokenInput, RiskFactorFilter, RiskFactorFilterQuery, 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, TimestampFilter, TopPolicyActionsInput, TopVulnerabilityInput, TriggerActionInput, TriggerActionOptionsInput, UnusedServiceAccountsConfigurationInput, UpdateAPITokenInput, UpdateAgentInput, UpdateClientIntegrationConfigurationInput, UpdateClientIntegrationNameInput, UpdateOrganizationInput, UpdateServiceAccountInput, UpdateSpaceInput, UpdateUserInput, UploadFrameworkInput, VulnDashboardStatsInput, VulnerabilityDashboardPageInfo, VulnerabilityScoreFilter, VulnerabilityScoreOrder. type Input interface{} // APITokenOrder @@ -127,6 +127,8 @@ type AggregateScoreFilter struct { Risks *RiskFactorFilter `json:"risks,omitempty"` // (Optional.) MaxRiskScore *Int `json:"maxRiskScore,omitempty"` + // (Optional.) + SoftwareFindingMrn *String `json:"softwareFindingMrn,omitempty"` } // AggregateScoreOrder @@ -1159,8 +1161,6 @@ type HostConfigurationOptionsInput struct { // HostedAwsConfigurationOptionsInput type HostedAwsConfigurationOptionsInput struct { - // (Required.) - Region String `json:"region"` // (Optional.) KeyCredential *AWSSecretKeyCredential `json:"keyCredential,omitempty"` @@ -1460,6 +1460,25 @@ type PackageInput struct { Origin *String `json:"origin,omitempty"` } +// PackageScoresInput +type PackageScoresInput struct { + // (Required.) + SpaceMrn String `json:"spaceMrn"` + // (Required.) + FindingMrn String `json:"findingMrn"` + + // (Optional.) + PackageVersion *String `json:"packageVersion,omitempty"` +} + +// PackageScoresOrder +type PackageScoresOrder struct { + // (Required.) + Direction OrderDirection `json:"direction"` + // (Required.) + Field PackageScoresOrderField `json:"field"` +} + // PackagesOrder type PackagesOrder struct { // (Required.) @@ -2287,3 +2306,22 @@ type VulnerabilityDashboardPageInfo struct { // (Required.) SpaceMrn String `json:"spaceMrn"` } + +// VulnerabilityScoreFilter +type VulnerabilityScoreFilter struct { + + // (Optional.) + ScoreType *VulnerabilityScoreType `json:"scoreType,omitempty"` + // (Optional.) + State *ScoreStateFilter `json:"state,omitempty"` + // (Optional.) + QueryTerms *[]String `json:"queryTerms,omitempty"` +} + +// VulnerabilityScoreOrder +type VulnerabilityScoreOrder struct { + // (Required.) + Direction OrderDirection `json:"direction"` + // (Required.) + Field VulnerabilityScoreOrderField `json:"field"` +}