Interface AttachmentApi

Namespace returned by Source.attachments. Adapters that do not advertise the attachments capability throw HonuaCapabilityNotSupportedError from each method rather than ship a null-ish placeholder.

interface AttachmentApi {
    add(request: AttachmentAdd): Promise<AttachmentEditOutcome>;
    delete(request: AttachmentDelete): Promise<readonly AttachmentEditOutcome[]>;
    list(parentId: FeatureId, options?: {
        signal?: AbortSignal;
    }): Promise<readonly AttachmentInfo[]>;
    query(request?: AttachmentQuery): Promise<readonly AttachmentGroup[]>;
    update(request: AttachmentUpdate): Promise<AttachmentEditOutcome>;
}

Methods