File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/apify_client/clients/resource_clients Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
- from typing import TYPE_CHECKING , Any
3
+ from typing import TYPE_CHECKING , Any , Literal
4
4
5
5
from apify_shared .utils import filter_out_none_values_recursively , ignore_docs
6
6
@@ -26,7 +26,7 @@ def list(
26
26
limit : int | None = None ,
27
27
offset : int | None = None ,
28
28
desc : bool | None = None ,
29
- sort_by : str | None = None ,
29
+ sort_by : Literal [ "createdAt" , "lastRunStartedAt" ] | None = "createdAt" ,
30
30
) -> ListPage [dict ]:
31
31
"""List the Actors the user has created or used.
32
32
@@ -37,6 +37,7 @@ def list(
37
37
limit: How many Actors to list.
38
38
offset: What Actor to include as first when retrieving the list.
39
39
desc: Whether to sort the Actors in descending order based on their creation date.
40
+ sort_by: Field to sort the results by. Allowed values are "createdAt" and "lastRunStartedAt".
40
41
41
42
Returns:
42
43
The list of available Actors matching the specified filters.
You can’t perform that action at this time.
0 commit comments