Skip to content

Commit 5607733

Browse files
authored
Add missing organization membership webhook events to union. (#366)
1 parent ae0c61d commit 5607733

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

workos/types/webhooks/webhook.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
from workos.types.user_management.magic_auth import MagicAuthCommon
4949
from workos.types.user_management.password_reset import PasswordResetCommon
5050

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

5256
class AuthenticationEmailVerificationSucceededWebhook(
5357
WebhookModel[AuthenticationEmailVerificationSucceededPayload,]
@@ -270,6 +274,9 @@ class UserUpdatedWebhook(WebhookModel[User]):
270274
OrganizationUpdatedWebhook,
271275
OrganizationDomainVerificationFailedWebhook,
272276
OrganizationDomainVerifiedWebhook,
277+
OrganizationMembershipCreatedWebhook,
278+
OrganizationMembershipDeletedWebhook,
279+
OrganizationMembershipUpdatedWebhook,
273280
PasswordResetCreatedWebhook,
274281
RoleCreatedWebhook,
275282
RoleDeletedWebhook,

0 commit comments

Comments
 (0)