UNPKG

manifest

Version:

The backend for AI code editors

13 lines (12 loc) 616 B
import { CanActivate, ExecutionContext } from '@nestjs/common'; import { Reflector } from '@nestjs/core'; import { AuthService } from '../auth/auth.service'; import { EntityManifestService } from '../manifest/services/entity-manifest.service'; export declare class PolicyGuard implements CanActivate { private readonly reflector; private readonly entityManifestService; private readonly authService; constructor(reflector: Reflector, entityManifestService: EntityManifestService, authService: AuthService); canActivate(context: ExecutionContext): Promise<boolean>; private getCrudPolicies; }