dify/web/models/permission.ts
YungLe 86497045c9
feat: per-credential visibility control for plugin credentials (#35468)
Co-authored-by: Yang <yang@Yangs-MacBook-Pro.local>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-01 05:56:18 +00:00

12 lines
357 B
TypeScript

/**
* Shared permission levels for resources (datasets, credentials, etc.).
* Mirrors PermissionEnum from api/models/enums.py.
*/
export const PermissionLevel = {
onlyMe: 'only_me',
allTeamMembers: 'all_team_members',
partialMembers: 'partial_members',
} as const
export type PermissionLevel = typeof PermissionLevel[keyof typeof PermissionLevel]