Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

777 B
Raw Blame
use serde::{Deserialize, Serialize};
use utoipa::ToSchema;
use uuid::Uuid;

use super::AnchorId;

#[derive(Deserialize, ToSchema)]
#[serde(tag = "anchorType", content = "uuid")]
#[serde(rename_all = "kebab-case")]
pub enum DeleteUnthreadedPdfAnchorRequest {
    Highlight(Uuid),
}

#[derive(Deserialize, ToSchema)]
#[serde(tag = "fileType")]
#[serde(rename_all = "kebab-case")]
pub enum DeleteUnthreadedAnchorRequest {
    Pdf(DeleteUnthreadedPdfAnchorRequest),
}

#[derive(Serialize, ToSchema, Debug)]
#[serde(rename_all = "camelCase")]
pub struct DeleteUnthreadedAnchorResponse {
    pub document_id: String,
    #[serde(flatten)]
    pub anchor_info: AnchorId,
    /// Root of the discussion that was deleted with the anchor, if it had one.
    pub root_id: Option<Uuid>,
}