-
-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(console,core): remove DataHook devFeature guard (#5898)
* feat(console,core): remove DataHook devFeature guard remove DataHook devFeature guard * chore: add changeset add changeset * chore: update changesets update changesets
- Loading branch information
Showing
9 changed files
with
104 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
--- | ||
"@logto/console": minor | ||
"@logto/core": minor | ||
"@logto/schemas": minor | ||
--- | ||
|
||
add new webhook events | ||
|
||
We introduce a new event type `DataHook` to unlock a series of events that can be triggered by data updates (mostly Management API): | ||
|
||
- User.Created | ||
- User.Deleted | ||
- User.Data.Updated | ||
- User.SuspensionStatus.Updated | ||
- Role.Created | ||
- Role.Deleted | ||
- Role.Data.Updated | ||
- Role.Scopes.Updated | ||
- Scope.Created | ||
- Scope.Deleted | ||
- Scope.Data.Updated | ||
- Organization.Created | ||
- Organization.Deleted | ||
- Organization.Data.Updated | ||
- Organization.Membership.Updated | ||
- OrganizationRole.Created | ||
- OrganizationRole.Deleted | ||
- OrganizationRole.Data.Updated | ||
- OrganizationRole.Scopes.Updated | ||
- OrganizationScope.Created | ||
- OrganizationScope.Deleted | ||
- OrganizationScope.Data.Updated | ||
|
||
DataHook events are triggered when the data associated with the event is updated via management API request or user interaction actions. | ||
|
||
### Management API triggered events | ||
|
||
| API endpoint | Event | | ||
| ---------------------------------------------------------- | ----------------------------------------------------------- | | ||
| POST /users | User.Created | | ||
| DELETE /users/:userId | User.Deleted | | ||
| PATCH /users/:userId | User.Data.Updated | | ||
| PATCH /users/:userId/custom-data | User.Data.Updated | | ||
| PATCH /users/:userId/profile | User.Data.Updated | | ||
| PATCH /users/:userId/password | User.Data.Updated | | ||
| PATCH /users/:userId/is-suspended | User.SuspensionStatus.Updated | | ||
| POST /roles | Role.Created, (Role.Scopes.Update) | | ||
| DELETE /roles/:id | Role.Deleted | | ||
| PATCH /roles/:id | Role.Data.Updated | | ||
| POST /roles/:id/scopes | Role.Scopes.Updated | | ||
| DELETE /roles/:id/scopes/:scopeId | Role.Scopes.Updated | | ||
| POST /resources/:resourceId/scopes | Scope.Created | | ||
| DELETE /resources/:resourceId/scopes/:scopeId | Scope.Deleted | | ||
| PATCH /resources/:resourceId/scopes/:scopeId | Scope.Data.Updated | | ||
| POST /organizations | Organization.Created | | ||
| DELETE /organizations/:id | Organization.Deleted | | ||
| PATCH /organizations/:id | Organization.Data.Updated | | ||
| PUT /organizations/:id/users | Organization.Membership.Updated | | ||
| POST /organizations/:id/users | Organization.Membership.Updated | | ||
| DELETE /organizations/:id/users/:userId | Organization.Membership.Updated | | ||
| POST /organization-roles | OrganizationRole.Created, (OrganizationRole.Scopes.Updated) | | ||
| DELETE /organization-roles/:id | OrganizationRole.Deleted | | ||
| PATCH /organization-roles/:id | OrganizationRole.Data.Updated | | ||
| POST /organization-scopes | OrganizationScope.Created | | ||
| DELETE /organization-scopes/:id | OrganizationScope.Deleted | | ||
| PATCH /organization-scopes/:id | OrganizationScope.Data.Updated | | ||
| PUT /organization-roles/:id/scopes | OrganizationRole.Scopes.Updated | | ||
| POST /organization-roles/:id/scopes | OrganizationRole.Scopes.Updated | | ||
| DELETE /organization-roles/:id/scopes/:organizationScopeId | OrganizationRole.Scopes.Updated | | ||
|
||
### User interaction triggered events | ||
|
||
| User interaction action | Event | | ||
| ------------------------ | ----------------- | | ||
| User email/phone linking | User.Data.Updated | | ||
| User MFAs linking | User.Data.Updated | | ||
| User social/SSO linking | User.Data.Updated | | ||
| User password reset | User.Data.Updated | | ||
| User registration | User.Created | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters