AI-Agent-First Documentation
Prompt your Agent: "Query and mutate records on the 'vault' table (ID prefix 'vaul_') using platform.records and platform.query.sql, ensuring all lookup fields use plain string IDs."
Vault (vault)
The `Vault` object represents a static, relational directory node (folder) within the Valstorm Virtual File System (VFS). Instead of traditional physical folders, Vaults are database records that other records "symlink" to via a lookup array. By chaining Vaults together via the `parent_vault` relationship, Valstorm constructs a dynamic, hierarchical file system where moving or renaming a folder only requires a single record update.
Python SDK & PlatformContext Example
# 1. Query vault via parameterized ANSI SQL
rows = await platform.query.sql("SELECT id, name, created_date FROM vault ORDER BY created_date DESC LIMIT 25")
# 2. Create vault record (Generates 'vaul_...' Base62 ID)
created = await platform.records.create("vault", [
{"name": "Example Vault"}
])| Field API Name | Type / Format | Lookup Target | Flags | Description |
|---|---|---|---|---|
| id | string | — | Id | |
| name | string | — | Name | |
| created_date | stringdate-time | — | Created Date | |
| modified_date | stringdate-time | — | Modified Date | |
| created_by | stringlookup | → user (string ID) | Created By | |
| modified_by | stringlookup | → user (string ID) | Modified By | |
| owner | stringlookup | → user (string ID) | Owner | |
| shared_with | listsharing | — | system | Shared With |
| parent_vault | stringlookup | → vault (string ID) | A self-referential lookup pointing to the parent `Vault` ID. Used to traverse up the hierarchy tree. Null indicates a root node. | |
| computed_paths | list | — | Read-only cached array of absolute string paths. Useful for fast exact-match or prefix-match RAG queries without recursive graph traversal. | |
| description | stringrich-text | — | Semantic context regarding the directory's intended contents, useful for automated filing or classification decisions. | |
| icon | stringicon | — | UI-only metadata field storing the string identifier for the frontend icon library (e.g., Material Icons). | |
| color | stringcolor | — | UI-only metadata field storing a hex code or color token string. | |
| vault_paths | list | — | system | Vault Paths |
| is_public | boolean | — | required | Whether everything in it is publicly accessible |
| tag | listmulti-select | — | Categorize vaults with global tags to enable multi-agent knowledge binding and querying. |
