mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-08 18:44:22 +01:00
chore: add missing default role schema values for people picker perms, cleanup typing
This commit is contained in:
parent
82047d9416
commit
02976bc23d
11 changed files with 47 additions and 69 deletions
|
|
@ -2,13 +2,13 @@ import type { Document, Types } from 'mongoose';
|
|||
import { PrincipalType, PrincipalModel, ResourceType } from 'librechat-data-provider';
|
||||
|
||||
export type AclEntry = {
|
||||
/** The type of principal ('user', 'group', 'public') */
|
||||
/** The type of principal (PrincipalType.USER, PrincipalType.GROUP, PrincipalType.PUBLIC) */
|
||||
principalType: PrincipalType;
|
||||
/** The ID of the principal (null for 'public', string for 'role') */
|
||||
/** The ID of the principal (null for PrincipalType.PUBLIC, string for PrincipalType.ROLE) */
|
||||
principalId?: Types.ObjectId | string;
|
||||
/** The model name for the principal ('User' or 'Group') */
|
||||
/** The model name for the principal (`PrincipalModel`) */
|
||||
principalModel?: PrincipalModel;
|
||||
/** The type of resource ('agent', 'project', 'file', 'promptGroup') */
|
||||
/** The type of resource (`ResourceType`) */
|
||||
resourceType: ResourceType;
|
||||
/** The ID of the resource */
|
||||
resourceId: Types.ObjectId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue