Last updated 4 years ago
Was this helpful?
For a non-exhaustive list of pre-made identifiers for creating statement attachments, see the enum. AttachmentUsages are a static property of the XAPI Object.
XAPI
import XAPI, { Attachment } from "@xapi/xapi"; const attachment: Attachment = { usageType: XAPI.AttachmentUsages.SUPPORTING_MEDIA, display: { "en-US": "Image Attachment" }, description: { "en-US": "An image of something" }, contentType: "image/jpeg", length: imageArrayBufferByteLength, sha2: imageArrayBufferSHA2 };