* feat(core): add suctom scopes.updated hook events
add scopes.updated hook event to role creation api
* chore(core): add dev feature guard
add dev feature gurad
* feat(core): fetch scopes details and return to the hook
fetch scopes details and return to the hook
* refactor(core): mark deprecated body of roles/:id/scopes api
mark deprecated body of roles/:id/scopes api
* fix(test): fix unit test
fix unit test
* feat(core): trigger user data hook event on interaction api call
trigger user data hook event on interaction api call
* chore(core): refine comments
refine comments
* fix(core): fix the interactionHookMiddleware
fix the interactionHookMiddleware
* test(core): add integration tests
add integration tests for interaction hooks
* chore(test): remove legacy test
remove legacy test
* feat(schemas): define data hook events
define data hook events
* fix(schemas,core): fix the type error
fix the type error
* fix(core): fix unit test
fix unit test
* feat(test): add integration tests for DataHooks
add integration tests for DataHooks
* fix(test): fix ut of management api hook middleware
fix ut of the management api hook middleware
* refactor(test,core,schemas): refactor some DataHook definiations
refactor some DataHook definitations
* chore(test): remove upper scope describe wrap
remove upper scope describe wrap
* fix(test): fix tests
fix tests
* refactor(schemas): rename the info.update events
rename the info.update events
* refactor(schemas): rename
rename
* refactor(core,schemas): refactor DataHook code
refactor DataHook code to address some code review comments
* fix(test): fix ut
fix ut
* fix(schemas): update DataHookEventPayload type
update DataHookEventPayload type
* chore(schemas): update comments
update comments
* feat: init management api hook middleware function
* refactor: fix type issues
* feat(core): implement auto triggered management api hooks
implement auto triggered managment api hooks
* refactor(console,core,schemas): rename the managementHook to dataHook
rename the managementHooke to dataHook and redefine the types
* feat(core): add dev feature guard
add dev feature guard
* chore: update changeset
update changeset
* refactor(core,console,schemas,shared): update the webhook logics
update the webhook logics. Address some PR review comments
* fix(test): fix integration tests
fix integration tests
* fix(test): remove legacy code
remove legacy code
* refactor(core,schemas): refactor the hook library code
refactor the webhooks library code. address some comments
* fix(core): address rebase issue
update console log using getConsoleLogFromContext
* fix(core): fix ut
fix ut
* fix(core): refactor data webhook code
refactor data webhook codes
* refactor(core): clean up some management api webhook code
clean up some management api webhook code
---------
Co-authored-by: simeng-li <simeng@silverhand.io>