From e576ff3f9a3922e828319633c4a85c512a3ea223 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 10 Mar 2025 17:00:06 +0000 Subject: [PATCH] chore(internal): codegen related update --- src/finch/types/webhook_event.py | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/finch/types/webhook_event.py b/src/finch/types/webhook_event.py index 17bb1d4f..d0dc5702 100644 --- a/src/finch/types/webhook_event.py +++ b/src/finch/types/webhook_event.py @@ -1,8 +1,9 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import Union -from typing_extensions import TypeAlias +from typing_extensions import Annotated, TypeAlias +from .._utils import PropertyInfo from .company_event import CompanyEvent from .payment_event import PaymentEvent from .directory_event import DirectoryEvent @@ -14,13 +15,16 @@ __all__ = ["WebhookEvent"] -WebhookEvent: TypeAlias = Union[ - AccountUpdateEvent, - JobCompletionEvent, - CompanyEvent, - DirectoryEvent, - EmploymentEvent, - IndividualEvent, - PaymentEvent, - PayStatementEvent, +WebhookEvent: TypeAlias = Annotated[ + Union[ + AccountUpdateEvent, + JobCompletionEvent, + CompanyEvent, + DirectoryEvent, + EmploymentEvent, + IndividualEvent, + PaymentEvent, + PayStatementEvent, + ], + PropertyInfo(discriminator="event_type"), ]