mediaArtifactSchema
constmediaArtifactSchema:object
The JSON Schemas those models were generated from, for runtime use.
Type Declaration
Section titled “Type Declaration”
readonly$id:"https://schemas.inderun.dev/1.0/media-artifact.schema.json"
$schema
Section titled “$schema”
readonly$schema:"https://json-schema.org/draft/2020-12/schema"
additionalProperties
Section titled “additionalProperties”
readonlyadditionalProperties:true
description
Section titled “description”
readonlydescription:"A reference to retrievable media a run produced (ADR 017). It carries no bytes and no location: an engine-owned artifact is read through the engine by id, and an application-owned one was written to an application destination. Media-neutral: audio, images and video share this shape and differ only in mediaType."
properties
Section titled “properties”
readonlyproperties:object
properties.byteLength
Section titled “properties.byteLength”
readonlybyteLength:object
properties.byteLength.description
Section titled “properties.byteLength.description”
readonlydescription:"Size of the media in bytes. Always set for an artifact the engine materialized."
properties.byteLength.minimum
Section titled “properties.byteLength.minimum”
readonlyminimum:0
properties.byteLength.type
Section titled “properties.byteLength.type”
readonlytype:"integer"
properties.destinationRef
Section titled “properties.destinationRef”
readonlydestinationRef:object
properties.destinationRef.description
Section titled “properties.destinationRef.description”
readonlydescription:"The request's delivery.destinationRef the bytes were written to. Set exactly when owner is 'application'."
properties.destinationRef.minLength
Section titled “properties.destinationRef.minLength”
readonlyminLength:1
properties.destinationRef.type
Section titled “properties.destinationRef.type”
readonlytype:"string"
properties.durationMs
Section titled “properties.durationMs”
readonlydurationMs:object
properties.durationMs.description
Section titled “properties.durationMs.description”
readonlydescription:"Duration of time-based media in milliseconds, where the producer knows it."
properties.durationMs.minimum
Section titled “properties.durationMs.minimum”
readonlyminimum:0
properties.durationMs.type
Section titled “properties.durationMs.type”
readonlytype:"number"
properties.id
Section titled “properties.id”
readonlyid:object
properties.id.description
Section titled “properties.id.description”
readonlydescription:"Opaque, engine-issued identifier. Never a path, URL or provider identifier."
properties.id.minLength
Section titled “properties.id.minLength”
readonlyminLength:1
properties.id.type
Section titled “properties.id.type”
readonlytype:"string"
properties.lifetime
Section titled “properties.lifetime”
readonlylifetime:object
properties.lifetime.description
Section titled “properties.lifetime.description”
readonlydescription:"How long the engine keeps the bytes. 'until_disposed': until the application disposes the artifact or the process ends; the artifact outlives the run that produced it."
properties.lifetime.enum
Section titled “properties.lifetime.enum”
readonlyenum: readonly ["until_disposed"]
properties.lifetime.title
Section titled “properties.lifetime.title”
readonlytitle:"ArtifactLifetime"
properties.mediaType
Section titled “properties.mediaType”
readonlymediaType:object
properties.mediaType.description
Section titled “properties.mediaType.description”
readonlydescription:"IANA media type of the bytes, e.g. 'audio/wav'. Encoding parameters ride on the media type (e.g. 'audio/L16;rate=22050')."
properties.mediaType.minLength
Section titled “properties.mediaType.minLength”
readonlyminLength:1
properties.mediaType.type
Section titled “properties.mediaType.type”
readonlytype:"string"
properties.owner
Section titled “properties.owner”
readonlyowner:object
properties.owner.description
Section titled “properties.owner.description”
readonlydescription:"'engine': the engine holds the bytes and the application reads them by id until it disposes the artifact. 'application': the bytes were written to the application destination named by destinationRef and the engine holds nothing."
properties.owner.enum
Section titled “properties.owner.enum”
readonlyenum: readonly ["engine","application"]
properties.owner.title
Section titled “properties.owner.title”
readonlytitle:"ArtifactOwner"
required
Section titled “required”
readonlyrequired: readonly ["id","mediaType","owner","lifetime"]
readonlytitle:"MediaArtifact"
readonlytype:"object"
IndeRun — open-source AI execution for cross-platform apps. Built and maintained by Independo GmbH (opens in new tab), supported by netidee (opens in new tab).
MIT-licensed SDK · No SDK usage telemetry.
© 2025–2026 Independo GmbH