Internet-Draft | VCON for MIMI | October 2024 |
Mahy | Expires 24 April 2025 | [Page] |
This document describes extensions to the Virtualized Conversation (VCON) syntax for instant messaging systems using the More Instant Messaging Interoperability (MIMI) content format.¶
This note is to be removed before publishing as an RFC.¶
The latest revision of this draft can be found at https://rohanmahy.github.io/vcon-mimi-messages/draft-mahy-vcon-mimi-messages.html. Status information for this document may be found at https://datatracker.ietf.org/doc/draft-mahy-vcon-mimi-messages/.¶
Discussion of this document takes place on the Virtualized Conversations Working Group mailing list (mailto:vcon@ietf.org), which is archived at https://mailarchive.ietf.org/arch/browse/vcon/. Subscribe at https://www.ietf.org/mailman/listinfo/vcon/.¶
Source for this draft and an issue tracker can be found at https://github.com/rohanmahy/vcon-mimi-messages.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 24 April 2025.¶
Copyright (c) 2024 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
VCON [I-D.ietf-vcon-vcon-container] is a format for recording and transmitting conversations. MIMI content [I-D.ietf-mimi-content] is a format for conveying Instant Messages in an interoperable way when end-to-end encrypted. This document describes a way to translate a set of MIMI messages in a conversation or part of a conversation into a VCON.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
A MIMI conversation (or portion thereof) is represented in VCON with a mandatory list of parties and dialogs, a new top-level room object.¶
This document adds a top-level room
object. It contains metadata
known about the room at the start of the VCON period.¶
The parties
array MUST contain all the
participants who were in the conversation at any point in time during the
period represented by the VCON.¶
This document adds a new party_object_type: imUri
. It is mandatory.
The name
field is optional. The role
indicates the MIMI role and is
optional.¶
The dialog object consists of an array of instant messages of type "text". The start time is set to the hub received timestamp when available. The duration is zero. The parties array consist of the party indexes of those who were active participants when the message was sent. The originator is set to the parties index of the sender of the message.¶
messageId
is the base64url encoding of the MIMI content messageId. It is mandatory.¶
replaces
is the base64url encoding of the MIMI content messageId of the message this message replaces. It is optional if empty.¶
expires
is the expiration date/time of the message expressed as a VCON
(text) date_type. It is optional if empty.¶
inReplyTo
is the base64url encoding of the MIMI content messageId of the message to which this message is replying (or reacting). It is optional if empty.¶
lastSeen
is an array of base64url-encoded message ids. It is mandatory.¶
mimiExtensions
is a object (map) containing MIMI extensions. It is optional.¶
VCON typically expresses content using the body, encoding, and mimetype fields. In order to preserve this convention we use these fields directly for a MIMI SinglePart structure, but use new MultiPart and ExternalPart structure for those MIMI structures.¶
ExternalPart has several fields for the decryption and integrity of the referenced content. These can be omitted once the content has been downloaded, decrypted, verified, and included in the VCON attachments array.¶
mimetype (contentType in MIMI). optional but recommended.¶
url is the URL of the content as a text string. mandatory¶
expires is a date_type (text) date. optional.¶
size is an integer number of octets. optional.¶
description is a text string. optional.¶
filename is a text string. optional.¶
These encryption/validation related fields can be omitted once the content is available locally as an attachment. All of them are base64url encoded strings. Otherwise they are mandatory if present in the MIMI content.¶
TODO: how to represent a downloaded and decrypted object in attachments?¶
disposition
- optional if set to the default value ("render")¶
language
- optional if absent¶
partIndex
is an integer. It is mandatory¶
cardinality
is one of "nullpart", "single", "external", or "multi". mandatory.¶
if cardinality is "single", then body, encoding, and mimetype fields are included directly in the Part object.¶
TODO Security¶
This document has no IANA actions.¶
TODO acknowledge.¶