JSON
Filepack uses JSON for command input and output. This chapter includes the
schemas of all filepack types which have JSON representations, including
Manifest, which is read by filepack archive and written
by filepack manifest.
Schemas
| schema | description |
|---|---|
| Audio | Properties of an audio file. |
| AudioCodec | Audio file codec. |
| AudioFormat | Audio file container format. |
| Boolean | True or false. |
| Bytes | Byte string, encoded as lowercase hexadecimal. |
| CheckedUrl | http:// or https:// URL. |
| ChromaSubsampling | Ratio of image chroma to luma samples. |
| ColorType | How an image’s pixels encode color. |
| ComponentBuf | Path component. |
| Dimensions | Image dimensions in pixels. |
| DirectoryTree | Directory tree of subdirectories and file content. |
| DirectoryTreeEntry | Entry in a directory tree. |
| File | Hashed file. |
| Hash | BLAKE3 hash. |
| Image | Properties of an image file. |
| ImageFormat | Format of an image file. |
| Info | Local configuration. |
| Item<Audio> | Media file. |
| Item<Image> | Media file. |
| Item<Video> | Media file. |
| KeyName | Name of a key in the keychain. |
| Language | ISO 639-1 language code. |
| Lint | Check applied to a package by filepack lint. |
| LintGroup | Named group of lints. |
| Manifest | Package manifest unpacked from a package archive. |
| Media | Package media content metadata. |
| Metadata | Metadata describing a package’s content. |
| Orientation | Transformation to apply when displaying an image. |
| PackageMetadata | Metadata describing a package itself as opposed to its content. |
| PublicKey | Ed25519 public key. |
| RelativePath | Relative forward-slash-separated path. |
| Rotation | Rotation in degrees, one of 0, 90, 180, or 270. |
| Signature<Statement> | Ed25519 signature over an enveloped message. |
| SignatureEntry | Signature details. |
| String | String. |
| Text | Non-empty single line of text. |
| Time | Point in time with varying precision. |
| Totals | Directory totals. |
| Track | Track in a video file. |
| TrackCodec | Codec of a video file track. |
| TrackInfo | Track-type specific information. |
| UnsignedInteger | Unsigned 64-bit integer. |
| Utf8PathBuf | UTF-8 filesystem path. |
| Video | Properties of a video file. |
| VideoFormat | Container format of a video file. |