{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/krimskrams-xyz/json-schema/krimskrams-xyz-wallet-wins-response-schema.json",
  "title": "WalletWinsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/krimskrams-xyz-bounty-award-data-api-openapi.yml#/components/schemas/WalletWinsResponse",
  "properties": {
    "wallet": {
      "type": "string",
      "title": "Wallet"
    },
    "wins": {
      "items": {
        "$ref": "#/$defs/WalletWin"
      },
      "type": "array",
      "title": "Wins"
    },
    "coverage": {
      "items": {
        "$ref": "#/$defs/BoardCoverage"
      },
      "type": "array",
      "title": "Coverage"
    },
    "unsupported_boards": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Unsupported Boards"
    },
    "as_of": {
      "type": "string",
      "format": "date-time",
      "title": "As Of"
    },
    "observation_age_seconds": {
      "type": "integer",
      "title": "Observation Age Seconds"
    },
    "limits": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Limits"
    }
  },
  "type": "object",
  "required": [
    "wallet",
    "wins",
    "coverage",
    "unsupported_boards",
    "as_of",
    "observation_age_seconds",
    "limits"
  ],
  "$defs": {
    "BoardCoverage": {
      "properties": {
        "board": {
          "type": "string",
          "title": "Board"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "as_of": {
          "type": "string",
          "format": "date-time",
          "title": "As Of"
        },
        "source_url": {
          "type": "string",
          "title": "Source Url"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error"
        }
      },
      "type": "object",
      "required": [
        "board",
        "status",
        "as_of",
        "source_url",
        "error"
      ],
      "title": "BoardCoverage"
    },
    "WalletWin": {
      "properties": {
        "board": {
          "type": "string",
          "title": "Board"
        },
        "task_id": {
          "type": "string",
          "title": "Task Id"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "won_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Won At"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "award_observed": {
          "type": "boolean",
          "title": "Award Observed"
        },
        "payout_observed": {
          "type": "boolean",
          "title": "Payout Observed"
        },
        "settlement_status": {
          "type": "string",
          "title": "Settlement Status"
        },
        "payout_amount": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Payout Amount"
        },
        "payout_currency": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Payout Currency"
        },
        "payout_tx_hash": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Payout Tx Hash"
        },
        "source_budget_amount": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Source Budget Amount"
        },
        "source_budget_currency": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Source Budget Currency"
        },
        "source_url": {
          "type": "string",
          "title": "Source Url"
        },
        "first_seen_at": {
          "type": "string",
          "format": "date-time",
          "title": "First Seen At"
        },
        "last_seen_at": {
          "type": "string",
          "format": "date-time",
          "title": "Last Seen At"
        },
        "observation_count": {
          "type": "integer",
          "title": "Observation Count"
        }
      },
      "type": "object",
      "required": [
        "board",
        "task_id",
        "title",
        "won_at",
        "status",
        "award_observed",
        "payout_observed",
        "settlement_status",
        "payout_amount",
        "payout_currency",
        "payout_tx_hash",
        "source_budget_amount",
        "source_budget_currency",
        "source_url",
        "first_seen_at",
        "last_seen_at",
        "observation_count"
      ],
      "title": "WalletWin"
    }
  }
}