@@ -32,10 +32,21 @@ directive @include(
3232 if : Boolean !
3333) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
3434
35+ """@noRole indicates that the specified query / mutation / subscription can be executed regardless of the user's roles.
36+ This practically means that the query will not allow accessing any org-specific data."""
37+ directive @noRole on FIELD_DEFINITION
38+
3539"""@noauth indicates that the specified query / mutation / subscription can be executed anonymously without
40+ user authentication, meaning anyone and everyone can execute it. USE WITH CAUTION.
3641user authentication, meaning anyone and everyone can execute it. USE WITH CAUTION."""
3742directive @noauth on FIELD_DEFINITION
3843
44+ """@requiresRole indicates that the specified query / mutation / subscription requires any of the provided roles to be executed.
45+ Users without any of the specified roles will not be able to execute the query / mutation / subscription."""
46+ directive @requiresRole (
47+ roles : [AuthRole ! ]!
48+ ) on FIELD_DEFINITION
49+
3950directive @restApiField (
4051 action : ApiFieldAction
4152) on FIELD_DEFINITION
@@ -275,6 +286,11 @@ type AppliedIntentsRequestWithDetails {
275286 clientIntents : ClientIntentsFileRepresentation !
276287}
277288
289+ enum AuthRole {
290+ ADMIN
291+ VIEWER
292+ }
293+
278294enum AutomateThirdPartyNetworkPolicy {
279295 OFF
280296 ALWAYS
@@ -823,6 +839,7 @@ input ExternalTrafficIntentInput {
823839 namespace : String !
824840 clientName : String !
825841 target : DNSIPPairInput !
842+ connectionsCount : ConnectionsCount
826843}
827844
828845input ExternallyAccessibleServiceInput {
@@ -1216,6 +1233,7 @@ input InputIntegrationAccessGraphFilter {
12161233 namespaceFilterType : IDFilterOperators
12171234 serviceIds : [ID ! ]
12181235 serviceFilterType : IDFilterOperators
1236+ targets : [IntentType ! ]
12191237}
12201238
12211239""" Network policies filter """
@@ -1341,6 +1359,7 @@ type IntegrationAccessGraphFilter {
13411359 serviceIds : [ID ! ]
13421360 serviceFilterType : IDFilterOperators
13431361 lastSeenAfter : Time
1362+ targets : [IntentType ! ]
13441363}
13451364
13461365type IntegrationComponents {
@@ -1458,6 +1477,7 @@ input IntentStatusInput {
14581477}
14591478
14601479enum IntentType {
1480+ KUBERNETES
14611481 HTTP
14621482 KAFKA
14631483 DATABASE
@@ -1535,6 +1555,7 @@ type Invite {
15351555 id : ID !
15361556 email : String !
15371557 organization : Organization !
1558+ organizationMembership : OrganizationMembership !
15381559 inviter : User !
15391560 created : Time !
15401561 acceptedAt : Time
@@ -2052,6 +2073,7 @@ type Mutation {
20522073"""Create user invite"""
20532074 createInvite (
20542075 email : String !
2076+ organizationMembership : OrganizationMembershipInput
20552077 ): Invite !
20562078"""Delete user invite"""
20572079 deleteInvite (
@@ -2105,7 +2127,7 @@ type Mutation {
21052127 settings : OrganizationSettingsInput
21062128 ): Organization !
21072129 updateDomainsDefaultRole (
2108- defaultRole : OrgMembershipRole !
2130+ defaultRole : AuthRole !
21092131 ): Organization !
21102132"""Remove user from organization"""
21112133 removeUserFromOrganization (
@@ -2235,6 +2257,7 @@ input NetworkPolicyInput {
22352257enum NetworkPolicyKind {
22362258 NETWORK_POLICY
22372259 CILIUM_NETWORK_POLICY
2260+ CILIUM_CLUSTER_WIDE_NETWORK_POLICY
22382261}
22392262
22402263enum NetworkPolicyScope {
@@ -2248,11 +2271,6 @@ type NetworkPolicyWorkload {
22482271 service : Service !
22492272}
22502273
2251- enum OrgMembershipRole {
2252- ADMIN
2253- VIEWER
2254- }
2255-
22562274type Organization {
22572275 id : ID !
22582276 name : String !
@@ -2262,19 +2280,45 @@ type Organization {
22622280 created : Time !
22632281}
22642282
2283+ type OrganizationMembership {
2284+ role : AuthRole !
2285+ restrictions : OrganizationMembershipRestrictions
2286+ }
2287+
2288+ input OrganizationMembershipInput {
2289+ role : AuthRole !
2290+ restrictions : OrganizationMembershipRestrictionsInput
2291+ }
2292+
2293+ type OrganizationMembershipRestrictions {
2294+ clusterIds : IDFilterValue
2295+ serviceIds : IDFilterValue
2296+ namespaceIds : IDFilterValue
2297+ environmentIds : IDFilterValue
2298+ }
2299+
2300+ input OrganizationMembershipRestrictionsInput {
2301+ clusterIds : InputIDFilterValue
2302+ serviceIds : InputIDFilterValue
2303+ namespaceIds : InputIDFilterValue
2304+ environmentIds : InputIDFilterValue
2305+ }
2306+
22652307type OrganizationSettings {
22662308 domains : [String ! ]
22672309 enforcedRegulations : [String ! ]
22682310 ignoredCloudDomains : [String ! ]
22692311 defaultIntentsApprovalActionByEnv : [DefaultIntentsApprovalActionByEnv ! ]!
2270- domainsDefaultRole : OrgMembershipRole !
2312+ ignoreInternetIntents : Boolean
2313+ domainsDefaultRole : AuthRole !
22712314}
22722315
22732316input OrganizationSettingsInput {
22742317 domains : [String ! ]
22752318 enforcedRegulations : [String ]
22762319 ignoredCloudDomains : [String ! ]
22772320 defaultIntentsApprovalActionByEnv : [InputDefaultIntentsApprovalActionByEnv ! ]
2321+ ignoreInternetIntents : Boolean
22782322}
22792323
22802324input PaginationInput {
@@ -2979,6 +3023,7 @@ type User {
29793023 authProviderUserId : String !
29803024 tutorials : [UserTutorial ! ]
29813025 activeTutorial : UserTutorial !
3026+ orgMembership : OrganizationMembership !
29823027 awsCustomer : AWSCustomer
29833028}
29843029
0 commit comments