import { PACKAGE_VERSION, nowIso } from '../fsx.js';
export const TRUST_KERNEL_SCHEMA = 'sks.trust-kernel.v1';
export const ROUTE_COMPLETION_CONTRACT_SCHEMA = 'sks.route-completion-contract.v1';
export const TRUST_REPORT_SCHEMA = 'sks.trust-report.v1';
export const TRUST_STATUSES = [
    'verified',
    'verified_partial',
    'blocked',
    'failed',
    'not_verified'
];
export const TRUST_STATUS = Object.freeze([...TRUST_STATUSES]);
export function trustKernelMetadata() {
    return {
        trust_kernel_schema: TRUST_KERNEL_SCHEMA,
        typed_contracts: true,
        runtime_validators: true,
        package_boundary_required: true,
        version: PACKAGE_VERSION,
        generated_at: nowIso()
    };
}
export function isTrustStatus(value) {
    return typeof value === 'string' && TRUST_STATUSES.includes(value);
}
export function normalizeTrustStatus(status = 'not_verified') {
    return isTrustStatus(status) ? status : 'not_verified';
}
//# sourceMappingURL=trust-kernel-schema.js.map