diff --git a/pyproject.toml b/pyproject.toml index 01e15bc8..438acf8d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -257,7 +257,7 @@ keep_model_order = true # workflow committing nothing unless the models changed. A local regeneration that only moves this line is that # same case - drop it rather than committing it alone. [tool.apify.openapi-spec] -version = "v2-2026-08-14T072928Z" +version = "v2-2026-08-24T085852Z" [tool.uv] # Minimal defense against supply-chain atatcks. diff --git a/src/apify_client/_models.py b/src/apify_client/_models.py index 7e39f283..33c0ce63 100644 --- a/src/apify_client/_models.py +++ b/src/apify_client/_models.py @@ -2430,11 +2430,11 @@ class RequestBase(BaseModel): populate_by_name=True, alias_generator=to_camel, ) - unique_key: Annotated[str | None, Field(examples=['GET|60d83e70|e3b0c442|https://apify.com'])] = None + unique_key: Annotated[str, Field(examples=['GET|60d83e70|e3b0c442|https://apify.com'])] """ A unique key used for request de-duplication. Requests with the same unique key are considered identical. """ - url: Annotated[str | None, Field(examples=['https://apify.com'])] = None + url: Annotated[str, Field(examples=['https://apify.com'])] """ The URL of the request. """ @@ -2838,6 +2838,17 @@ class RequestUserData(BaseModel): ) +@docs_group('Models') +class RequestWithoutId(RequestBase): + """A request stored in the request queue, including its metadata and processing state, without the assigned ID.""" + + model_config = ConfigDict( + extra='allow', + populate_by_name=True, + alias_generator=to_camel, + ) + + @docs_group('Models') class Run(BaseModel): """Represents an Actor run and its associated data.""" diff --git a/src/apify_client/_typeddicts.py b/src/apify_client/_typeddicts.py index adbad385..ec967615 100644 --- a/src/apify_client/_typeddicts.py +++ b/src/apify_client/_typeddicts.py @@ -9,11 +9,11 @@ @docs_group('Typed dicts') class RequestBaseDict(TypedDict): - unique_key: NotRequired[str] + unique_key: str """ A unique key used for request de-duplication. Requests with the same unique key are considered identical. """ - url: NotRequired[str] + url: str """ The URL of the request. """ @@ -51,11 +51,11 @@ class RequestBaseDict(TypedDict): @docs_group('Typed dicts') class RequestBaseCamelDict(TypedDict): - uniqueKey: NotRequired[str] + uniqueKey: str """ A unique key used for request de-duplication. Requests with the same unique key are considered identical. """ - url: NotRequired[str] + url: str """ The URL of the request. """