Skip to content

TypeScript API / laikacms/assets / AssetUrlSchema

Variable: AssetUrlSchema ​

ts
const AssetUrlSchema: StandardSchemaV1<{
  expiresAt?: string;
  key: string;
  url?: string;
}, {
  expiresAt?: Utc;
  key: string;
  url?: string;
}> & Struct<{
  expiresAt: optional<DateTimeUtcFromString>;
  key: String;
  url: optional<String>;
}>;

URLs for accessing an asset.

Different URL types serve different purposes:

  • download: Direct download of the original file
  • view: Inline viewing (Content-Disposition: inline)
  • public: Permanent public URL (if asset is public)

Released under the MIT License.