import { BelticError } from './base.js'; import type { AgentCredential, DeveloperCredential } from '../types/generated/index.js'; import type { SignatureErrorCode } from './codes.js'; /** * Step in the signature verification process where the error occurred. */ export type SignatureErrorStep = 'PARSE' | 'KEY_RESOLUTION' | 'SIGNATURE' | 'CLAIMS' | 'SCHEMA' | 'REPLAY'; /** * Error thrown when signature verification fails. */ export declare class SignatureError extends BelticError { /** The verification step where the error occurred */ readonly step: SignatureErrorStep; /** Formal error code (SIG-001 through SIG-016) */ readonly errorCode?: SignatureErrorCode | string; constructor(message: string, step: SignatureErrorStep, details?: Record, errorCode?: SignatureErrorCode | string); } /** * Step in the trust chain verification process where the error occurred. */ export type TrustChainErrorStep = 'AGENT_VERIFY' | 'DEVELOPER_FETCH' | 'DEVELOPER_VERIFY' | 'STATUS_CHECK' | 'POLICY'; /** * Error thrown when trust chain verification fails. */ export declare class TrustChainError extends BelticError { /** The verification step where the error occurred */ readonly step: TrustChainErrorStep; /** Agent credential (if successfully verified) */ readonly agentCredential?: AgentCredential; /** Developer credential (if successfully verified) */ readonly developerCredential?: DeveloperCredential; constructor(message: string, step: TrustChainErrorStep, options?: { agentCredential?: AgentCredential; developerCredential?: DeveloperCredential; details?: Record; }); } /** * Error thrown when policy enforcement fails. */ export declare class PolicyViolationError extends BelticError { /** List of policy violations */ readonly violations: PolicyViolation[]; constructor(violations: PolicyViolation[]); } /** * Details about a policy violation. */ export interface PolicyViolation { /** Type of policy that was violated */ type: 'KYB_TIER' | 'SAFETY_SCORE' | 'VERIFICATION_LEVEL' | 'DATA_CATEGORY' | 'OTHER'; /** Field that caused the violation */ field?: string; /** Expected value or threshold */ expected: string | number; /** Actual value found */ actual: string | number | undefined; /** Human-readable message */ message: string; } //# sourceMappingURL=verification.d.ts.map