3838from ...pagination import SyncProjectsPage , AsyncProjectsPage
3939from ..._base_client import AsyncPaginator , make_request_options
4040from ...types .project import Project
41+ from ...types .sort_param import SortParam
4142from .environment_clases import (
4243 EnvironmentClasesResource ,
4344 AsyncEnvironmentClasesResource ,
@@ -364,6 +365,7 @@ def list(
364365 page_size : int | Omit = omit ,
365366 filter : project_list_params .Filter | Omit = omit ,
366367 pagination : project_list_params .Pagination | Omit = omit ,
368+ sort : SortParam | Omit = omit ,
367369 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
368370 # The extra values given here take precedence over values defined on the client or passed to this method.
369371 extra_headers : Headers | None = None ,
@@ -394,6 +396,15 @@ def list(
394396 Args:
395397 pagination: pagination contains the pagination options for listing organizations
396398
399+ sort: sort specifies the order of results. Defaults to popularity descending.
400+
401+ Supported fields:
402+
403+ - "id": Sort by project ID (UUID v7, effectively creation order). Produces a
404+ stable, deterministic result set suitable for consistent pagination.
405+ - "popularity": Sort by popularity — a precomputed score based on recent
406+ environment creation activity. Updated periodically by a background job.
407+
397408 extra_headers: Send extra headers
398409
399410 extra_query: Add additional query parameters to the request
@@ -409,6 +420,7 @@ def list(
409420 {
410421 "filter" : filter ,
411422 "pagination" : pagination ,
423+ "sort" : sort ,
412424 },
413425 project_list_params .ProjectListParams ,
414426 ),
@@ -1008,6 +1020,7 @@ def list(
10081020 page_size : int | Omit = omit ,
10091021 filter : project_list_params .Filter | Omit = omit ,
10101022 pagination : project_list_params .Pagination | Omit = omit ,
1023+ sort : SortParam | Omit = omit ,
10111024 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
10121025 # The extra values given here take precedence over values defined on the client or passed to this method.
10131026 extra_headers : Headers | None = None ,
@@ -1038,6 +1051,15 @@ def list(
10381051 Args:
10391052 pagination: pagination contains the pagination options for listing organizations
10401053
1054+ sort: sort specifies the order of results. Defaults to popularity descending.
1055+
1056+ Supported fields:
1057+
1058+ - "id": Sort by project ID (UUID v7, effectively creation order). Produces a
1059+ stable, deterministic result set suitable for consistent pagination.
1060+ - "popularity": Sort by popularity — a precomputed score based on recent
1061+ environment creation activity. Updated periodically by a background job.
1062+
10411063 extra_headers: Send extra headers
10421064
10431065 extra_query: Add additional query parameters to the request
@@ -1053,6 +1075,7 @@ def list(
10531075 {
10541076 "filter" : filter ,
10551077 "pagination" : pagination ,
1078+ "sort" : sort ,
10561079 },
10571080 project_list_params .ProjectListParams ,
10581081 ),
0 commit comments