|
2 | 2 |
|
3 | 3 | from workos.types.organizations.domain_data_input import DomainDataInput |
4 | 4 | from workos.types.organizations.list_filters import OrganizationListFilters |
5 | | -from workos.types.roles.role import OrganizationRole, RolesList |
| 5 | +from workos.types.roles.role import RoleList |
6 | 6 | from workos.typing.sync_or_async import SyncOrAsync |
7 | 7 | from workos.utils.http_client import AsyncHTTPClient, SyncHTTPClient |
8 | 8 | from workos.utils.pagination_order import PaginationOrder |
@@ -224,13 +224,13 @@ def delete_organization(self, organization_id: str) -> None: |
224 | 224 | method=REQUEST_METHOD_DELETE, |
225 | 225 | ) |
226 | 226 |
|
227 | | - def list_organization_roles(self, organization_id: str) -> RolesList: |
| 227 | + def list_organization_roles(self, organization_id: str) -> RoleList: |
228 | 228 | response = self._http_client.request( |
229 | 229 | f"organizations/{organization_id}/roles", |
230 | 230 | method=REQUEST_METHOD_GET, |
231 | 231 | ) |
232 | 232 |
|
233 | | - return RolesList.model_validate(response) |
| 233 | + return RoleList.model_validate(response) |
234 | 234 |
|
235 | 235 |
|
236 | 236 | class AsyncOrganizations(OrganizationsModule): |
@@ -334,10 +334,10 @@ async def delete_organization(self, organization_id: str) -> None: |
334 | 334 | method=REQUEST_METHOD_DELETE, |
335 | 335 | ) |
336 | 336 |
|
337 | | - async def list_organization_roles(self, organization_id: str) -> RolesList: |
| 337 | + async def list_organization_roles(self, organization_id: str) -> RoleList: |
338 | 338 | response = await self._http_client.request( |
339 | 339 | f"organizations/{organization_id}/roles", |
340 | 340 | method=REQUEST_METHOD_GET, |
341 | 341 | ) |
342 | 342 |
|
343 | | - return RolesList.model_validate(response) |
| 343 | + return RoleList.model_validate(response) |
0 commit comments