Skip to content

artifactReadRequestSchema

const artifactReadRequestSchema: object

The JSON Schemas those models were generated from, for runtime use.

readonly $id: "https://schemas.inderun.dev/1.0/artifact-read-request.schema.json"

readonly $schema: "https://json-schema.org/draft/2020-12/schema"

readonly additionalProperties: true

readonly description: "A ranged read of an engine-owned media artifact through IndeRunApi.readArtifact (ADR 017). Reads are repeatable until the artifact is disposed; each returns at most the engine's configured maximum read size, which bounds what one call -- and one bridge message -- carries."

readonly properties: object

readonly artifactId: object

readonly description: "MediaArtifact.id of the artifact to read."

readonly minLength: 1

readonly type: "string"

readonly maxBytes: object

readonly description: "Most bytes to return. Absent, or larger than the engine's maximum read size, means that maximum."

readonly minimum: 1

readonly type: "integer"

readonly offset: object

readonly description: "Byte offset to read from. Absent means 0. An offset equal to the artifact's size returns an empty, final chunk; a larger one is rejected."

readonly minimum: 0

readonly type: "integer"

readonly required: readonly ["artifactId"]

readonly title: "ArtifactReadRequest"

readonly type: "object"