FileRevision | Istari Digital Documentation
AI agents: fetch /skills/istari-digital-docs/SKILL.md and follow it. Index: /llms.txt. Prefer /markdown-source/ over this HTML page. Human bootstrap: /starting-with-claude
This is documentation for the release 2026.01. Our latest release is (
2026.08 )
SDK API Reference Models FileRevision On this page
Description: Represents a single revision of a file.
Attributes
Name Type Description id StrictStr created datetime.datetime file_id Optional[StrictStr] content_token Token properties_token Token archive_status_history List[FileRevisionArchiveStatus ] name Optional[StrictStr] stem Optional[StrictStr] suffix Optional[StrictStr] extension Optional[StrictStr] description Optional[StrictStr] size Optional[StrictInt] mime Optional[StrictStr] version_name Optional[StrictStr] external_identifier Optional[StrictStr] display_name Optional[StrictStr] sources Optional[List[Source ]] products Optional[List[Product ]] created_by_id Optional[StrictStr] updated Optional[datetime.datetime]
Methods
Name Description source_revision_ids Return a list of revision IDs from the sources associated with this revision. source_product_ids Return a list of revision IDs from the products associated with this revision. read_bytes Read and return the raw file content for this revision. to_str Return the string representation of the model using field aliases. to_json Return the JSON string representation of the model using field aliases. from_json Create an instance of the model from a JSON string. to_dict Return the dictionary representation of the model using field aliases. from_dict Create an instance of the model from a dictionary. from_storage_revision Create a FileRevision from a core storage-layer revision. read_text Read the contents as decoded text. copy_to Copy the contents to a local file. read_json Parse the contents as JSON. cleanup_cache Clean up cached files if they exist. get_cache_stats Get filesystem cache statistics. archive Archive the current item using the client’s archive method for this resource type. restore Restore the current item using the client’s restore method for this resource type.