-
Notifications
You must be signed in to change notification settings - Fork 402
feat(backend): Add user_id field to organizationInvitation.accepted webhook events
#6887
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| '@clerk/backend': minor | ||
| --- | ||
|
|
||
| Add `user_id` field to `organizationInvitation.accepted` webhook events. | ||
|
|
||
| Creates a new `OrganizationInvitationAcceptedJSON` interface that extends `OrganizationInvitationJSON` with a required `user_id` field, and updates the webhook type system to use this interface specifically for `organizationInvitation`.accepted events. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ import type { | |
| DeletedObjectJSON, | ||
| EmailJSON, | ||
| OrganizationDomainJSON, | ||
| OrganizationInvitationAcceptedJSON, | ||
| OrganizationInvitationJSON, | ||
| OrganizationJSON, | ||
| OrganizationMembershipJSON, | ||
|
|
@@ -52,10 +53,15 @@ export type OrganizationMembershipWebhookEvent = Webhook< | |
| >; | ||
|
|
||
| export type OrganizationInvitationWebhookEvent = Webhook< | ||
| 'organizationInvitation.accepted' | 'organizationInvitation.created' | 'organizationInvitation.revoked', | ||
| 'organizationInvitation.created' | 'organizationInvitation.revoked', | ||
| OrganizationInvitationJSON | ||
| >; | ||
|
|
||
| export type OrganizationInvitationAcceptedWebhookEvent = Webhook< | ||
| 'organizationInvitation.accepted', | ||
| OrganizationInvitationAcceptedJSON | ||
| >; | ||
|
Comment on lines
+60
to
+63
|
||
|
|
||
| export type RoleWebhookEvent = Webhook<'role.created' | 'role.updated' | 'role.deleted', RoleJSON>; | ||
|
|
||
| export type PermissionWebhookEvent = Webhook< | ||
|
|
@@ -98,6 +104,7 @@ export type WebhookEvent = | |
| | OrganizationDomainWebhookEvent | ||
| | OrganizationMembershipWebhookEvent | ||
| | OrganizationInvitationWebhookEvent | ||
| | OrganizationInvitationAcceptedWebhookEvent | ||
| | RoleWebhookEvent | ||
| | PermissionWebhookEvent | ||
| | WaitlistEntryWebhookEvent | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per the Coderabbit nitpick comment: