Skip to content

jmaple.types

JMAP primitive type aliases and small helper schemas, mirroring RFC 8620 §1.4.

Id module-attribute

Id: TypeAlias = Annotated[str, AfterValidator(_validate_id)]

JMAP Id — string of 1-255 chars from [A-Za-z0-9_-].

UTCDate module-attribute

UTCDate: TypeAlias = datetime

JMAP UTCDate — Pydantic handles RFC 3339 parsing natively.

ResultReference

Bases: BaseModel

A back-reference to a prior method response, per RFC 8620 §3.7.

PatchObject

Bases: RootModel[dict[str, Any]]

A JMAP PatchObject — JSON-Pointer keyed map of patches, RFC 8620 §5.3.