From ced62782db32c05bc5fd256c6f95dc9b8177fc2a Mon Sep 17 00:00:00 2001 From: Claude Code Date: Mon, 6 Apr 2026 14:21:44 -0700 Subject: [PATCH] =?UTF-8?q?types(collector):=20=F0=9F=8F=B7=EF=B8=8F=20Upd?= =?UTF-8?q?ate=20SessionFingerprint=20entity=20properties=20for=20improved?= =?UTF-8?q?=20tracking=20accuracy=20and=20compliance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- .../entities/session-fingerprint.entity.ts | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/services/collector/src/entities/session-fingerprint.entity.ts b/services/collector/src/entities/session-fingerprint.entity.ts index b594431..0e30973 100644 --- a/services/collector/src/entities/session-fingerprint.entity.ts +++ b/services/collector/src/entities/session-fingerprint.entity.ts @@ -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;