Issue:
feat(users): Add profile level custom role

Currently only merchant level custom role is allowed with role scope as Merchant and organization 

The requirement is to  add  profile level custom role at Organization , Merchant and Profile scope

Resolution:
<think>
PR Context:
- Title: feat(users): custom role at profile read
- Merged: 2025-02-05T14:28:03Z
- Files changed: 19 files
- Commits: 30 commits

Implementation approach:
## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD

## Description
<!-- Describe your changes in detail -->
This pr adds the functionality to read custom role at profile level

### Additional Changes

- [x] This PR modifies the API contract
- [x] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment 
</think>

To implement this, you'll need to modify:


**Detailed Implementation:**


**Commit 1:** feat(users): custom role at profile read (#6875)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyp
Files to modify:


**crates/api_models/src/user_role/role.rs**
  Modify existing code

**crates/common_enums/src/enums.rs**
  Add:
    - function: private::from

**crates/diesel_models/src/query/role.rs**
  Remove:
    - function: pub::list_roles
  Add:
    - function: pub::generic_list_roles_by_entity_type

**crates/diesel_models/src/role.rs**
  Add:
    - enum: pub::ListRolesByEntityPayload

**crates/diesel_models/src/schema.rs**
  Modify existing code

**crates/diesel_models/src/schema_v2.rs**
  Modify existing code

**crates/router/src/core/user.rs**
  Modify existing code

**crates/router/src/core/user_role.rs**
  Modify existing code

**crates/router/src/core/user_role/role.rs**
  Modify existing code

**crates/router/src/db/kafka_store.rs**
  Remove:
    - function: private::list_all_roles
  Add:
    - function: private::generic_list_roles_by_entity_type

**crates/router/src/db/role.rs**
  Modify existing code

**crates/router/src/services/authorization/roles.rs**
  Modify existing code

**crates/router/src/utils/user_role.rs**
  Modify existing code

**Commit 2:** feat(users): custom role at profile read (#6875)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyp
Files to modify:


**crates/api_models/src/user_role/role.rs**
  Modify existing code

**crates/common_enums/src/enums.rs**
  Add:
    - function: private::from

**crates/diesel_models/src/query/role.rs**
  Remove:
    - function: pub::list_roles
  Add:
    - function: pub::generic_list_roles_by_entity_type

**crates/diesel_models/src/role.rs**
  Add:
    - enum: pub::ListRolesByEntityPayload

**crates/diesel_models/src/schema.rs**
  Modify existing code

**crates/diesel_models/src/schema_v2.rs**
  Modify existing code

**crates/router/src/core/user.rs**
  Modify existing code

**crates/router/src/core/user_role.rs**
  Modify existing code

**crates/router/src/core/user_role/role.rs**
  Modify existing code

**crates/router/src/db/kafka_store.rs**
  Remove:
    - function: private::list_all_roles
  Add:
    - function: private::generic_list_roles_by_entity_type

**crates/router/src/db/role.rs**
  Modify existing code

**crates/router/src/services/authorization/roles.rs**
  Modify existing code

**crates/router/src/utils/user_role.rs**
  Modify existing code