jmap-kit
    Preparing search index...

    Class BlobInvocation<TArgs>

    BlobInvocation represents a JMAP Blob capability invocation.

    The Blob data type handles binary data management with methods for copying, uploading, retrieving, and looking up binary data across accounts. The Blob/copy method is part of the Core capability (RFC 8620), while upload/get/lookup are part of the Blob Management Extension (RFC 9404).

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    • get arguments(): TArgs

      Get the arguments for the invocation

      The arguments are the named parameters passed to the method being invoked.

      Returns TArgs

    • get dataType(): JMAPDataType

      Get the data type of the invocation

      The data type of the invocation is the name of the object that methods are associated with (e.g., "Email", "Mailbox", "Thread")

      Returns JMAPDataType

    • get id(): symbol

      Get the internal identifier for the invocation

      The internal identifier is a unique symbol used to identify this invocation instance.

      Returns symbol

    • get name(): string

      Get the name of the method

      The name of the method in the format "{dataType}/{method}"

      Returns string

    Methods

    • Resolve the invocation into a JMAP request invocation tuple.

      Converts internal ResultReference arguments into their wire format (#property keys with resolved resultOf ids) and produces the [name, arguments, methodCallId] tuple expected by the JMAP protocol.

      Parameters

      • id: string

        The method call id to assign to this invocation in the request

      • lookupId: (id: symbol) => string | undefined

        A function that resolves an invocation's internal symbol id to the string method call id assigned in the request

      Returns JMAPRequestInvocation

      The resolved JMAP request invocation tuple

      If a result reference refers to an invocation whose id cannot be resolved