ChatAttachments
Defined in: src/lib/chatStore/types.ts:145
Properties
multipart?
optionalmultipart:ChatMultipartAttachments
Defined in: src/lib/chatStore/types.ts:151
Present when vault takes attachments over 50 MiB in parts.
Methods
commit()
commit(
attachmentId:string,owner:object,signal?:AbortSignal):Promise<ChatAttachment>
Defined in: src/lib/chatStore/types.ts:152
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
Returns
Promise<ChatAttachment>
create()
create(
sizeBytes:number,signal?:AbortSignal):Promise<{attachment:ChatAttachment;upload:ChatPresignedUrl; }>
Defined in: src/lib/chatStore/types.ts:146
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Promise<{ attachment: ChatAttachment; upload: ChatPresignedUrl; }>
delete()
delete(
attachmentId:string,signal?:AbortSignal):Promise<void>
Defined in: src/lib/chatStore/types.ts:161
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Promise<void>
get()
get(
attachmentId:string,signal?:AbortSignal):Promise<{attachment:ChatAttachment;download?:ChatPresignedUrl; } |null>
Defined in: src/lib/chatStore/types.ts:157
Parameters
| Parameter | Type |
|---|---|
|
|
|
|
|
|
Returns
Promise<{ attachment: ChatAttachment; download?: ChatPresignedUrl; } | null>