mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-13 14:08:51 +01:00
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)
45 lines
1.6 KiB
TypeScript
45 lines
1.6 KiB
TypeScript
import { createUserMethods, type UserMethods } from './user';
|
|
import { createSessionMethods, type SessionMethods } from './session';
|
|
import { createTokenMethods, type TokenMethods } from './token';
|
|
import { createRoleMethods, type RoleMethods } from './role';
|
|
/* Memories */
|
|
import { createMemoryMethods, type MemoryMethods } from './memory';
|
|
/* Permissions */
|
|
import { createAccessRoleMethods, type AccessRoleMethods } from './accessRole';
|
|
import { createUserGroupMethods, type UserGroupMethods } from './userGroup';
|
|
import { createAclEntryMethods, type AclEntryMethods } from './aclEntry';
|
|
import { createGroupMethods, type GroupMethods } from './group';
|
|
import { createShareMethods, type ShareMethods } from './share';
|
|
import { createPluginAuthMethods, type PluginAuthMethods } from './pluginAuth';
|
|
|
|
/**
|
|
* Creates all database methods for all collections
|
|
*/
|
|
export function createMethods(mongoose: typeof import('mongoose')) {
|
|
return {
|
|
...createUserMethods(mongoose),
|
|
...createSessionMethods(mongoose),
|
|
...createTokenMethods(mongoose),
|
|
...createRoleMethods(mongoose),
|
|
...createMemoryMethods(mongoose),
|
|
...createAccessRoleMethods(mongoose),
|
|
...createUserGroupMethods(mongoose),
|
|
...createAclEntryMethods(mongoose),
|
|
...createGroupMethods(mongoose),
|
|
...createShareMethods(mongoose),
|
|
...createPluginAuthMethods(mongoose),
|
|
};
|
|
}
|
|
|
|
export type { MemoryMethods, ShareMethods, TokenMethods, PluginAuthMethods };
|
|
export type AllMethods = UserMethods &
|
|
SessionMethods &
|
|
TokenMethods &
|
|
RoleMethods &
|
|
MemoryMethods &
|
|
AccessRoleMethods &
|
|
UserGroupMethods &
|
|
AclEntryMethods &
|
|
GroupMethods &
|
|
ShareMethods &
|
|
PluginAuthMethods;
|