Skip to content

Commit 1ffccaf

Browse files
chore(internal): codegen related update (#615)
1 parent 6dd5f30 commit 1ffccaf

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

src/finch/types/webhook_event.py

+14-10
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import Union
4-
from typing_extensions import TypeAlias
4+
from typing_extensions import Annotated, TypeAlias
55

6+
from .._utils import PropertyInfo
67
from .company_event import CompanyEvent
78
from .payment_event import PaymentEvent
89
from .directory_event import DirectoryEvent
@@ -14,13 +15,16 @@
1415

1516
__all__ = ["WebhookEvent"]
1617

17-
WebhookEvent: TypeAlias = Union[
18-
AccountUpdateEvent,
19-
JobCompletionEvent,
20-
CompanyEvent,
21-
DirectoryEvent,
22-
EmploymentEvent,
23-
IndividualEvent,
24-
PaymentEvent,
25-
PayStatementEvent,
18+
WebhookEvent: TypeAlias = Annotated[
19+
Union[
20+
AccountUpdateEvent,
21+
JobCompletionEvent,
22+
CompanyEvent,
23+
DirectoryEvent,
24+
EmploymentEvent,
25+
IndividualEvent,
26+
PaymentEvent,
27+
PayStatementEvent,
28+
],
29+
PropertyInfo(discriminator="event_type"),
2630
]

0 commit comments

Comments
 (0)