// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SourcesResponse {
    /// Defaults to `extraction.sources`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub object: Option<String>,
    /// ID of the extraction
    pub extraction_id: String,
    /// Detected document type of the source file
    pub document_type: SourcesResponseDocumentType,
    /// File metadata (id, filename, mime_type)
    pub file: FileRef,
    /// Original extraction output
    pub extraction: std::collections::HashMap<String, serde_json::Value>,
    /// Same shape as extraction but leaves are {value, source} objects
    pub sources: std::collections::HashMap<String, serde_json::Value>,
}
