{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "electioneering": {
      "description": "Electioneering communications naming current members: ads that don't say vote for or against.",
      "properties": {
        "targets": {
          "description": "By member (bioguide id), largest first.",
          "items": {
            "ref": "lex:fyi.contributions.defs#amount",
            "type": "ref"
          },
          "type": "array"
        },
        "total": {
          "description": "US dollars.",
          "type": "integer"
        }
      },
      "required": [
        "total",
        "targets"
      ],
      "type": "object"
    },
    "main": {
      "description": "A political committee registered with the FEC (PAC, super PAC, party or campaign committee) that gave to or spent on current members of Congress, or a group or person that isn't a political committee but reported outside spending on them (FEC Form 5 or 9). The record key is the FEC id (e.g. 'C00030718').",
      "key": "any",
      "record": {
        "properties": {
          "byCycle": {
            "items": {
              "ref": "lex:fyi.contributions.defs#cycleAmount",
              "type": "ref"
            },
            "type": "array"
          },
          "connectedOrg": {
            "description": "Connected organization as filed with the FEC.",
            "type": "string"
          },
          "donors": {
            "description": "Donors who gave it $50,000 or more in all (fyi.contributions.donor record keys), largest first.",
            "items": {
              "ref": "lex:fyi.contributions.defs#amount",
              "type": "ref"
            },
            "type": "array"
          },
          "electioneering": {
            "ref": "lex:fyi.contributions.committee#electioneering",
            "type": "ref"
          },
          "id": {
            "description": "FEC committee id; also the record key.",
            "type": "string"
          },
          "industry": {
            "type": "string"
          },
          "kind": {
            "description": "'non-committee': a group or person that isn't a political committee and reports independent expenditures (Form 5) or electioneering communications (Form 9).",
            "knownValues": [
              "pac",
              "leadership-pac",
              "candidate",
              "party",
              "super-pac",
              "non-committee",
              "other"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "opponents": {
            "description": "Independent expenditures on current members' opponents; targets are the members whose races it was (bioguide ids).",
            "ref": "lex:fyi.contributions.committee#outside",
            "type": "ref"
          },
          "orgType": {
            "description": "FEC organization type: C corporation, L labor, M membership, T trade, V cooperative, W corporation without stock.",
            "type": "string"
          },
          "organization": {
            "description": "fyi.contributions.organization record key.",
            "type": "string"
          },
          "organizationUri": {
            "format": "at-uri",
            "type": "string"
          },
          "outside": {
            "ref": "lex:fyi.contributions.committee#outside",
            "type": "ref"
          },
          "person": {
            "description": "Form 5 filers who report as an individual rather than a group.",
            "type": "boolean"
          },
          "recipients": {
            "description": "By member (bioguide id), largest first.",
            "items": {
              "ref": "lex:fyi.contributions.defs#amount",
              "type": "ref"
            },
            "type": "array"
          },
          "reportedDonations": {
            "description": "Non-committee filers with reports on file: US dollars their Form 5 or Form 9 reports list as received to pay for this spending, over the dataset's cycles. 0 means the filings name no donors.",
            "type": "integer"
          },
          "sector": {
            "ref": "lex:fyi.contributions.defs#sector",
            "type": "ref"
          },
          "sponsors": {
            "description": "Leadership PACs: the members of Congress who run them.",
            "items": {
              "ref": "lex:fyi.contributions.committee#sponsor",
              "type": "ref"
            },
            "type": "array"
          },
          "state": {
            "type": "string"
          },
          "total": {
            "description": "US dollars given to current members.",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "name",
          "kind",
          "organization",
          "sector",
          "total",
          "byCycle",
          "recipients"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "outside": {
      "description": "Independent expenditures on current members.",
      "properties": {
        "oppose": {
          "description": "US dollars.",
          "type": "integer"
        },
        "support": {
          "description": "US dollars.",
          "type": "integer"
        },
        "targets": {
          "description": "By member (bioguide id), largest first.",
          "items": {
            "ref": "lex:fyi.contributions.defs#outsideAmount",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "support",
        "oppose",
        "targets"
      ],
      "type": "object"
    },
    "sponsor": {
      "properties": {
        "bioguide": {
          "type": "string"
        },
        "fecId": {
          "description": "FEC candidate id.",
          "type": "string"
        },
        "uri": {
          "description": "The sponsor's fyi.contributions.member record, if they're a current member.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "fecId"
      ],
      "type": "object"
    }
  },
  "id": "fyi.contributions.committee",
  "lexicon": 1
}
