Skip to Content

LocalMediaItem

Defined in: src/lib/chatStore/media.ts:73 

Extends

Properties

createdAt?

optional createdAt: number

Defined in: src/lib/chatStore/media.ts:27 

Inherited from

MediaItemInput.createdAt


localId

localId: string

Defined in: src/lib/chatStore/media.ts:22 

The device’s id for the file, such as StoredMedia.mediaId; the vault id is derived from it.

Inherited from

MediaItemInput.localId


metadata?

optional metadata: object

Defined in: src/lib/chatStore/media.ts:28 

Index Signature

[key: string]: ChatJson

Inherited from

MediaItemInput.metadata


mimeType

mimeType: string

Defined in: src/lib/chatStore/media.ts:24 

Inherited from

MediaItemInput.mimeType


name

name: string

Defined in: src/lib/chatStore/media.ts:23 

Inherited from

MediaItemInput.name


source

source: string

Defined in: src/lib/chatStore/media.ts:26 

The feature that made the file, such as upload, studio or voice.

Inherited from

MediaItemInput.source

Methods

read()

read(): Promise<Blob | Uint8Array<ArrayBufferLike> | VaultAttachmentSource | null>

Defined in: src/lib/chatStore/media.ts:74 

Returns

Promise<Blob | Uint8Array<ArrayBufferLike> | VaultAttachmentSource | null>

Last updated on