JMAP | N. Jenkins |
Internet-Draft | FastMail |
Intended status: Standards Track | March 26, 2019 |
Expires: September 27, 2019 |
JMAP for Calendars
draft-jenkins-jmapcalendars-01
This document specifies a data model for synchronising calendar data with a server using JMAP.
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 September 27, 2019.
Copyright (c) 2019 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 Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.
JMAP ([I-D.ietf-jmap-core] – JSON Meta Application Protocol) is a generic protocol for synchronising data, such as mail, calendars or contacts, between a client and a server. It is optimised for mobile and web environments, and aims to provide a consistent interface to different data types.
This specification defines a data model for synchronising calendar data between a client and a server using JMAP.
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.
Type signatures, examples and property descriptions in this document follow the conventions established in section 1.1 of [I-D.ietf-jmap-core].
Object properties may also have a set of attributes defined along with the type signature. These have the following meanings:
Data types defined in the core specification are used in this document.
Where LocalDate is given as a type, it means a string in the same format as Date, but with the time-offset omitted from the end. The interpretation in absolute time depends upon the time zone for the event, which may not be a fixed offset (for example when daylight saving time occurs). For example, "2014-10-30T14:12:00".
The same terminology is used in this document as in the core JMAP specification.
The capabilities object is returned as part of the standard JMAP Session object; see the JMAP spec. Servers supporting this specification MUST add a property called urn:ietf:params:jmap:calendars to the capabilities object.
The value of this property is an empty object in both the JMAP session capabilities property and an account's accountCapabilities property.
A Calendar is a named collection of events. All events are associated with one, and only one, calendar.
A Calendar object has the following properties:
Standard "/get" method as described in [I-D.ietf-jmap-core] section 5.1. The ids argument may be null to fetch all at once.
Standard "/changes" method as described in [I-D.ietf-jmap-core] section 5.2.
Standard "/set" method as described in [I-D.ietf-jmap-core] section 5.3.
A calendar MAY be deleted that is currently associated with one or more events. In this case, the events belonging to this calendar MUST also be deleted. Conceptually, this MUST happen prior to the calendar itself being deleted, and MUST generate a push event that modifies the state of the CalendarEvent type for the account.
A CalendarEvent object contains information about an event, or recurring series of events, that takes place at a particular time. It is a JSEvent object, as defined in [I-D.ietf-calext-jscalendar], with the following additional properties:
Standard "/get" method as described in [I-D.ietf-jmap-core] section 5.1.
Standard "/changes" method as described in [I-D.ietf-jmap-core] section 5.2
Standard "/set" method as described in [I-D.ietf-jmap-core] section 5.3.
When an event is created, updated or destroyed, the server MUST also ensure the following:
Standard "/copy" method as described in [I-D.ietf-jmap-core] section 5.4.
Standard "/query" method as described in [I-D.ietf-jmap-core] section 5.5.
A FilterCondition object has the following properties:
If zero properties are specified on the FilterCondition, the condition MUST always evaluate to true. If multiple properties are specified, ALL must apply for the condition to be true (it is equivalent to splitting the object into one-property conditions and making them all the child of an AND filter operator).
The exact semantics for matching String fields is deliberately not defined to allow for flexibility in indexing implementation, subject to the following:
The following properties MUST be supported for sorting:
Standard "/queryChanges" method as described in [I-D.ietf-jmap-core] section 5.6.
All security considerations of JMAP ([I-D.ietf-jmap-core]) apply to this specification. Additional considerations specific to the data types and functionality introduced by this document are described in the following subsections.
TODO
IANA will register the "calendars" JMAP Capability as follows:
Capability Name: urn:ietf:params:jmap:calendars
Specification document: this document
Intended use: common
Change Controller: IETF
Security and privacy considerations: this document, section TODO
[I-D.ietf-calext-jscalendar] | Jenkins, N. and R. Stepanek, "JSCalendar: A JSON representation of calendar data", Internet-Draft draft-ietf-calext-jscalendar-12, March 2019. |
[I-D.ietf-jmap-core] | Jenkins, N. and C. Newman, "JSON Meta Application Protocol", Internet-Draft draft-ietf-jmap-core-16, March 2019. |
[RFC2119] | Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997. |
[RFC8174] | Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017. |