Download packages/data-schemas/src/common/enum.ts from helloya20/chat: direct link, hf CLI and curl.
- Browser
- Download file 458 Bytes
-
https://huggingface.co/spaces/helloya20/chat/resolve/main/packages/data-schemas/src/common/enum.ts
- Command line
-
hf download hf://spaces/helloya20/chat/packages/data-schemas/src/common/enum.ts
-
curl -L -o enum.ts https://huggingface.co/spaces/helloya20/chat/resolve/main/packages/data-schemas/src/common/enum.ts
458 Bytes
| import { PermissionBits } from 'librechat-data-provider'; | |
| /** | |
| * Common role combinations | |
| */ | |
| export enum RoleBits { | |
| /** 0001 = 1 */ | |
| VIEWER = PermissionBits.VIEW, | |
| /** 0011 = 3 */ | |
| EDITOR = PermissionBits.VIEW | PermissionBits.EDIT, | |
| /** 0111 = 7 */ | |
| MANAGER = PermissionBits.VIEW | PermissionBits.EDIT | PermissionBits.DELETE, | |
| /** 1111 = 15 */ | |
| OWNER = PermissionBits.VIEW | PermissionBits.EDIT | PermissionBits.DELETE | PermissionBits.SHARE, | |
| } | |