mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 19:28:35 +00:00
Begin frontend for blinded indices
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
import { Schema, model, Types } from 'mongoose';
|
||||
import {
|
||||
WORKSPACE_ENCRYPTION_MODE_E2EE,
|
||||
WORKSPACE_ENCRYPTION_MODE_BLIND_INDEXED_E2EE,
|
||||
WORKSPACE_ENCRYPTION_MODE_NOT_E2EE
|
||||
} from '../variables';
|
||||
|
||||
export interface IWorkspace {
|
||||
_id: Types.ObjectId;
|
||||
name: string;
|
||||
encryptionMode: string;
|
||||
organization: Types.ObjectId;
|
||||
environments: Array<{
|
||||
name: string;
|
||||
@@ -16,6 +22,15 @@ const workspaceSchema = new Schema<IWorkspace>({
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
encryptionMode: {
|
||||
type: String,
|
||||
default: 'e2ee',
|
||||
enum: [
|
||||
WORKSPACE_ENCRYPTION_MODE_E2EE,
|
||||
WORKSPACE_ENCRYPTION_MODE_BLIND_INDEXED_E2EE,
|
||||
WORKSPACE_ENCRYPTION_MODE_NOT_E2EE
|
||||
]
|
||||
},
|
||||
autoCapitalization: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
|
||||
Reference in New Issue
Block a user