Type Alias MessageReceivedItemDisposition

MessageReceivedItemDisposition:
    | {
        kind: "mutation";
        mutation: MessageReceivedMutationType;
        shouldReply: false;
    }
    | {
        kind: "unavailable";
        shouldReply: true;
        subtype: MessageReceivedUnsupportedSubtype
        | null;
    }
    | {
        kind: "message";
        shouldReply: true;
        type: Exclude<
            ExtendedMessageReceivedType,
            "unsupported"
            | "revoke"
            | "edit",
        >;
    }

The action an integration should take for an inbound message item.

mutation covers both direct type: "revoke"/"edit" envelopes and the Meta shape where the outer type is "unsupported" and the nested unsupported.type is "revoke"/"edit". Mutations must not receive an automated reply. Other unsupported subtypes represent unavailable content.