Skip to content

Commit 93566b8

Browse files
fix: Add missing EventData fields and new error type (#917)
- Updates the auto-generated Pydantic models and TypedDicts based on the proposed OpenAPI specification changes. - Based on apify-docs PR [#2719](apify/apify-docs#2719).
1 parent d8af41b commit 93566b8

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

src/apify_client/_literals.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@
149149
'expired-conference-token',
150150
'failed-to-charge-user',
151151
'final-invoice-negative',
152+
'full-permission-actor-blocked-for-admin',
152153
'full-permission-actor-not-approved',
153154
'github-branch-empty',
154155
'github-issue-already-exists',

src/apify_client/_models.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class ActorDefinition(BaseModel):
206206
storages: Storages | None = None
207207
default_memory_mbytes: str | int | None = None
208208
"""
209-
Specifies the default amount of memory in megabytes to be used when the Actor is started. Can be an integer or a [dynamic memory expression](https://docs.apify.com/actors/development/actor-definition/dynamic-actor-memory).
209+
Specifies the default amount of memory in megabytes to be used when the Actor is started. Can be an integer or a [dynamic memory expression](https://docs.apify.com/platform/actors/development/actor-definition/dynamic-actor-memory).
210210
"""
211211
min_memory_mbytes: Annotated[int | None, Field(ge=128)] = None
212212
"""
@@ -852,7 +852,7 @@ class Dataset(BaseModel):
852852
),
853853
] = None
854854
"""
855-
Defines the schema of items in your dataset, the full specification can be found in [Apify docs](https://docs.apify.com/actors/development/actor-definition/dataset-schema)
855+
Defines the schema of items in your dataset, the full specification can be found in [Apify docs](https://docs.apify.com/platform/actors/development/actor-definition/dataset-schema)
856856
"""
857857
console_url: Annotated[AnyUrl, Field(examples=['https://console.apify.com/storage/datasets/27TmTznX9YPeAYhkC'])]
858858
items_public_url: Annotated[
@@ -1240,7 +1240,9 @@ class EventData(BaseModel):
12401240
alias_generator=to_camel,
12411241
)
12421242
actor_id: Annotated[str, Field(examples=['vvE7iMKuMc5qTHHsR'])]
1243-
actor_run_id: Annotated[str, Field(examples=['JgwXN9BdwxGcu9MMF'])]
1243+
actor_run_id: Annotated[str | None, Field(examples=['JgwXN9BdwxGcu9MMF'])] = None
1244+
actor_build_id: Annotated[str | None, Field(examples=['HG7ML7M8z78YcAPEB'])] = None
1245+
actor_task_id: Annotated[str | None, Field(examples=['zRLp8SDOZz2NyLg7K'])] = None
12441246

12451247

12461248
@docs_group('Models')
@@ -3586,7 +3588,7 @@ class UpdateLimitsRequest(BaseModel):
35863588
"""
35873589
data_retention_days: Annotated[int | None, Field(examples=[90])] = None
35883590
"""
3589-
Apify securely stores your ten most recent Actor runs indefinitely, ensuring they are always accessible. Unnamed storages and other Actor runs are automatically deleted after the retention period. If you're subscribed, you can change it to keep data for longer or to limit your usage. [Lear more](https://docs.apify.com/storage#data-retention).
3591+
Apify securely stores your ten most recent Actor runs indefinitely, ensuring they are always accessible. Unnamed storages and other Actor runs are automatically deleted after the retention period. If you're subscribed, you can change it to keep data for longer or to limit your usage. [Lear more](https://docs.apify.com/platform/storage/usage#data-retention).
35903592
35913593
"""
35923594

0 commit comments

Comments
 (0)