publish_file. Files are org-scoped objects with a fil_ id.
The group is
file, singular — matching agent, session, and webhook. The delete verb is rm. Unknown commands are a hard error, so vetta files delete exits 2 rather than deleting anything.Commands
upload
list
vetta file list --kind image,video --agent agt_… --order asc.
A --kind, --exclude-kind, --source or --order outside its list exits 2 before any request is sent. sha256 is the content hash, so you can verify a download without a second request.
update
Only the flags you pass change. The bytes, name and scope never do.
import
published file with source.type: "url_import". Only public http(s) URLs are accepted, up to 25 MiB. The CLI sends an Idempotency-Key so a retried command returns the same file.
Folders
A folder is a name on a file. A file is in one folder or none, and folders do not nest. A name is 1–64 characters with no/. If a folder with the same name in another case exists, the file takes that folder’s spelling. A file an agent writes with no folder lands in the folder of the last file its session filed.
Name up to 100 file ids, or
--from, not both. move answers { object: "file_move", folder, file_ids }. folders takes no flags and answers each folder’s name, file_count, newest_at, cover_file_ids and agent_id. No file is ever deleted by a folder change.
download
download writes the contents to stdout; there is no --out flag. Redirect it:
publish & rm
show, download, publish, and rm take the file id as a positional argument and accept no flags. rm also takes several ids.
What a run produced
There is novetta session files command. List a session’s files by filtering this group: