# fyi.contributions.defs

> Shared types for the contributions.fyi dataset. Records link to each other by at-uri ('uri' fields, set when the target record exists); ids are kept alongside for joining with the data files. Record keys are the ids, except for the few the PDS's name filter rejects, which use underscores in place of hyphens; follow the uri links rather than building them. All amounts are whole US dollars, rounded to the nearest dollar (the atproto data model has no floating-point numbers); the JSON files referenced from fyi.contributions.dataset keep exact cents.

- Kind: defs
- Authority: contributions.fyi
- Lexicon: 1
- Published by [data.contributions.fyi](https://lexicon.garden/identity/did:plc:ej5cllsvxdrzdsweyfgr2nge), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:ej5cllsvxdrzdsweyfgr2nge/fyi.contributions.defs)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:ej5cllsvxdrzdsweyfgr2nge/fyi.contributions.defs/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:ej5cllsvxdrzdsweyfgr2nge/fyi.contributions.defs/analytics)

## #amount (`fyi.contributions.defs#amount`)

Type: object

Money attributed to an entity. What 'id' refers to depends on the field: a bioguide id (fyi.contributions.member), FEC committee id (fyi.contributions.committee), organization id (fyi.contributions.organization), donor id (fyi.contributions.donor) or a sector name.

### Properties

- `id` (string, required)
- `total` (integer, required): US dollars.
- `uri` (string · at-uri): The record 'id' refers to, if there is one.

## #cycleAmount (`fyi.contributions.defs#cycleAmount`)

Type: object

Money in one two-year election cycle, named for the year it ends (2024 = 2023-2024).

### Properties

- `amount` (integer, required): US dollars.
- `cycle` (integer, required)

## #formerStaffer (`fyi.contributions.defs#formerStaffer`)

Type: object

A lobbyist with a former government job, from LD-1 and LD-2 filings on lda.gov.

### Properties

- `chamber` (string): The chamber the job was in, when written with a title ('Rep.', 'Sen.').
  - Constraints: knownValues: house | senate
- `clients` (array, required): Clients they lobbied for in the current Congress.
  - `items` (string)
- `firms` (array, required): Registrants that listed them: lobbying firms, or organizations lobbying for themselves.
  - `items` (string)
- `job` (string, required): The job, as the lobbyist disclosed it.
- `ldaIds` (array): lda.gov lobbyist ids, one per registrant.
  - `items` (integer)
- `name` (string, required)

## #outside (`fyi.contributions.defs#outside`)

Type: object

Independent expenditures: money spent for or against a candidate without coordinating with the campaign.

### Properties

- `oppose` (integer, required): US dollars spent opposing.
- `support` (integer, required): US dollars spent supporting.

## #outsideAmount (`fyi.contributions.defs#outsideAmount`)

Type: object

Independent expenditures involving one other entity: a spender (FEC committee id) on a member's record, or a target (bioguide id) on a committee's record.

### Properties

- `id` (string, required)
- `oppose` (integer, required): US dollars.
- `support` (integer, required): US dollars.
- `uri` (string · at-uri): The fyi.contributions.committee or fyi.contributions.member record 'id' refers to.

## #sector (`fyi.contributions.defs#sector`)

Type: string

One of a fixed set of industry sectors. Individual donations also use 'Retired' and 'Not employed'.

Constraints: knownValues: Agribusiness | Communications & Technology | Construction | Defense | Education | Energy & Natural Resources | Finance, Insurance & Real Estate | Health | Ideological & Single-Issue | Labor | Lawyers & Lobbyists | Misc Business | Party & Candidate Committees | Transportation | Unknown | Retired | Not employed

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "amount": {
      "description": "Money attributed to an entity. What 'id' refers to depends on the field: a bioguide id (fyi.contributions.member), FEC committee id (fyi.contributions.committee), organization id (fyi.contributions.organization), donor id (fyi.contributions.donor) or a sector name.",
      "properties": {
        "id": {
          "type": "string"
        },
        "total": {
          "description": "US dollars.",
          "type": "integer"
        },
        "uri": {
          "description": "The record 'id' refers to, if there is one.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "id",
        "total"
      ],
      "type": "object"
    },
    "cycleAmount": {
      "description": "Money in one two-year election cycle, named for the year it ends (2024 = 2023-2024).",
      "properties": {
        "amount": {
          "description": "US dollars.",
          "type": "integer"
        },
        "cycle": {
          "type": "integer"
        }
      },
      "required": [
        "cycle",
        "amount"
      ],
      "type": "object"
    },
    "formerStaffer": {
      "description": "A lobbyist with a former government job, from LD-1 and LD-2 filings on lda.gov.",
      "properties": {
        "chamber": {
          "description": "The chamber the job was in, when written with a title ('Rep.', 'Sen.').",
          "knownValues": [
            "house",
            "senate"
          ],
          "type": "string"
        },
        "clients": {
          "description": "Clients they lobbied for in the current Congress.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "firms": {
          "description": "Registrants that listed them: lobbying firms, or organizations lobbying for themselves.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "job": {
          "description": "The job, as the lobbyist disclosed it.",
          "type": "string"
        },
        "ldaIds": {
          "description": "lda.gov lobbyist ids, one per registrant.",
          "items": {
            "type": "integer"
          },
          "type": "array"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "job",
        "firms",
        "clients"
      ],
      "type": "object"
    },
    "outside": {
      "description": "Independent expenditures: money spent for or against a candidate without coordinating with the campaign.",
      "properties": {
        "oppose": {
          "description": "US dollars spent opposing.",
          "type": "integer"
        },
        "support": {
          "description": "US dollars spent supporting.",
          "type": "integer"
        }
      },
      "required": [
        "support",
        "oppose"
      ],
      "type": "object"
    },
    "outsideAmount": {
      "description": "Independent expenditures involving one other entity: a spender (FEC committee id) on a member's record, or a target (bioguide id) on a committee's record.",
      "properties": {
        "id": {
          "type": "string"
        },
        "oppose": {
          "description": "US dollars.",
          "type": "integer"
        },
        "support": {
          "description": "US dollars.",
          "type": "integer"
        },
        "uri": {
          "description": "The fyi.contributions.committee or fyi.contributions.member record 'id' refers to.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "id",
        "support",
        "oppose"
      ],
      "type": "object"
    },
    "sector": {
      "description": "One of a fixed set of industry sectors. Individual donations also use 'Retired' and 'Not employed'.",
      "knownValues": [
        "Agribusiness",
        "Communications & Technology",
        "Construction",
        "Defense",
        "Education",
        "Energy & Natural Resources",
        "Finance, Insurance & Real Estate",
        "Health",
        "Ideological & Single-Issue",
        "Labor",
        "Lawyers & Lobbyists",
        "Misc Business",
        "Party & Candidate Committees",
        "Transportation",
        "Unknown",
        "Retired",
        "Not employed"
      ],
      "type": "string"
    }
  },
  "description": "Shared types for the contributions.fyi dataset. Records link to each other by at-uri ('uri' fields, set when the target record exists); ids are kept alongside for joining with the data files. Record keys are the ids, except for the few the PDS's name filter rejects, which use underscores in place of hyphens; follow the uri links rather than building them. All amounts are whole US dollars, rounded to the nearest dollar (the atproto data model has no floating-point numbers); the JSON files referenced from fyi.contributions.dataset keep exact cents.",
  "id": "fyi.contributions.defs",
  "lexicon": 1
}
```
