origin_types/briefing.rs
1// SPDX-License-Identifier: Apache-2.0
2//! Wire types for daily briefing and contradiction responses.
3
4use serde::{Deserialize, Serialize};
5
6/// Response type for the daily briefing endpoint.
7#[derive(Debug, Clone, Serialize, Deserialize)]
8pub struct BriefingResponse {
9 pub content: String,
10 pub new_today: u64,
11 pub primary_agent: Option<String>,
12 pub generated_at: i64,
13 pub is_stale: bool,
14}
15
16/// A pending contradiction surfaced by the refinement queue.
17#[derive(Debug, Clone, Serialize, Deserialize)]
18pub struct ContradictionItem {
19 pub id: String,
20 pub new_content: String,
21 pub existing_content: String,
22 pub new_source_id: String,
23 pub existing_source_id: String,
24}