Back to Components
Desktop (Electron)
Security
Utility
Security
Lines
584
File
Security.ts
Last Modified
2026-07-22
Exports
Security
Source Path
aartiq-browser/src/Security.ts
Tags
Node.jsSecurityAISyncPDFmacOSWindows
Code Analysis
API / Library Usage
websocket
External Dependencies
No external dependencies
Internal Imports
./html-sanitizer./url-validator
Props / Types
Finding
| Prop | Type | Required |
|---|---|---|
| layer | string | Yes |
| pattern | string | Yes |
| match | string | Yes |
| position | number | Yes |
| severity | FindingSeverity | Yes |
AnalyzeResult
| Prop | Type | Required |
|---|---|---|
| matchedKnownPatterns | boolean | Yes |
| threatLevel | ThreatLevel | Yes |
| findings | Finding[] | Yes |
| sanitizedContent | string | Yes |
| recommendations | string[] | Yes |
ApprovalDecision
| Prop | Type | Required |
|---|---|---|
| requiresApproval | boolean | Yes |
| reason | string | No |
AllowedAction
| Prop | Type | Required |
|---|---|---|
| name | string | Yes |
| handler | (params: Record<string, unknown>) => Promise<unknown> | Yes |
| requiresApproval | 'never' | 'always' | 'first-time-per-session' | Yes |
CapabilityController
No properties
Key Functions
opts()
Related Components
Browse all components in the Component Inventory
Auto-Generated Documentation
Component metadata is auto-generated by aartiq-browser/scripts/component-scanner.js