{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/taskfuel-ai/json-schema/taskfuel-ai-treasury-schema.json",
  "title": "Treasury",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/taskfuel-ai-openapi.yml#/components/schemas/Treasury",
  "type": "object",
  "required": [
    "address",
    "detail",
    "networks"
  ],
  "properties": {
    "address": {
      "type": "string"
    },
    "detail": {
      "type": "string"
    },
    "networks": {
      "type": "object",
      "required": [
        "base",
        "tempo"
      ],
      "properties": {
        "base": {
          "$ref": "#/$defs/Network"
        },
        "tempo": {
          "$ref": "#/$defs/Network"
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Network": {
      "type": "object",
      "required": [
        "chainId",
        "token",
        "tokenAddress",
        "protocols"
      ],
      "properties": {
        "chainId": {
          "type": "integer"
        },
        "token": {
          "type": "string"
        },
        "tokenAddress": {
          "type": "string"
        },
        "protocols": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "x402",
              "mpp"
            ]
          }
        }
      },
      "additionalProperties": false
    }
  }
}