{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"$schema":{"type":"string"},"format":{"type":"number","const":1},"id":{"type":"string","pattern":"^[a-z0-9][a-z0-9.-]{1,63}$","description":"Unique pack id; re-importing the same id replaces the pack."},"name":{"type":"string","maxLength":48,"pattern":"\\S"},"version":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+(-[0-9A-Za-z.-]+)?$"},"license":{"type":"string","pattern":"\\S","description":"SPDX expression for the pack's own content, e.g. CC0-1.0 or CC-BY-4.0."},"author":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"}},"required":["name"]},"description":{"type":"string","maxLength":500},"tags":{"type":"array","items":{"type":"string"}},"credits":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"author":{"type":"string"},"license":{"type":"string"},"url":{"type":"string"},"files":{"type":"array","items":{"$ref":"#/$defs/path"}}},"required":["title","license"]}},"backgrounds":{"type":"array","items":{"$ref":"#/$defs/background"}},"mics":{"type":"array","items":{"$ref":"#/$defs/mic"}},"dialogues":{"type":"array","items":{"$ref":"#/$defs/dialogue"}},"sounds":{"type":"array","items":{"$ref":"#/$defs/sound"}}},"required":["format","id","name","version","license"],"$id":"https://vrcode.quest/schemas/pack-v1.json","title":"VRCode pack manifest (format 1)","description":"manifest.json at the root of a .vrcoder. See https://vrcode.io/catalog.html and docs/packs.md.","anyOf":[{"required":["backgrounds"]},{"required":["mics"]},{"required":["dialogues"]},{"required":["sounds"]}],"$defs":{"path":{"type":"string","pattern":"^(?=[\\s\\S]{1,255}$)(?!\\.\\.?(?:\\/|$))[^/\\\\\\0]+(?:\\/(?!\\.\\.?(?:\\/|$))[^/\\\\\\0]+)*$","description":"A relative path inside the pack, with / separators."},"background":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,47}$"},"name":{"type":"string","maxLength":32,"pattern":"\\S"},"description":{"type":"string","maxLength":120},"preview":{"description":"PNG, JPEG or WebP, at most 1024 px on its longer side.","$ref":"#/$defs/path"},"panorama":{"type":"object","properties":{"image":{"description":"A 2:1 equirectangular PNG, JPEG or WebP, 1024-8192 px wide; 4096 recommended. Its centre faces forward.","$ref":"#/$defs/path"},"projection":{"type":"string","const":"equirectangular"},"yawDeg":{"type":"number","description":"This azimuth (degrees, clockwise) faces forward."}},"required":["image"]},"brightness":{"type":"number","minimum":0.2,"maximum":1.5}},"required":["id","name","panorama"]},"mic":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,47}$"},"name":{"type":"string","maxLength":32,"pattern":"\\S"},"description":{"type":"string","maxLength":120},"preview":{"description":"PNG, JPEG or WebP, at most 1024 px on its longer side.","$ref":"#/$defs/path"},"model":{"allOf":[{"pattern":"^(?=[\\s\\S]{1,255}$)(?!\\.\\.?(?:\\/|$))[^/\\\\\\0]+(?:\\/(?!\\.\\.?(?:\\/|$))[^/\\\\\\0]+)*$"},{"pattern":"\\.[Gg][Ll][Bb]$"}],"description":"glTF 2.0 binary (.glb), metres, +Y toward the mouth end; at most 64k triangles and 16 MB.","$ref":"#/$defs/glb"},"grip":{"type":"string","description":"Node held in the fist (default: the origin)."},"mouth":{"type":"string","description":"Node at the end you speak into (default: the top of the bounds)."},"indicator":{"type":"string","description":"Material whose emissive pulses with the voice level."},"lengthM":{"type":"number","minimum":0.08,"maximum":0.45},"listening":{"description":"Shown beside the fist while the mic listens, instead of VRCode's MIC badge.","$ref":"#/$defs/micStateArt"},"muted":{"description":"Shown above a muted dialogue, instead of VRCode's muted icon.","$ref":"#/$defs/micStateArt"}},"required":["id","name","model"]},"glb":{"type":"string","allOf":[{"pattern":"^(?=[\\s\\S]{1,255}$)(?!\\.\\.?(?:\\/|$))[^/\\\\\\0]+(?:\\/(?!\\.\\.?(?:\\/|$))[^/\\\\\\0]+)*$"},{"pattern":"\\.[Gg][Ll][Bb]$"}],"description":"A relative path inside the pack, with / separators.","$ref":"#/$defs/path"},"micStateArt":{"type":"object","properties":{"image":{"description":"PNG, JPEG or WebP, at most 512 px on its longer side, drawn in a square badge.","$ref":"#/$defs/path"},"model":{"allOf":[{"pattern":"^(?=[\\s\\S]{1,255}$)(?!\\.\\.?(?:\\/|$))[^/\\\\\\0]+(?:\\/(?!\\.\\.?(?:\\/|$))[^/\\\\\\0]+)*$"},{"pattern":"\\.[Gg][Ll][Bb]$"}],"description":"glTF 2.0 binary (.glb) within the mic budget, scaled to fit the badge and turned to face you.","$ref":"#/$defs/glb"}},"description":"An image or a model for one mic state; with neither, nothing is shown in that state.","not":{"required":["image","model"]}},"dialogue":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,47}$"},"name":{"type":"string","maxLength":32,"pattern":"\\S"},"description":{"type":"string","maxLength":120},"preview":{"description":"PNG, JPEG or WebP, at most 1024 px on its longer side.","$ref":"#/$defs/path"},"frame":{"type":"object","properties":{"image":{"description":"PNG or WebP drawn as a 9-slice, like CSS border-image.","$ref":"#/$defs/path"},"slice":{"description":"Insets in image pixels.","$ref":"#/$defs/insets"},"width":{"description":"Drawn edge widths in dp (default: slice).","$ref":"#/$defs/insets"},"fill":{"type":"boolean"},"repeat":{"type":"string","enum":["stretch","repeat"]}},"required":["image","slice"]},"background":{"type":"object","properties":{"color":{"$ref":"#/$defs/color"},"gradient":{"type":"array","prefixItems":[{"$ref":"#/$defs/color"},{"$ref":"#/$defs/color"}],"items":false,"minItems":2,"maxItems":2},"radius":{"type":"number","minimum":0,"maximum":64},"cut":{"type":"number","minimum":0,"maximum":64},"border":{"type":"object","properties":{"color":{"$ref":"#/$defs/color"},"width":{"type":"number"}},"required":["color","width"]}}},"padding":{"$ref":"#/$defs/insets"},"font":{"type":"object","properties":{"file":{"description":"A .ttf or .otf in the pack (credit it).","$ref":"#/$defs/path"},"family":{"type":"string","enum":["monospace","serif","sans-serif","cursive"]},"size":{"type":"number","minimum":12,"maximum":32},"lineHeight":{"type":"number","minimum":0.8,"maximum":2.5},"letterSpacing":{"type":"number","minimum":-0.5,"maximum":0.5},"uppercase":{"type":"boolean"}}},"colors":{"type":"object","properties":{"text":{"$ref":"#/$defs/color"},"pending":{"$ref":"#/$defs/color"},"accent":{"$ref":"#/$defs/color"},"muted":{"$ref":"#/$defs/color"}},"required":["text"]},"textShadow":{"type":"object","properties":{"color":{"$ref":"#/$defs/color"},"dx":{"type":"number"},"dy":{"type":"number"},"blur":{"type":"number"}},"required":["color","dx","dy","blur"]},"label":{"type":"object","properties":{"style":{"type":"string","enum":["plate","tab","inline","none"]},"color":{"$ref":"#/$defs/color"},"background":{"$ref":"#/$defs/color"}},"required":["style"]},"continueMarker":{"type":"object","properties":{"glyph":{"type":"string"},"image":{"$ref":"#/$defs/path"},"blink":{"type":"boolean"}}},"reveal":{"type":"object","properties":{"charsPerSecond":{"type":"number","minimum":0,"maximum":400}},"required":["charsPerSecond"]}},"required":["id","name","colors"]},"insets":{"type":"array","prefixItems":[{"type":"number","minimum":0,"maximum":512},{"type":"number","minimum":0,"maximum":512},{"type":"number","minimum":0,"maximum":512},{"type":"number","minimum":0,"maximum":512}],"items":false,"minItems":4,"maxItems":4,"description":"[top, right, bottom, left]"},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}([0-9a-fA-F]{2})?$"},"sound":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,47}$"},"name":{"type":"string","maxLength":32,"pattern":"\\S"},"description":{"type":"string","maxLength":120},"preview":{"description":"PNG, JPEG or WebP, at most 1024 px on its longer side.","$ref":"#/$defs/path"},"effects":{"type":"object","properties":{"click":{"$ref":"#/$defs/wav"},"grab":{"$ref":"#/$defs/wav"},"release":{"$ref":"#/$defs/wav"},"resize":{"$ref":"#/$defs/wav"},"menu":{"$ref":"#/$defs/wav"},"open":{"$ref":"#/$defs/wav"},"close":{"$ref":"#/$defs/wav"},"minimize":{"$ref":"#/$defs/wav"},"restore":{"$ref":"#/$defs/wav"},"fullscreen":{"$ref":"#/$defs/wav"},"screenshot":{"$ref":"#/$defs/wav"}},"additionalProperties":false,"minProperties":1}},"required":["id","name","effects"]},"wav":{"type":"string","allOf":[{"pattern":"^(?=[\\s\\S]{1,255}$)(?!\\.\\.?(?:\\/|$))[^/\\\\\\0]+(?:\\/(?!\\.\\.?(?:\\/|$))[^/\\\\\\0]+)*$"},{"pattern":"\\.[Ww][Aa][Vv]$"}],"description":"16-bit PCM WAV, mono or stereo, 8–48 kHz, up to 1 second and 256 KiB.","$ref":"#/$defs/path"}}}