CONTENT CONTRACT · VERSION 1
AssetDeclaration
Asset identity, source decoder and mandatory attribution.
Signature
{ asset_type: AssetKind, credits: {DisplayText}, format: AssetFormat, id: ContentId, license: DisplayText, path: AssetPath }Fields
| Name | Type | Meaning |
|---|---|---|
asset_type | AssetKind | Content category produced by the declared asset decoder. |
credits | {DisplayText} | Attribution lines retained in generated credits. Items: 1…32; Unique entries |
format | AssetFormat | Declared decoder for the asset's source bytes. |
id | ContentId | Package-qualified identity; unique within its declaring namespace. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
license | DisplayText | License identifier or license terms supplied by the asset author. Length: 1…4096; Pattern: ^[\s\S]*$ |
path | AssetPath | Package-relative source file; traversal and aliases are forbidden. Length: 1…4096; Pattern: ^(?:[a-z0-9_][a-z0-9_-]*/)*[a-z0-9_][a-z0-9_-]*\.(?:json|json\.gz|bin|png|webp|ogg|mp3|wav)$ |