Skip to content

Commit cccb2ff

Browse files
committed
Fix get list of Actors
1 parent ff99d4b commit cccb2ff

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

‎src/apify_client/_models.py‎

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: openapi.json
3-
# timestamp: 2026-01-14T10:21:33+00:00
3+
# timestamp: 2026-01-14T11:50:36+00:00
44

55
from __future__ import annotations
66

@@ -18,12 +18,27 @@ class PaginationResponse(BaseModel):
1818
count: Annotated[float, Field(examples=[2])]
1919

2020

21+
class ActorStats(BaseModel):
22+
total_builds: Annotated[float, Field(alias='totalBuilds', examples=[9])]
23+
total_runs: Annotated[float, Field(alias='totalRuns', examples=[16])]
24+
total_users: Annotated[float, Field(alias='totalUsers', examples=[6])]
25+
total_users7_days: Annotated[float, Field(alias='totalUsers7Days', examples=[2])]
26+
total_users30_days: Annotated[float, Field(alias='totalUsers30Days', examples=[6])]
27+
total_users90_days: Annotated[float, Field(alias='totalUsers90Days', examples=[6])]
28+
total_metamorphs: Annotated[float | None, Field(alias='totalMetamorphs', examples=[2])] = None
29+
last_run_started_at: Annotated[
30+
str | None, Field(alias='lastRunStartedAt', examples=['2019-07-08T14:01:05.546Z'])
31+
] = None
32+
33+
2134
class ActorShort(BaseModel):
2235
id: Annotated[str, Field(examples=['br9CKmk457'])]
2336
created_at: Annotated[str, Field(alias='createdAt', examples=['2019-10-29T07:34:24.202Z'])]
2437
modified_at: Annotated[str, Field(alias='modifiedAt', examples=['2019-10-30T07:34:24.202Z'])]
2538
name: Annotated[str, Field(examples=['MyAct'])]
2639
username: Annotated[str, Field(examples=['janedoe'])]
40+
title: Annotated[str | None, Field(examples=['Hello World Example'])] = None
41+
stats: ActorStats | None = None
2742

2843

2944
class ListOfActors(PaginationResponse):
@@ -190,19 +205,6 @@ class ActorPermissionLevel(Enum):
190205
FULL_PERMISSIONS = 'FULL_PERMISSIONS'
191206

192207

193-
class ActorStats(BaseModel):
194-
total_builds: Annotated[float, Field(alias='totalBuilds', examples=[9])]
195-
total_runs: Annotated[float, Field(alias='totalRuns', examples=[16])]
196-
total_users: Annotated[float, Field(alias='totalUsers', examples=[6])]
197-
total_users7_days: Annotated[float, Field(alias='totalUsers7Days', examples=[2])]
198-
total_users30_days: Annotated[float, Field(alias='totalUsers30Days', examples=[6])]
199-
total_users90_days: Annotated[float, Field(alias='totalUsers90Days', examples=[6])]
200-
total_metamorphs: Annotated[float | None, Field(alias='totalMetamorphs', examples=[2])] = None
201-
last_run_started_at: Annotated[
202-
str | None, Field(alias='lastRunStartedAt', examples=['2019-07-08T14:01:05.546Z'])
203-
] = None
204-
205-
206208
class ExampleRunInput(BaseModel):
207209
body: Annotated[str, Field(examples=[{'helloWorld': 123}])]
208210
content_type: Annotated[str, Field(alias='contentType', examples=['application/json; charset=utf-8'])]

0 commit comments

Comments
 (0)