{ "$schema":                "https://json-schema.org/draft/2020-12/schema",
  "$id":                    "https://schemas.mpai.community/PGM1/V1.0/data/AUFStatus.json",
  "title":                  "AUF Status V1.0",
  "type":                   "object",
  "additionalProperties":   false,
  "required":               [ "Header", "MInstance", "UEnvironment", "AUFStatusID", "AUFStatusTime", "SessionID", "AUFDirectiveID", "RenderState", "FormationOutcome", "SubAIMOutcomes" ],
  "properties":             {

    "Header":               { "type": "string", "const": "PGM-AFS-V1.0" },
    "MInstance":            { "type": "string" },
    "UEnvironment":         { "type": "string" },
    "AUFStatusID":          { "type": "string" },
    "AUFStatusTime":        { "$ref": "https://schemas.mpai.community/PTF/V1.0/data/SimpleTime.json" },
    "SessionID":            { "type": "string" },
    "AUFDirectiveID":       { "type": "string" },

    "RenderState":          { "type": "string", "enum": [ "pending", "rendering", "rendered", "not_rendered" ] },

    "AboutToRender":        { "type": "object", "additionalProperties": false, "properties": {
      "TextObjectID":       { "type": "string" },
      "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" } } },

    "FormationOutcome":     { "type": "object", "additionalProperties": false, "properties": {
      "FormationResult":    { "type": "string", "enum": [ "success", "failure", "partial" ] },
      "AvatarState":        { "type": "string", "enum": [ "rendered", "not_rendered" ] } } },

    "SubAIMOutcomes":       { "type": "object", "additionalProperties": false, "properties": {
      "SpeechSynthesis":    { "type": "object", "additionalProperties": false, "required": [ "Outcome" ], "properties": { "Outcome": { "type": "string", "enum": [ "success", "failure", "not_requested" ] }, "Reason": { "type": "string", "enum": [ "none", "model_unavailable", "asset_missing", "synthesis_error", "unsupported_qualifier", "input_invalid" ] } } },
      "FaceDescription":    { "type": "object", "additionalProperties": false, "required": [ "Outcome" ], "properties": { "Outcome": { "type": "string", "enum": [ "success", "failure", "not_requested" ] }, "Reason": { "type": "string", "enum": [ "none", "model_unavailable", "asset_missing", "synthesis_error", "unsupported_qualifier", "input_invalid" ] } } },
      "BodyDescription":    { "type": "object", "additionalProperties": false, "required": [ "Outcome" ], "properties": { "Outcome": { "type": "string", "enum": [ "success", "failure", "not_requested" ] }, "Reason": { "type": "string", "enum": [ "none", "model_unavailable", "asset_missing", "synthesis_error", "unsupported_qualifier", "input_invalid" ] } } },
      "AvatarSynthesis":    { "type": "object", "additionalProperties": false, "required": [ "Outcome" ], "properties": { "Outcome": { "type": "string", "enum": [ "success", "failure", "not_requested" ] }, "Reason": { "type": "string", "enum": [ "none", "model_unavailable", "asset_missing", "synthesis_error", "unsupported_qualifier", "input_invalid" ] } } } } },

    "AUSOperationOutcomes": { "type": "array", "items": { "type": "string" } },

    "DataXMData":           { "$ref": "https://schemas.mpai.community/PTF/V1.0/data/DataExchangeMetadata.json" },
    "DescrMetadata":        { "type": "string", "maxLength": 2048 } } }