{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alphabazaar-ai/json-schema/alphabazaar-ai-verification-response-schema.json",
  "title": "VerificationResponse",
  "description": "GET /api/verify/{code}",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alphabazaar-ai-system-api-openapi.yml#/components/schemas/VerificationResponse",
  "properties": {
    "verified": {
      "type": "boolean",
      "title": "Verified"
    },
    "attestation_code": {
      "type": "string",
      "title": "Attestation Code"
    },
    "signal": {
      "$ref": "#/$defs/VerificationSignal"
    },
    "publisher": {
      "$ref": "#/$defs/VerificationPublisher"
    },
    "performance": {
      "anyOf": [
        {
          "$ref": "#/$defs/VerificationPerformance"
        },
        {
          "type": "null"
        }
      ]
    },
    "attestation": {
      "$ref": "#/$defs/VerificationAttestation"
    }
  },
  "type": "object",
  "required": [
    "verified",
    "attestation_code",
    "signal",
    "publisher",
    "attestation"
  ],
  "$defs": {
    "VerificationAttestation": {
      "properties": {
        "hash": {
          "type": "string",
          "title": "Hash"
        },
        "code": {
          "type": "string",
          "title": "Code"
        },
        "locked_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Locked At"
        },
        "is_valid": {
          "type": "boolean",
          "title": "Is Valid"
        }
      },
      "type": "object",
      "required": [
        "hash",
        "code",
        "is_valid"
      ],
      "title": "VerificationAttestation"
    },
    "VerificationPerformance": {
      "properties": {
        "current_return": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Current Return"
        },
        "current_price": {
          "anyOf": [
            {},
            {
              "type": "null"
            }
          ],
          "title": "Current Price"
        },
        "exit_price": {
          "anyOf": [
            {},
            {
              "type": "null"
            }
          ],
          "title": "Exit Price"
        },
        "status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Status"
        }
      },
      "type": "object",
      "title": "VerificationPerformance"
    },
    "VerificationPublisher": {
      "properties": {
        "username": {
          "type": "string",
          "title": "Username"
        },
        "publisher_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Publisher Type"
        },
        "is_monetized": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Is Monetized"
        }
      },
      "type": "object",
      "required": [
        "username"
      ],
      "title": "VerificationPublisher"
    },
    "VerificationSignal": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "ticker": {
          "type": "string",
          "title": "Ticker"
        },
        "action": {
          "type": "string",
          "title": "Action"
        },
        "entry_price": {
          "anyOf": [
            {},
            {
              "type": "null"
            }
          ],
          "title": "Entry Price"
        },
        "price_target": {
          "anyOf": [
            {},
            {
              "type": "null"
            }
          ],
          "title": "Price Target"
        },
        "stop_loss": {
          "anyOf": [
            {},
            {
              "type": "null"
            }
          ],
          "title": "Stop Loss"
        },
        "status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Status"
        },
        "locked_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Locked At"
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        },
        "closed_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Closed At"
        },
        "slug": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Slug"
        }
      },
      "type": "object",
      "required": [
        "id",
        "ticker",
        "action"
      ],
      "title": "VerificationSignal"
    }
  }
}