/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ /** * Artifact embedded in a version row, where the row carries the text. * * ``ArtifactVersion.content`` is the same string ``Artifact.get_content()`` * returns for the current version, so repeating it here would double every * text payload. Session open uses ``NestedArtifactSerializer``, which keeps * ``content``, because no version row accompanies the artifact there. */ export type VersionNestedArtifact = { readonly id: number; /** * Title or identifier for the artifact */ title: string; /** * Always empty on a version's artifact; read the row's `content`. */ readonly content: string; /** * Always null on an embedded artifact; fetch the artifact (or the current version) for the bytes. */ readonly binary_content: string; /** * True when the artifact carries `binary_content` instead of `content` */ readonly is_binary: boolean; /** * MIME type of a binary artifact, e.g. application/pdf. */ readonly mime_type: string; /** * The extension of the file for the artifact. eg. `py`, `md`, `html`, `json`, `csv`, etc */ readonly file_extension: string; readonly llm_name: string; readonly llm_provider: string; readonly date_created: string; readonly date_updated: string; /** * Additional metadata for the artifact */ metadata?: any; /** * Username of the student who owns this artifact */ readonly username: string; readonly session_id: string | null; /** * Version number of the current version */ readonly current_version_number: number; /** * Total number of versions for this artifact */ readonly version_count: number; };