Internet-Draft | JSContact | July 2023 |
Stepanek & Loffredo | Expires 25 January 2024 | [Page] |
This specification defines a data model and JSON representation of contact card information that can be used for data storage and exchange in address book or directory applications. It aims to be an alternative to the vCard data format and to be unambiguous, extendable and simple to process. In contrast to the JSON-based jCard format, it is not a direct mapping from the vCard data model and expands semantics where appropriate.¶
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 25 January 2024.¶
Copyright (c) 2023 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.¶
This document may contain material from IETF Documents or IETF Contributions published or made publicly available before November 10, 2008. The person(s) controlling the copyright in some of this material may not have granted the IETF Trust the right to allow modifications of such material outside the IETF Standards Process. Without obtaining an adequate license from the person(s) controlling the copyright in such materials, this document may not be modified outside the IETF Standards Process, and derivative works of it may not be created outside the IETF Standards Process, except to format it for publication as an RFC or to translate it into languages other than English.¶
This document defines a data model for contact card data normally used in address book or directory applications and services. It aims to be an alternative to the vCard data format [RFC6350].¶
The key design considerations for this data model are as follows:¶
The representation of this data model is defined in the I-JSON format [RFC7493], which is a strict subset of the JavaScript Object Notation (JSON) Data Interchange Format [RFC8259]. Using JSON is mostly a pragmatic choice: its widespread use makes JSContact easier to adopt, and the availability of production-ready JSON implementations eliminates a whole category of parser-related interoperability issues.¶
The vCard data format [RFC6350] is an interchange format for contacts data between address book service providers and vendors. However, this format has gone through multiple specifications iterations with only a subset of its deprecated version 3 [RFC2426] being widely in use. Consequently, products and services internally use a richer contact data model than they expose when serializing that information to vCard. In addition, service providers often use a proprietary JSON representation of contact data in their APIs.¶
JSContact provides a standard JSON-based data model and representation of contact data as an alternative to proprietary formats.¶
While writing this document, several features missing in vCard were brought to the attention of the authors, such as social media contacts, gender pronouns and others. This highlights how vCard is not perceived as an evolving format and consequently hasn't been updated since close to ten years. JSContact addresses these unmet demands and defines new vCard properties and parameters to allow interchanging them in both formats.¶
The xCard [RFC6351] and jCard [RFC7095] specifications define alternative representations for vCard data, in XML and JSON format respectively. Both explicitly aim to not change the underlying data model. Accordingly, they are regarded as equal to vCard in the context of this document.¶
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.¶
The ABNF definitions in this document use the notations of [RFC5234]. ABNF rules not defined in this document either are defined in [RFC5234] (such as the ABNF for CRLF, WSP, DQUOTE, VCHAR, ALPHA, and DIGIT) or [RFC6350].¶
This section introduces the notations and terminology used to define data types in JSContact.¶
The underlying format for JSContact is JSON and so also its data types build on JSON values. The terms "object" and "array" as well as the four primitive types ("strings", "numbers", "booleans", and "null") are to be interpreted as described in Section 1 of [RFC8259]. All JSContact data MUST be valid according to the constraints given in I-JSON [RFC7493]. Unless otherwise noted, all member names in JSON objects and all string values are case sensitive. Within context of JSON objects, the term "key" is synonymous with "member name" as defined in Section 1 of [RFC8259].¶
JSContact defines data types for contact information such as addresses or names. This information typically consists of multiple related elements, for example a personal name and surname together form a name. These related elements are organized in JSContact objects. A JSContact object is a JSON object which:¶
@type
with a string value that matches the type name of this JSContact object. In general, this property does not need to be set explicitly as outlined in Section 1.3.4.¶
The following sections specify how to define JSContact object types. Section 1.7 and Section 1.8 then define the exact requirements for property names.¶
The next paragraph illustrates how a JSContact object is defined:¶
A Foo object has the following properties:¶
qux
: Number (mandatory). Defines the qux-ishness of this contact. The value MUST be an integer greater than 0 and less than 10.¶
Here, a JSContact object type named Foo
is defined. In addition to its @type
property it has a property named qux
for which values MUST be valid according to the definition of the Number
type. The property has one attribute, mandatory
, which specifies that the property MUST be present for an instance of this JSContact object to be valid. Finally, a free-text description describes the semantics and further restrictions.¶
Type signatures are given for all JSON values and JSContact definitions in this document. The following conventions are used:¶
String
- The JSON string type.¶
Number
- The JSON number type.¶
Boolean
- The JSON boolean type.¶
A[B]
- A JSON object where the keys are all of the type A
, and the values are all of the type B
.¶
A[]
- A JSON array of values of type A
.¶
A|B
- The value is either of type A
or of type B
.¶
*
- The type is undefined (the value could be any type, although permitted values may be constrained by the context of this value).¶
Section 1.4 defines common data types, including signed or unsigned integers and dates.¶
Object properties may also have a set of attributes defined along with the type signature. These have the following meanings:¶
mandatory
: The property MUST be set for an instance of this object to be valid.¶
optional
: The property can but not need be set for an instance of this object to be valid.¶
default
: This is followed by a JSON value. That value will be used for this property if it is omitted.¶
defaultType
: This is followed by the name of a JSContact object type. A property value of JSContact object type is expected to be of this named type, in case it omits the @type
property.¶
@type
Property
This property is defined as:¶
@type
: String. Specifies the type of this object. This MUST match the type name of the JSContact object of which this JSON object is an instance of.¶
The purpose of this property is to help implementations identify which JSContact object type a given JSON object represents. Implementations MUST validate that JSON objects with this property conform to the specification of the JSContact object type of that name.¶
In many cases the @type
property value is implied by where its object occurs in JSContact data. Assuming that both A
and B
are JSContact object types:¶
A
MAY have the @type
property set. If the @type
property is not set then its value is implied to be A
by the property definition.¶
A|B (defaultType: A)
MAY have the @type
property set if it is an instance of A
. It MUST have the @type
property set if it is an instance of B
. If instead the defaultType
attribute is not defined then the @type
property MUST also be set for A
.¶
@type
property set.¶
In addition to the standard JSON data types, a couple of additional data types are common to the definitions of JSContact objects and properties.¶
Where Id
is given as a data type, it means a String
of at least 1 and a maximum of 255 octets in size, and it MUST only contain characters from the URL and Filename Safe
base64url alphabet, as defined in Section 5 of [RFC4648], excluding the pad character (=
). This means the allowed characters are the ASCII alphanumeric characters (A-Za-z0-9
), hyphen (-
), and underscore (_
).¶
In many places in JSContact a JSON map is used where the map keys are of type Id and the map values are all the same type of object. This construction represents an unordered set of objects, with the added advantage that each entry has a name (the corresponding map key). This allows for more concise patching of objects, and, when applicable, for the objects in question to be referenced from other objects within the JSContact object. The map keys MUST be preserved across multiple versions of the JSContact object.¶
Unless otherwise specified for a particular property, there are no uniqueness constraints on an Id value (other than, of course, the requirement that you cannot have two values with the same key within a single JSON map). For example, two Card (Section 2) objects might use the same Ids in their respective photos
properties. Or within the same Card the same Id could appear in the emails
and phones
properties. These situations do not imply any semantic connections among the objects.¶
Where Int
is given as a data type, it means an integer in the range -253+1 <= value <= 253-1, the safe range for integers stored in a floating-point double, represented as a JSON Number
.¶
Where UnsignedInt
is given as a data type, it means an integer in the range 0 <= value <= 253-1, represented as a JSON Number
.¶
A PatchObject is of type String[*]
, and represents an unordered set of patches on a JSON object.
Each key is a path represented in a subset of JSON pointer format [RFC6901]. The paths have an implicit leading /
, so each key is prefixed with /
before applying the JSON pointer evaluation algorithm.¶
A patch within a PatchObject is only valid if all the following conditions apply:¶
addresses/1/city
and addresses
.¶
The value associated with each pointer determines how to apply that patch:¶
A PatchObject does not define its own @type
(Section 1.3.4) property. Instead, a @type
property in a patch MUST be handled as any other patched property value.¶
Implementations MUST reject in its entirety a PatchObject if any of its patches are invalid. Implementations MUST NOT apply partial patches.¶
This data type defines a resource associated with the entity represented by this Card, identified by a URI [RFC3986]. Several property definitions later in this document refer to the Resource data type as the basis for their property-specific value types. The Resource data type defines the properties that are common to all of them. Property definitions making use of Resource MAY define additional properties for their value types.¶
The @type
property value MUST NOT be Resource
, instead it MUST be the name of a concrete resource type (see Section 2.6). A Resource object has the following properties.¶
@type: String
. Specifies the type of this resource object. The allowed value is defined in later sections of this document for each concrete resource type (Section 2.6).¶
kind: String
(optional).
The kind of the resource. The allowed values are defined in the property definition that makes use of the Resource type.¶
String
(mandatory).
The resource value. This MUST be a URI as defined in Section 3 of [RFC3986] and updates.¶
String
(optional).
Used for URI resource values. Provides the media type [RFC2046] of the resource identified by the URI.¶
String[Boolean]
(optional).
The contexts in which to use this resource. Also see Section 1.5.1.¶
UnsignedInt
(optional).
The preference of this resource in relation to other resources. Also see Section 1.5.3.¶
String
(optional).
A custom label for the value, see Section 1.5.2.¶
This is a string in [RFC3339] date-time
format, with the further restrictions that any letters MUST be in uppercase, and the time offset MUST be the character Z
. Fractional second values MUST NOT be included unless non-zero and MUST NOT have trailing zeros, to ensure there is only a single representation for each date-time.¶
For example, 2010-10-10T10:10:10.003Z
is conformant, but 2010-10-10T10:10:10.000Z
is invalid and is correctly encoded as 2010-10-10T10:10:10Z
.¶
Most of the properties in this document are specific to a single JSContact object type. Such properties are defined along with the respective object type. The properties in this section are common to multiple data types and are defined here to avoid repetition. Note that these properties MUST only be set for a JSContact object if they are explicitly mentioned to be allowed for this object type.¶
Type: String[Boolean]
¶
This property associates contact information with one or more contexts in which it should be used. For example, someone might have distinct phone numbers for work and private contexts, and may set the desired context on the respective phone number in the phones
(Section 2.3.3) property.¶
This section defines common contexts. Additional contexts may be defined in the properties or data types that make use of this property. The enumerated (Section 1.7.3) common context values are:¶
Type: String
¶
This property allows associating contact data with user-defined labels. Such labels may be set for phone numbers, email addresses and resources. Typically, these labels are displayed along with their associated contact data in graphical user interfaces. Such labels best be succinct to properly display on small graphical interfaces and screens.¶
Type: UnsignedInt
¶
This property allows defining a preference order for contact information. For example, a person may have two email addresses and prefer to be contacted with one of them.¶
Its value MUST be in the range 1 and 100. Lower values correspond to a higher level of preference, with 1 being most preferred. If no preference is set, then the contact information MUST be interpreted as being least preferred.¶
Note that the preference only is defined in relation to contact information of the same type. For example, the preference orders within emails and phone numbers are independent of each other.¶
This property defines how to pronounce a value in the language indicated in the Card language (Section 2.1.5) property or the language tag of its localizations (Section 2.7.1). Exemplary uses are to define how to pronounce Japanese names, or for romanization of Mandarin or Cantonese name and address components. The properties are defined as follows:¶
phonetic: String
.
Contains the phonetic representation of a value. Any script language subtag in the Card language (Section 2.1.5) property MUST be ignored for use with the phonetic
property. If this property is set, then at least one of the phoneticScript
or phoneticSystem
properties that relate to this value MUST be set.¶
phoneticScript: String
(optional).
The script used in the value of the related phonetic
property. This MUST be a valid script subtag as defined in Section 2.2.3 of [RFC5646].¶
phoneticSystem: String
(optional).
The phonetic system used in the related value of the phonetic
property. The enumerated values (Section 1.7.3) are:¶
ipa
: denotes the International Phonetic Alphabet [IPA].¶
jyut
: denotes the Cantonese romanization system "Jyutping".¶
piny
: denotes the Standard Mandarin romanization system "Hanyu Pinyin".¶
The relation between the phoneticSystem
, phoneticScript
and phonetic
properties is type-specific. This specification defines this relation in the Name (Section 2.2.1) and Address (Section 2.5.1) object types, respectively.¶
The following example illustrates the phonetic
property for a name (Section 2.2.1):¶
Every instance of a JSContact Card (Section 2) indicates which JSContact version its IANA-registered properties and values are based on. The version is indicated both in the version
(Section 2.1.2) property within the Card and in the version (Section 4.1) parameter of the JSContact MIME content type. All IANA-registered elements indicate the version at which they got introduced or obsoleted.¶
A JSContact version consists of a numeric major and minor version, separated by the FULL STOP
character (U+002E). Later versions are numerically higher than former versions, with the major version being more significant than the minor version. A version value is produced by the ABNF¶
jsversion = 1*DIGIT "." 1*DIGIT¶
Differing major version values indicate substantial differences in JSContact semantics and format. Implementations MUST be prepared that property definitions and other JSContact elements differ in a backwards-incompatible manner.¶
Differing minor version values indicate additions that enrich JSContact data, but do not introduce backwards-incompatible changes. Typically, these are new property enum values or properties with narrow semantic scope. A new minor version MUST NOT require implementations to change their processing of JSContact data. Changing the major version number resets the minor version number to zero.¶
This specification registers JSContact version value 1.0
(Table 1).¶
This specification distinguishes between three kinds of properties regarding validation: IANA-registered properties and unknown properties are defined in this section, while vendor-specific properties are defined in Section 1.8.1. A JSContact object is invalid if any of its properties are invalid.¶
This document defines for each property if it is mandatory or optional. A mandatory property MUST be present for a JSContact object to be valid. An optional property does not need to be present. The values of both required and optional properties MUST adhere to the data type and definition of that property.¶
An IANA-registered property is any property that has been registered according to the IANA property registry rules as outlined in Section 4. All properties defined in this specification, including their object value types and enumerated values, are registered at IANA.¶
Implementations MUST validate IANA-registered properties in JSContact data, unless they are unknown to the implementation (see Section 1.7.2). They MUST reject invalid IANA-registered properties. A property is invalid if its name matches the name of an IANA-registered property but the value violates its definition according to the JSContact specification version defined in the Card version
property (Section 2.1.2).¶
IANA-registered property names MUST NOT contain US-ASCII control characters (U+0000 to U+001F, U+007F), the COLON
(U+003A) or QUOTATION MARK
(U+0022) characters. They MUST only contain US-ASCII alphanumeric characters that match the ALPHA and DIGIT rules defined in Appendix B.1 of [RFC5234]) or the COMMERCIAL AT
(U+0040) character. IANA-registered property names MUST be notated in lower camel case.¶
Implementations may encounter JSContact data where a property name is unknown to that implementation, but the name adheres to the syntactic restrictions of IANA-registered property names. Implementations MUST NOT treat such properties as invalid. Instead, they MUST preserve them in the JSContact object. Implementations that create or update JSContact data MUST only set IANA-registered properties or vendor-specific properties. Preserving properties that are unknown to the implementation, is to allow applications and services to interoperate without data loss, even if not all of them implement the same set of JSContact extensions.¶
Several properties in this document restrict their allowed values to be from a list of String values. These values are case-sensitive. If not noted otherwise for a specific property, the initial list of values for such properties is registered at IANA in the JSContact Enum Values Registry (Section 4.7). Implementations MUST only set IANA-registered or vendor-specific (Section 1.8.2) values for such properties.¶
Vendors may extend properties and values for experimentation or to store contacts data that only is useful for a single service or application. Such extensions are not meant for interoperation. If instead interoperation is desired, vendors are strongly encouraged to define and register new properties, types and values at IANA. Section 4 defines how to register new properties, types or values at IANA. Section 1.7.1 defines the naming conventions for IANA-registered elements.¶
Vendor-specific property names MUST start with a vendor-specific prefix followed by a name, as produced by the v-extension
ABNF below. The vendor-specific prefix MUST be a domain name under control of the service or application that sets the property, but it need not resolve in the Domain Name System [RFC1034] and [RFC1035]. The prefix ietf.org
and its subdomain names are reserved for IETF specifications. The name MUST NOT contain the TILDE
(U+007E) and SOLIDUS
(U+002F) characters, as these require special-escaping when encoding a JSON Pointer [RFC6901] for that property.¶
Vendor-specific properties MAY be set in any JSContact object. Implementations MUST preserve vendor-specific properties in JSContact data, irrespective if they know their use. They MUST NOT reject the property value as invalid, unless they are in control of the vendor-specific property as outlined in the above paragraph.¶
The ABNF rule v-extension
formally defines valid vendor-specific property names. Note that the vendor prefix allows for more values than are allowed as Internationalized Domain Names (IDN) [RFC8499]. This is to allow JSContact implementations simply validate property names without implementing the full set of rules that apply to domain names.¶
The value of vendor-specific properties can be any valid JSON value, and naming restrictions do not apply to such values. Specifically, if the property value is a JSON object then the keys of such objects need not be named as vendor-specific properties. The example in Figure 3 illustrates this:¶
Some JSContact IANA-registered properties allow their values to be vendor-specific. One such example is the kind
property Section 2.1.4, which enumerates its standard values but also allows for arbitrary vendor-specific values. Such vendor-specific values MUST be valid v-extension
values as defined in Section 1.8.1. The example in Figure 4 illustrates this:¶
Vendors are strongly encouraged to specify a new standard value once a vendor-specific one turns out to be useful also for other systems.¶
This specification reserves the property name extra
at IANA. Its sole purpose is to provide implementors with an internal variable name which is certain to never occur as a property name in a JSContact object. Implementations might want to map unknown or vendor-specific properties to a variable with this name, but this is implementation-specific. Any JSContact object including a property with this name is invalid.¶
This section defines the JSContact object type Card. A Card stores contact information, typically that of a person, organization or company.¶
Its media type is defined in Section 4.1.¶
Figure 5 basic Card for the person "John Doe". As the object is the topmost object in the JSON data it has the @type
property set according to the rules defined Section 1.3.4.¶
This section defines properties about this instance of a Card, such as its unique identifier, its creation date, how it relates to other Cards and other metadata information.¶
Type: String
(mandatory).¶
Specifies the JSContact version used to define this Card. The value MUST be one of the IANA-registered JSContact Enum Values for the version
property. Also see Section 1.6.2.¶
Type: String
(optional). The kind of the entity the Card represents.¶
The enumerated (Section 1.7.3) values are:¶
individual
: a single person¶
group
: a group person of persons or entities¶
org
: an organization¶
location
: a named location¶
device
: a device, such as appliances, computers, or network elements¶
application
: a software application¶
Type: String
(optional).¶
This is the language tag, as defined in [RFC5646], that best describes the language used for text in the Card, optionally including additional information such as the script. Note that values MAY be localized in the localizations
property Section 2.7.1. How to render text is out of scope of this specification, e.g., refer to [UBiDi] how to deal with different writing directions.¶
Type: String[Boolean]
(optional).¶
This identifies the set of Cards that are members of this group Card. Each key in the set is the uid
property value of the member, each boolean value MUST be true
. If this property is set, then the value of the kind
property MUST be group
.¶
The opposite is not true. A group Card will usually contain the members
property to specify the members of the group, but it is not required to. A group Card without the members
property can be considered an abstract grouping, or one whose members are known empirically (e.g., "IETF Participants").¶
Type: String
(optional).¶
The identifier for the product that created the Card. If set, the value MUST be at least one character long.¶
Type: String
(mandatory).¶
An identifier, used to associate the object as the same across different systems, address books and views. The value SHOULD be a URN [RFC8141] but for compatibility with [RFC6350] it MAY also be a URI [RFC3986] or free-text value. The value of the URN SHOULD be in the uuid
namespace [RFC4122]. As of this writing, a revision [I-D.ietf-uuidrev-rfc4122bis] of the UUID standard document is being worked on and is likely to introduce new UUID versions and best practices to generate global unique identifiers. Implementors SHOULD follow any recommendations described there. Until then, implementations SHOULD generate identifiers using the random or pseudo-random UUID version described in Section 4.4 of [RFC4122].¶
This section defines properties that name the entity represented by this Card, its related organizations and roles, as well as how to refer the entity represented by this Card in spoken or written language.¶
Type: Name
(optional).¶
The name of the entity represented by this Card. This can be any type of name, e.g., it can but need not be the legal name of a person.¶
A Name object has the following properties¶
String
.
This MUST be Name
, if set.¶
components: NameComponent[]
(optional). The components (Section 2.2.1.2) making up the name. The component list MUST have at least one entry. This property SHOULD be set, and it MUST be set if the full
property is not set.¶
Name components SHOULD be ordered such that their values joined as a String produce a valid full name of this entity. If so, implementations MUST set the isOrdered
property value to "true".¶
If the name components are ordered, then the defaultSeparator
property and name components of kind separator
give guidance what characters to insert between components, but implementations are free to choose any others. In lack of a separator, inserting a single Space character in between name component values is a good choice.¶
If instead the name components follow no particular order, then the isOrdered
property value MUST be "false", the components
property MUST NOT contain a NameComponent of kind separator
and the defaultSeparator
property MUST NOT be set.¶
Figure 15 is an example for the name "Vincent van Gogh". Note how a single name component value may consist of multiple words. Figure 16 illustrates a name with a second surname, such as a Spanish name. Additional examples are shown in Figure 18 and Figure 38.¶
Boolean
(optional, default: false
). This indicates if the name component sequence in the components
property is ordered.¶
String
(optional).
The default separator to insert between name component values when concatenating all name component values to a single String. Also see the definition of the separator
kind for the NameComponent object. This property MUST NOT be set if the Name isOrdered
property value is false
.¶
full: String
(optional).
This is the full name representation of this Name. This property MUST be set if the components
property is not set.¶
sortAs: String[String]
(optional).¶
This defines how this name lexicographically sorts in relation to other names when compared by a name component type. The key in the map defines the name component type. The value for that key defines the verbatim string to compare when sorting by this name component type. Absence of a key indicates that this name component type should not be considered during sort. Sorting by that missing name component type or if the sortAs
property is not set is implementation-specific. This property MUST NOT be set if the components
property is not set.¶
Each key in the map MUST be a valid name component type value as defined for the kind
property of the NameComponent object (see below). For each key in the map there MUST exist at least one NameComponent object having that type in the components
property of this name.¶
Figure 18 illustrates the use of sortAs. The property value indicates that the middle name followed by both surnames should be used when sorting this name by surname. The absence of the middle
indicates that the middle name on its own should be disregarded during sort. Even though the name only contains one name component for the given name, the sortAs property still explicitly defines how to sort by given name as otherwise sorting by it would be undefined.¶
phoneticScript: String
(optional).
The script used in the value of the NameComponent phonetic
property. Also see Section 1.5.4. See Figure 19 for an example.¶
phoneticSystem: String
(optional).
The phonetic system used in the NameComponent phonetic
property. Also see Section 1.5.4. See Figure 19 for an example.¶
A NameComponent object has the following properties:¶
String
.
This MUST be NameComponent
, if set.¶
String
(mandatory).
The value of this name component. This can be composed of one or multiple words, such as "Poe" or "van Gogh".¶
kind: String
(mandatory).
The kind of this name component. The enumerated (Section 1.7.3) values are:¶
title
. The value is an honorific title or prefix, e.g., "Mr", "Ms", "Dr".¶
given
. The value is a given name, also known as "first name", "personal name".¶
given2
. The value is a name that appears between the given and surname, such as a middle name or patronymic name¶
surname
. The value is a surname, also known as "last name", "family name".¶
surname2
. The value is a secondary surname (used in some cultures), also known as "maternal surname".¶
credential
. The value is a credential, also known as "accreditation qualifier" or "honorific suffix", e.g., "B.A.", "Esq.".¶
generation
. The value is a generation marker or qualifier, e.g., "Jr." or "III".¶
separator
. A formatting separator between two ordered name non-separator components. The value
property of the component includes the verbatim separator, for example a hyphen character or even an empty string. This value has higher precedence than the defaultSeparator
property of the Name. Implementations MUST NOT insert two consecutive separator components, instead they SHOULD insert a single separator component with the combined value. This component kind MUST NOT be set if the Name isOrdered
property value is false
.¶
String
(optional). This defines how to pronounce this name component. If this property is set, then at least one of the Name object phoneticSystem
or phoneticScript
properties MUST be set. Also see Section 1.5.4.¶
Type: Id[NickName]
(optional).¶
The nicknames of the entity represented by this Card. A NickName object has the following properties:¶
String
.
This MUST be NickName
, if set.¶
String
(mandatory).
The nickname.¶
String[Boolean]
(optional)
The contexts in which to use this nickname. Also see Section 1.5.1.¶
UnsignedInt
(optional).
The preference of this nickname in relation to other nicknames. Also see Section 1.5.3.¶
Type: Id[Organization]
(optional).¶
The companies or organization names and units associated with this Card. An Organization object has the following properties, of which at least one of the name
and units
properties MUST be set:¶
String
.
This MUST be Organization
, if set.¶
String
(optional).
The name of this organization.¶
OrgUnit[]
(optional).
A list of organizational units, ordered descending by hierarchy (e.g., a geographic or functional division sorts before a department within that division). If set, the list MUST contain at least one entry.¶
String
(optional).
This defines how this organization name lexicographically sorts in relation to other organizations when compared by name. The value defines the verbatim string value to compare. In absence of this property, the name
property value MAY be used for comparison.¶
String[Boolean]
(optional).
The contexts in which association with this organization apply. For example, membership in a choir may only apply in a private context. Also see Section 1.5.1.¶
A OrgUnit object has the following properties:¶
String
.
This MUST be OrgUnit
, if set.¶
String
(mandatory).
The name of this organizational unit.¶
String
(optional).
This defines how this organization unit name lexicographically sorts in relation to other organizational units of the same level when compared by name. The level is defined by the array index of this organizational unit in the units
property of the Organization object. The property value defines the verbatim string value to compare. In absence of this property, the name
property value MAY be used for comparison.¶
Type: SpeakToAs
(optional).¶
Provides information how to address, speak to or refer to the entity that is represented by this Card. A SpeakToAs object has the following properties, of which at least one of the grammaticalGender
and pronouns
properties MUST be set:¶
String
.
This MUST be SpeakToAs
, if set.¶
grammaticalGender: String
(optional).
Defines which grammatical gender to use in salutations and other grammatical constructs.
For example, the German language distinguishes by grammatical gender in salutations such as "Sehr geehrte" (feminine) and "Sehr geehrter" (masculine).
The enumerated (Section 1.7.3) values are:¶
Note that the grammatical gender does not allow inferring the gender identities or assigned sex of the contact.¶
pronouns: Id[Pronouns]
(optional).
Defines the pronouns that the contact chooses to use for themselves.¶
A Pronouns object has the following properties:¶
String
.
This MUST be Pronouns
, if set.¶
String
(mandatory).
Defines the pronouns. Any value or form is allowed. Examples in English include she/her
and they/them/theirs
. The value MAY be overridden in the localizations
property (Section 2.7.1).¶
String[Boolean]
(optional).
The contexts in which to use these pronouns. Also see Section 1.5.1.¶
UnsignedInt
(optional).
The preference of these pronouns in relation to other pronouns in the same context. Also see Section 1.5.3.¶
Type : Id[Title]
(optional).¶
The job titles or functional positions of the entity represented by this Card. A Title object has the following properties:¶
String
.
This MUST be Title
, if set.¶
String
(mandatory).
The title or role name of the entity represented by this Card.¶
kind: String
(optional, default title
).
Describes the organizational or situational kind of this title. Some organizations and individuals distinguish between titles as organizational positions and roles as more temporary assignments, such as in project management.¶
The enumerated (Section 1.7.3) values are:¶
Id
(optional).
The identifier of the organization in which this title is held.¶
This section defines properties how to contact the entity represented by this Card.¶
Type: Id[EmailAddress]
(optional).¶
The email addresses to contact the entity represented by this Card. An EmailAddress object has the following properties:¶
String
.
This MUST be EmailAddress
, if set.¶
String
(mandatory).
The email address. This MUST be an addr-spec value as defined in Section 3.4.1 of [RFC5322].¶
String[Boolean]
(optional).
The contexts in which to use this email address. Also see Section 1.5.1.¶
UnsignedInt
(optional).
The preference of this email address in relation to other email addresses. Also see Section 1.5.3.¶
String
(optional).
A custom label for the value, see Section 1.5.2.¶
Type: Id[OnlineService]
(optional).¶
The online services that are associated with the entity represented by this Card. This can be messaging services, social media profiles, and other. An OnlineService object has the following properties, of which at least the uri
or user
property MUST be set:¶
String
.
This MUST be OnlineService
, if set.¶
String
(optional).
The name of the online service or protocol. The name MAY be capitalized the same as on the service's website, app or publishing material, but names MUST be considered equal is they match case-insensitively. Examples are GitHub
, kakao
, Mastodon
.¶
String
(optional).
This identifies the entity represented by this card at the online service. This MUST be a URI as defined in Section 3 of [RFC3986] and updates.¶
String
(optional).
This names the entity represented by this Card at the online service. Any free-text value is allowed. The service
property SHOULD be set.¶
String[Boolean]
(optional).
The contexts in which to use this service. Also see Section 1.5.1.¶
UnsignedInt
(optional).
The preference of this service in relation to other services. Also see Section 1.5.3.¶
String
(optional).
A custom label for the value, see Section 1.5.2.¶
Type: Id[Phone]
(optional).¶
The phone numbers to contact the entity represented by this Card. A Phone object has the following properties:¶
String
.
This MUST be Phone
, if set.¶
String
(mandatory).
The phone number, as either a URI or free-text. Typical URI schemes are the [RFC3966] tel
or [RFC3261] sip
schemes, but any URI scheme is allowed.¶
features: String[Boolean]
(optional).
The set of contact features that this phone number may be used for. The set is represented as an object, with each key being a method type. The boolean value MUST be true
. The enumerated (Section 1.7.3) method type values are:¶
mobile
The number is for a mobile phone.¶
voice
The number is for calling by voice.¶
text
The number supports text messages (SMS).¶
video
The number supports video conferencing.¶
main-number
This number is the main phone number, such as the number of the front-desk at a company, as opposed to a direct-dial number of an individual employee.¶
textphone
The number is for a device for people with hearing or speech difficulties.¶
fax
The number is for sending faxes.¶
pager
The number is for a pager or beeper.¶
String[Boolean]
(optional).
The contexts in which to use this number. Also see Section 1.5.1.¶
UnsignedInt
(optional).
The preference of this number in relation to other numbers. Also see Section 1.5.3.¶
String
(optional).
A custom label for the value, see Section 1.5.2.¶
Type : Id[LanguagePref]
(optional).¶
Defines the preferred languages for contacting the entity associated with this Card.¶
A LanguagePref object has the following properties:¶
String
.
This MUST be LanguagePref
, if set.¶
String
(mandatory). The preferred language. This MUST a language tag as defined in [RFC5646].¶
String[Boolean]
(optional).
Defines the contexts in which to use this language. Also see Section 1.5.1.¶
UnsignedInt
(optional).
Defines the preference of this language in relation to other languages of the same contexts. Also see Section 1.5.3.¶
This section defines properties how to schedule calendar events with the entity represented by this Card.¶
Type: Id[Calendar]
(optional).¶
These are resources for calendaring, such as calendars to lookup free-busy information for the entity represented by this Card. A Calendar object has all properties of the Resource (Section 1.4.4) data type, with the following additional definitions:¶
@type
property value MUST be Calendar
, if set.¶
The enumerated (Section 1.7.3) values of the kind
property are:¶
calendar
The resource is a calendar that contains entries such as calendar events or tasks.¶
freeBusy
The resource allows for free-busy lookups, for example to schedule group events.¶
Type: Id[SchedulingAddress]
(optional).¶
The scheduling addresses by which the entity may receive calendar scheduling invitations. A SchedulingAddress object has the following properties:¶
@type: String
.
This MUST be SchedulingAddress
, if set.¶
String
(mandatory).
The address to use for calendar scheduling with this contact. This MUST be a URI as defined in Section 3 of [RFC3986] and updates.¶
String[Boolean]
(optional).
The contexts in which to use this scheduling address. Also see Section 1.5.1.¶
UnsignedInt
(optional).
The preference of this scheduling address in relation to other scheduling address. Also see Section 1.5.3.¶
String
(optional).
A custom label for the scheduling address, see Section 1.5.2.¶
This section defines properties for postal addresses and geographical locations associated with the entity represented by this Card.¶
Type: Id[Address]
(optional).¶
A map of address identifiers to Address objects, containing physical locations.¶
An Address object has the following properties:¶
String
.
This MUST be Address
, if set.¶
components: AddressComponent[]
(optional).
The components (Section 2.5.1.2) making up this address. The component list MUST have at least one entry. This property SHOULD be set, and it MUST be set if the full
property is not set.¶
Address components SHOULD be ordered such that their values joined as a String produce a valid full address. If so, implementations MUST set the isOrdered
property value to "true".¶
If the address components are ordered, then the defaultSeparator
property and address components of kind separator
give guidance what characters to insert between components, but implementations are free to choose any others. In lack of a separator, inserting a single Space character in between address component values is a good choice.¶
If instead the address components follow no particular order, then the isOrdered
property value MUST be "false", the components
property MUST NOT contain a AddressComponent of kind separator
and the defaultSeparator
property MUST NOT be set.¶
Boolean
(optional, default: false
). This indicates if the address component sequence in the components
property is ordered.¶
String
(optional).
The Alpha-2 country code [ISO.3166-1.2006].¶
String
(optional). A [RFC5870] "geo:" URI for the address.¶
String
(optional). Identifies the time zone this address is located in. This MUST be a time zone name registered in the IANA Time Zone Database [IANATZ]¶
contexts: String[Boolean]
(optional).
The contexts of the address information. The boolean value MUST be true
. In addition to the common contexts (Section 1.5.1), allowed key values are:¶
String
(optional).
This is the full address, including street, region or country. The purpose of this property is to define an address, even if the individual address components are not known. If the street
property is set, the full
property SHOULD NOT be set.¶
String
(optional).
The default separator to insert between address component values when concatenating all address component values to a single String. Also see the definition of the separator
kind for the AddressComponent object. This property MUST NOT be set if the Address isOrdered
property value is false
.¶
UnsignedInt
(optional).
The preference of this address in relation to other addresses. Also see Section 1.5.3.¶
phoneticScript: String
(optional).
The script used in the value of the AddressComponent phonetic
property. Also see Section 1.5.4.¶
phoneticSystem: String
(optional).
The phonetic system used in the AddressComponent phonetic
property. Also see Section 1.5.4.¶
The following example illustrates the use of the address
property. Additional examples are in Section 2.5.1.3.¶
An AddressComponent object has the following properties:¶
String
.
This MUST be AddressComponent
, if set.¶
String
(mandatory).
The value of this address component.¶
kind: String
(mandatory).
The kind of this address component. The enumerated (Section 1.7.3) values are:¶
room
. The room or suite number or identifier.¶
apartment
. The extension designation, such as apartment number or unit or box number.¶
floor
. The floor or level this address is located on.¶
building
. The building, tower, or condominium this address is located in.¶
number
. The street number, e.g., "123". This value is not restricted to numeric values, and can include any value such as number ranges ("112-10"), grid style ("39.2 RD"), alphanumerics ("N6W23001") or fractionals ("123 1/2").¶
name
. The street name.¶
block
. The block name or number.¶
subdistrict
. The sub district, ward or other subunit of a district.¶
district
. The district name.¶
locality
. The municipality, city, town, village, post-town, or another locality.¶
region
. The administrative area, such as province, state, prefecture, county, canton.¶
postcode
. The postal code, post code, ZIP code or other short code associated with the address by the relevant country's postal system.¶
country
. The country name.¶
direction
. The Cardinal direction or quadrant, e.g., "North".¶
landmark
. The publicly known prominent feature that can substitute the street name and number, e.g., White House, Taj Mahal.¶
postOfficeBox
. The post office box number or identifier.¶
separator
. A formatting separator between two ordered address non-separator components. The value
property of the component includes the verbatim separator, for example a hyphen character or even an empty string. This value has higher precedence than the defaultSeparator
property of the Address. Implementations MUST NOT insert two consecutive separator components, instead they SHOULD insert a single separator component with the combined value. This component kind MUST NOT be set if the Address isOrdered
property value is false
.¶
String
(optional). This defines how to pronounce this name component. If this property is set, then at least one of the Address object phoneticSystem
or phoneticScript
properties MUST be set. Also see Section 1.5.4.¶
The following are examples of addresses, in addition to Figure 30.¶
This section defines properties for digital resources associated with the entity represented by this Card.¶
Type: Id[CryptoKey]
(optional).¶
These are cryptographic resources such as public keys and certificates associated with the entity represented by this Card. A CryptoKey object has all properties of the Resource (Section 1.4.4) data type, with the following additional definitions:¶
@type
property value MUST be CryptoKey
, if set.¶
The following example shows how refer to an external cryptographic resource.¶
The following example shows how to embed key data in the CryptoKey. The key data is depicted in multiple lines only for demonstration purposes.¶
Type: Id[Directory]
(optional).¶
These are directory service resources, such as entries in a directory or organizational directories for lookup. A Directory object has all properties of the Resource (Section 1.4.4) data type, with the following additional definitions:¶
@type
property value MUST be Directory
, if set.¶
The enumerated (Section 1.7.3) values of the kind
property are:¶
directory
The resource is a directory service where the entity represented by this Card is part of. This typically is an organizational directory that also contains associated entities, e.g., co-workers and management in a company directory.¶
entry
The resource is a directory entry of the entity represented by this Card. In contrast to the directory
type, this is the specific URI for the entity within a directory.¶
In addition, the Directory object has the following property:¶
UnsignedInt
(optional).
This defines the position of this directory resource in the list of all Directory objects having the same kind
in this Card. If set, the listAs
value MUST be higher than zero. Multiple directory resources MAY have the same listAs
property value, or none. Sorting such entries is implementation-specific.¶
Type: Id[Link]
(optional).¶
These are links to resources that do not fit any of the other use-case specific resource properties. A Link object has all properties of the Resource (Section 1.4.4) data type, with the following additional definitions:¶
@type
property value MUST be Link
, if set.¶
The enumerated (Section 1.7.3) values of the kind
property are:¶
contact
The resource is a URI by which the entity represented by this Card may be contacted, including web forms or other media that require user interaction.¶
Type: Id[Media]
(optional).¶
These are media resources such as photographs, avatars, or sounds associated with the entity represented by this Card. A Media object has all properties of the Resource (Section 1.4.4) data type, with the following additional definitions:¶
@type
property value MUST be Media
, if set.¶
The enumerated (Section 1.7.3) values of the kind
property are:¶
photo
The resource is a photograph or avatar.¶
sound
The resource is audio media, e.g., to specify the proper pronunciation of the name property contents.¶
logo
The resource is a graphic image or logo associated with the entity represented by this Card.¶
This section defines properties how to localize the content of this Card in human languages.¶
Type: String[PatchObject] (optional).¶
This localizes property values in this Card to languages other than the main language. Localizations provide language-specific alternatives for existing property values and SHOULD NOT add new properties.¶
The keys in the localizations property object are language tags [RFC5646]. The values are patch objects which localize the Card in the respective language tag. The paths in the PatchObject are relative to the Card that includes the localizations
property. A patch MUST NOT target the localizations
property.¶
Conceptually, a Card is localized as follows:¶
language
property in the copy of the Card.¶
A patch in the PatchObject may contain any value type. Its value MUST be a valid value according to the definition of the patched property.¶
Figure 38 localizes the name
property by completely replacing its contents in Ukrainian language with Cyrillic script.¶
Figure 39 localizes the title name by patching inside the titles
property. All properties but the name
property in the Title object are left as-is.¶
This section defines properties for which none of the previous sections are appropriate.¶
Type : Id[Anniversary] (optional).¶
These are memorable dates and events for the entity represented by this Card. An Anniversary object has the following properties:¶
String
.
This MUST be Anniversary
, if set.¶
kind: String
(mandatory).
Specifies the kind of the anniversary. The enumerated (Section 1.7.3) values are:¶
date: PartialDate|Timestamp
(mandatory, defaultType: PartialDate
).¶
The date of this anniversary in the Gregorian calendar. This MUST either be a whole or partial calendar date or a complete UTC timestamp (see the definition of the Timestamp and PartialDate object types below).¶
A PartialDate object represents a complete or partial calendar date in the Gregorian calendar. It represents either a complete date, or a year, or a month in a year, or a day in a month. It has the following properties, of which at least year
or month
and day
MUST be set:¶
String
.
This MUST be PartialDate
, if set.¶
UnsignedInt
(optional). This is the calendar year.¶
UnsignedInt
(optional). This is the calendar month, represented as the integers 1 <= month <= 12. If this property is set then either year
or day
MUST be set.¶
UnsignedInt
(optional). This is the calendar month day, represented as the integers 1 <= day <= 31, depending on the validity within the month and year. If this property is set then month
MUST be set.¶
String
(optional). This is the calendar system in which this date occurs, in lowercase. This MUST be either a CLDR-registered calendar system name [RFC7529] or a vendor-specific value. The year, month and day still MUST be represented in the Gregorian calendar. Note that the year
property might be required to convert the date between the Gregorian calendar and the respective calendar system.¶
A Timestamp object has the following properties:¶
String
.
This MUST be Timestamp
, if set.¶
UTCDateTime
(mandatory). Specifies the point in time in UTC time.¶
Figure 40 illustrates anniversaries with partial dates and timestamp. Note how the @type
property is set for the Timestamp
object value according to the rules defined Section 1.3.4.¶
Type: String[Boolean]
(optional).
A set of free-text keywords, also known as tags. The set is represented as an object, with each key being a keyword. The boolean value MUST be true
.¶
Type: Id[Note]
(optional).¶
Free-text notes associated with this Card. A Note object has the following properties:¶
String
.
This MUST be Note
, if set.¶
note: String
(mandatory). The free text value of this note.¶
created: UTCDateTime
(optional). The date and time when this note was created.¶
author: Author
(optional). The author of this note.¶
An Author object has the following properties, of which at least one other than @type
MUST be set:¶
String
.
This MUST be Author
, if set.¶
name: String
(optional). The name of this author.¶
uri: String
(optional). A URI value that identifies the author.¶
Type: Id[PersonalInfo]
(optional).¶
Defines personal information about the entity represented by this Card. A PersonalInfo object has the following properties:¶
String
.
This MUST be PersonalInfo
, if set.¶
kind: String
(mandatory).
Specifies the kind of this personal information. The enumerated (Section 1.7.3) values are:¶
String
(mandatory).
The actual information.¶
level: String
(optional).
Indicates the level of expertise, or engagement in hobby or interest.
The enumerated (Section 1.7.3) values are:¶
UnsignedInt
(optional).
This defines the position of this personal information in the list of all PersonalInfo objects having the same kind
in this Card. If set, the listAs
value MUST be higher than zero. Multiple personal information entries MAY have the same listAs
property value, or none. Sorting such entries is implementation-specific.¶
String
(optional).
A custom label. See Section 1.5.2.¶
NOTE: Please remove this section and the reference to [RFC7942] prior to publication as an RFC. This section records the status of known implementations of the format defined by this specification at the time of posting of this Internet-Draft, and is based on a proposal described in [RFC7942]. The description of implementations in this section is intended to assist the IETF in its decision processes in progressing drafts to RFCs. Please note that the listing of any individual implementation here does not imply endorsement by the IETF. Furthermore, no effort has been spent to verify the information presented here that was supplied by IETF contributors. This is not intended as, and must not be construed to be, a catalog of available implementations or their features. Readers are advised to note that other implementations may exist. According to [RFC7942], "this will allow reviewers and working groups to assign due consideration to documents that have the benefit of running code, which may serve as evidence of valuable experimentation and feedback that have made the implemented protocols more mature. It is up to the individual working groups to use this information as they see fit".¶
[I-D.ietf-calext-jscontact] defines a media type for use with JSContact data formatted in JSON.¶
None¶
IANA is asked to create the "JSContact" registry group. The new registry definitions in the following sections all belong to that group.¶
Registry assignments that introduce backwards-incompatible (Section 1.6) changes require the JSContact major version to change, other changes only require to change the minor version. The registry policy for assignments that require the JSContact major version to change is Standards Action ([RFC8126], Section 4.9). The registry policy for other assignments is Specification Required ([RFC8126], Section 4.6).¶
The Designated Expert decides if a major or minor version change is required and assigns the new version to the Version Registry (Section 4.4). Version numbers increment by one, and a major version change resets the minor version to zero. An assignment may apply multiple changes and to more than one registry at once, in which case a single version change is sufficient. If the registry policy is Specification Required, then the Designated Expert may decide that it is enough to document the new assignment in the Description item of the respective registry.¶
A registration MUST have an intended usage of common
, reserved
, or obsolete
.¶
common
usage denotes an item with shared semantics and syntax across systems. Up-to-date systems MUST expect such items to occur in JSContact data.¶
reserved
usage reserves an item in the registry without assigning semantics to avoid name collisions with future extensions or protocol use.¶
obsolete
usage denotes an item that is no longer expected to be added by up-to-date systems. A new assignment has probably been defined covering the obsolete item's semantics.¶
The registration procedure is not a formal standards process but rather an administrative procedure intended to allow community comment and check whether it is coherent without excessive time delay. It is designed to encourage vendors to document and register new items they add for use cases not covered by the original specification, leading to increased interoperability.¶
Notice of a potential new registration MUST be sent to the Calext mailing list <calsify@ietf.org> for review. This mailing list is appropriate to solicit community feedback on a proposed registry assignment.¶
The intent of the public posting to this list is to solicit comments and feedback on the choice of the item name or value, the unambiguity of its description, and a review of any interoperability or security considerations. The submitter may submit a revised registration proposal or abandon the registration completely at any time.¶
Registration requests can be sent to <iana@iana.org>.¶
The primary concern of the designated expert (DE) is preventing name collisions and encouraging the submitter to document security and privacy considerations. For a common-use registration, the DE is expected to confirm that suitable documentation is available to ensure interoperability. The DE should also verify that the new assignment does not conflict with work that is active or already published within the IETF.¶
The DE will either approve or deny the registration request and publish a notice of the decision to the Calext WG mailing list or its successor, as well as inform IANA. A denial notice must be justified by an explanation, and, in the cases where it is possible, concrete suggestions on how the request can be modified to become acceptable should be provided.¶
Once a JSContact registry group item has been published by IANA, the change controller may request a change to its definition. The same procedure that would be appropriate for the original registration request is used to process a change request.¶
JSContact registrations dot not get deleted; instead, items that are no longer believed appropriate for use are declared obsolete by a change to their "intended usage" field; such items will be clearly marked in the IANA registry.¶
Significant changes to a JSContact registry item's definition should be requested only when there are serious omissions or errors in the published specification, as such changes may cause interoperability issues. When review is required, a change request may be denied if it renders entities that were valid under the previous definition invalid under the new definition.¶
IANA is asked to create the "JSContact Version" registry. The purpose of this new registry is to define the allowed value range of JSContact major and minor version numbers.¶
The registry entries sort numerically ascending by the "Major Version" column.¶
The registry process is outlined in Section 4.3.¶
The following table lists the initial valid major and minor version number ranges.¶
Major Version | Highest Minor Version |
---|---|
1 | 0 |
IANA is asked to create the "JSContact Properties" registry. The purpose of this new registry is to allow interoperability of extensions to JSContact objects¶
The registry entries sort alphabetically ascending by the "Property Name" column first, "Property Context" second, "Since Version" third. Equal entries sort in any order.¶
The registry process for a new property is outlined in Section 4.3.¶
version
property in the JSContact Enum Value registry (see Table 1).¶
version
property in the JSContact Enum Value registry (see Table 1).¶
IETF
for RFCs from the IETF stream).¶
The following table lists the initial common
usage entries of the "JSContact Properties" registry. The Since Version for all properties is 1.0
. The Until Version for all properties is not set. All RFC section references are for [I-D.ietf-calext-jscontact]. The change controller for all these properties is IETF
.¶
Property Name | Property Type | Property Context | Reference or Description |
---|---|---|---|
@type | String | Address, AddressComponent, Anniversary, Author, Card, Calendar, CryptoKey, Directory, EmailAddress, LanguagePref, Link, Media, Name, NameComponent, NickName, Note, OnlineService, Organization, OrgUnit, PartialDate,PersonalInfo, Phone, Pronouns, Relation, Resource, SchedulingAddress, SpeakToAs, Timestamp, Title | Section 2.5.1, Section 2.8.1, Section 2.1.1, Section 2.4.1, Section 2.6.1, Section 2.6.2, Section 2.3.1, Section 2.3.4, Section 2.6.3, Section 2.6.4, Section 2.2.1, Section 2.2.1.3, Section 2.8.3, Section 2.3.2, Section 2.2.2, Section 2.8.4, Section 2.3.3, Section 2.2.3, Section 2.1.8, Section 2.4.2, Section 2.2.4 |
version | String | Card | Section 2.1.2 |
address | String | EmailAddress | Section 2.3.1 |
addresses | Id[Address] | Card | Section 2.5.1 |
anniversaries | Id[Anniversary] | Card | Section 2.8.1 |
author | Author | Note | Section 2.8.3 |
calendars | Id[Calendar] | Card | Section 2.4.1 |
calendarScale | String | PartialDate | Section 2.8.1 |
components | AddressComponent[] | Address | Section 2.5.1 |
components | NameComponent[] | Name | Section 2.2.1 |
contexts | String[Boolean] | Address, Calendar, CryptoKey, Directory, EmailAddress, LanguagePref, Link, Media, NickName, OnlineService, Organization, Phone, Pronouns, SchedulingAddress | Section 1.5.1, Section 2.5.1, Section 2.4.1, Section 2.6.1, Section 2.6.2, Section 2.3.1, Section 2.3.4, Section 2.6.3, Section 2.6.4, Section 2.2.1.3, Section 2.3.2, Section 2.2.2, Section 2.3.3, Section 2.2.3, Section 2.4.2Section 1.4.4 |
coordinates | String | Address | Section 2.5.1 |
countryCode | String | Address | Section 2.5.1 |
created | UTCDateTime | Card, Note | Section 2.1.3, Section 2.8.3 |
date | PartialDate|Timestamp | Anniversary | Section 2.8.1 |
day | UnsignedInt | PartialDate | Section 2.8.1 |
defaultSeparator | String | Address, Name | Section 2.5.1, Section 2.2.1 |
directories | Id[Directory] | Card | Section 2.6.2 |
emails | Id[EmailAddress] | Card | Section 2.3.1 |
features | String[Boolean] | Phone | Section 2.3.3 |
full | String | Address, Name | Section 2.5.1, Section 2.2.1 |
grammaticalGender | String | SpeakToAs | Section 2.2.3 |
isOrdered | Boolean | Address, Name | Section 2.5.1, Section 2.2.1 |
keywords | String[Boolean] | Card | Section 2.8.2 |
kind | String | Card | Section 2.1.4 |
kind | String | Anniversary, Calendar, Card, CryptoKey, Directory, Link, Media, NameComponent, PersonalInfo, AddressComponent, Title | Section 2.8.1, Section 2.4.1, Section 2.1.4, Section 2.6.1, Section 2.6.2, Section 2.6.3, Section 2.6.4, Section 2.2.1, Section 2.8.4, Section 2.5.1, Section 2.2.4, Section 1.4.4 |
label | String | Calendar, CryptoKey, Directory, EmailAddress, Link, Media, OnlineService, PersonalInfo, Phone, SchedulingAddress | Section 1.5.2, Section 2.4.1, Section 2.6.1, Section 2.6.2, Section 2.3.1, Section 2.6.3, Section 2.6.4, Section 2.3.2, Section 2.8.4, Section 2.3.3, Section 2.4.2, Section 1.4.4 |
language | String | Card, LanguagePref | Section 2.1.5, Section 2.3.4 |
level | String | PersonalInfo | Section 2.8.4 |
links | Id[Link] | Card | Section 2.6.3 |
listAs | UnsignedInt | Directory, PersonalInfo | Section 2.6.2, Section 2.8.4 |
localizations | String[PatchObject] | Card | Section 2.7.1 |
media | Id[Media] | Card | Section 2.6.4 |
mediaType | String | Calendar, CryptoKey, Directory, Link, Media | Section 1.4.4, Section 2.4.1, Section 2.6.1, Section 2.6.2, Section 2.6.3, Section 2.6.4 |
members | String[Boolean] | Card | Section 2.1.6 |
month | UnsignedInt | PartialDate | Section 2.8.1 |
name | Name | Card | Section 2.2.1 |
name | String | Author, NickName, Organization, OrgUnit, Title | Section 2.8.3, Section 2.2.1.3, Section 2.2.2, Section 2.2.4 |
nickNames | Id[NickName] | Card | Section 2.2.1.3 |
note | String | Note | Section 2.8.3 |
notes | Id[Note] | Card | Section 2.8.3 |
number | String | Phone | Section 2.3.3 |
onlineServices | Id[OnlineService] | Card | Section 2.3.2 |
organization | String | Title | Section 2.2.4 |
organizations | Id[Organization] | Card | Section 2.2.2 |
personalInfo | Id[PersonalInfo] | Card | Section 2.8.4 |
phones | Id[Phone] | Card | Section 2.3.3 |
phonetic | String | AddressComponent, NameComponent | Section 2.5.1.2, Section 2.2.1.2 |
phoneticScript | String | Address, Name | Section 2.2.1, Section 2.5.1 |
phoneticSystem | String | Address, Name | Section 2.2.1, Section 2.5.1 |
place | Address | Anniversary | Section 2.8.1 |
pref | UnsignedInt | Address, Calendar, CryptoKey, Directory, EmailAddress, LanguagePref, Link, Media, NickName, OnlineService, Phone, Pronouns, SchedulingAddress | Section 1.5.3, Section 2.5.1, Section 2.4.1, Section 2.6.1, Section 2.6.2, Section 2.3.1, Section 2.3.4, Section 2.6.3, Section 2.6.4, Section 2.2.1.3, Section 2.3.2, Section 2.3.3, Section 2.2.3, Section 2.4.2, Section 1.4.4 |
preferredLanguages | String[LanguagePref[]] | Card | Section 2.3.4 |
prodId | String | Card | Section 2.1.7 |
pronouns | Id[Pronouns] | SpeakToAs | Section 2.2.3 |
relatedTo | String[Relation] | Card | Section 2.1.8 |
relation | String[Boolean] | Relation | Section 2.1.8 |
schedulingAddresses | Id[SchedulingAddress] | Card | Section 2.4.2 |
service | String | OnlineService | Section 2.3.2 |
sortAs | String[String] | Name | Section 2.2.1 |
sortAs | String | Organization, OrgUnit | Section 2.2.2 |
speakToAs | SpeakToAs | Card | Section 2.2.3 |
timeZone | String | Address | Section 2.5.1 |
titles | Id[Title] | Card | Section 2.2.4 |
uid | String | Card | Section 2.1.9 |
units | OrgUnit[] | Organization | Section 2.2.2 |
updated | UTCDateTime | Card | Section 2.1.10 |
uri | String | Author, Calendar, CryptoKey, Directory, Link, Media, OnlineService, SchedulingAddress | Section 2.8.3, Section 1.4.4, Section 2.4.1, Section 2.6.1, Section 2.6.2, Section 2.6.3, Section 2.6.4, Section 2.3.2, Section 2.4.2 |
user | String | OnlineService | Section 2.3.2 |
utc | UTCDateTime | Timestamp | Section 2.8.1 |
value | String | AddressComponent, NameComponent, PersonalInfo | Section 2.5.1, Section 2.2.1, Section 2.8.4 |
year | UnsignedInt | PartialDate | Section 2.8.1 |
The following table lists the initial reserved
usage entries of the "JSContact Properties" registry. All RFC section references are for [I-D.ietf-calext-jscontact]. The change controller for all these properties is IETF
.¶
Property Name | Property Type | Property Context | Reference or Description | Intended Usage |
---|---|---|---|---|
extra | not applicable | not applicable | Section 1.9 | reserved |
IANA is asked to create the "JSContact Types" registry. The purpose of this new registry is to avoid name collisions for JSContact type names and provide a complete reference for all data types used for JSContact property values.¶
The registry entries sort alphabetically ascending by the "Type Name" column. Equal entries sort in any order.¶
The registry process for a new type is outlined in Section 4.3.¶
version
property in the JSContact Enum Value registry (see Table 1).¶
version
property in the JSContact Enum Value registry (see Table 1).¶
IETF
for RFCs from the IETF stream).¶
The following table lists the initial common
usage entries of the JSContact Types registry. The Since Version for all types is 1.0
. The Until Version for all types is not set. All RFC section references are for [I-D.ietf-calext-jscontact]. The change controller for all these properties is IETF
.¶
Type Name | Reference or Description |
---|---|
Address | Section 2.5.1 |
AddressComponent | Section 2.5.1 |
Anniversary | Section 2.8.1 |
Author | Section 2.8.3 |
Boolean | Section 1.3.2 |
Calendar | Section 2.4.1 |
Card | Section 2 |
CryptoKey | Section 2.6.1 |
Directory | Section 2.6.2 |
EmailAddress | Section 2.3.1 |
Id | Section 1.4.1 |
Int | Section 1.4.2 |
LanguagePref | Section 2.3.4 |
Link | Section 2.6.3 |
Media | Section 2.6.4 |
Name | Section 2.2.1 |
NameComponent | Section 2.2.1 |
NickName | Section 2.2.1.3 |
Note | Section 2.8.3 |
Number | Section 1.3.2 |
OnlineService | Section 2.3.2 |
Organization | Section 2.2.2 |
OrgUnit | Section 2.2.2 |
PartialDate | Section 2.8.1 |
PatchObject | Section 1.4.3 |
PersonalInfo | Section 2.8.4 |
Phone | Section 2.3.3 |
Pronouns | Section 2.2.3 |
Relation | Section 2.1.8 |
SchedulingAddress | Section 2.4.2 |
SpeakToAs | Section 2.2.3 |
String | Section 1.3.2 |
Timestamp | Section 2.8.1 |
Title | Section 2.2.4 |
UnsignedInt | Section 1.4.2 |
UTCDateTime | Section 1.4.5 |
The following table lists the initial reserved
usage entries of the JSContact Types registry. All types are for version 1.0
. All RFC section references are for [I-D.ietf-calext-jscontact]. The change controller for all these properties is IETF
.¶
Type Name | Reference or Description |
---|---|
Resource | Section 1.4.4 |
IANA is asked to create the "JSContact Enum Values" registry. The purpose of the new registry is to allow interoperable extension of semantics for JSContact properties with enumerable values. Each such property will have a subregistry of allowed values.¶
The registry entries sort alphabetically ascending by the "Property Name" column first, "Property Context" second, "Since Version" third. The enum values sort alphabetically ascending. Equal entries sort in any order.¶
The registry process for a new enum value or adding a new enumerable property is outlined in Section 4.3.¶
This template is for adding a subregistry for a new enumerable property to the "JSContact Enum" registry.¶
version
property in the JSContact Enum Value registry (see Table 1).¶
version
property in the JSContact Enum Value registry (see Table 1).¶
IETF
for RFCs from the IETF stream).¶
This template is for adding a new enum value to a subregistry in the JSContact Enum registry.¶
version
property in the JSContact Enum Value registry (see Table 1).¶
version
property in the JSContact Enum Value registry (see Table 1).¶
For each subregistry created in this section, all RFC section references are for [I-D.ietf-calext-jscontact]. For all entries, the Since Version is 1.0
, the Until Version is not set, the Change Controller is IETF
.¶
Enum Value | Reference or Description |
---|---|
billing | Section 2.5.1 |
delivery | Section 2.5.1 |
private | Section 1.5.1 |
work | Section 1.5.1 |
Enum Value | Reference or Description |
---|---|
private | Section 1.5.1 |
work | Section 1.5.1 |
Enum Value | Reference or Description |
---|---|
fax | Section 2.3.3 |
main-number | Section 2.3.3 |
mobile | Section 2.3.3 |
pager | Section 2.3.3 |
text | Section 2.3.3 |
textphone | Section 2.3.3 |
video | Section 2.3.3 |
voice | Section 2.3.3 |
Enum Value | Reference or Description |
---|---|
animate | Section 2.2.3 |
common | Section 2.2.3 |
feminine | Section 2.2.3 |
inanimate | Section 2.2.3 |
masculine | Section 2.2.3 |
neuter | Section 2.2.3 |
Enum Value | Reference or Description |
---|---|
apartment | Section 2.5.1 |
block | Section 2.5.1 |
building | Section 2.5.1 |
country | Section 2.5.1 |
direction | Section 2.5.1 |
district | Section 2.5.1 |
floor | Section 2.5.1 |
landmark | Section 2.5.1 |
locality | Section 2.5.1 |
name | Section 2.5.1 |
number | Section 2.5.1 |
postcode | Section 2.5.1 |
postOfficeBox | Section 2.5.1 |
region | Section 2.5.1 |
room | Section 2.5.1 |
separator | Section 2.5.1 |
subdistrict | Section 2.5.1 |
Enum Value | Reference or Description |
---|---|
birth | Section 2.8.1 |
death | Section 2.8.1 |
wedding | Section 2.8.1 |
Enum Value | Reference or Description |
---|---|
calendar | Section 2.4.1 |
freeBusy | Section 2.4.1 |
Enum Value | Reference or Description |
---|---|
application | Section 2.1.4 |
device | Section 2.1.4 |
group | Section 2.1.4 |
individual | Section 2.1.4 |
location | Section 2.1.4 |
org | Section 2.1.4 |
Enum Value | Reference or Description |
---|---|
directory | Section 2.6.2 |
entry | Section 2.6.2 |
Enum Value | Reference or Description |
---|---|
contact | Section 2.6.3 |
Enum Value | Reference or Description |
---|---|
logo | Section 2.6.4 |
photo | Section 2.6.4 |
sound | Section 2.6.4 |
Enum Value | Reference or Description |
---|---|
credential | Section 2.2.1 |
generation | Section 2.2.1 |
given | Section 2.2.1 |
given2 | Section 2.2.1 |
separator | Section 2.2.1 |
surname | Section 2.2.1 |
surname2 | Section 2.2.1 |
title | Section 2.2.1 |
Enum Value | Reference or Description |
---|---|
expertise | Section 2.8.4 |
hobby | Section 2.8.4 |
interest | Section 2.8.4 |
Enum Value | Reference or Description |
---|---|
role | Section 2.2.4 |
title | Section 2.2.4 |
Enum Value | Reference or Description |
---|---|
high | Section 2.8.4 |
low | Section 2.8.4 |
medium | Section 2.8.4 |
Enum Value | Reference or Description |
---|---|
acquaintance | Section 2.1.8 |
agent | Section 2.1.8 |
child | Section 2.1.8 |
colleague | Section 2.1.8 |
contact | Section 2.1.8 |
co-resident | Section 2.1.8 |
co-worker | Section 2.1.8 |
crush | Section 2.1.8 |
date | Section 2.1.8 |
emergency | Section 2.1.8 |
friend | Section 2.1.8 |
kin | Section 2.1.8 |
me | Section 2.1.8 |
met | Section 2.1.8 |
muse | Section 2.1.8 |
neighbor | Section 2.1.8 |
parent | Section 2.1.8 |
sibling | Section 2.1.8 |
spouse | Section 2.1.8 |
sweetheart | Section 2.1.8 |
Enum Value | Reference or Description |
---|---|
ipa | Section 1.5.4 |
jyut | Section 1.5.4 |
piny | Section 1.5.4 |
Contact information is very privacy-sensitive. It can reveal the identity, location and credentials information, employment status, interests and hobbies, and social network of a user. Its transmission and storage must be done carefully to protect it from possible threats, such as eavesdropping, replay, message insertion, deletion, modification, and on-path attacks.¶
The data being stored and transmitted may be used in systems with real-world consequences. For example, a malicious actor might provide JSContact data that uses the name of another person but insert their contact details to impersonate the unknown victim. Such systems must be careful to authenticate all data they receive to prevent them from being subverted and ensure the change comes from an authorized entity.¶
This document only defines the data format; such considerations are primarily the concern of the API or method of storage and transmission of such files.¶
The security considerations of [RFC8259] apply to the use of JSON as the data interchange format.¶
As for any serialization format, parsers need to thoroughly check the syntax of the supplied data. JSON uses opening and closing brackets for several types and structures, and it is possible that the end of the supplied data will be reached when scanning for a matching closing bracket; this is an error condition, and implementations need to stop scanning at the end of the supplied data.¶
JSON also uses a string encoding with some escape sequences to encode special characters within a string. Care is needed when processing these escape sequences to ensure that they are fully formed before the special processing is triggered, with special care taken when the escape sequences appear adjacent to other (non-escaped) special characters or adjacent to the end of data (as in the previous paragraph).¶
If parsing JSON into a non-textual structured data format, implementations may need to allocate storage to hold JSON string elements. Since JSON does not use explicit string lengths, the risk of denial of service due to resource exhaustion is small, but implementations may still wish to place limits on the size of allocations they are willing to make in any given context, to avoid untrusted data causing excessive memory allocation.¶
Several JSContact properties contain URIs as values, and processing these properties requires extra care. Section 7 of [RFC3986] discusses security risks related to URIs.¶
Fetching remote resources carries inherent risks. Connections must only be allowed on well-known ports, using allowed protocols (generally, just HTTP/HTTPS on their default ports). The URL must be resolved externally and not allowed to access internal resources. Connecting to an external source reveals IP (and therefore often location) information.¶
A maliciously constructed JSContact object may contain a very large number of URIs. In the case of published address books with a large number of subscribers, such objects could be widely distributed. Implementations should be careful to limit the automatic fetching of linked resources to reduce the risk of this being an amplification vector for a denial-of-service attack.¶