Skip to content

createRemoteAttachment

createRemoteAttachment(encryptedAttachment, fileUrl): RemoteAttachment

Defined in: sdks/js/agent-sdk/src/util/AttachmentUtil.ts:40

Creates a remote attachment object from an encrypted attachment and file URL.

EncryptedAttachment

The encrypted attachment containing encryption keys and metadata

string

The URL where the encrypted attachment can be downloaded

RemoteAttachment

A remote attachment object with all necessary metadata for retrieval and decryption