Skip to content

Commit 60f58c2

Browse files
update generated models from apify-docs PR #2774
1 parent 5ad7c91 commit 60f58c2

2 files changed

Lines changed: 17 additions & 6 deletions

File tree

src/apify_client/_models.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2293,11 +2293,11 @@ class RequestBase(BaseModel):
22932293
populate_by_name=True,
22942294
alias_generator=to_camel,
22952295
)
2296-
unique_key: Annotated[str | None, Field(examples=['GET|60d83e70|e3b0c442|https://apify.com'])] = None
2296+
unique_key: Annotated[str, Field(examples=['GET|60d83e70|e3b0c442|https://apify.com'])]
22972297
"""
22982298
A unique key used for request de-duplication. Requests with the same unique key are considered identical.
22992299
"""
2300-
url: Annotated[str | None, Field(examples=['https://apify.com'])] = None
2300+
url: Annotated[str, Field(examples=['https://apify.com'])]
23012301
"""
23022302
The URL of the request.
23032303
"""
@@ -2701,6 +2701,17 @@ class RequestUserData(BaseModel):
27012701
)
27022702

27032703

2704+
@docs_group('Models')
2705+
class RequestWithoutId(RequestBase):
2706+
"""A request stored in the request queue, including its metadata and processing state, without the assigned ID."""
2707+
2708+
model_config = ConfigDict(
2709+
extra='allow',
2710+
populate_by_name=True,
2711+
alias_generator=to_camel,
2712+
)
2713+
2714+
27042715
@docs_group('Models')
27052716
class Run(BaseModel):
27062717
"""Represents an Actor run and its associated data."""

src/apify_client/_typeddicts.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
@docs_group('Typed dicts')
1111
class RequestBaseDict(TypedDict):
12-
unique_key: NotRequired[str]
12+
unique_key: str
1313
"""
1414
A unique key used for request de-duplication. Requests with the same unique key are considered identical.
1515
"""
16-
url: NotRequired[str]
16+
url: str
1717
"""
1818
The URL of the request.
1919
"""
@@ -51,11 +51,11 @@ class RequestBaseDict(TypedDict):
5151

5252
@docs_group('Typed dicts')
5353
class RequestBaseCamelDict(TypedDict):
54-
uniqueKey: NotRequired[str]
54+
uniqueKey: str
5555
"""
5656
A unique key used for request de-duplication. Requests with the same unique key are considered identical.
5757
"""
58-
url: NotRequired[str]
58+
url: str
5959
"""
6060
The URL of the request.
6161
"""

0 commit comments

Comments
 (0)