# frontend/src/types
dir: frontend/src/types

index: frontend/src/types/.pi-map.index.md

## role
Central type definition package providing TypeScript interfaces for the application's domain models and API contracts.
## files
- backups.ts | Defines TypeScript interfaces for a backup system including jobs, runs, alerts, and dashboard summaries. | exp: BackupJob, BackupRun, BackupAlert, BackupDashboardSummary
- index.ts | Defines shared TypeScript interfaces for backend API responses covering media management, user directories, SSH keys, monitoring, widgets, and task execution. | exp: MediaCounts, LibraryCount, UserDirectoryItem, UserDirectoryResponse, UserMessageResponse, UserMessageQueueStatus, NowPlayingSession, SSHKey, SSHKeyInput, SSHKeyGenerated, SavedTask, SavedTaskInput, SavedTaskRun, MonitoringMachine, MonitoringMachineInput, ResetLocalDatabaseInput, ResetLocalDatabaseResponse, SSHValidationResult, AppVersionInfo, MediaIndexStatus, MediaIndexActionResponse, MediaItem, MediaQueryResponse, FileEntry, DirectoryListing, JobTemplate, JobResult, ResolvedPath, DashboardShortcut, DashboardShortcutInput, AlertmanagerAlert, AlertmanagerAlertSummary, AlertmanagerStatus, PrometheusStatus, PrometheusTarget, WidgetInstance, WidgetInstanceInput, WidgetDataResponse, SecretFieldInfo, ServiceWidgetKindInfo, ServiceTypeInfo, ServiceInstance, ServiceInstanceInput, BuiltinWidgetKindInfo
## arch
Pure type declaration modules with no runtime logic, exporting shared interfaces consumed across the frontend for type-safe data handling.
## tags
input, response, media, info, widget, backup, user, status
## symbols
- BackupJob
- BackupRun
- BackupAlert
- BackupDashboardSummary
- MediaCounts
- LibraryCount
- UserDirectoryItem
- UserDirectoryResponse
## workflows
- change types behavior
  read: backups.ts, index.ts
## dirty
-
