Skip to content

Commit 4de7379

Browse files
fix: Add missing fields to the Actor definition model (#1165)
1 parent 6f0a00f commit 4de7379

2 files changed

Lines changed: 49 additions & 1 deletion

File tree

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ keep_model_order = true
251251
# workflow committing nothing unless the models changed. A local regeneration that only moves this line is that
252252
# same case - drop it rather than committing it alone.
253253
[tool.apify.openapi-spec]
254-
version = "v2-2026-10-21T115842Z"
254+
version = "v2-2026-10-26T112451Z"
255255

256256
[tool.uv]
257257
# Minimal defense against supply-chain atatcks.

‎src/apify_client/_models.py‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,14 @@ class ActorDefinition(BaseModel):
128128
"""
129129
The name of the Actor.
130130
"""
131+
title: str | None = None
132+
"""
133+
The human-readable display title of the Actor, shown in Apify Console and Apify Store.
134+
"""
135+
description: str | None = None
136+
"""
137+
The description of the Actor.
138+
"""
131139
version: Annotated[str | None, Field(pattern='^[0-9]+(\\.[0-9]+)+$')] = None
132140
"""
133141
The version of the Actor, typically a dot-separated sequence of numbers (e.g., `0.1`, `1.0`, or `0.0.1`).
@@ -136,6 +144,7 @@ class ActorDefinition(BaseModel):
136144
"""
137145
The tag name to be applied to a successful build of the Actor. Defaults to 'latest' if not specified.
138146
"""
147+
meta: ActorDefinitionMeta | None = None
139148
environment_variables: dict[str, str] | None = None
140149
"""
141150
A map of environment variables to be used during local development and deployment.
@@ -156,6 +165,10 @@ class ActorDefinition(BaseModel):
156165
"""
157166
The input schema object, the full specification can be found in [Apify docs](https://docs.apify.com/platform/actors/development/actor-definition/input-schema)
158167
"""
168+
output: dict[str, Any] | None = None
169+
"""
170+
The output schema object, the full specification can be found in [Apify docs](https://docs.apify.com/platform/actors/development/actor-definition/output-schema)
171+
"""
159172
changelog: str | None = None
160173
"""
161174
The path to the CHANGELOG file displayed in the Actor's information tab.
@@ -177,6 +190,33 @@ class ActorDefinition(BaseModel):
177190
"""
178191
Specifies whether Standby mode is enabled for the Actor.
179192
"""
193+
web_server_schema: dict[str, Any] | None = None
194+
"""
195+
The OpenAPI v3 specification of the web server running in the Actor, the full specification can be found in [Apify docs](https://docs.apify.com/platform/actors/development/actor-definition/web-server-schema)
196+
"""
197+
web_server_mcp_path: str | None = None
198+
"""
199+
The HTTP path where the Actor's web server exposes its MCP (Model Context Protocol) server, for example `/mcp`.
200+
"""
201+
202+
203+
@docs_group('Models')
204+
class ActorDefinitionMeta(BaseModel):
205+
"""Additional information about the Actor."""
206+
207+
model_config = ConfigDict(
208+
extra='allow',
209+
populate_by_name=True,
210+
alias_generator=to_camel,
211+
)
212+
template_id: str | None = None
213+
"""
214+
The ID of the template from which the Actor was created.
215+
"""
216+
generated_by: str | None = None
217+
"""
218+
The tool or model that generated the Actor.
219+
"""
180220

181221

182222
@docs_group('Models')
@@ -3367,6 +3407,14 @@ class Storages(BaseModel):
33673407
"""
33683408
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)
33693409
"""
3410+
datasets: dict[str, dict[str, Any]] | None = None
3411+
"""
3412+
Maps dataset aliases to the schemas of the Actor's datasets, the full specification can be found in [Apify docs](https://docs.apify.com/platform/storage/dataset-schema/multiple-datasets)
3413+
"""
3414+
key_value_store: dict[str, Any] | None = None
3415+
"""
3416+
Defines the schema of the Actor's default key-value store, the full specification can be found in [Apify docs](https://docs.apify.com/platform/storage/key-value-store-schema)
3417+
"""
33703418

33713419

33723420
@docs_group('Models')

0 commit comments

Comments
 (0)