Webhook union type missing org membership hooks
Closed this issue · 2 comments
gatesn commented
This union doesn't contain OrganizationMembership{Created,Updated,Deleted} so the library parses the body into an UntypedWebhook.
workos-python/workos/types/webhooks/webhook.py
Lines 240 to 281 in ae0c61d
Webhook = Annotated[ | |
Union[ | |
AuthenticationEmailVerificationSucceededWebhook, | |
AuthenticationMagicAuthFailedWebhook, | |
AuthenticationMagicAuthSucceededWebhook, | |
AuthenticationMfaSucceededWebhook, | |
AuthenticationOauthFailedWebhook, | |
AuthenticationOauthSucceededWebhook, | |
AuthenticationPasswordFailedWebhook, | |
AuthenticationPasswordSucceededWebhook, | |
AuthenticationSsoFailedWebhook, | |
AuthenticationSsoSucceededWebhook, | |
ConnectionActivatedWebhook, | |
ConnectionDeactivatedWebhook, | |
ConnectionDeletedWebhook, | |
DirectoryActivatedWebhook, | |
DirectoryDeletedWebhook, | |
DirectoryGroupCreatedWebhook, | |
DirectoryGroupDeletedWebhook, | |
DirectoryGroupUpdatedWebhook, | |
DirectoryUserCreatedWebhook, | |
DirectoryUserDeletedWebhook, | |
DirectoryUserUpdatedWebhook, | |
DirectoryUserAddedToGroupWebhook, | |
DirectoryUserRemovedFromGroupWebhook, | |
EmailVerificationCreatedWebhook, | |
InvitationCreatedWebhook, | |
MagicAuthCreatedWebhook, | |
OrganizationCreatedWebhook, | |
OrganizationDeletedWebhook, | |
OrganizationUpdatedWebhook, | |
OrganizationDomainVerificationFailedWebhook, | |
OrganizationDomainVerifiedWebhook, | |
PasswordResetCreatedWebhook, | |
RoleCreatedWebhook, | |
RoleDeletedWebhook, | |
RoleUpdatedWebhook, | |
SessionCreatedWebhook, | |
UserCreatedWebhook, | |
UserDeletedWebhook, | |
UserUpdatedWebhook, | |
], |
mattgd commented
This has been fixed in version 5.4.3. Thanks again!