jmap-kit
    Preparing search index...

    Class EmailInvocation<TArgs>

    EmailInvocation represents a JMAP Email capability invocation.

    The Email data type represents email messages as defined in RFC 8621. It supports standard JMAP methods for retrieving, querying, copying, modifying, importing, and parsing email messages.

    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