Skip to content

Python SDK Reference

Generated statically from the package’s literal warmhub.__all__ with Griffe. The generator never imports the SDK.

This build documents 304 root exports and 27 client namespace projections.

  • AccessTokenProvider — A static token, or a sync/async callable returning one.
  • ActionLeaseOp — Action lease acquisition or release operation.
  • ActionRunStatus — action.listRuns’s run-status vocabulary, named once rather than spelled out in all four places (both Protocols and both iterators) where a divergence would be a Literal that silently accepts less than the generated method.
  • CheckpointArtifact — Checkpoint artifact selected for a short-lived download descriptor.
  • CollectionMutationCompatibilityResult — Compatibility response returned by collection mutation endpoints.
  • CollectionReadDataMode — How much of each record’s data thing.get and get_many return: “auto” or “full”. The server accepts nothing else on those reads (and on resolve).
  • CollectionRole — Which end of a resolved collection assertion the target must occupy.
  • CommitOperationKind — Stored entity kind targeted by a commit operation.
  • DataMode — How much of each record’s data the head family (thing.head, head_iter, head_all, changes) returns. thing.get, get_many and resolve accept only CollectionReadDataMode (“auto” | “full”), as the server does.
  • ErrorDetails — Structured corrective detail attached to a WarmHubError.
  • ExtraBody — Per-call body keys the SDK does not model. Unmodelled by design; see above.
  • ExtraHeaders — Per-call headers. Merged over the client’s defaults, but never over auth: assemble_headers re-stamps the resolved bearer afterwards, so a caller cannot substitute a different authorization for one call.
  • ExtraQuery — Per-call query parameters, merged into the URL’s existing query rather than replacing it. See merge_extra_query for why that distinction is load-bearing.
  • HistoryVersion — JSON payload stored for one history version.
  • JsonMapping — A JSON object. What a mapping-based decoder is handed, and the type an undecoded data must be narrowed to before it can be indexed.
  • JsonValue — Anything a JSON document can hold, defined recursively.
  • NameMatch — Deterministic literal name matching, or ranked search.
  • Nullable — T | None — a required nullable field. The key is always sent.
  • NullableOmittable — T | None | Unset — a nullable optional field, all three states live.
  • Omittable — T | Unset — an optional field. Absent means the key is not sent.
  • Operation — The public write contract. Discriminated on the operation attribute.
  • OperationInput — Public operation objects or equivalent JSON mappings accepted by validation.
  • PayloadDecoder — What decoder accepts. Named so signatures stay readable.
  • ReceiptSchemaVersion — Both receipt versions the backend still emits. v2 is stamped on every live append; v1 survives for replay of events persisted before it (see packages/backend/src/operation-events/reconstruction.ts). A version outside this set is still refused: an unreadable outcome is an unknown one.
  • RepoExploreSort — repo.explore’s sort vocabulary, named once. Spelled out in three places otherwise (both Protocols and both iterators), where a divergence would be a Literal that silently accepts less than the generated method does.
  • RepoListSort — repo.list / repo.listPage’s shared sort vocabulary.
  • RepositoryCheckpointStatus — Every terminal and in-progress repository checkpoint status.
  • RepositoryCheckpointVerificationErrorReason — Stable failure categories produced by offline checkpoint verification.
  • RepositoryExportErrorReason — Stable failure categories produced by export reading and verification.
  • RepositoryExportMode — heads exports current versions; ops exports the operation history.
  • RepositoryExportRow — One validated export row.
  • SearchMode — text is BM25, vector is semantic, hybrid combines them.
  • ShapeChangeCompatibilityResult — Compatibility response returned by shape-change endpoints.
  • ShapeFields — A shape’s data.fields — the declaration side of shape validation.
  • StreamAppendResult — Successful or rejected low-level stream append result.
  • ThingKind — The record kinds a read projects. collection is absent: a collection reads as a thing and declares itself through collections.
  • ThingKindFilter — What a filter may ASK for. Wider than what a read projects for the deprecation window: collection narrows to things the certificate closure calls collections, while assertion narrows to rows with an assertion target. Neither alias is projected as a record kind.
  • Unset — Annotate optional parameters as int | Unset, defaulting to UNSET.
  • WhereOp — Comparison operators accepted by a where predicate.
  • WhereScalar — Routeable scalar RHS. Mirrors WhereScalarRhs in the TypeScript SDK.