Creates a new empty attachments container.
Adds a new attachment with the specified payload and metadata.
The data to attach
A string identifying the entity that defined the attachment format
OptionalconformsTo: stringOptional URI identifying the structure the payload conforms to
Removes all attachments from the container.
Returns whether the container has any attachments.
StaticfromCreates an Attachments container from an envelope's attachment assertions.
The envelope to extract attachments from
A new Attachments container with the envelope's attachments
A container for vendor-specific metadata attachments.
Attachments provides a flexible mechanism for attaching arbitrary metadata to envelopes without modifying their core structure.