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.
Client namespaces
Section titled “Client namespaces”clientclient.accessclient.actionclient.authclient.collectionclient.commitclient.componentclient.component.cliclient.component.registryclient.credentialclient.diagnosticsclient.homepageclient.orgclient.org.service_accountsclient.repoclient.repo.checkpointclient.repo.indexclient.shapeclient.streamclient.subscriptionclient.thingclient.tokenclient.viewrepositoryrepository.reporepository.repo.checkpointrepository.things
Classes
Section titled “Classes”AboutResult— Generated fromAboutResult.AccessResolveResult— Generated fromAccessResolveResult.ActionAttempt— Generated fromActionAttempt.ActionLeaseAcquire0— Generated fromActionLeaseAcquire0.ActionLeaseAcquire1— Generated fromActionLeaseAcquire1.ActionLeaseOp0— Generated fromActionLeaseOp0.ActionLeaseOp1— Generated fromActionLeaseOp1.ActionListRunsResult— Generated fromActionListRunsResult.ActionLiveFeedResult— Generated fromActionLiveFeedResult.ActionLiveFeedResultItemsItem— Generated fromActionLiveFeedResultItemsItem.ActionNotification— Generated fromActionNotification.ActionRun— Generated fromActionRun.ActionRunStats— Generated fromActionRunStats.Add— Create the Thingname, stating its Shapes (shapesorshapeless).AffirmationDelta— The per-target outcome of a reaffirm or affirmed-targets write.AllStreamOperationsFailedError— The stream append completed deterministically but every operation failed.Assertion— Generated fromAssertion.AsyncBoundRepoNamespace— Thereponamespace withorg_name/repo_namebound.AsyncBoundThingNamespace—repository.things—AsyncThingNamespacewith the repo bound.AsyncOperationBuilder— The awaitable half of the pair.AsyncRepositoryClient— A repository-bound view of the client’s namespaces.AsyncRepositoryExportStream— Theasync fortwin ofRepositoryExportStream.AsyncTransport— Issues tRPC calls over anhttpx.AsyncClient.AsyncWarmHubClient— Asynchronous WarmHub client.AuthProvider— Theauthconstructor option: an object exposingget_token.AuthSyncResult— Generated fromAuthSyncResult.Capabilities— Generated fromCapabilities.CheckpointArchiveError— The archive is not a canonical repository checkpoint ZIP64 file.CheckpointChunkError— A record chunk is invalid, malformed, or not canonically encoded.CheckpointManifestError— The manifest is invalid, malformed, or not canonically encoded.CheckpointSourceReadError— The caller-provided archive source could not be read as bytes.ClientIdentity—name/versionstamped on theX-WarmHub-Clientheader.CoalescedWrefWarning— A wref that resolved to nothing and was folded away rather than stored.CollectionContainsResult— Generated fromCollectionContainsResult.CollectionDiffResult— Generated fromCollectionDiffResult.CollectionMembersPage— Generated fromCollectionMembersPage.CollectionMembersPageItemsItem— Generated fromCollectionMembersPageItemsItem.CollectionMutationCompatibilityResult0— Generated fromCollectionMutationCompatibilityResult0.CollectionMutationCompatibilityResult1— Generated fromCollectionMutationCompatibilityResult1.CollectionStatsResult— Generated fromCollectionStatsResult.CommitApplyCompatibilityResult0— Generated fromCommitApplyCompatibilityResult0.CommitApplyCompatibilityResult1— Generated fromCommitApplyCompatibilityResult1.CommitOptions— Per-commit knobs shared byrepo.applyandOperationBuilder.CommitValidateResult— Generated fromCommitValidateResult.ComponentDetail— Generated fromComponentDetail.ComponentHistoryResult— Generated fromComponentHistoryResult.ComponentInstallResult— Generated fromComponentInstallResult.ComponentListResult— Generated fromComponentListResult.ComponentListResultItemsItem— Generated fromComponentListResultItemsItem.ComponentRegistryInfo— Generated fromComponentRegistryInfo.ComponentRegistryList— Generated fromComponentRegistryList.ComponentRegistryResolveResult— Generated fromComponentRegistryResolveResult.ComponentRegistrySetupCallResult— Generated fromComponentRegistrySetupCallResult.ComponentRegistryUnregisterResult— Generated fromComponentRegistryUnregisterResult.ComponentUninstallResult— Generated fromComponentUninstallResult.CountResult— Generated fromCountResult.CredentialAuditEntry— Generated fromCredentialAuditEntry.CredentialDeleteResult— Generated fromCredentialDeleteResult.CredentialInfo— Generated fromCredentialInfo.CredentialKeyMutationResult— Generated fromCredentialKeyMutationResult.CredentialRevokeResult— Generated fromCredentialRevokeResult.DeprecationNotice— A shape that still works and will stop working.DuplicateCheckpointDurableIdError— Two checkpoint rows advertise the same durable identity.ExpectedVersionMismatch— Optimistic-concurrency precondition failed (#3624).FieldIndexPinResult— Generated fromFieldIndexPinResult.GlobalSearchResult— Generated fromGlobalSearchResult.GlobalSearchResultItem— Generated fromGlobalSearchResultItem.HeadResult— One page of a list read.HistoryResult— Generated fromHistoryResult.HomepageFeaturedListsResult— Generated fromHomepageFeaturedListsResult.IgnoredVersionPin— An authored@vN(or versioned storage token) dropped on an identity-bound leaf: the reference follows the Thing, so the pin carried no meaning.bindingnames the effective mode that governed.IndexedFieldsReport— Generated fromIndexedFieldsReport.LeaseHeld— A live read lease blocks this mutation or acquire (#3625).NameTaken— A write claimed a name another active Thing in the repo holds (#11219).NameTakenBy— The active Thing that holds a refused name, by durable id.OldName— A Thing read named an oldShape/namespelling (#12575).OperationBuilder— Fluent builder for composing, validating, and submitting operations.OperationError— One diagnostic explaining why an operation did not land.OperationEventHeader— Persisted event metadata, absent when an append produced no event.OperationEventReceipt— Exact immutable acknowledgement for one stream chunk.OperationEventReceipt0— Generated fromOperationEventReceipt0.OperationEventReceipt1— Generated fromOperationEventReceipt1.OperationEventReceiptMetadata— Generated fromOperationEventReceiptMetadata.OperationEventReceiptV1— Generated fromOperationEventReceiptV1.OperationEventReceiptV2— Generated fromOperationEventReceiptV2.OperationEventRepo— Repository identity embedded in an immutable operation-event receipt.OperationWarnings— Everything a write succeeded despite, for one operation.Org— Generated fromOrg.OrgGetResult— Generated fromOrgGetResult.OrgListResponse— Generated fromOrgListResponse.OrgMember— Generated fromOrgMember.OrgMemberList— Generated fromOrgMemberList.PartialStreamSubmissionError— A streamed commit failed after an ambiguous or partial append.PatternCheckSkipped— Apatternconstraint was not evaluated because RE2 is absent.PayloadDecodeError— A read’sdatacould not be decoded into the requested shape.PingResult— Generated fromPingResult.RateLimitReset— A rate limit rejected the request until a reset time.RawSnapshot—as_dict()for the models that carry a wireraw.Reaffirm— Edit an assertion’s affirmation snapshot without changing claim data.ReceiptOperation— One exact operation row from a durable event receipt.RefsResult— Generated fromRefsResult.RefsResultItemsItem— Generated fromRefsResultItemsItem.RemoveCompatibilityResult— Generated fromRemoveCompatibilityResult.Rename— Rename the Thingnametonew_name, both full names.RenameCompatibilityResult0— Generated fromRenameCompatibilityResult0.RenameCompatibilityResult1— Generated fromRenameCompatibilityResult1.RepoConfigureStats— Generated fromRepoConfigureStats.RepoDeleteResult— Generated fromRepoDeleteResult.RepoDescribeResult— Generated fromRepoDescribeResult.RepoExploreResult— Generated fromRepoExploreResult.RepoExploreResultItemsItem— Generated fromRepoExploreResultItemsItem.RepoForCaller— Generated fromRepoForCaller.RepoInfo— A repository’s metadata. MirrorsRepoInfoin the TypeScript SDK.RepoLicense— Generated fromRepoLicense.RepoListPageResult— Generated fromRepoListPageResult.RepoListResult— Generated fromRepoListResult.RepoListResultItemsItem— Generated fromRepoListResultItemsItem.RepoStats— Generated fromRepoStats.RepoStatsBatchResult— Generated fromRepoStatsBatchResult.RepoWithStatsInfo— Generated fromRepoWithStatsInfo.RepositoryCheckpointAccess— A short-lived descriptor for one checkpoint artifact download.RepositoryCheckpointArchive— Integrity metadata for a completed checkpoint archive.RepositoryCheckpointComplete— Completed checkpoint with manifest and archive descriptors.RepositoryCheckpointFailedAttemptsExhausted— Checkpoint generation exhausted its attempts. Terminal: generation is retired.RepositoryCheckpointFailedContactSupport— Checkpoint failed with an integrity or contract problem requiring support.RepositoryCheckpointFailedDeadlineExceeded— Checkpoint generation exceeded its deadline. Terminal: generation is retired.RepositoryCheckpointFailedInvalidSource— Checkpoint source was invalid. Terminal: generation is retired.RepositoryCheckpointFailedRepositoryDeleted— Checkpoint stopped because its repository was deleted.RepositoryCheckpointManifest— Integrity metadata for a completed checkpoint manifest.RepositoryCheckpointQueued— Checkpoint generation is queued; poll for progress.RepositoryCheckpointRunning— Checkpoint generation is running; poll for progress.RepositoryCheckpointVerificationError— A server-free checkpoint verification failure with no repository data.RepositoryCheckpointVerificationExpected— Integrity and identity facts advertised by a checkpoint access descriptor.RepositoryCheckpointVerificationResult— Verified identity, counts, and digests for a complete checkpoint archive.RepositoryClient— The synchronous repository handle.RepositoryExportError— A repository export failed to read, verify, or be served.RepositoryExportHeader— The first line of every export segment.RepositoryExportPending— The server is still building the export behind a token.RepositoryExportReader— Verifies one logical export, across one or more transport segments.RepositoryExportStream— Validated rows, plus the reader holding the header, counts and digest.RepositoryExportTicket— An asynchronously built export, not yet ready to read.RepositoryExportTrailer— The last line of a segment, carrying that segment’s integrity claim.RepositoryExportVerification— A saved export that re-verified end to end with no network access.RepositoryLocator— The organization and repository a handle is bound to.RequestPlan— Everything about a tRPC call that is decided before any I/O happens.Restore— Make a retracted Thing active again, named by its durable ID.Retract— Mark the Thingnameretracted in a new version.RetryPolicy— Knobs for the write path’s transient first-chunk retry.Revise— Replace the data of the Thingname, stating its Shapes (shapes,shapelessorkeep_shapes).RewriteCompatibilityResult— Generated fromRewriteCompatibilityResult.ServiceAccount— Generated fromServiceAccount.ShapeGetResult— Generated fromShapeGetResult.ShapeListResult— Generated fromShapeListResult.ShapeRemoveCompatibilityResult0— Generated fromShapeRemoveCompatibilityResult0.ShapeRemoveCompatibilityResult1— Generated fromShapeRemoveCompatibilityResult1.ShapeValidationResult— Local shape-validation verdict with blocking errors and warnings.StreamAppendResult0— Generated fromStreamAppendResult0.StreamAppendResult1— Generated fromStreamAppendResult1.StreamStatusCounts— Aggregate operation outcomes for a streamed submission.StreamValidationError— Client-side validation rejected a streamed submission before transport.SubmitResult— What a completed commit submission returns.SubmittedOperation— One row of a stream-append result.SubscriptionBindCredentialsResult— Generated fromSubscriptionBindCredentialsResult.SubscriptionInfo— Generated fromSubscriptionInfo.SubscriptionPauseResult— Generated fromSubscriptionPauseResult.SubscriptionRemoveResult— Generated fromSubscriptionRemoveResult.SubscriptionResumeResult— Generated fromSubscriptionResumeResult.SubscriptionRevealResult— Generated fromSubscriptionRevealResult.SubscriptionUnbindCredentialsResult— Generated fromSubscriptionUnbindCredentialsResult.SyncBoundRepoNamespace— The synchronousreponamespace withorg_name/repo_namebound.SyncBoundThingNamespace—repository.things—SyncThingNamespacewith the repo bound.SyncTransport— Issues tRPC calls over anhttpx.Client.SynthesizedRepoContent— Generated fromSynthesizedRepoContent.TRPCClientError— Carrier for a tRPC error envelope.TargetRemoved— A new reference or dependency named a removed Thing (#11477).ThingChanges— A completed incremental scan: every change, and where the scan ended.ThingDetail— Full record shape for a single-record read.ThingGetManyResult— Generated fromThingGetManyResult.ThingGetWithLease— Generated fromThingGetWithLease.ThingGraphResult— Generated fromThingGraphResult.ThingHeadVersionsResult— Generated fromThingHeadVersionsResult.ThingItem— A row from a list read (thing.head,query,search).ThingNamesResult— Generated fromThingNamesResult.TokenCreateResult— Generated fromTokenCreateResult.TokenInfo— Generated fromTokenInfo.TokenRevokeResult— Generated fromTokenRevokeResult.UndeclaredFieldsWarning— Fields present in data but absent from the supplied shape declaration.UndecodableAppendResponse— The append response was invalid and its durable outcome is unknown.UnknownErrorDetails— Forward compatibility: areasonthis client does not know yet.ValidationDiagnostic— One local builder diagnostic tied to an operation index.ValidationFailed— Request input validation failed, with per-field issues.ValidationIssue— One field-level request validation failure.ValidationResult— WhatOperationBuilder.validatereturns — never a bare bool.ViewEvaluateResult— Generated fromViewEvaluateResult.WarmHubClient— Synchronous WarmHub client.WarmHubError— Normalized error for transport, tRPC, validation, and backend failures.WarmHubException— Root of every exception the SDK raises.WhereField— A bound field path awaiting an operator. Returned bywhere.WherePredicate— One field-value predicate, ready to serialize.WhoamiInfo0— Generated fromWhoamiInfo0.WhoamiInfo1— Generated fromWhoamiInfo1.WireDecodeError— The server payload did not match the wire contract.WireThingDetail— Generated fromThingDetail.WriteOperationError— A local write refusal, before any request.
Functions
Section titled “Functions”aopen_repository_export— Theasynctwin ofopen_repository_export.aopen_repository_export_token— Theasynctwin ofopen_repository_export_token.apply_repository_export_delta— Fold a delta export over a base, keyed by durable identity.arequest_repository_export— Theasynctwin ofrequest_repository_export.assert_content_within_limit— Refuse a content field that exceeds the canonical byte limit.connection_error_message— Canonical user-facing message for a connection-level failure.content_field_limit_error— The message for an oversized content field, orNoneif it fits.create_operation_event_request_id— Alias foroperation_event_stream_request_idusing generic event wording.create_operation_event_submission_id— Mint the canonical UUID shared by one logical submission’s chunks.is_conflict— Whethererroris a lost race: re-read, re-apply, retry.is_connection_error— Whethererroris a connection-level failure raised before a response.is_known_checkpoint_content_type— Whether this SDK build recognizes a checkpoint access media type.is_known_component_install_result_state— Return whether this build recognizes the install health state.is_known_component_summary_state— Return whether this build recognizes the installation lifecycle state.is_known_credential_scope— Return whether this build recognizes the credential scoping level.is_known_global_search_result_item_kind— Return whether this build recognizes the global search result kinds.is_known_homepage_featured_item_kind— Return whether this build recognizes the homepage item kind.is_known_org_auth_scope— Isvalueone of the org scopes this build knows about?is_known_org_member_status— Return whether this build recognizes the organization membership statuses.is_known_org_role— Return whether this build recognizes the organization role.is_known_repo_auth_scope— Isvalueone of the repo scopes this build knows about?is_known_subscribable_event_type— Return whether this build recognizes the subscription event type.is_not_found— Whether the target does not exist. The create-if-missing branch.is_rate_limited— Whether a rate limit rejected the request.is_retryable— Whether an error kind is generally safe to retry.is_transport_error— Whethererrorcame from the transport rather than from the backend.is_validation_error— Whether the request was rejected as malformed.is_warmhub_error— Whethererroris already aWarmHubError.normalize_wref— Remove an@vN,@HEAD, or@ALLversion suffix from a wref.open_repository_export— Stream a repository export, verifying every line as it arrives.open_repository_export_token— Redeem an export token: the stream, or the state it is still in.operation_event_stream_request_id— Derive the ratified UUIDv5 request identity for one stream chunk.parse_repository_locator— Parse"org/repo"or"wh:org/repo/..."into its two names.request_repository_export— Ask the server to build the export in the background.shape_decoder— Build a decoder for a dataclass whose fields are the data keys.shape_name—'Deal'->'hub/shapes/Deal': the name a Shape is written under.to_warmhub_error— Normalize any thrown value into aWarmHubError.validate_against_shape— Validatedataagainst a shape’s field definitions.verify_repository_checkpoint_archive— Stream and verify a repository checkpoint archive without network access.verify_repository_export_file— Re-verify a saved export end to end, with no network access.where— Start a field-value predicate forthing.head,query,count.
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 aLiteralthat 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’sdatathing.getandget_manyreturn: “auto” or “full”. The server accepts nothing else on those reads (and onresolve).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’sdatathe head family (thing.head,head_iter,head_all, changes) returns.thing.get,get_manyandresolveaccept onlyCollectionReadDataMode(“auto” | “full”), as the server does.ErrorDetails— Structured corrective detail attached to aWarmHubError.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_headersre-stamps the resolved bearer afterwards, so a caller cannot substitute a differentauthorizationfor one call.ExtraQuery— Per-call query parameters, merged into the URL’s existing query rather than replacing it. Seemerge_extra_queryfor 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 undecodeddatamust 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 theoperationattribute.OperationInput— Public operation objects or equivalent JSON mappings accepted by validation.PayloadDecoder— Whatdecoderaccepts. 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 (seepackages/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 aLiteralthat 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—headsexports current versions;opsexports the operation history.RepositoryExportRow— One validated export row.SearchMode—textis BM25,vectoris semantic,hybridcombines them.ShapeChangeCompatibilityResult— Compatibility response returned by shape-change endpoints.ShapeFields— A shape’sdata.fields— the declaration side of shape validation.StreamAppendResult— Successful or rejected low-level stream append result.ThingKind— The record kinds a read projects.collectionis absent: a collection reads as a thing and declares itself throughcollections.ThingKindFilter— What a filter may ASK for. Wider than what a read projects for the deprecation window:collectionnarrows to things the certificate closure calls collections, whileassertionnarrows to rows with an assertion target. Neither alias is projected as a record kind.Unset— Annotate optional parameters asint | Unset, defaulting toUNSET.WhereOp— Comparison operators accepted by awherepredicate.WhereScalar— Routeable scalar RHS. MirrorsWhereScalarRhsin the TypeScript SDK.
Constants
Section titled “Constants”CONTENT_FIELD_LIMIT_ERROR— Corrective error text for a content field that exceeds the byte limit.DEFAULT_API_URL— MirrorsDEFAULT_API_URLin the TypeScript SDK.DEPENDENCY_FAILED— The per-operation code of an operation that failed only because an operation it depends on failed.KNOWN_CHECKPOINT_CONTENT_TYPES— Checkpoint access media types recognized by this SDK build.KNOWN_COMPONENT_INSTALL_RESULT_STATES— Component install health states recognized by this SDK build.KNOWN_COMPONENT_SUMMARY_STATES— Component installation lifecycle states recognized by this SDK build.KNOWN_CREDENTIAL_SCOPES— Credential scoping levels recognized by this SDK build.KNOWN_GLOBAL_SEARCH_RESULT_ITEM_KINDS— Global search result kinds recognized by this SDK build.KNOWN_HOMEPAGE_FEATURED_ITEM_KINDS— Homepage featured item kinds recognized by this SDK build.KNOWN_ORG_AUTH_SCOPES— Org scopes this build knows, in TypeScript declaration order.KNOWN_ORG_MEMBER_STATUSES— Organization membership statuses recognized by this SDK build.KNOWN_ORG_ROLES— Organization membership roles recognized by this SDK build.KNOWN_REPO_AUTH_SCOPES— Repo scopes this build knows, in TypeScript declaration order.KNOWN_SUBSCRIBABLE_EVENT_TYPES— Subscription event types recognized by this SDK build.LEGACY_WREFS_REFUSAL— The message every request is refused with underlegacy-wrefs.MAX_CONTENT_FIELD_BYTES— Maximum UTF-8 byte length accepted for a content field.SDK_VERSION— Read from installed package metadata, not a literal.UNSET— Sentinel meaning “this option was not provided”.__version__— The installed distribution’s version, under the name packaging tools expect.