| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- export type DataOrigin = "production_db" | "runtime_export" | "mixed_with_runtime_export";
- export type RunListItem = {
- run_id: string;
- policy_run_id?: string | null;
- status?: string | null;
- current_step?: string | null;
- platform?: string | null;
- platform_mode?: string | null;
- strategy_version?: string | null;
- validation_status?: string | null;
- error_code?: string | null;
- started_at?: string | null;
- completed_at?: string | null;
- };
- export type RunListResponse = {
- items: RunListItem[];
- page: number;
- page_size: number;
- total: number;
- data_origin: DataOrigin;
- };
- export type DashboardResponse = {
- run_id: string;
- summary: Record<string, unknown>;
- counts: Record<string, number>;
- files: Record<string, boolean>;
- runtime_files: RuntimeFileStatus[];
- validation: Record<string, unknown>;
- final_output_summary: Record<string, unknown>;
- strategy_review_status: string;
- business_summary: BusinessSummary;
- stage_conclusions: StageConclusion[];
- rule_application_summary: RuleApplicationSummary[];
- walk_graph: WalkGraph;
- primary_failure_reason?: Record<string, unknown> | null;
- technical_refs: Record<string, unknown>;
- data_origin: DataOrigin;
- links: Record<string, string>;
- };
- export type BusinessSummary = {
- headline: string;
- status: string;
- source_label: string;
- query_count: number;
- content_count: number;
- kept_count: number;
- review_count: number;
- rejected_count: number;
- asset_count: number;
- primary_failure_reason?: Record<string, unknown> | null;
- };
- export type StageConclusion = {
- stage_id: string;
- label: string;
- status: string;
- headline: string;
- detail: string;
- metric: string;
- };
- export type RuleApplicationSummary = {
- decision_id?: string | null;
- content_title?: string | null;
- platform_content_id?: string | null;
- rule_pack?: string | null;
- hard_gate_status?: string | null;
- score?: number | string | null;
- decision_action?: string | null;
- decision_reason_code?: string | null;
- content_effect_status?: string | null;
- primary_reason?: string | null;
- technical_ref?: Record<string, unknown>;
- };
- export type WalkGraphNode = {
- id: string;
- type: string;
- label: string;
- status: string;
- };
- export type WalkGraphEdge = {
- id: string;
- source: string;
- target: string;
- label?: string | null;
- status?: string | null;
- rule_pack?: string | null;
- rule_pack_executed?: boolean | null;
- executed_rule_pack_id?: string | null;
- budget_tier?: string | null;
- reason_code?: string | null;
- };
- export type WalkGraph = {
- nodes: WalkGraphNode[];
- edges: WalkGraphEdge[];
- source_path_count: number;
- };
- export type RuntimeFileStatus = {
- filename: string;
- exists: boolean;
- record_count: number;
- file_type: "json" | "jsonl";
- contract_status: string;
- data_origin: DataOrigin;
- };
- export type QueryListResponse = {
- run_id: string;
- items: Array<Record<string, unknown>>;
- total: number;
- data_origin: DataOrigin;
- };
- export type TimelineSummary = {
- total_duration_ms: number | null;
- stage_duration_ms: Record<string, number>;
- query_failure_count: number;
- platform_rate_limited_count: number;
- decode_status_counts: Record<string, number>;
- error_counts: Record<string, number>;
- walk_status_counts: Record<string, number>;
- };
- export type TimelineItem = {
- source: string;
- stage?: string | null;
- event_type?: string | null;
- status?: string | null;
- timestamp?: string | null;
- error_code?: string | null;
- walk_action_id?: string | null;
- record: Record<string, unknown>;
- };
- export type TimelineResponse = {
- run_id: string;
- items: TimelineItem[];
- total: number;
- data_origin: DataOrigin;
- summary: TimelineSummary;
- };
- export type ContentItemsResponse = {
- run_id: string;
- items: Array<Record<string, unknown>>;
- total: number;
- data_origin: DataOrigin;
- };
- export type RuntimeFilesResponse = {
- run_id: string;
- files: RuntimeFileStatus[];
- data_origin: DataOrigin;
- };
- export type RuntimeFileResponse = {
- run_id: string;
- filename: string;
- data_origin: DataOrigin;
- data?: Record<string, unknown>;
- records?: Array<Record<string, unknown>>;
- offset?: number;
- limit?: number;
- total?: number;
- };
- export type ConfigFileResponse = {
- source_file: string;
- data: Record<string, unknown>;
- };
|