Skip to content

TypeScript API / laikacms/storage / StorageObjectMetadataSchema

Variable: StorageObjectMetadataSchema ​

ts
const StorageObjectMetadataSchema: StandardSchemaV1<{
  extension?: string;
  revisionId?: string;
}, {
  extension?: string;
  revisionId?: string;
}> & Struct<{
  extension: optional<String>;
  revisionId: optional<String>;
}>;

Optional, capability-driven metadata attached to a storage object.

Each field is meaningful only when the corresponding storage capability is supported (see Capabilities returned by StorageRepository.getCapabilities). Implementations that don't support a capability ignore the field on writes and omit it on reads.

Backend-specific extras may live alongside the standard fields below and should stay namespaced to avoid collisions; consumers that don't recognize a key should preserve it on round-trips.

Released under the MIT License.