{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$ref": "#/definitions/DocsSyncResult",
  "definitions": {
    "DocsSyncResult": {
      "type": "object",
      "properties": {
        "results": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/SyncResult"
          }
        },
        "totalSynced": {
          "type": "number"
        },
        "totalFailed": {
          "type": "number"
        },
        "totalFiles": {
          "type": "number"
        }
      },
      "required": ["results", "totalSynced", "totalFailed", "totalFiles"],
      "additionalProperties": false
    },
    "SyncResult": {
      "type": "object",
      "properties": {
        "profile": {
          "$ref": "#/definitions/ProfileId"
        },
        "synced": {
          "type": "number"
        },
        "failed": {
          "type": "number"
        },
        "files": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "errors": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": ["profile", "synced", "failed", "files", "errors"],
      "additionalProperties": false
    },
    "ProfileId": {
      "type": "string",
      "enum": [
        "developer",
        "architect",
        "sa",
        "pm",
        "mulesoft",
        "ux",
        "cgcloud",
        "qa",
        "crma",
        "commerce",
        "data360",
        "sfmc",
        "salescloud",
        "service",
        "cpq",
        "omnistudio",
        "fsl",
        "ai",
        "slack",
        "tableau",
        "experience-cloud",
        "release-manager",
        "fsc",
        "health",
        "manufacturing",
        "communications",
        "automotive",
        "education",
        "netzero",
        "nonprofit",
        "public-sector",
        "media",
        "energy",
        "revenue",
        "maps",
        "loyalty",
        "industries"
      ]
    }
  }
}
