konstantin-paulus 67dcb6fdcc Refactor asset and folder command outputs for consistency and clarity
Update the output format for various asset and folder commands to ensure JSON Lines are emitted on stdout, providing a consistent structure across commands. Enhance error handling to ensure that unknown ids or invalid inputs fail the entire command, improving user feedback and command reliability. This change streamlines the user experience and aligns with the fail-fast convention for batch commands.
2026-07-15 12:39:25 +02:00

740 B

dapi asset ls [ids...]

The raw asset records, as persisted minus the file handles: every serializable property the asset carries (per-type media metadata, folderId, a stored transcript, …). The property-level counterpart to asset tree's structure. With no ids, returns every asset in the library. Alias: get.

Input

  • [ids...]: zero or more asset ids (optional)

Output

JSON Lines, one per asset:

AssetRecord = { id: string } & { [property: string]: unknown }
// e.g. name, type, mimeType, size, createdAt, folderId; duration/width/height/… by type

Errors

An unknown id fails the whole command: nothing is printed to stdout and it exits non-zero with No such asset: <id> on stderr.