mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-22 18:34:08 +01:00
🔐 feat: Group schema support, refine user schema security, and improve types (#9070)
* feat: Add groupSchema and update userSchema to hide sensitive fields * chore: Bump version of @librechat/data-schemas to 0.0.16
This commit is contained in:
parent
d711fc7852
commit
c78fd0fc83
5 changed files with 11 additions and 10 deletions
|
|
@ -23,3 +23,4 @@ export { default as toolCallSchema } from './toolCall';
|
|||
export { default as transactionSchema } from './transaction';
|
||||
export { default as userSchema } from './user';
|
||||
export { default as memorySchema } from './memory';
|
||||
export { default as groupSchema } from './group';
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ const userSchema = new Schema<IUser>(
|
|||
trim: true,
|
||||
minlength: 8,
|
||||
maxlength: 128,
|
||||
select: false,
|
||||
},
|
||||
avatar: {
|
||||
type: String,
|
||||
|
|
@ -114,6 +115,7 @@ const userSchema = new Schema<IUser>(
|
|||
},
|
||||
totpSecret: {
|
||||
type: String,
|
||||
select: false,
|
||||
},
|
||||
backupCodes: {
|
||||
type: [BackupCodeSchema],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue