Skip to main content
All Python modules · Import and compatibility guidance

Exports

AssetRef

A backend-neutral reference to bytes held by an asset store.
Fields (— means no declared default):

Audio

Inline or stored audio with optional authoritative media metadata.
Fields (— means no declared default):

AudioConstraints

Reusable limits for an audio field declared with Annotated.
Fields (— means no declared default):

ContentConstraints

ContentPart

Data

Typed JSON application data carried as an ordered content part.
Fields (— means no declared default):

DataConstraints

Reusable serialized-size limits for typed JSON application data.
Fields (— means no declared default):

File

An inline or stored file with safe display and document metadata.
Fields (— means no declared default):

FileConstraints

Reusable limits for a file field declared with Annotated.
Fields (— means no declared default):

Image

An inline or stored image with optional authoritative dimensions.
Fields (— means no declared default):

ImageConstraints

Reusable limits for an image field declared with Annotated.
Fields (— means no declared default):

Text

An ordered UTF-8 text part in a portable message.
Fields (— means no declared default):

Video

Inline or stored video with optional authoritative media metadata.
Fields (— means no declared default):

VideoConstraints

Reusable limits for a video field declared with Annotated.
Fields (— means no declared default):

constraint_schema_extension

Render one immutable constraint as the public JSON Schema extension.

content_constraints

Extract constraint metadata recursively from an authored annotation.

content_schema_extension

Render an annotation’s single constraint as x-harnest-media.