mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-22 19:30:15 +01:00
🔐 feat: Granular Role-based Permissions + Entra ID Group Discovery (#7804)
WIP: pre-granular-permissions commit
feat: Add category and support contact fields to Agent schema and UI components
Revert "feat: Add category and support contact fields to Agent schema and UI components"
This reverts commit c43a52b4c9.
Fix: Update import for renderHook in useAgentCategories.spec.tsx
fix: Update icon rendering in AgentCategoryDisplay tests to use empty spans
refactor: Improve category synchronization logic and clean up AgentConfig component
refactor: Remove unused UI flow translations from translation.json
feat: agent marketplace features
🔐 feat: Granular Role-based Permissions + Entra ID Group Discovery (#7804)
This commit is contained in:
parent
abc32e66ce
commit
76d75030b9
147 changed files with 17564 additions and 645 deletions
31
packages/data-schemas/src/schema/accessRole.ts
Normal file
31
packages/data-schemas/src/schema/accessRole.ts
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import { Schema } from 'mongoose';
|
||||
import type { IAccessRole } from '~/types';
|
||||
|
||||
const accessRoleSchema = new Schema<IAccessRole>(
|
||||
{
|
||||
accessRoleId: {
|
||||
type: String,
|
||||
required: true,
|
||||
index: true,
|
||||
unique: true,
|
||||
},
|
||||
name: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
description: String,
|
||||
resourceType: {
|
||||
type: String,
|
||||
enum: ['agent', 'project', 'file'],
|
||||
required: true,
|
||||
default: 'agent',
|
||||
},
|
||||
permBits: {
|
||||
type: Number,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
{ timestamps: true },
|
||||
);
|
||||
|
||||
export default accessRoleSchema;
|
||||
Loading…
Add table
Add a link
Reference in a new issue