mirror of
https://github.com/langgenius/dify.git
synced 2026-10-16 15:35:32 +08:00
Remove service/access-control/use-{member,workspace}-roles.ts and
useMembers. Consumers use consoleQuery directly; the role and member
invalidations those hooks owned now live in query-policies.
Backend contract fixes this depended on:
- RBAC role list/create/update/copy and role-member list now document
their query parameters and request bodies, and the member list and
member role endpoints document `language`; previously the generated
client could not send them.
- Member `roles` is typed as `{id, name}` summaries, which is what the
endpoint returns, instead of a free-form map. The web previously typed
them as full roles and as ISO timestamps; both were wrong.
A shared role-list options factory normalizes the loosely typed role DTOs
into the UI role type. test/console/operation-hooks lets specs answer
console operations by path while other queries stay real.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>