n8n
Version:
n8n Workflow Automation Tool
28 lines (27 loc) • 1.57 kB
TypeScript
import { UpdateSecuritySettingsDto } from '@n8n/api-types';
import { InstanceSettingsLoaderConfig } from '@n8n/config';
import { type AuthenticatedRequest } from '@n8n/db';
import type { Response } from 'express';
import { EventService } from '../events/event.service';
import { InstanceRedactionEnforcementService } from '../modules/redaction/instance-redaction-enforcement.service';
import { SecuritySettingsService } from '../services/security-settings.service';
export declare class SecuritySettingsController {
private readonly securitySettingsService;
private readonly eventService;
private readonly instanceSettingsLoaderConfig;
private readonly instanceRedactionEnforcementService;
constructor(securitySettingsService: SecuritySettingsService, eventService: EventService, instanceSettingsLoaderConfig: InstanceSettingsLoaderConfig, instanceRedactionEnforcementService: InstanceRedactionEnforcementService);
getSecuritySettings(_req: AuthenticatedRequest, _res: Response): Promise<{
redactionEnforcement?: {
floor: "off" | "production" | "all";
} | undefined;
publishedPersonalWorkflowsCount: number;
sharedPersonalWorkflowsCount: number;
sharedPersonalCredentialsCount: number;
managedByEnv: boolean;
personalSpacePublishing: boolean;
personalSpaceSharing: boolean;
}>;
updateSecuritySettings(req: AuthenticatedRequest, _res: Response, dto: UpdateSecuritySettingsDto): Promise<Partial<UpdateSecuritySettingsDto>>;
private emitInstancePolicyUpdated;
}