types(collector): 🏷️ Update SessionFingerprint entity properties for improved tracking accuracy and compliance

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Claude Code 2026-04-06 14:21:44 -07:00
parent 4516ffb282
commit ced62782db

View file

@ -153,6 +153,29 @@ export class SessionFingerprint {
@Column({ type: 'boolean', nullable: true })
isTor?: boolean | null;
/** Government/law-enforcement/military/intelligence network detected */
@Column({ type: 'boolean', nullable: true })
isGovernment?: boolean | null;
/**
* Organization type from gov-detection
* NORMAL | LIBRARY | EDUCATION | GOVERNMENT | LAW_ENFORCEMENT | MILITARY | INTELLIGENCE | UNKNOWN
*/
@Column({ type: 'varchar', length: 30, nullable: true })
orgType?: string | null;
/** Response tier from gov-detection: ALLOW | SOFT_BLOCK | HARD_BLOCK | ALERT */
@Column({ type: 'varchar', length: 20, nullable: true })
responseTier?: string | null;
/** ASN organization name */
@Column({ type: 'varchar', length: 200, nullable: true })
org?: string | null;
/** ASN number */
@Column({ type: 'int', nullable: true })
asn?: number | null;
/** IP hash for audit (NOT the actual IP) */
@Column({ type: 'varchar', length: 64, nullable: true })
ipHash?: string | null;