@@ -981,6 +981,24 @@ type AuthenticationTokens {
981
981
idToken : IdToken !
982
982
}
983
983
984
+ input BanAccountGroupRuleConfig {
985
+ enable : AlwaysTrue
986
+ }
987
+
988
+ input BanGroupAccountRequest {
989
+ """The group you want to ban member on."""
990
+ group : EvmAddress !
991
+
992
+ """The account you want to ban on the group."""
993
+ account : EvmAddress !
994
+ }
995
+
996
+ type BanGroupAccountResponse {
997
+ hash : TxHash !
998
+ }
999
+
1000
+ union BanGroupAccountResult = BanGroupAccountResponse | SponsoredTransactionRequest | SelfFundedTransactionRequest | TransactionWillFail
1001
+
984
1002
scalar BigDecimal
985
1003
986
1004
type BigDecimalKeyValue {
@@ -2702,9 +2720,50 @@ type Group {
2702
2720
metadata : GroupMetadata
2703
2721
owner : EvmAddress !
2704
2722
operations : LoggedInGroupOperations
2723
+
2724
+ """Returns true if the group has banning rule enabled"""
2725
+ banningEnabled : Boolean !
2726
+
2727
+ """Returns true if the group has membership approval rule enabled"""
2728
+ membershipApprovalEnabled : Boolean !
2705
2729
rules : GroupRules !
2706
2730
}
2707
2731
2732
+ type GroupBannedAccount {
2733
+ ruleId : RuleId !
2734
+ account : Account !
2735
+ bannedBy : Account !
2736
+ lastActiveAt : DateTime !
2737
+ bannedAt : DateTime !
2738
+ }
2739
+
2740
+ input GroupBannedAccountsFilter {
2741
+ """The optional filter to narrow banned accounts by search query."""
2742
+ searchBy : UsernameSearchInput
2743
+ }
2744
+
2745
+ enum GroupBannedAccountsOrderBy {
2746
+ LAST_BANNED
2747
+ FIRST_BANNED
2748
+ LAST_ACTIVE
2749
+ ACCOUNT_SCORE
2750
+ }
2751
+
2752
+ input GroupBannedAccountsRequest {
2753
+ """The group"""
2754
+ group : EvmAddress !
2755
+ filter : GroupBannedAccountsFilter
2756
+
2757
+ """The order by."""
2758
+ orderBy : GroupBannedAccountsOrderBy ! = ACCOUNT_SCORE
2759
+
2760
+ """The page size."""
2761
+ pageSize : PageSize ! = FIFTY
2762
+
2763
+ """The cursor."""
2764
+ cursor : Cursor
2765
+ }
2766
+
2708
2767
input GroupGatedFeedRuleConfig {
2709
2768
group : EvmAddress !
2710
2769
}
@@ -2843,6 +2902,7 @@ type GroupRule {
2843
2902
2844
2903
input GroupRuleConfig {
2845
2904
membershipApprovalRule : MembershipApprovalGroupRuleConfig
2905
+ banAccountRule : BanAccountGroupRuleConfig
2846
2906
tokenGatedRule : TokenGatedGroupRuleConfig
2847
2907
simplePaymentRule : SimplePaymentGroupRuleConfig
2848
2908
unknownRule : UnknownGroupRuleConfig
@@ -2859,7 +2919,7 @@ enum GroupRuleType {
2859
2919
TOKEN_GATED
2860
2920
SIMPLE_PAYMENT
2861
2921
MEMBERSHIP_APPROVAL
2862
- BAN_MEMBER
2922
+ BAN_ACCOUNT
2863
2923
UNKNOWN
2864
2924
}
2865
2925
@@ -2868,6 +2928,7 @@ enum GroupRuleUnsatisfiedReason {
2868
2928
TOKEN_GATED_ACCOUNT_REMOVAL_STILL_TOKEN_HOLDER
2869
2929
SIMPLE_PAYMENT_NOT_ENOUGH_BALANCE
2870
2930
MEMBERSHIP_APPROVAL_REQUIRED
2931
+ ACCOUNT_BANNED
2871
2932
}
2872
2933
2873
2934
type GroupRules {
@@ -3187,6 +3248,7 @@ type LoggedInGroupOperations {
3187
3248
canAddMember : GroupOperationValidationOutcome !
3188
3249
canRemoveMember : GroupOperationValidationOutcome !
3189
3250
isMember : Boolean !
3251
+ isBanned : Boolean !
3190
3252
}
3191
3253
3192
3254
type LoggedInPostOperations {
@@ -4304,6 +4366,22 @@ type Mutation {
4304
4366
You MUST be a group owner or admin to use this mutation
4305
4367
"""
4306
4368
rejectGroupMembershipRequest (request : RejectGroupMembershipRequest ! ): RejectGroupMembershipResult !
4369
+
4370
+ """
4371
+ Ban account to join a group
4372
+ Banned account MUST not be a member of a group.
4373
+ Use `removeGroupMember` mutation with `ban` flag to remove and ban existing members
4374
+
4375
+ You MUST be authenticated as Account Owner or Account Manager to use this mutation.
4376
+ """
4377
+ banGroupAccount (request : BanGroupAccountRequest ! ): BanGroupAccountResult !
4378
+
4379
+ """
4380
+ Unban account
4381
+
4382
+ You MUST be authenticated as Account Owner or Account Manager to use this mutation.
4383
+ """
4384
+ unbanGroupAccount (request : UnbanGroupAccountRequest ! ): UnbanGroupAccountResult !
4307
4385
createSnsSubscriptions (request : CreateSnsSubscriptionRequest ! ): [SnsSubscription ! ]!
4308
4386
deleteSnsSubscription (request : DeleteSnsSubscriptionRequest ! ): Void !
4309
4387
@@ -4564,8 +4642,6 @@ input OnboardingUserChallengeRequest {
4564
4642
wallet : EvmAddress !
4565
4643
}
4566
4644
4567
- union OperationValidationRule = PostRule | FeedRule
4568
-
4569
4645
enum PageSize {
4570
4646
TEN
4571
4647
FIFTY
@@ -4654,6 +4730,11 @@ type PaginatedGraphsResult {
4654
4730
pageInfo : PaginatedResultInfo !
4655
4731
}
4656
4732
4733
+ type PaginatedGroupBannedAccountsResult {
4734
+ items : [GroupBannedAccount ! ]!
4735
+ pageInfo : PaginatedResultInfo !
4736
+ }
4737
+
4657
4738
type PaginatedGroupMembersResult {
4658
4739
items : [GroupMember ! ]!
4659
4740
pageInfo : PaginatedResultInfo !
@@ -4924,8 +5005,10 @@ type PostOperationValidationPassed {
4924
5005
passed : AlwaysTrue !
4925
5006
}
4926
5007
5008
+ union PostOperationValidationRule = PostRule | FeedRule
5009
+
4927
5010
type PostOperationValidationUnknown {
4928
- extraChecksRequired : [OperationValidationRule ! ]!
5011
+ extraChecksRequired : [PostOperationValidationRule ! ]!
4929
5012
}
4930
5013
4931
5014
type PostReaction {
@@ -5327,6 +5410,9 @@ type Query {
5327
5410
"""Get the group membership requests"""
5328
5411
groupMembershipRequests (request : GroupMembershipRequestsRequest ! ): PaginatedGroupMembershipRequestsResult !
5329
5412
5413
+ """Get the banned accounts of a group"""
5414
+ groupBannedAccounts (request : GroupBannedAccountsRequest ! ): PaginatedGroupBannedAccountsResult !
5415
+
5330
5416
"""Get admins for a graph/app/sponsor/feed/username/group address"""
5331
5417
adminsFor (request : AdminsForRequest ! ): PaginatedAdminsResult !
5332
5418
@@ -5494,6 +5580,9 @@ input RemoveGroupMemberRequest {
5494
5580
"""The account you want to remove from the group."""
5495
5581
account : EvmAddress !
5496
5582
5583
+ """Ban the account from the joining the group."""
5584
+ ban : Boolean ! = false
5585
+
5497
5586
"""The processing params for the join rules."""
5498
5587
rulesProcessingParams : [GroupRulesProcessingParams ! ]
5499
5588
}
@@ -6458,6 +6547,8 @@ enum TransactionOperation {
6458
6547
GROUP_MEMBERSHIP_APPROVAL_REQUEST_CANCELLED
6459
6548
GROUP_MEMBERSHIP_APPROVAL_APPROVED
6460
6549
GROUP_MEMBERSHIP_APPROVAL_REJECTED
6550
+ GROUP_ACCOUNT_BANNED
6551
+ GROUP_ACCOUNT_UNBANNED
6461
6552
NAMESPACE_FACTORY_DEPLOYMENT
6462
6553
SPONSOR_FREE_PAYMASTER_CREATED
6463
6554
SPONSOR_ADDED_TO_APPROVED_SIGNERS
@@ -6552,6 +6643,20 @@ type UnassignUsernameResponse {
6552
6643
6553
6644
union UnassignUsernameToAccountResult = UnassignUsernameResponse | SponsoredTransactionRequest | SelfFundedTransactionRequest | TransactionWillFail
6554
6645
6646
+ input UnbanGroupAccountRequest {
6647
+ """The group you want to unban member on."""
6648
+ group : EvmAddress !
6649
+
6650
+ """The account you want to unban on the group."""
6651
+ account : EvmAddress !
6652
+ }
6653
+
6654
+ type UnbanGroupAccountResponse {
6655
+ hash : TxHash !
6656
+ }
6657
+
6658
+ union UnbanGroupAccountResult = UnbanGroupAccountResponse | SponsoredTransactionRequest | SelfFundedTransactionRequest | TransactionWillFail
6659
+
6555
6660
type UnblockError {
6556
6661
error : UnblockErrorType !
6557
6662
}
0 commit comments