@@ -60,8 +60,7 @@ def invites(self) -> PaginatedCollection:
6060 self .client ,
6161 query_str , {}, ['organization' , 'invites' , 'nodes' ],
6262 Invite ,
63- cursor_path = ['organization' , 'invites' , 'nextCursor' ],
64- experimental = True )
63+ cursor_path = ['organization' , 'invites' , 'nextCursor' ])
6564
6665 def _assign_user_role (self , email : str , role : Role ,
6766 project_roles : List [ProjectRole ]) -> Dict [str , Any ]:
@@ -95,7 +94,8 @@ def _assign_user_role(self, email: str, role: Role,
9594 "projects" : projects
9695 }]
9796 },
98- experimental = True ) # We prob want to return an invite
97+ )
98+ # We prob want to return an invite
9999 # Could support bulk ops in the future
100100 invite_info = res ['createInvites' ][0 ]['invite' ]
101101 return invite_info
@@ -159,7 +159,7 @@ def user_limit(self) -> UserLimit:
159159 query_str = """query UsersLimitPyApi {
160160 organization {id account { id usersLimit { dateLimitWasReached remaining used limit }}}}
161161 """
162- res = self .client .execute (query_str , experimental = True )
162+ res = self .client .execute (query_str )
163163 return UserLimit (
164164 ** {
165165 utils .snake_case (k ): v for k , v in res ['organization' ]
@@ -179,12 +179,11 @@ def invite_limit(self) -> InviteLimit:
179179 org_id_param = "organizationId"
180180 res = self .client .execute ("""query InvitesLimitPyApi($%s: ID!) {
181181 invitesLimit(where: {id: $%s}) { used limit remaining }
182- }""" % (org_id_param , org_id_param ), {org_id_param : self .uid },
183- experimental = True )
182+ }""" % (org_id_param , org_id_param ), {org_id_param : self .uid })
184183 return InviteLimit (
185184 ** {utils .snake_case (k ): v for k , v in res ['invitesLimit' ].items ()})
186185
187-
186+ @ beta
188187 def remove_user (self , user : User ):
189188 """
190189 Deletes a user from the organization. This cannot be undone without sending another invite.
0 commit comments