Skip to content

Latest commit

 

History

History
188 lines (112 loc) · 6.76 KB

profile-preferences-details.schema.md

File metadata and controls

188 lines (112 loc) · 6.76 KB

Profile Preferences Details Schema

https://ns.adobe.com/xdm/context/profile-preferences-details

Preferences for end-user profiles.

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated Yes Experimental No Forbidden Permitted context/profile-preferences-details.schema.json

Schema Hierarchy

  • Profile Preferences Details https://ns.adobe.com/xdm/context/profile-preferences-details

Profile Preferences Details Example

{
  "xdm:optInOut": {
    "https://ns.adobe.com/xdm/channels/email": "pending",
    "https://ns.adobe.com/xdm/channels/phone": "out",
    "https://ns.adobe.com/xdm/channels/sms": "in",
    "https://ns.adobe.com/xdm/channels/fax": "not_provided",
    "https://ns.adobe.com/xdm/channels/direct-mail": "not_provided",
    "https://ns.adobe.com/xdm/channels/apns": "not_provided",
    "xdm:globalOptout": false
  }
}

Profile Preferences Details Properties

Property Type Required Defined by
xdm:emailFormat string Optional Profile Preferences Details (this schema)
xdm:optInOut OptInOut Optional Profile Preferences Details (this schema)
xdm:preferredLanguage string Optional Profile Preferences Details (this schema)
xdm:profilePictureLink string Optional Profile Preferences Details (this schema)
xdm:timeZone string Optional Profile Preferences Details (this schema)
* any Additional this schema allows additional properties

xdm:emailFormat

Email Format

Email format preferred by the profile. This can be rich text/plain text.

xdm:emailFormat

  • is optional
  • type: string
  • defined in this schema

xdm:emailFormat Type

string

xdm:emailFormat Known Values

Value Description
html Rich text
plaintext Plain text

xdm:optInOut

OptInOut

Describes a users opting in and out preferences for communication by medium and communication type.

xdm:optInOut

  • is optional
  • type: OptInOut
  • defined in this schema

xdm:optInOut Type

  • OptInOuthttps://ns.adobe.com/xdm/context/optinout

xdm:preferredLanguage

Preferred Language

Describes the preferred system of communication used by the profile. Language codes are expressed in BCP 47 format.

xdm:preferredLanguage

  • is optional
  • type: string
  • defined in this schema

xdm:preferredLanguage Type

string

All instances must conform to this regular expression

^(((([A-Za-z]{2,3}(-([A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-([A-Za-z]{4}))?(-([A-Za-z]{2}|[0-9]{3}))?(-([A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-([0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(x(-[A-Za-z0-9]{1,8})+))?)|(x(-[A-Za-z0-9]{1,8})+)|((en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang)))$

xdm:preferredLanguage Examples

"en-GB"
"de-DE"
"yue-HK"

xdm:profilePictureLink

Profile Picture Link

Link to profile's picture.

xdm:profilePictureLink

  • is optional
  • type: string
  • defined in this schema

xdm:profilePictureLink Type

string

xdm:timeZone

Time Zone

Describes which time zone the profile is present in, most frequently/the time zone preferred by the profile. Time zones are expressed according to the IETF tz database: https://www.ietf.org/timezones/tzdb-2016i/tz-link.htm

xdm:timeZone

  • is optional
  • type: string
  • defined in this schema

xdm:timeZone Type

string

xdm:timeZone Examples

"America/Barbados"
"Antarctica/Davis"
"Asia/Calcutta"