//core/com.kustomer.core.providers/KusChatProvider/createExternalAttachments
[androidJvm]
abstract suspend fun createExternalAttachments(attachments: List<KusExternalAttachment>): KusResult<List<KusChatAttachment>>
Registers host-owned attachments with Kustomer without uploading any bytes.
Each KusExternalAttachment is created via POST /c/v2/chat/attachments with externalUrl. Kustomer S3 is never contacted. Returned KusChatAttachments report KusChatAttachment.isHostOwned.
Returns KusResult.Error with com.kustomer.core.exception.KusInvalidExternalAttachmentException (and makes no network call) when the list is empty or any item has a blank name/contentType, an out-of-range contentLength, or a non-https url.
Note: This is a suspend function and should be called from Kotlin Coroutines
4.6.7