import { defineMigrations } from '@bigbluebutton/store' import { T } from '@bigbluebutton/validate' import { createAssetValidator, TLBaseAsset } from './TLBaseAsset' /** * An asset used for URL bookmarks, used by the TLBookmarkShape. * * @public */ export type TLBookmarkAsset = TLBaseAsset< 'bookmark', { title: string description: string image: string src: string | null } > /** @internal */ export const bookmarkAssetValidator: T.Validator = createAssetValidator( 'bookmark', T.object({ title: T.string, description: T.string, image: T.string, src: T.string.nullable(), }) ) /** @internal */ export const bookmarkAssetMigrations = defineMigrations({})