{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": ["published", "preview", "pending"]
        },
        "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": {}
          }
        }
      },
      "required": [
        "status",
        "deployment",
        "releases",
        "types",
        "collections",
        "images",
        "leaderboards",
        "referrals",
        "engagement"
      ],
      "additionalProperties": {},
      "title": "Deployment",
      "description": "A published deployment, a preview, or a live deployment awaiting Console approval."
    },
    {
      "type": "object",
      "properties": {
        "file": {
          "type": "string"
        },
        "engagement": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "quests": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "types": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "badges": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "pointLedgers": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "offers": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "collections": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "leaderboards": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "referrals": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "images": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "dashboards": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "file",
        "engagement",
        "quests",
        "types",
        "pointLedgers",
        "offers",
        "collections",
        "leaderboards",
        "referrals",
        "images"
      ],
      "additionalProperties": {},
      "title": "Bundle file",
      "description": "With --out: where the bundle was written."
    },
    {
      "type": "object",
      "properties": {
        "releases": {
          "type": "array",
          "items": {}
        },
        "types": {
          "type": "array",
          "items": {}
        },
        "collections": {
          "type": "array",
          "items": {}
        },
        "badges": {
          "type": "array",
          "items": {}
        },
        "pointLedgers": {
          "type": "array",
          "items": {}
        },
        "offers": {
          "type": "array",
          "items": {}
        },
        "leaderboards": {
          "type": "array",
          "items": {}
        },
        "referrals": {
          "type": "array",
          "items": {}
        }
      },
      "required": [
        "releases",
        "types",
        "collections",
        "pointLedgers",
        "offers",
        "leaderboards",
        "referrals"
      ],
      "additionalProperties": {},
      "title": "Bundle",
      "description": "The complete project bundle deploy would send. Its entries follow the SDK's build output."
    }
  ]
}
