{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/overwing-ai/json-schema/overwing-ai-preflight-verdict-schema.json",
  "title": "PreflightVerdict",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/overwing-ai-openapi.json#/components/schemas/PreflightVerdict",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "decision": {
      "type": "string",
      "enum": [
        "allow",
        "refuse"
      ],
      "description": "The one field to branch on. Sign only on allow"
    },
    "reasons": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          }
        }
      },
      "description": "Every reason to refuse. Empty on an allow. Codes are listed at GET /api/v1/preflight"
    },
    "effects": {
      "type": [
        "object",
        "null"
      ],
      "description": "What the simulation says would happen to the wallet: sol_out_lamports, token_out, token_in (atomic units as strings, by mint) and control changes. Null when it could not be simulated"
    },
    "programs": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Every program the transaction would run"
    },
    "digest": {
      "type": "string",
      "description": "sha256 of the message with its blockhash zeroed"
    },
    "slot": {
      "type": [
        "integer",
        "null"
      ]
    },
    "covered": {
      "type": "boolean",
      "description": "Whether the guarantee applies: an allow made only of programs Overwing names"
    },
    "decided_at": {
      "type": "string",
      "format": "date-time"
    },
    "valid_for_seconds": {
      "type": "integer",
      "description": "A verdict covers a transaction that lands within this many seconds"
    },
    "receipt": {
      "type": "object",
      "description": "The published payload, its hash, and an Ed25519 signature over the hash"
    },
    "record_url": {
      "type": "string"
    }
  }
}