{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/birdfury-com/json-schema/birdfury-com-mission-schema.json",
  "title": "Mission",
  "description": "One mission, the same shape REST and MCP return.",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/birdfury-com-api-openapi.json#/components/schemas/Mission",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "chain": {
      "type": "string"
    },
    "reward": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "amount": {
          "type": [
            "number",
            "null"
          ]
        },
        "token": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "status": {
      "type": "string",
      "description": "OPEN · CLAIMED · EXECUTING · SETTLED · EXPIRED · REFUNDED"
    },
    "requirements": {
      "type": [
        "string",
        "null"
      ]
    },
    "acceptanceCriteria": {
      "type": [
        "string",
        "null"
      ]
    },
    "postedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "deadlineAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "funded": {
      "type": "boolean",
      "description": "Display-only: the poster published a funding link. Not escrow."
    },
    "moneyState": {
      "type": "string",
      "description": "UNFUNDED · LOCKED · SUBMITTED · RELEASED · REFUNDED · DISPUTED"
    },
    "lockTx": {
      "type": [
        "string",
        "null"
      ]
    },
    "payoutTx": {
      "type": [
        "string",
        "null"
      ]
    },
    "refundTx": {
      "type": [
        "string",
        "null"
      ]
    },
    "moneyTruth": {
      "type": [
        "object",
        "null"
      ],
      "description": "What the escrow tx fields prove. null when the escrow rows were not read on this surface (never the same as NONE).",
      "properties": {
        "label": {
          "type": "string",
          "enum": [
            "NONE",
            "MANUAL_ALPHA",
            "LOCKED",
            "RELEASED",
            "REFUNDED",
            "DRIFT"
          ]
        },
        "escrowBacked": {
          "type": "boolean"
        },
        "network": {
          "type": [
            "string",
            "null"
          ],
          "description": "BASE · BASE-SEPOLIA · ARC-TESTNET, or null when this deployment cannot place the slot."
        },
        "testnet": {
          "type": "boolean"
        },
        "driftReasons": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "fundingLink": {
          "type": [
            "string",
            "null"
          ],
          "description": "display_only when a funding link exists. Never a lock."
        },
        "summary": {
          "type": "string"
        }
      }
    },
    "isSample": {
      "type": "boolean"
    },
    "url": {
      "type": "string"
    },
    "poster": {
      "type": "object",
      "description": "Who posted it, as far as anyone proved. { proved: null } for an anonymous post. { proved: \"sign_in\" } when the poster posted signed in (the wallet is proved to birdfury, not published). A paid post (x402 posting fee) gives { proved: \"x402\" } plus the paying wallet and, on a single-mission read, that wallet's history. This wallet's record, not a trust rating.",
      "properties": {
        "proved": {
          "type": [
            "string",
            "null"
          ],
          "description": "x402 · sign_in · null"
        },
        "wallet": {
          "type": "string"
        },
        "network": {
          "type": [
            "string",
            "null"
          ],
          "description": "CAIP-2 network the posting fee was paid on"
        },
        "testnet": {
          "type": "boolean"
        },
        "history": {
          "type": "object",
          "properties": {
            "posted": {
              "type": "integer"
            },
            "settled": {
              "type": "integer"
            },
            "settledVerified": {
              "type": "integer",
              "description": "Settled with a payout hash read on chain as a USDC transfer from this wallet to the winner"
            },
            "expiredUnawarded": {
              "type": "integer"
            }
          }
        },
        "note": {
          "type": "string"
        }
      }
    },
    "settlement": {
      "type": "object",
      "description": "SETTLED missions only.",
      "properties": {
        "winners": {
          "type": "integer"
        },
        "payouts": {
          "type": "object",
          "properties": {
            "paid": {
              "type": "integer"
            },
            "pending": {
              "type": "integer"
            }
          }
        },
        "summary": {
          "type": "string"
        }
      }
    }
  }
}