Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GraphQL schema to latest version #253

Merged
merged 1 commit into from
Dec 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/mapper/pkg/cloudclient/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions src/mapper/pkg/cloudclient/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,13 @@ type FeatureFlags {
isCloudSecurityEnabled: Boolean
}

"""NEW findings"""
enum FindingStatus {
OPEN
RESOLVED
IGNORED
}

type FindingSummary {
standard: RegulationStandard!
codeLabel: String!
Expand All @@ -721,6 +728,21 @@ type FindingSummary {
requirements: [FindingSummary!]
}

type FindingSummaryV2 {
standard: RegulationStandard!
code: RegulationCode!
codeLabel: String!
severity: Severity!
description: String!
validationDescription: String
status: FindingStatus!
serviceTotalCount: Int!
serviceOpenCount: Int!
clusterTotalCount: Int!
clusterOpenCount: Int!
requirements: [FindingSummaryV2!]
}

"""The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point)."""
scalar Float

Expand Down Expand Up @@ -926,6 +948,8 @@ input InputFeatureFlags {
input InputFindingFilter {
""" Findings filter """
severity: InputIDFilterValue
""" Findings filter """
status: InputIDFilterValue
""" Findings filter """
clusterIds: InputIDFilterValue
""" Findings filter """
Expand Down Expand Up @@ -1089,6 +1113,8 @@ type Intent {
databaseResources: [DatabaseConfig!]
awsActions: [String!]
azureRoles: [String!]
azureActions: [String!]
azureDataActions: [String!]
azureKeyVaultPolicy: AzureKeyVaultPolicy
gcpPermissions: [String!]
internet: InternetConfig
Expand All @@ -1109,6 +1135,8 @@ input IntentInput {
databaseResources: [DatabaseConfigInput!]
awsActions: [String!]
azureRoles: [String!]
azureActions: [String!]
azureDataActions: [String!]
azureKeyVaultPolicy: AzureKeyVaultPolicyInput
gcpPermissions: [String!]
internet: InternetConfigInput
Expand Down Expand Up @@ -1737,6 +1765,11 @@ type Mutation {
id: ID!
userId: ID!
): ID!
"""Ignore domain for organization"""
ignoreOrganizationDomain(
id: ID!
domain: String!
): Organization!
reportProtectedServicesSnapshot(
namespace: String!
services: [ProtectedServiceInput!]!
Expand Down Expand Up @@ -1853,11 +1886,13 @@ type Organization {
type OrganizationSettings {
domains: [String!]
enforcedRegulations: [String!]
ignoredCloudDomains: [String!]
}

input OrganizationSettingsInput {
domains: [String!]
enforcedRegulations: [String]
ignoredCloudDomains: [String!]
}

input PaginationInput {
Expand Down Expand Up @@ -1946,6 +1981,10 @@ type Query {
filter: InputFindingFilter
tree: Boolean
): Dashboard!
"""NEW findings"""
findingSummary(
filter: InputFindingFilter
): [FindingSummaryV2!]!
"""List integrations"""
integrations(
name: String
Expand Down
Loading