Skip to Content
Anuma SDKReactInternalInterfacesChatMultipartAttachments

ChatMultipartAttachments

Defined in: src/lib/chatStore/types.ts:129 

Properties

maxBytes

maxBytes: number

Defined in: src/lib/chatStore/types.ts:131 

The largest ciphertext vault takes in parts.

Methods

create()

create(sizeBytes: number, signal?: AbortSignal): Promise<{ attachment: ChatAttachment; partBytes: number; partCount: number; }>

Defined in: src/lib/chatStore/types.ts:133 

Reserves more than 50 MiB; every part but the last holds exactly partBytes.

Parameters

ParameterType

sizeBytes

number

signal?

AbortSignal

Returns

Promise<{ attachment: ChatAttachment; partBytes: number; partCount: number; }>


parts()

parts(attachmentId: string, partNumbers: readonly number[], signal?: AbortSignal): Promise<ChatPresignedPart[]>

Defined in: src/lib/chatStore/types.ts:138 

Upload URLs for up to 100 parts of a pending reservation; call again when they expire.

Parameters

ParameterType

attachmentId

string

partNumbers

readonly number[]

signal?

AbortSignal

Returns

Promise<ChatPresignedPart[]>

Last updated on