cayu.artifacts definitions
Public Cayu API. Definitions are grouped by their public source module, and definitions from private implementation modules appear on their package’s page; adding a symbol does not move existing links. The import shown at each entry is a supported public namespace. Read the Python API overview and install the required extra.
ArtifactClosureClaim
Section titled “ArtifactClosureClaim”from cayu.artifacts import ArtifactClosureClaimDecorators: @dataclass(frozen=True).
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
store_id |
str |
required |
session_id |
str |
required |
plan_id |
str |
required |
artifacts |
tuple[ArtifactClosureItem, ...] |
required |
Release source · Runtime guarantees · Capability guides
ArtifactClosureItem
Section titled “ArtifactClosureItem”from cayu.artifacts import ArtifactClosureItemDecorators: @dataclass(frozen=True).
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
artifact_id |
str |
required |
size_bytes |
int |
required |
metadata_sha256 |
str |
required |
Release source · Runtime guarantees · Capability guides
ArtifactInputMember
Section titled “ArtifactInputMember”from cayu.artifacts import ArtifactInputMemberExact immutable member identity, including metadata and original bytes.
Bases: ContractValue.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
resource |
ObjectRef |
required |
content_sha256 |
InputDigest |
required |
metadata_sha256 |
InputDigest |
required |
size_bytes |
InputSize |
required |
bounded_input (method)
Section titled “bounded_input (method)”ArtifactInputMember.bounded_input(value: object) -> Anyimmutable_fields (method)
Section titled “immutable_fields (method)”ArtifactInputMember.immutable_fields() -> ContractValuepinned_artifact (method)
Section titled “pinned_artifact (method)”ArtifactInputMember.pinned_artifact() -> SelfRelease source · Runtime guarantees · Capability guides
copy_artifact_closure_claim
Section titled “copy_artifact_closure_claim”from cayu.artifacts import copy_artifact_closure_claimcopy_artifact_closure_claim(value: ArtifactClosureClaim) -> ArtifactClosureClaimRelease source · Runtime guarantees · Capability guides
FolderInputEntry
Section titled “FolderInputEntry”from cayu.artifacts import FolderInputEntryCanonical relative member path; no ambient filesystem lookup is implied.
Bases: ContractValue.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
path |
Annotated[StrictStr, Field(min_length=1, max_length=512)] |
required |
git_mode |
Literal['100644', '100755'] |
required |
member |
ArtifactInputMember |
required |
bounded_input (method)
Section titled “bounded_input (method)”FolderInputEntry.bounded_input(value: object) -> Anyimmutable_fields (method)
Section titled “immutable_fields (method)”FolderInputEntry.immutable_fields() -> ContractValuecanonical_relative_path (method)
Section titled “canonical_relative_path (method)”FolderInputEntry.canonical_relative_path(value: str) -> strRelease source · Runtime guarantees · Capability guides
FolderInputManifest
Section titled “FolderInputManifest”from cayu.artifacts import FolderInputManifestSmall artifact-backed folder; member bytes remain at their resource owner.
Paths are ordered, not normalized or silently deduplicated. Multiple paths may reference the same immutable artifact, but contradictory descriptions of the same resource are invalid. Logical bytes count paths; retention counts and physical bytes count distinct resource identities.
Bases: ContractValue.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
schema_version |
Literal[1] |
1 |
entries |
tuple[FolderInputEntry, ...] |
Field(max_length=MAX_INPUT_MANIFEST_MEMBERS) |
bounded_input (method)
Section titled “bounded_input (method)”FolderInputManifest.bounded_input(value: object) -> Anyimmutable_fields (method)
Section titled “immutable_fields (method)”FolderInputManifest.immutable_fields() -> ContractValuestrict_schema_version (method)
Section titled “strict_schema_version (method)”FolderInputManifest.strict_schema_version(value: object) -> intcanonical_members (method)
Section titled “canonical_members (method)”FolderInputManifest.canonical_members() -> Selflogical_bytes (property)
Section titled “logical_bytes (property)”FolderInputManifest.logical_bytes() -> intretained_members (property)
Section titled “retained_members (property)”FolderInputManifest.retained_members() -> tuple[ArtifactInputMember, ...]Release source · Runtime guarantees · Capability guides
ResourceMaterialReference
Section titled “ResourceMaterialReference”from cayu.collaboration import ResourceMaterialReferenceComplete expected content; authority comes from the registered native owner.
Bases: ContractValue.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
schema_version |
VersionOne |
1 |
owner |
OwnerRef |
required |
operation |
OperationRef |
required |
template_commitment |
MaterialCommitment |
required |
transfer_commitment |
MaterialCommitment |
required |
preparation_commitment |
MaterialCommitment |
required |
bounded_input (method)
Section titled “bounded_input (method)”ResourceMaterialReference.bounded_input(value: object) -> Anyimmutable_fields (method)
Section titled “immutable_fields (method)”ResourceMaterialReference.immutable_fields() -> ContractValuecoherent (method)
Section titled “coherent (method)”ResourceMaterialReference.coherent()