// 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 EditWorkflowArtifact {
    /// Unique identifier of the edit.
    pub id: String,
    /// Information about the source file (input document or template PDF).
    pub file: FileRef,
    /// Model used for the edit operation.
    pub model: String,
    /// Free-form instructions supplied with the edit request.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub instructions: Option<String>,
    /// Configuration used for the edit operation.
    pub config: EditConfig,
    /// Template id used when the edit was created from a template; null for direct-document edits.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub template_id: Option<String>,
    /// The edit result: filled form fields and the rendered PDF.
    pub output: EditResult,
    /// Usage information for the edit operation.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub usage: Option<RetabUsage>,
    /// When this artifact was written by the orchestrator.
    pub created_at: String,
    /// Artifact operation that determines the backing record type
    ///
    /// Defaults to `edit`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub operation: Option<String>,
}
