{
  "$ref": "#/definitions/identity-verification-decision-v1",
  "definitions": {
    "identity-verification-decision-v1": {
      "type": "object",
      "properties": {
        "verdict": {
          "type": "string",
          "enum": [
            "allow",
            "warn",
            "deny"
          ]
        },
        "resolved_mint": {
          "type": [
            "string",
            "null"
          ]
        },
        "network": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "solana-devnet",
                "solana-mainnet"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "score": {
          "type": "number"
        },
        "checks": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "passed": {
                "type": "boolean"
              },
              "severity": {
                "type": "string",
                "enum": [
                  "info",
                  "warn",
                  "deny"
                ]
              },
              "detail": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "passed",
              "severity",
              "detail"
            ],
            "additionalProperties": false
          }
        },
        "profile": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "mint": {
                  "type": "string"
                },
                "network": {
                  "type": "string",
                  "enum": [
                    "solana-devnet",
                    "solana-mainnet"
                  ]
                },
                "handle": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "verified_domains": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "reputation": {
                  "type": "object",
                  "properties": {
                    "settled_calls": {
                      "type": "integer"
                    },
                    "denied_calls": {
                      "type": "integer"
                    },
                    "rating": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "settled_calls",
                    "denied_calls",
                    "rating"
                  ],
                  "additionalProperties": false
                },
                "capability_cards_count": {
                  "type": "integer"
                },
                "claims_count": {
                  "type": "integer"
                }
              },
              "required": [
                "mint",
                "network",
                "handle",
                "name",
                "verified_domains",
                "reputation",
                "capability_cards_count",
                "claims_count"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "verdict",
        "resolved_mint",
        "network",
        "score",
        "checks",
        "profile"
      ],
      "additionalProperties": false
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}