Initial commit: CI Agent competitive-intelligence monitoring app
FastAPI + Celery + Next.js + Postgres/Redis app with company monitoring, source collection, LLM-based change analysis, enrichment, and account security (Turnstile, escalating lockout, email verification).
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
// Shared enums/constants mirrored from apps/api/app/models. Keep in sync by
|
||||
// hand for now; see packages/shared/package.json for context.
|
||||
|
||||
export const MONITORING_FREQUENCIES = [
|
||||
"hourly",
|
||||
"every_6_hours",
|
||||
"every_12_hours",
|
||||
"daily",
|
||||
"every_2_days",
|
||||
"weekly",
|
||||
"every_2_weeks",
|
||||
"monthly",
|
||||
"custom",
|
||||
] as const;
|
||||
export type MonitoringFrequency = (typeof MONITORING_FREQUENCIES)[number];
|
||||
|
||||
export const SEVERITY_LEVELS = ["critical", "high", "medium", "low"] as const;
|
||||
export type SeverityLevel = (typeof SEVERITY_LEVELS)[number];
|
||||
|
||||
export const NOTIFICATION_TYPES = ["email", "sms", "console"] as const;
|
||||
export type NotificationType = (typeof NOTIFICATION_TYPES)[number];
|
||||
|
||||
export const MONITORING_RUN_STATUSES = [
|
||||
"queued",
|
||||
"running",
|
||||
"successful",
|
||||
"partial",
|
||||
"failed",
|
||||
] as const;
|
||||
export type MonitoringRunStatus = (typeof MONITORING_RUN_STATUSES)[number];
|
||||
|
||||
export const SOURCE_STATUSES = [
|
||||
"active",
|
||||
"disabled",
|
||||
"rate_limited",
|
||||
"auth_required",
|
||||
"blocked_by_policy",
|
||||
"failed",
|
||||
] as const;
|
||||
export type SourceStatus = (typeof SOURCE_STATUSES)[number];
|
||||
Reference in New Issue
Block a user