{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string",
        "minLength": 1,
        "maxLength": 100,
        "pattern": "^[a-zA-Z0-9_-]+$"
      },
      "name": {
        "type": "string"
      },
      "test": {
        "type": "boolean",
        "const": true
      },
      "today": {
        "type": "string",
        "format": "date",
        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
      },
      "offsetDays": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "wallets": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "chain": {
              "type": "string",
              "enum": ["solana", "eip155", "cosmos"]
            },
            "network": {
              "anyOf": [
                {},
                {
                  "type": "null"
                }
              ]
            },
            "address": {
              "type": "string"
            }
          },
          "required": ["chain", "network", "address"]
        }
      },
      "accounts": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "provider": {
              "type": "string",
              "enum": ["x", "discord"]
            },
            "id": {
              "type": "string"
            },
            "username": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "source": {
              "type": "string",
              "enum": ["linked", "synthetic", "connected"]
            }
          },
          "required": ["provider", "id", "username", "source"]
        }
      }
    },
    "required": ["id", "name", "test"]
  }
}
