{ "$schema":              "https://json-schema.org/draft/2020-12/schema",
  "$id":                  "https://schemas.mpai.community/PGM1/V1.0/data/AUFDirective.json",
  "title":                "AUF Directive V1.0",
  "type":                 "object",
  "additionalProperties": false,
  "required":             [ "Header", "MInstance", "UEnvironment", "AUFDirectiveID", "AUFDirectiveTime", "SessionID", "Exchange" ],
  "properties":           {

    "Header":             { "type": "string", "const": "PGM-AFD-V1.0" },
    "MInstance":          { "type": "string" },
    "UEnvironment":       { "type": "string" },
    "AUFDirectiveID":     { "type": "string" },
    "AUFDirectiveTime":   { "$ref": "https://schemas.mpai.community/PTF/V1.0/data/SimpleTime.json" },
    "SessionID":          { "type": "string" },

    "Exchange":           { "type": "object", "additionalProperties": false, "required": [ "Phase" ], "properties": {
      "Phase":            { "type": "string", "enum": [ "new", "continuation" ] },
      "AUFStatusID":      { "type": "string" } } },

    "FormationControl":   { "type": "object", "additionalProperties": false, "properties": {
      "RenderAvatar":     { "type": "string", "enum": [ "required", "optional", "not_requested" ] },
      "SpatialOutput":    { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/SpatialAttitude.json" },
      "ChannelControl":   { "type": "object", "additionalProperties": false, "properties": {
        "SpeechPS":       { "$ref": "https://schemas.mpai.community/MMC/V2.5/data/SpeechPersonalStatus.json" },
        "FacePS":         { "$ref": "https://schemas.mpai.community/MMC/V2.5/data/FacePersonalStatus.json" },
        "GesturePS":      { "$ref": "https://schemas.mpai.community/MMC/V2.5/data/GesturePersonalStatus.json" } } } } },

    "AUSRead":            { "type": "array", "items": { "type": "string" } },
    "AUSWrite":           { "type": "array", "items": { "type": "string" } },

    "DataXMData":         { "$ref": "https://schemas.mpai.community/PTF/V1.0/data/DataExchangeMetadata.json" },
    "DescrMetadata":      { "type": "string", "maxLength": 2048 } } }