/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { InterfaceEnum } from './InterfaceEnum'; import type { VersionNestedArtifact } from './VersionNestedArtifact'; /** * Serializer for ArtifactVersion model. * * Represents a single version of an artifact with its content and metadata. */ export type ArtifactVersion = { readonly id: number; artifact: VersionNestedArtifact; /** * Get the title of the artifact version. */ readonly title: string; /** * The markdown-styled content of this artifact version */ content: string; /** * Base64-encoded bytes when the artifact is binary and this is the current version; null otherwise (binary artifacts keep one stored payload — fetch the artifact for the bytes). */ readonly binary_content: string; /** * UUID of the session that generated this artifact version */ readonly session_id: string; /** * Length of the version content in characters */ readonly content_length: number; /** * Whether this version is the current/active version */ readonly is_current: boolean; readonly chat_message: number | null; /** * Sequential version number for display purposes */ readonly version_number: number; /** * When this version was created */ readonly date_created: string; /** * Identifier for who created this version (e.g., 'llm', 'user:username') */ created_by?: string; /** * Optional summary of what changed in this version */ change_summary?: string; /** * How this version was created * * * `chat` - Chat * * `api` - Api */ readonly interface: InterfaceEnum; };