Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/apify_client/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3766,6 +3766,22 @@ class WebhookRepresentation(BaseModel):
"""
Optional template for the HTTP headers sent by the webhook.
"""
should_interpolate_strings: Annotated[bool | None, Field(alias='shouldInterpolateStrings', examples=[False])] = None
"""
Flag to also interpolate `{{...}}` variables inside string values of the payload and headers templates.
"""
idempotency_key: Annotated[str | None, Field(alias='idempotencyKey', examples=['fdSJmdP3nfs7sfk3y'])] = None
"""
Key that prevents creating duplicate webhooks, e.g. when the run-starting request is retried.
"""
ignore_ssl_errors: Annotated[bool | None, Field(alias='ignoreSslErrors', examples=[False])] = None
"""
Flag to ignore SSL errors when the webhook sends the request.
"""
do_not_retry: Annotated[bool | None, Field(alias='doNotRetry', examples=[False])] = None
"""
Flag to skip retrying the webhook request on failure.
"""


@docs_group('Models')
Expand Down
32 changes: 32 additions & 0 deletions src/apify_client/_typeddicts.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,22 @@ class WebhookRepresentationDict(TypedDict):
"""
Optional template for the HTTP headers sent by the webhook.
"""
should_interpolate_strings: NotRequired[bool | None]
"""
Flag to also interpolate `{{...}}` variables inside string values of the payload and headers templates.
"""
idempotency_key: NotRequired[str | None]
"""
Key that prevents creating duplicate webhooks, e.g. when the run-starting request is retried.
"""
ignore_ssl_errors: NotRequired[bool | None]
"""
Flag to ignore SSL errors when the webhook sends the request.
"""
do_not_retry: NotRequired[bool | None]
"""
Flag to skip retrying the webhook request on failure.
"""


@docs_group('Typed dicts')
Expand Down Expand Up @@ -374,3 +390,19 @@ class WebhookRepresentationCamelDict(TypedDict):
"""
Optional template for the HTTP headers sent by the webhook.
"""
shouldInterpolateStrings: NotRequired[bool | None]
"""
Flag to also interpolate `{{...}}` variables inside string values of the payload and headers templates.
"""
idempotencyKey: NotRequired[str | None]
"""
Key that prevents creating duplicate webhooks, e.g. when the run-starting request is retried.
"""
ignoreSslErrors: NotRequired[bool | None]
"""
Flag to ignore SSL errors when the webhook sends the request.
"""
doNotRetry: NotRequired[bool | None]
"""
Flag to skip retrying the webhook request on failure.
"""
Loading