{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "const": "published"
    },
    "deployment": {
      "type": "string"
    },
    "releases": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "quest": {
            "type": "string"
          },
          "key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "type": "string"
          },
          "lifecycle": {
            "type": "string"
          },
          "deploymentDefaults": {},
          "customValues": {},
          "preservedFromOlderRelease": {},
          "effectiveSettings": {},
          "withheldSettings": {
            "description": "Secret settings that hold a value. Every secret setting is left out of deploymentDefaults, customValues and effectiveSettings.",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": ["id", "quest", "title"],
        "additionalProperties": {}
      }
    },
    "types": {
      "type": "array",
      "items": {}
    },
    "collections": {
      "type": "array",
      "items": {}
    },
    "pointLedgers": {
      "type": "array",
      "items": {}
    },
    "images": {
      "type": "array",
      "items": {}
    },
    "leaderboards": {
      "type": "array",
      "items": {}
    },
    "referrals": {
      "type": "array",
      "items": {}
    },
    "engagement": {
      "type": "array",
      "items": {}
    },
    "dashboards": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "change": {
            "type": "string"
          }
        },
        "required": ["key", "title", "change"],
        "additionalProperties": {}
      }
    },
    "calendar": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "timeZone": {
              "type": "string"
            },
            "effectiveAt": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": ["timeZone", "effectiveAt"]
        },
        {
          "type": "null"
        }
      ]
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "integration": {
            "type": "string"
          },
          "quests": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": ["code", "message"],
        "additionalProperties": {}
      }
    },
    "rolledBackTo": {
      "type": "string"
    }
  },
  "required": [
    "status",
    "deployment",
    "releases",
    "types",
    "collections",
    "images",
    "leaderboards",
    "referrals",
    "engagement",
    "rolledBackTo"
  ],
  "additionalProperties": {},
  "title": "Deployment rollback"
}
