fix: include all supported fields for ad-hoc webhooks (#855)
This PR updates the auto-generated Pydantic models and TypedDicts based on OpenAPI specification changes in [apify-docs PR #2640](https://github.com/apify/apify-docs/pull/2640). On top of the regenerated models, it fixes a related bug: ad-hoc webhooks passed to `start()` / `call()` silently dropped `idempotency_key`, `ignore_ssl_errors` and `do_not_retry`. `WebhookRepresentation` declared only the four templating fields, and `encode_webhooks_to_base64` keeps only declared fields, so these three never reached the platform. The platform accepts and honors all three for ad-hoc webhooks (verified in apify-core: the run-start handler feeds them into the same webhook-creation path as the create-webhook endpoint, including the `idempotencyKey` dedup). What changed: - The regenerated models add the three fields to `WebhookRepresentation` and both webhook-representation typed dicts (snake_case + camelCase). - Reworks the `WebhookCreate` / dict projection in `encode_webhooks_to_base64` to filter by the fields `WebhookRepresentation` declares, instead of hand-listing them. New ad-hoc fields now flow through automatically, so this class of silent-drop bug cannot recur. Unblocks apify/apify-sdk-python#963, which forwards these fields from the SDK `Webhook` dataclass. --------- Co-authored-by: Vlada Dusek <v.dusek96@gmail.com>
A
Apify Service Account committed
6eb267dbe620cb9d864c2390a84dfeb851cecc7c
Parent: 68d74c1
Committed by GitHub <noreply@github.com>
on 6/16/2026, 6:59:00 AM