Skip to content

Commit

Permalink
Add missing organization membership webhook events to union. (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgd authored Sep 26, 2024
1 parent ae0c61d commit 5607733
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions workos/types/webhooks/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
from workos.types.user_management.magic_auth import MagicAuthCommon
from workos.types.user_management.password_reset import PasswordResetCommon

# README
# When adding a new webhook event type, ensure the new webhook class is
# added to the Webhook union type at the bottom of this file.


class AuthenticationEmailVerificationSucceededWebhook(
WebhookModel[AuthenticationEmailVerificationSucceededPayload,]
Expand Down Expand Up @@ -270,6 +274,9 @@ class UserUpdatedWebhook(WebhookModel[User]):
OrganizationUpdatedWebhook,
OrganizationDomainVerificationFailedWebhook,
OrganizationDomainVerifiedWebhook,
OrganizationMembershipCreatedWebhook,
OrganizationMembershipDeletedWebhook,
OrganizationMembershipUpdatedWebhook,
PasswordResetCreatedWebhook,
RoleCreatedWebhook,
RoleDeletedWebhook,
Expand Down

0 comments on commit 5607733

Please sign in to comment.