Skip to main content
Version: 2026.03

Files, models & artifacts

Data types for files, models, artifacts, comments, revisions, and search results.

info

All data types support standard serialization methods (to_json, from_json, to_dict, from_dict, to_str) which are omitted from the tables below.

File

Represents a file and its associated metadata, revisions, and archive status.

Attributes:

NameTypeDescription
idstr
createddatetime.datetime
revisionsList[FileRevision]
archive_status_historyList[FileArchiveStatus]
resource_idOptional[str]
resource_typeOptional[str]
created_by_idOptional[str]
control_tagsOptional[List[ControlTag]]
updatedOptional[datetime.datetime]
upstream_remote_infoOptional[UpstreamRemoteInfo]

Methods:

NameDescription
update_propertiesUpdate one or more metadata properties for the latest file revision.
update_descriptionUpdate the file’s description.
update_display_nameUpdate the file’s display name.
update_external_identifierUpdate the file’s external identifier.
update_version_nameUpdate the file’s version name.
read_bytesRead and return the raw byte contents of the associated file revision.
read_textRead the contents as decoded text.
copy_toCopy the contents to a local file.
read_jsonParse the contents as JSON.
cleanup_cacheClean up cached files if they exist.
get_cache_statsGet filesystem cache statistics.
create_accessCreate a new access relationship for a subject by ID.
create_access_by_emailCreate a new access relationship for a subject by email.
update_accessUpdate an existing access relationship for a subject.
remove_accessRemove an existing access relationship.
list_accessList all access relationships for this resource.
archiveArchive the current item using the client’s archive method for this resource type.
restoreRestore the current item using the client’s restore method for this resource type.

FileRevision

Represents a single revision of a file.

Attributes:

NameTypeDescription
idstr
createddatetime.datetime
file_idOptional[str]
content_tokenToken
properties_tokenToken
archive_status_historyList[FileRevisionArchiveStatus]
nameOptional[str]
stemOptional[str]
suffixOptional[str]
extensionOptional[str]
descriptionOptional[str]
sizeOptional[int]
mimeOptional[str]
version_nameOptional[str]
external_identifierOptional[str]
display_nameOptional[str]
sourcesOptional[List[Source]]
productsOptional[List[Product]]
created_by_idOptional[str]
updatedOptional[datetime.datetime]

Methods:

NameDescription
source_revision_idsReturn a list of revision IDs from the sources associated with this revision.
source_product_idsReturn a list of revision IDs from the products associated with this revision.
read_bytesRead and return the raw file content for this revision.
from_storage_revisionCreate a FileRevision from a core storage-layer revision.
read_textRead the contents as decoded text.
copy_toCopy the contents to a local file.
read_jsonParse the contents as JSON.
cleanup_cacheClean up cached files if they exist.
get_cache_statsGet filesystem cache statistics.
archiveArchive the current item using the client’s archive method for this resource type.
restoreRestore the current item using the client’s restore method for this resource type.

FileArchiveStatus

Attributes:

NameTypeDescription
idstr
createddatetime.datetime
nameArchiveStatusName
reasonOptional[str]
created_by_idOptional[str]
file_idstr

FileCollection

A class representing a group of files, their resolvers, and their snapshot history.

Attributes:

NameTypeDescription
idstr
createddatetime.datetime
created_by_idstr
resolver_set_idsList[str]

FileControlTagging

A control assignment to a file.

Attributes:

NameTypeDescription
idstr
createddatetime.datetime
created_by_idstr
control_tagControlTag
statusControlTaggingStatus
reasonOptional[str]
inherited_from_resource_idOptional[str]
inherited_from_resource_typeOptional[str]
file_idstr

FileHaving

Mixin for objects that contain a file and expose file revision behavior.

Methods:

NameDescription
update_propertiesUpdate one or more metadata fields on the underlying file.
update_descriptionUpdate the file’s description.
update_display_nameUpdate the file’s display name.
update_external_identifierUpdate the file’s external identifier.
update_version_nameUpdate the file’s version name.
read_bytesRead and return the raw byte contents of the associated file revision.
read_textRead the contents as decoded text.
copy_toCopy the contents to a local file.
read_jsonParse the contents as JSON.
cleanup_cacheClean up cached files if they exist.
get_cache_statsGet filesystem cache statistics.

FileRevisionArchiveStatus

Attributes:

NameTypeDescription
idstr
createddatetime.datetime
nameArchiveStatusName
reasonOptional[str]
created_by_idOptional[str]
file_revision_idstr

FileRevisionHaving

Mixin for objects that expose a FileRevision and delegate common behaviors to it.

Methods:

NameDescription
read_bytesRead and return the raw byte contents of the associated file revision.
read_textRead the contents as decoded text.
copy_toCopy the contents to a local file.
read_jsonParse the contents as JSON.
cleanup_cacheClean up cached files if they exist.
get_cache_statsGet filesystem cache statistics.

Artifact

Represents an artifact with associated file, model, and metadata.

Attributes:

NameTypeDescription
idstr
createddatetime.datetime
fileFile
commentsList[Comment]
archive_status_historyList[ResourceArchiveStatus]
created_by_idstr
model_idOptional[str]
control_tagsOptional[List[ControlTag]]

Methods:

NameDescription
update_propertiesUpdate one or more metadata fields on the underlying file.
update_descriptionUpdate the file’s description.
update_display_nameUpdate the file’s display name.
update_external_identifierUpdate the file’s external identifier.
update_version_nameUpdate the file’s version name.
read_bytesRead and return the raw byte contents of the associated file revision.
read_textRead the contents as decoded text.
copy_toCopy the contents to a local file.
read_jsonParse the contents as JSON.
cleanup_cacheClean up cached files if they exist.
get_cache_statsGet filesystem cache statistics.
create_accessCreate a new access relationship for a subject by ID.
create_access_by_emailCreate a new access relationship for a subject by email.
update_accessUpdate an existing access relationship for a subject.
remove_accessRemove an existing access relationship.
list_accessList all access relationships for this resource.
archiveArchive the current item using the client’s archive method for this resource type.
restoreRestore the current item using the client’s restore method for this resource type.

Model

Represents a model resource that includes associated files, artifacts, jobs, and metadata.

Attributes:

NameTypeDescription
idstr
createddatetime.datetime
fileFile
commentsList[Comment]
archive_status_historyList[ResourceArchiveStatus]
created_by_idstr
artifactsList[Artifact]
jobsOptional[List[Job]]
control_tagsOptional[List[ControlTag]]

Methods:

NameDescription
add_jobAdd a job associated with this model.
update_propertiesUpdate one or more metadata fields on the underlying file.
update_descriptionUpdate the file’s description.
update_display_nameUpdate the file’s display name.
update_external_identifierUpdate the file’s external identifier.
update_version_nameUpdate the file’s version name.
read_bytesRead and return the raw byte contents of the associated file revision.
read_textRead the contents as decoded text.
copy_toCopy the contents to a local file.
read_jsonParse the contents as JSON.
cleanup_cacheClean up cached files if they exist.
get_cache_statsGet filesystem cache statistics.
create_accessCreate a new access relationship for a subject by ID.
create_access_by_emailCreate a new access relationship for a subject by email.
update_accessUpdate an existing access relationship for a subject.
remove_accessRemove an existing access relationship.
list_accessList all access relationships for this resource.
archiveArchive the current item using the client’s archive method for this resource type.
restoreRestore the current item using the client’s restore method for this resource type.

ModelListItem

Model class representing a simplified summary of a Model.

Attributes:

NameTypeDescription
idstr
createddatetime.datetime
fileFile
archive_statusstr
created_by_idstr
comment_idsOptional[List[str]]
artifact_idsOptional[List[str]]
job_idsOptional[List[str]]

Methods:

NameDescription
update_propertiesUpdate one or more metadata fields on the underlying file.
update_descriptionUpdate the file’s description.
update_display_nameUpdate the file’s display name.
update_external_identifierUpdate the file’s external identifier.
update_version_nameUpdate the file’s version name.
read_bytesRead and return the raw byte contents of the associated file revision.
read_textRead the contents as decoded text.
copy_toCopy the contents to a local file.
read_jsonParse the contents as JSON.
cleanup_cacheClean up cached files if they exist.
get_cache_statsGet filesystem cache statistics.

Comment

Represents a comment associated with a file and a parent resource.

Attributes:

NameTypeDescription
idstr
createddatetime.datetime
fileFile
commentsList[Comment]
archive_status_historyList[ResourceArchiveStatus]
created_by_idstr
resource_idOptional[str]
resource_typeOptional[str]

Methods:

NameDescription
update_propertiesUpdate one or more metadata fields on the underlying file.
update_descriptionUpdate the file’s description.
update_display_nameUpdate the file’s display name.
update_external_identifierUpdate the file’s external identifier.
update_version_nameUpdate the file’s version name.
read_bytesRead and return the raw byte contents of the associated file revision.
read_textRead the contents as decoded text.
copy_toCopy the contents to a local file.
read_jsonParse the contents as JSON.
cleanup_cacheClean up cached files if they exist.
get_cache_statsGet filesystem cache statistics.
archiveArchive the current item using the client’s archive method for this resource type.
restoreRestore the current item using the client’s restore method for this resource type.

Source

Represents an upstream source that contributed to the creation of another resource.

Attributes:

NameTypeDescription
revision_idstr
file_idOptional[str]
resource_typeOptional[str]
resource_idOptional[str]
relationship_identifierOptional[str]

NewSource

Represents a reference to a source revision when creating a new model or artifact. This includes the revision's unique identifier and an optional relationship identifier that describes how the source relates to the new entity (e.g., "input", "dependency").

Attributes:

NameTypeDescription
revision_idstrUnique identifier of the source revision. (required)
relationship_identifierstr | NoneOptional label describing the relationship (e.g., "input", "dependency").

NewTrackedFile

Attributes:

NameTypeDescription
specifier_typeTrackedFileSpecifierType
file_idOptional[str]
pinned_file_revision_idOptional[str]

TrackedFile

Attributes:

NameTypeDescription
idstr
createddatetime.datetime
created_by_idstr
configuration_idstr
specifier_typeTrackedFileSpecifierType
file_idstr
current_file_revision_idstr
archive_statusstr
pinned_file_revision_idOptional[str]

TrackedFileSpecifierType

Attributes:

NameTypeDescription
LOCKED
LATEST

FullTextSearch

Represents a search query for full-text search. Attributes ———- search_term (str): The search term. page (int): The page number for pagination. size (int): The number of items per page.

Attributes:

NameTypeDescription
search_termAnnotated[str, Field(min_length=1, strict=True)]
pageOptional[int]
sizeOptional[Annotated[int, Field(le=100, strict=True)]]

ResourceSearchItem

Resource class for search results.

Attributes:

NameTypeDescription
idstr
file_idstr
file_revision_idstr
type_nameResourceType
created_by_idstr
archive_statusArchiveStatusName
createddatetime.datetime
updateddatetime.datetime
nameOptional[str]
extensionOptional[str]
sizeOptional[int]
mimeOptional[str]
descriptionOptional[str]
version_nameOptional[str]
external_identifierOptional[str]
display_nameOptional[str]

SnapshotRevisionSearchItem

Attributes:

NameTypeDescription
file_idOptional[str]
content_tokenToken
properties_tokenToken
nameOptional[str]
extensionOptional[str]
sizeOptional[int]
descriptionOptional[str]
mimeOptional[str]
version_nameOptional[str]
external_identifierOptional[str]
display_nameOptional[str]
schema_versionOptional[str]
created_by_idOptional[str]

Methods:

NameDescription
read_bytesRead the byte contents associated with this snapshot.
read_textRead the contents as decoded text.
copy_toCopy the contents to a local file.
read_jsonParse the contents as JSON.
cleanup_cacheClean up cached files if they exist.
get_cache_statsGet filesystem cache statistics.

ObjectStoreSha

ObjectStoreSha is a subclass of Base and represents where a file is stored.

Attributes:

NameTypeDescription
idstr
createddatetime.datetime
shastr
object_store_idstr

ShaStorage

ShaStorage is a subclass of Base and represents where a file is stored.

Attributes:

NameTypeDescription
idstr
createddatetime.datetime
shastr
file_store_idstr

UploadAs

Attributes:

NameTypeDescription
ARTIFACT
MODEL

PageFile

A paginated response object for listing files.

PageArtifact

A paginated response object for listing artifacts.

PageComment

A paginated response object for listing comments.

PageModelListItem

A paginated response object for listing model list items.

PageResourceSearchItem

Attributes:

NameTypeDescription
itemsList[ResourceSearchItem]
totalOptional[int]
pageOptional[int]
sizeOptional[int]
pagesOptional[int]

PageTrackedFile

A paginated response object for listing tracked files.

PageSnapshotRevisionSearchItem

A paginated response object for listing snapshot revision search results.

PageTypeVarCustomizedResourceSearchItem

Attributes:

NameTypeDescription
itemsList[ResourceSearchItem]
totalOptional[int]
pageOptional[int]
sizeOptional[int]
pagesOptional[int]