2020from ..pagination import SyncEntriesPage , AsyncEntriesPage
2121from .._base_client import AsyncPaginator , make_request_options
2222from .._decoders .jsonl import JSONLDecoder , AsyncJSONLDecoder
23+ from ..types .shared_params .sort import Sort
2324from ..types .event_list_response import EventListResponse
2425from ..types .event_watch_response import EventWatchResponse
2526
@@ -53,6 +54,7 @@ def list(
5354 page_size : int | Omit = omit ,
5455 filter : event_list_params .Filter | Omit = omit ,
5556 pagination : event_list_params .Pagination | Omit = omit ,
57+ sort : Sort | Omit = omit ,
5658 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5759 # The extra values given here take precedence over values defined on the client or passed to this method.
5860 extra_headers : Headers | None = None ,
@@ -99,7 +101,10 @@ def list(
99101 ```
100102
101103 Args:
102- pagination: pagination contains the pagination options for listing environments
104+ pagination: pagination contains the pagination options for listing audit logs
105+
106+ sort: sort specifies the order of results. When unspecified, results are sorted by
107+ creation time descending (newest first). Supported sort fields: createdAt.
103108
104109 extra_headers: Send extra headers
105110
@@ -116,6 +121,7 @@ def list(
116121 {
117122 "filter" : filter ,
118123 "pagination" : pagination ,
124+ "sort" : sort ,
119125 },
120126 event_list_params .EventListParams ,
121127 ),
@@ -235,6 +241,7 @@ def list(
235241 page_size : int | Omit = omit ,
236242 filter : event_list_params .Filter | Omit = omit ,
237243 pagination : event_list_params .Pagination | Omit = omit ,
244+ sort : Sort | Omit = omit ,
238245 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
239246 # The extra values given here take precedence over values defined on the client or passed to this method.
240247 extra_headers : Headers | None = None ,
@@ -281,7 +288,10 @@ def list(
281288 ```
282289
283290 Args:
284- pagination: pagination contains the pagination options for listing environments
291+ pagination: pagination contains the pagination options for listing audit logs
292+
293+ sort: sort specifies the order of results. When unspecified, results are sorted by
294+ creation time descending (newest first). Supported sort fields: createdAt.
285295
286296 extra_headers: Send extra headers
287297
@@ -298,6 +308,7 @@ def list(
298308 {
299309 "filter" : filter ,
300310 "pagination" : pagination ,
311+ "sort" : sort ,
301312 },
302313 event_list_params .EventListParams ,
303314 ),
0 commit comments