{"$id":"https://www.qrcardapp.com/support/schemas/1.11.9/mdm.json","$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"defaultSnippets":[{"body":{"cards":[{"data":{"familyName":"$2","givenName":"$1"}}],"settings":{"editable":true}},"description":"Add a basic card configuration","label":"Card configuration"}],"definitions":{"AddressType":{"description":"The TYPE parameter values can include \"dom\" to\nindicate a domestic delivery address; \"intl\" to indicate an\ninternational delivery address; \"postal\" to indicate a postal\ndelivery address; \"parcel\" to indicate a parcel delivery address;\n\"home\" to indicate a delivery address for a residence; \"work\" to\nindicate delivery address for a place of work; and \"pref\" to indicate\nthe preferred delivery address when more than one address is\nspecified.","enum":["DOM","HOME","INTL","PARCEL","POSTAL","PREF","WORK"],"type":"string"},"AppAddress":{"additionalProperties":false,"properties":{"country":{"description":"The country the address is in","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"type":"string"},"extendedAddress":{"description":"extended address;","type":"string"},"locality":{"description":"locality (e.g., city)","type":"string"},"postOfficeBox":{"description":"post office box;","type":"string"},"postalCode":{"description":"postal code","type":"string"},"region":{"description":"region (e.g., state or province)","type":"string"},"streetAddress":{"description":"street address;","type":"string"},"type":{"items":{"$ref":"#/definitions/AddressType"},"type":"array"}},"type":"object"},"Omit<CardData,keyofMdmCardSettings>":{"additionalProperties":false,"properties":{"additionalNames":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"}],"description":"Additional Names, e.g. `[\"Philip\", \"Paul\"]`"},"adr":{"defaultSnippets":[{"body":[{"country":"$1","locality":"${2:City}","postalCode":"${3:Postal Code}","region":"$4","street":"${5:Street}"}],"label":"add an address"}],"description":"The postal addresses to use","items":{"$ref":"#/definitions/AppAddress"},"type":"array"},"bday":{"description":"Birthday","format":"date-time","type":"string"},"design":{"$ref":"#/definitions/Partial<CardThemeSettings>","description":"Options to customize how the card looks like"},"email":{"defaultSnippets":[{"body":[{"value":"${1:name}@${2:domain.com}"}],"label":"add an email address"}],"description":"The email addresses to use","items":{"additionalProperties":false,"defaultSnippets":[{"body":{"value":"${1:name}@${2:domain.com}"},"label":"an email address"}],"properties":{"type":{"default":["INTERNET"],"description":"Can include:\n - `\"INTERNET\"` to indicate an Internet addressing type,\n - `\"X400\"` to indicate a X.400 addressing type or\n - `\"PREF\"` to indicate a preferred-use email address when more than one is specified.\n\nAnother IANA registered address type can also be specified. The default email type is \"internet\". A non-standard value can also be specified.","items":{"type":"string"},"type":"array"},"value":{"type":"string"}},"required":["value"],"type":"object"},"type":"array"},"familyName":{"description":"Family Name, e.g. `\"Stevenson\"`","type":"string"},"givenName":{"description":"Given Name, e.g. `\"John\"`","type":"string"},"hideCredits":{"type":"boolean"},"honorificPrefixes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"}],"description":"Honorific Prefixes"},"honorificSuffixes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"}],"description":"Honorific Suffixes, e.g. `MD`"},"nicknames":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"string"}],"description":"Nickname(s)"},"note":{"description":"Specify supplemental information or a comment that is associated with the vCard.","type":"string"},"org":{"additionalProperties":false,"description":"The organizational name and units associated with the vCard.","properties":{"name":{"description":"The name of the organization.","type":"string"},"unit":{"description":"The unit within the organization.","items":{"type":"string"},"type":"array"}},"required":["name"],"type":"object"},"role":{"description":"Information concerning the role, occupation, or business category of the object the vCard represents.","type":"string"},"social":{"defaultSnippets":[{"body":[{"platform":"$1","username":"$2"}],"label":"add a social network"}],"description":"The social network profiles to use","items":{"additionalProperties":false,"defaultSnippets":[{"body":{"platform":"$1","username":"$2"},"label":"add another social network"}],"description":"A social media profile","properties":{"platform":{"$ref":"#/definitions/SocialNetwork"},"username":{"type":"string"}},"required":["platform","username"],"type":"object"},"type":"array"},"tel":{"defaultSnippets":[{"body":[{"type":["CELL","VOICE"],"value":"$1"}],"label":"add a mobile phone number"}],"description":"The telephone numbers to use","items":{"additionalProperties":false,"defaultSnippets":[{"body":{"type":["CELL","VOICE"],"value":"$1"},"label":"mobile"},{"body":{"type":["HOME","VOICE"],"value":"$1"},"label":"home"},{"body":{"type":["WORK","VOICE"],"value":"$1"},"label":"work"},{"body":{"type":["HOME","FAX"],"value":"$1"},"label":"home fax"},{"body":{"type":["WORK","FAX"],"value":"$1"},"label":"work fax"},{"body":{"type":["OTHER","FAX"],"value":"$1"},"label":"other fax"},{"body":{"type":["PAGER"],"value":"$1"},"label":"pager"},{"body":{"type":["OTHER","VOICE"],"value":"$1"},"label":"other"}],"description":"A telephone number","properties":{"type":{"items":{"type":"string"},"type":"array"},"value":{"description":"The actual number","type":"string"}},"required":["value"],"type":"object"},"type":"array"},"title":{"description":"The job title, functional position or function of the object the vCard represents.","type":"string"},"url":{"defaultSnippets":[{"body":["https://${1:qrcardapp.com}"],"label":"add a URL"}],"description":"The URLs to use","items":{"type":"string"},"type":"array"}},"type":"object"},"Partial<CardThemeSettings>":{"additionalProperties":false,"properties":{"color":{"description":"The card's main color","type":"string"},"logo":{"description":"A logo to display in the center of the QR code. Should be a `data:` URI containering a square image.\nNote that smaller images generally work better with MDM.","pattern":"^data:image/.+","type":"string"},"qrcodeFirst":{"description":"If the QR code should be displayed above the rest","type":"boolean"},"roundedCorners":{"description":"If the card should have rounded corners","type":"boolean"}},"type":"object"},"SocialNetwork":{"enum":["twitter","facebook","instagram","linkedin","linkedin-company","linkedin-showcase","snapchat","telegram","github"],"type":"string"}},"description":"A QRcard MDM configuration","required":["$schema","cards"],"type":"object","properties":{"$schema":{"type":"string","enum":["https://www.qrcardapp.com/support/schemas/1.11.9/mdm.json"]},"cards":{"defaultSnippets":[{"body":[{"data":{"familyName":"$2","givenName":"$1"}}]}],"description":"The cards to manage","items":{"additionalProperties":false,"defaultSnippets":"[{\n\"label\": \"New card\",\n\"description\": \"Adds a new card\",\n\"body\": {\n\"data\": {\n\"familyName\": \"$1\"\n\"givenName\": \"$2\",\n}\n}\n}]","properties":{"data":{"$ref":"#/definitions/Omit<CardData,keyofMdmCardSettings>","description":"The values to display"},"settings":{"additionalProperties":false,"defaultSnippets":[{"body":{"editable":true},"description":"Some basic settings","label":"Card MDM Settings"}],"description":"MDM settings for the card. Available since QRcard v1.5.0","properties":{"contact":{"additionalProperties":false,"defaultSnippets":[{"body":{"email":"$1"}}],"description":"Admin contact data, used to get user in touch with an MDM administrator.","properties":{"email":{"description":"An admin email address","format":"email","type":"string"}},"required":["email"],"type":"object"},"editable":{"default":true,"description":"If a user is allowed to change the managed card.","type":"boolean"}},"type":"object"}},"required":["data"],"type":"object"},"type":"array"},"settings":{"additionalProperties":false,"defaultSnippets":[{"body":{"editable":true},"description":"Some basic settings","label":"Card MDM Settings"}],"description":"Default settings to use for all managed cards. Can be overridden by the *settings* property of an individual card.\nAvailable since QRcard v1.5.0.","properties":{"contact":{"additionalProperties":false,"defaultSnippets":[{"body":{"email":"$1"}}],"description":"Admin contact data, used to get user in touch with an MDM administrator.","properties":{"email":{"description":"An admin email address","format":"email","type":"string"}},"required":["email"],"type":"object"},"editable":{"default":true,"description":"If a user is allowed to change the managed card.","type":"boolean"}},"type":"object"}}}