File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 1616from .role_assignments import RoleAssignmentsApi
1717from .roles import RolesApi
1818from .tenants import TenantsApi
19+ from .user_invites import UserInvitesApi
1920from .users import UsersApi
2021
2122
@@ -83,6 +84,10 @@ class SyncTenantsApi(TenantsApi, metaclass=SyncClass):
8384 pass
8485
8586
87+ class SyncUserInvitesApi (UserInvitesApi , metaclass = SyncClass ):
88+ pass
89+
90+
8691class SyncUsersApi (UsersApi , metaclass = SyncClass ):
8792 pass
8893
@@ -112,6 +117,7 @@ def __init__(self, config: PermitConfig):
112117 self ._role_assignments = SyncRoleAssignmentsApi (config )
113118 self ._roles = SyncRolesApi (config )
114119 self ._tenants = SyncTenantsApi (config )
120+ self ._user_invites = SyncUserInvitesApi (config )
115121 self ._users = SyncUsersApi (config )
116122
117123 @property
@@ -234,6 +240,14 @@ def tenants(self) -> SyncTenantsApi:
234240 """
235241 return self ._tenants
236242
243+ @property
244+ def user_invites (self ) -> SyncUserInvitesApi :
245+ """
246+ API for managing user invites.
247+ See: https://api.permit.io/v2/redoc#tag/User-Invites
248+ """
249+ return self ._user_invites
250+
237251 @property
238252 def users (self ) -> SyncUsersApi :
239253 """
You can’t perform that action at this time.
0 commit comments