@@ -28,6 +28,7 @@ def list(
2828 self ,
2929 id : int ,
3030 * ,
31+ contributed_to_projects : typing .Optional [bool ] = None ,
3132 exclude_project_id : typing .Optional [int ] = None ,
3233 exclude_workspace_id : typing .Optional [int ] = None ,
3334 ordering : typing .Optional [str ] = None ,
@@ -51,6 +52,9 @@ def list(
5152 id : int
5253 A unique integer value identifying this organization.
5354
55+ contributed_to_projects : typing.Optional[bool]
56+ Whether to include projects created and contributed to by the members.
57+
5458 exclude_project_id : typing.Optional[int]
5559 Project ID to exclude users who are already associated with this project (direct members, workspace members, or implicit admin/owner access).
5660
@@ -108,6 +112,7 @@ def list(
108112 f"api/organizations/{ jsonable_encoder (id )} /memberships" ,
109113 method = "GET" ,
110114 params = {
115+ "contributed_to_projects" : contributed_to_projects ,
111116 "exclude_project_id" : exclude_project_id ,
112117 "exclude_workspace_id" : exclude_workspace_id ,
113118 "ordering" : ordering ,
@@ -217,7 +222,12 @@ def update(
217222 raise ApiError (status_code = _response .status_code , body = _response_json )
218223
219224 def get (
220- self , id : int , user_pk : int , * , request_options : typing .Optional [RequestOptions ] = None
225+ self ,
226+ id : int ,
227+ user_pk : int ,
228+ * ,
229+ contributed_to_projects : typing .Optional [bool ] = None ,
230+ request_options : typing .Optional [RequestOptions ] = None ,
221231 ) -> OrganizationMember :
222232 """
223233 Get organization member details by user ID.
@@ -229,6 +239,9 @@ def get(
229239 user_pk : int
230240 A unique integer value identifying the user to get organization details for.
231241
242+ contributed_to_projects : typing.Optional[bool]
243+ Whether to include projects created and contributed to by the member.
244+
232245 request_options : typing.Optional[RequestOptions]
233246 Request-specific configuration.
234247
@@ -252,6 +265,9 @@ def get(
252265 _response = self ._client_wrapper .httpx_client .request (
253266 f"api/organizations/{ jsonable_encoder (id )} /memberships/{ jsonable_encoder (user_pk )} /" ,
254267 method = "GET" ,
268+ params = {
269+ "contributed_to_projects" : contributed_to_projects ,
270+ },
255271 request_options = request_options ,
256272 )
257273 try :
@@ -350,6 +366,7 @@ async def list(
350366 self ,
351367 id : int ,
352368 * ,
369+ contributed_to_projects : typing .Optional [bool ] = None ,
353370 exclude_project_id : typing .Optional [int ] = None ,
354371 exclude_workspace_id : typing .Optional [int ] = None ,
355372 ordering : typing .Optional [str ] = None ,
@@ -373,6 +390,9 @@ async def list(
373390 id : int
374391 A unique integer value identifying this organization.
375392
393+ contributed_to_projects : typing.Optional[bool]
394+ Whether to include projects created and contributed to by the members.
395+
376396 exclude_project_id : typing.Optional[int]
377397 Project ID to exclude users who are already associated with this project (direct members, workspace members, or implicit admin/owner access).
378398
@@ -438,6 +458,7 @@ async def main() -> None:
438458 f"api/organizations/{ jsonable_encoder (id )} /memberships" ,
439459 method = "GET" ,
440460 params = {
461+ "contributed_to_projects" : contributed_to_projects ,
441462 "exclude_project_id" : exclude_project_id ,
442463 "exclude_workspace_id" : exclude_workspace_id ,
443464 "ordering" : ordering ,
@@ -555,7 +576,12 @@ async def main() -> None:
555576 raise ApiError (status_code = _response .status_code , body = _response_json )
556577
557578 async def get (
558- self , id : int , user_pk : int , * , request_options : typing .Optional [RequestOptions ] = None
579+ self ,
580+ id : int ,
581+ user_pk : int ,
582+ * ,
583+ contributed_to_projects : typing .Optional [bool ] = None ,
584+ request_options : typing .Optional [RequestOptions ] = None ,
559585 ) -> OrganizationMember :
560586 """
561587 Get organization member details by user ID.
@@ -567,6 +593,9 @@ async def get(
567593 user_pk : int
568594 A unique integer value identifying the user to get organization details for.
569595
596+ contributed_to_projects : typing.Optional[bool]
597+ Whether to include projects created and contributed to by the member.
598+
570599 request_options : typing.Optional[RequestOptions]
571600 Request-specific configuration.
572601
@@ -598,6 +627,9 @@ async def main() -> None:
598627 _response = await self ._client_wrapper .httpx_client .request (
599628 f"api/organizations/{ jsonable_encoder (id )} /memberships/{ jsonable_encoder (user_pk )} /" ,
600629 method = "GET" ,
630+ params = {
631+ "contributed_to_projects" : contributed_to_projects ,
632+ },
601633 request_options = request_options ,
602634 )
603635 try :
0 commit comments