{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "attempt": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[a-zA-Z0-9_-]+$"
          },
          "quest": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[a-zA-Z0-9_-]+$"
          },
          "member": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[a-zA-Z0-9_-]+$"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "evidence": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[a-zA-Z0-9_-]+$"
          },
          "submittedAt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "decidedAt": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "hidden": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "at": {
                    "type": "number"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "reason": {
                    "type": "string"
                  }
                },
                "required": ["at", "actor", "reason"]
              },
              {
                "type": "null"
              }
            ]
          },
          "winner": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "at": {
                    "type": "number"
                  },
                  "actor": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "reward": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "quest": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          },
                          "attempt": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          }
                        },
                        "required": ["quest", "attempt"]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": ["at", "actor", "reward"]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "attempt",
          "quest",
          "member",
          "name",
          "evidence",
          "submittedAt",
          "decidedAt",
          "hidden",
          "winner"
        ]
      }
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 4096
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": ["items", "nextCursor"]
}
