11from enum import Enum
22from functools import partial
3- from typing import Any , Dict , Literal , Optional , Protocol , Sequence , Union
3+ from typing import Any , Dict , Optional , Protocol , Sequence , Union
44
55from pydantic import TypeAdapter
66
77from workos .types .authorization .access_check_response import AccessCheckResponse
8+ from workos .types .authorization .assignment import Assignment
89from workos .types .authorization .environment_role import (
910 EnvironmentRole ,
1011 EnvironmentRoleList ,
@@ -76,7 +77,7 @@ class ResourcesForMembershipListFilters(ListArgs, total=False):
7677
7778class AuthorizationOrganizationMembershipListFilters (ListArgs , total = False ):
7879 permission_slug : str
79- assignment : Optional [Literal [ "direct" , "indirect" ] ]
80+ assignment : Optional [Assignment ]
8081
8182
8283AuthorizationOrganizationMembershipList = WorkOSListResource [
@@ -313,7 +314,7 @@ def list_memberships_for_resource(
313314 resource_id : str ,
314315 * ,
315316 permission_slug : str ,
316- assignment : Optional [Literal [ "direct" , "indirect" ] ] = None ,
317+ assignment : Optional [Assignment ] = None ,
317318 limit : int = DEFAULT_LIST_RESPONSE_LIMIT ,
318319 before : Optional [str ] = None ,
319320 after : Optional [str ] = None ,
@@ -327,7 +328,7 @@ def list_memberships_for_resource_by_external_id(
327328 external_id : str ,
328329 * ,
329330 permission_slug : str ,
330- assignment : Optional [Literal [ "direct" , "indirect" ] ] = None ,
331+ assignment : Optional [Assignment ] = None ,
331332 limit : int = DEFAULT_LIST_RESPONSE_LIMIT ,
332333 before : Optional [str ] = None ,
333334 after : Optional [str ] = None ,
@@ -851,7 +852,7 @@ def list_memberships_for_resource(
851852 resource_id : str ,
852853 * ,
853854 permission_slug : str ,
854- assignment : Optional [Literal [ "direct" , "indirect" ] ] = None ,
855+ assignment : Optional [Assignment ] = None ,
855856 limit : int = DEFAULT_LIST_RESPONSE_LIMIT ,
856857 before : Optional [str ] = None ,
857858 after : Optional [str ] = None ,
@@ -890,7 +891,7 @@ def list_memberships_for_resource_by_external_id(
890891 external_id : str ,
891892 * ,
892893 permission_slug : str ,
893- assignment : Optional [Literal [ "direct" , "indirect" ] ] = None ,
894+ assignment : Optional [Assignment ] = None ,
894895 limit : int = DEFAULT_LIST_RESPONSE_LIMIT ,
895896 before : Optional [str ] = None ,
896897 after : Optional [str ] = None ,
@@ -1446,7 +1447,7 @@ async def list_memberships_for_resource(
14461447 resource_id : str ,
14471448 * ,
14481449 permission_slug : str ,
1449- assignment : Optional [Literal [ "direct" , "indirect" ] ] = None ,
1450+ assignment : Optional [Assignment ] = None ,
14501451 limit : int = DEFAULT_LIST_RESPONSE_LIMIT ,
14511452 before : Optional [str ] = None ,
14521453 after : Optional [str ] = None ,
@@ -1485,7 +1486,7 @@ async def list_memberships_for_resource_by_external_id(
14851486 external_id : str ,
14861487 * ,
14871488 permission_slug : str ,
1488- assignment : Optional [Literal [ "direct" , "indirect" ] ] = None ,
1489+ assignment : Optional [Assignment ] = None ,
14891490 limit : int = DEFAULT_LIST_RESPONSE_LIMIT ,
14901491 before : Optional [str ] = None ,
14911492 after : Optional [str ] = None ,
0 commit comments