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.
Details · defs
| Kind | defs |
|---|---|
| Authority | contributions.fyi |
| Commit rev | 3n2hi2g3sdr24 |
| Indexed |
Checks
Validunlimited-stringdefs.amount.properties.idNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.formerStaffer.properties.chamberNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.formerStaffer.properties.clients.itemsNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.formerStaffer.properties.firms.itemsNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.formerStaffer.properties.jobNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.formerStaffer.properties.nameNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.outsideAmount.properties.idNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.sectorNo maxLength, maxGraphemes or format limits this string.
{
"$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
}