anon-identity
Version:
Decentralized identity framework with DIDs, Verifiable Credentials, and privacy-preserving selective disclosure
18 lines • 870 B
TypeScript
import { AgentValidation } from './types';
import { VerifiablePresentation } from '../types/index';
export declare class ScopeValidator {
private scopeRegistry;
constructor();
validateAgentPresentation(presentation: VerifiablePresentation, requiredScopes: string[], serviceDID: string): Promise<AgentValidation>;
validateScopeFormat(scope: string): boolean;
checkScopeHierarchy(grantedScopes: string[], requestedScope: string): boolean;
evaluateRiskLevel(scopes: string[]): 'low' | 'medium' | 'high';
filterScopesByConstraints(scopes: string[], constraints?: Record<string, any>): string[];
generateScopeReport(scopes: string[]): {
categories: Record<string, string[]>;
riskLevel: 'low' | 'medium' | 'high';
dependencies: string[];
warnings: string[];
};
}
//# sourceMappingURL=scope-validator.d.ts.map