{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "gift": {
      "properties": {
        "byCycle": {
          "items": {
            "ref": "lex:fyi.contributions.defs#cycleAmount",
            "type": "ref"
          },
          "type": "array"
        },
        "id": {
          "description": "Recipient's FEC committee id.",
          "type": "string"
        },
        "total": {
          "description": "US dollars.",
          "type": "integer"
        },
        "uri": {
          "description": "The recipient's fyi.contributions.committee record.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "id",
        "total",
        "byCycle"
      ],
      "type": "object"
    },
    "main": {
      "description": "A donor who gave $50,000 or more in all to a super PAC or other outside spender that spent on current members of Congress, as reported to the FEC; every donation they made to that group is counted. The record key is a slug of the name and state for people and organizations, or the lowercased FEC committee id for committees.",
      "key": "any",
      "record": {
        "properties": {
          "committee": {
            "description": "Matching fyi.contributions.committee record key, if the donor is a committee.",
            "type": "string"
          },
          "committeeUri": {
            "format": "at-uri",
            "type": "string"
          },
          "employer": {
            "description": "As reported.",
            "type": "string"
          },
          "gifts": {
            "description": "Largest first.",
            "items": {
              "ref": "lex:fyi.contributions.donor#gift",
              "type": "ref"
            },
            "type": "array"
          },
          "id": {
            "description": "Also the record key.",
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "occupation": {
            "description": "As reported.",
            "type": "string"
          },
          "organization": {
            "description": "Matching fyi.contributions.organization record key, if any.",
            "type": "string"
          },
          "organizationUri": {
            "format": "at-uri",
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "total": {
            "description": "US dollars.",
            "type": "integer"
          },
          "type": {
            "knownValues": [
              "individual",
              "organization",
              "committee"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "type",
          "total",
          "gifts"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "fyi.contributions.donor",
  "lexicon": 1
}
