UNPKG

congress-dot-gov

Version:
1,067 lines (1,064 loc) 210 kB
import { z } from 'zod/v4'; import { z as z$1 } from 'zod'; declare enum ActivityName { REFERRED_TO = "Referred to", RE_REFERRED_TO = "Re-Referred to", HEARINGS_BY = "Hearings by", MARKUP_BY = "Markup by", REPORTED_BY = "Reported by", REPORTED_ORIGINAL_MEASURE = "Reported original measure", COMMITTED_TO = "Committed to", RE_COMMITTED_TO = "Re-Committed to", LEGISLATIVE_INTEREST = "Legislative Interest", DISCHARGED_FROM = "Discharged From" } declare enum ActivityNameTypo { REFERRED_TO_CAPITALIZED = "Referred To" } declare enum IdentifiedBy { HOUSE = "House", SENATE = "Senate", CRS = "CRS" } declare enum HouseAmendmentType { HAMDT = "HAMDT" } declare enum SenateAmendmentType { SAMDT = "SAMDT", SUAMDT = "SUAMDT" } declare enum AmendmentType { HAMDT = "HAMDT", SAMDT = "SAMDT", SUAMDT = "SUAMDT" } declare enum CongressChamber { HOUSE = "House of Representatives", SENATE = "Senate" } declare enum Chamber { HOUSE = "House", SENATE = "Senate", JOINT = "Joint", NO_CHAMBER = "NoChamber" } declare enum Session { REGULAR = "R", SPECIAL = "S" } declare enum ChamberCode { HOUSE = "H", SENATE = "S" } declare enum HouseBillType { HR = "HR", HJRES = "HJRES", HCONRES = "HCONRES", HRES = "HRES" } declare enum SenateBillType { S = "S", SJRES = "SJRES", SCONRES = "SCONRES", SRES = "SRES" } declare enum ActionType { COMMITTEE = "Committee", FLOOR = "Floor", INTRO_REFERRAL = "IntroReferral", RESOLVING_DIFFERENCES = "ResolvingDifferences", NOT_USED = "NotUsed" } declare enum BillActionType { COMMITTEE = "Committee", CALENDARS = "Calendars", FLOOR = "Floor", BECAME_LAW = "BecameLaw", INTRO_REFERRAL = "IntroReferral", PRESIDENT = "President", RESOLVING_DIFFERENCES = "ResolvingDifferences", DISCHARGE = "Discharge", NOT_USED = "NotUsed", VETO = "Veto" } declare enum AmendmentTextType { SUBMITTED = "Submitted", MODIFIED = "Modified" } declare enum BillType { S = "S", SJRES = "SJRES", SCONRES = "SCONRES", SRES = "SRES", HR = "HR", HJRES = "HJRES", HCONRES = "HCONRES", HRES = "HRES" } declare enum MemberType { REPRESENTATIVE = "Representative", RESIDENT_COMMISSIONER = "Resident Commissioner", DELEGATE = "Delegate", SENATOR = "Senator" } declare enum PartyName { DEMOCRATIC = "Democratic", INDEPENDENT = "Independent", INDEPENDENT_DEMOCRAT = "Independent Democrat", LIBERTARIAN = "Libertarian", REPUBLICAN = "Republican" } declare enum PartyCode { DEMOCRATIC = "D", INDEPENDENT = "I", INDEPENDENT_DEMOCRAT = "ID", LIBERTARIAN = "L", REPUBLICAN = "R" } declare enum OnBehalfOfSponsorAction { SUBMITTED_ON_BEHALF_OF = "Submitted on behalf of", PROPOSED_ON_BEHALF_OF = "Proposed on behalf of" } declare enum VoteType { RECORDED_VOTE_2_3 = "2/3 Recorded Vote", YEA_AND_NAY_2_3 = "2/3 Yea-And-Nay", RECORDED_VOTE_3_5 = "3/5 Recorded Vote", YEA_AND_NAY_3_5 = "3/5 Yea-And-Nay", QUORUM = "Quorum", RECORDED_VOTE = "Recorded Vote", YEA_AND_NAY = "Yea-and-Nay" } declare enum VoteResult { PASSED = "Passed", FAILED = "Failed", AGREED_TO = "Agreed to" } declare enum VoteQuestion { ON_AGREEING_TO_AMENDMENT = "On Agreeing to the Amendment", ON_AGREEING_TO_RESOLUTION = "On Agreeing to the Resolution", ON_AGREEING_TO_RESOLUTION_AS_AMENDED = "On Agreeing to the Resolution, as Amended", ON_MOTION_TO_RECOMMIT = "On Motion to Recommit", ON_MOTION_TO_RECONSIDER = "On Motion to Reconsider", ON_MOTION_TO_SUSPEND_RULES_AND_AGREE = "On Motion to Suspend the Rules and Agree", ON_MOTION_TO_SUSPEND_RULES_AND_AGREE_AS_AMENDED = "On Motion to Suspend the Rules and Agree, as Amended", ON_MOTION_TO_SUSPEND_RULES_AND_CONCUR_IN_THE_SENATE_AMENDMENT = "On Motion to Suspend the Rules and Concur in the Senate Amendment", ON_MOTION_TO_SUSPEND_RULES_AND_PASS = "On Motion to Suspend the Rules and Pass", ON_MOTION_TO_SUSPEND_RULES_AND_PASS_AS_AMENDED = "On Motion to Suspend the Rules and Pass, as Amended", ON_MOTION_TO_TABLE = "On Motion to Table", ON_ORDERING_THE_PREVIOUS_QUESTION = "On Ordering the Previous Question", ON_PASSAGE = "On Passage" } declare enum CommitteeType { COMMISSION_OR_CAUCUS = "Commission or Caucus", JOINT = "Joint", OTHER = "Other", SELECT = "Select", SPECIAL = "Special", STANDING = "Standing", SUBCOMMITTEE = "Subcommittee", TASK_FORCE = "Task Force" } declare enum CommitteeReportType { HRPT = "HRPT", SRPT = "SRPT", ERPT = "ERPT" } declare enum CommitteeReportReportType { SRPT = "S.Rept", HRPT = "H.Rept", ERPT = "Ex.Rept", HRPT_DOT = "H.Rept." } declare enum CommitteeReportFormat { FORMATTED_TEXT = "Formatted Text", PDF = "PDF", FORMATTED_XML = "Formatted XML", GENERATED_HTML = "Generated HTML" } declare enum CommunicationTypeName { EXECUTIVE_COMMUNICATION = "Executive Communication", PRESIDENTIAL_MESSAGE = "Presidential Message", PETITION = "Petition", MEMORIAL = "Memorial", PEPETITION_OR_MEMORIAL = "Petition or Memorial" } declare enum CommunicationTypeCode { EXECUTIVE_COMMUNICATION = "EC", PRESIDENTIAL_MESSAGE = "PM", PETITION = "PT", MEMORIAL = "ML", PEPETITION_OR_MEMORIAL = "POM" } declare enum SourceSystemCode { SENATE = "0", HOUSE_COMMITTEE_ACTIONS = "1", HOUSE_FLOOR_ACTIONS = "2", LIBRARY_OF_CONGRESS = "9" } declare enum SourceSystemName { SENATE = "Senate", HOUSE_COMMITTEE_ACTIONS = "House committee actions", HOUSE_FLOOR_ACTIONS = "House floor actions", LIBRARY_OF_CONGRESS = "Library of Congress" } declare enum LawType { PUBLIC_LAW = "Public Law", PRIVATE_LAW = "Private Law" } declare enum StateName { ALABAMA = "Alabama", ALASKA = "Alaska", ARIZONA = "Arizona", ARKANSAS = "Arkansas", CALIFORNIA = "California", COLORADO = "Colorado", CONNECTICUT = "Connecticut", DELAWARE = "Delaware", DISTRICT_OF_COLUMBIA = "District of Columbia", FLORIDA = "Florida", GEORGIA = "Georgia", HAWAII = "Hawaii", IDAHO = "Idaho", ILLINOIS = "Illinois", INDIANA = "Indiana", IOWA = "Iowa", KANSAS = "Kansas", KENTUCKY = "Kentucky", LOUISIANA = "Louisiana", MAINE = "Maine", MARYLAND = "Maryland", MASSACHUSETTS = "Massachusetts", MICHIGAN = "Michigan", MINNESOTA = "Minnesota", MISSISSIPPI = "Mississippi", MISSOURI = "Missouri", MONTANA = "Montana", NEBRASKA = "Nebraska", NEVADA = "Nevada", NEW_HAMPSHIRE = "New Hampshire", NEW_JERSEY = "New Jersey", NEW_MEXICO = "New Mexico", NEW_YORK = "New York", NORTH_CAROLINA = "North Carolina", NORTH_DAKOTA = "North Dakota", OHIO = "Ohio", OKLAHOMA = "Oklahoma", OREGON = "Oregon", PENNSYLVANIA = "Pennsylvania", RHODE_ISLAND = "Rhode Island", SOUTH_CAROLINA = "South Carolina", SOUTH_DAKOTA = "South Dakota", TENNESSEE = "Tennessee", TEXAS = "Texas", UTAH = "Utah", VERMONT = "Vermont", VIRGINIA = "Virginia", WASHINGTON = "Washington", WEST_VIRGINIA = "West Virginia", WISCONSIN = "Wisconsin", WYOMING = "Wyoming" } declare enum StateCode { ALABAMA = "AL", ALASKA = "AK", ARIZONA = "AZ", ARKANSAS = "AR", CALIFORNIA = "CA", COLORADO = "CO", CONNECTICUT = "CT", DELAWARE = "DE", DISTRICT_OF_COLUMBIA = "DC", FLORIDA = "FL", GEORGIA = "GA", HAWAII = "HI", IDAHO = "ID", ILLINOIS = "IL", INDIANA = "IN", IOWA = "IA", KANSAS = "KS", KENTUCKY = "KY", LOUISIANA = "LA", MAINE = "ME", MARYLAND = "MD", MASSACHUSETTS = "MA", MICHIGAN = "MI", MINNESOTA = "MN", MISSISSIPPI = "MS", MISSOURI = "MO", MONTANA = "MT", NEBRASKA = "NE", NEVADA = "NV", NEW_HAMPSHIRE = "NH", NEW_JERSEY = "NJ", NEW_MEXICO = "NM", NEW_YORK = "NY", NORTH_CAROLINA = "NC", NORTH_DAKOTA = "ND", OHIO = "OH", OKLAHOMA = "OK", OREGON = "OR", PENNSYLVANIA = "PA", RHODE_ISLAND = "RI", SOUTH_CAROLINA = "SC", SOUTH_DAKOTA = "SD", TENNESSEE = "TN", TEXAS = "TX", UTAH = "UT", VERMONT = "VT", VIRGINIA = "VA", WASHINGTON = "WA", WEST_VIRGINIA = "WV", WISCONSIN = "WI", WYOMING = "WY" } /** * @packageDocumentation * Schema and interface definitions for data returned from the `amendment` endpoints. * - /amendment returns AmendmentSummary * - /amendment/{congress} returns AmendmentSummary * - /amendment/{congress}/{amendmentType} returns AmendmentSummary * - /amendment/{congress}/{amendmentType}/{amendmentNumber} returns Amendment * - /amendment/{congress}/{amendmentType}/{amendmentNumber}/actions returns AmendmentAction * - /amendment/{congress}/{amendmentType}/{amendmentNumber}/cosponsors returns AmendmentCosponsor * - /amendment/{congress}/{amendmentType}/{amendmentNumber}/amendments returns AmendmentAmendment * - /amendment/{congress}/{amendmentType}/{amendmentNumber}/text returns AmendmentText * [Library of Congress XML Documentation](https://github.com/LibraryOfCongress/api.congress.gov/blob/main/Documentation/AmendmentEndpoint.md) * */ /** * Zod schema for validating entities returned from the `/amendment`, `/amendment/{congress}/{amendmentType}`, and `/amendment/{congress}` list endpoints. * @ignore */ declare const AmendmentSummarySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ description: z.ZodString; type: z.ZodEnum<{ readonly HAMDT: AmendmentType.HAMDT; }>; congress: z.ZodNumber; latestAction: z.ZodOptional<z.ZodObject<{ /** The date of the latest action taken on the amendment. (e.g. 2021-08-08) */ actionDate: z.ZodISODate; /** The text of the latest action taken on the amendment. (e.g. Amendment SA 2137 agreed to in Senate by Yea-Nay Vote. 69 - 28. Record Vote Number: 312.) */ text: z.ZodString; /** The time of the latest action taken on the amendment. * Certain actions taken by the House contain this element. */ actionTime: z.ZodOptional<z.ZodISOTime>; }, z.core.$strict>>; number: z.ZodString; purpose: z.ZodOptional<z.ZodString>; url: z.ZodURL; updateDate: z.ZodISODateTime; }, z.core.$strip>, z.ZodObject<{ type: z.ZodEnum<{ readonly SAMDT: AmendmentType.SAMDT; }>; /** The congress during which an amendment was submitted or offered. (e.g. 117) */ congress: z.ZodNumber; latestAction: z.ZodOptional<z.ZodObject<{ /** The date of the latest action taken on the amendment. (e.g. 2021-08-08) */ actionDate: z.ZodISODate; /** The text of the latest action taken on the amendment. (e.g. Amendment SA 2137 agreed to in Senate by Yea-Nay Vote. 69 - 28. Record Vote Number: 312.) */ text: z.ZodString; /** The time of the latest action taken on the amendment. * Certain actions taken by the House contain this element. */ actionTime: z.ZodOptional<z.ZodISOTime>; }, z.core.$strict>>; /** The assigned amendment number. (e.g. 2137) */ number: z.ZodString; /** The amendment's purpose. (e.g. In the nature of a substitute.) * House amendments and proposed Senate amendments may have this element populated. */ purpose: z.ZodOptional<z.ZodString>; /** The referrer URL to the amendment item in the API. */ url: z.ZodURL; /** The date of update in Congress.gov. (e.g., 2022-06-30T03:50:22Z) */ updateDate: z.ZodISODateTime; }, z.core.$strict>, z.ZodObject<{ type: z.ZodEnum<{ readonly SUAMDT: AmendmentType.SUAMDT; }>; /** The congress during which an amendment was submitted or offered. (e.g. 117) */ congress: z.ZodNumber; latestAction: z.ZodOptional<z.ZodObject<{ /** The date of the latest action taken on the amendment. (e.g. 2021-08-08) */ actionDate: z.ZodISODate; /** The text of the latest action taken on the amendment. (e.g. Amendment SA 2137 agreed to in Senate by Yea-Nay Vote. 69 - 28. Record Vote Number: 312.) */ text: z.ZodString; /** The time of the latest action taken on the amendment. * Certain actions taken by the House contain this element. */ actionTime: z.ZodOptional<z.ZodISOTime>; }, z.core.$strict>>; /** The assigned amendment number. (e.g. 2137) */ number: z.ZodString; /** The amendment's purpose. (e.g. In the nature of a substitute.) * House amendments and proposed Senate amendments may have this element populated. */ purpose: z.ZodOptional<z.ZodString>; /** The referrer URL to the amendment item in the API. */ url: z.ZodURL; /** The date of update in Congress.gov. (e.g., 2022-06-30T03:50:22Z) */ updateDate: z.ZodISODateTime; }, z.core.$strict>]>; /** * Zod schema for validating entities returned from the `/amendment/{congress}/{amendmentType}/{amendmentNumber}` detail endpoint. * @ignore */ declare const AmendmentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ description: z.ZodString; type: z.ZodEnum<{ readonly HAMDT: AmendmentType.HAMDT; }>; number: z.ZodString; congress: z.ZodNumber; updateDate: z.ZodISODateTime; chamber: z.ZodEnum<typeof Chamber>; latestAction: z.ZodOptional<z.ZodObject<{ /** The date of the latest action taken on the amendment. (e.g. 2021-08-08) */ actionDate: z.ZodISODate; /** The text of the latest action taken on the amendment. (e.g. Amendment SA 2137 agreed to in Senate by Yea-Nay Vote. 69 - 28. Record Vote Number: 312.) */ text: z.ZodString; /** The time of the latest action taken on the amendment. * Certain actions taken by the House contain this element. */ actionTime: z.ZodOptional<z.ZodISOTime>; /** ** Not documented** */ links: z.ZodArray<z.ZodObject<{ url: z.ZodString; name: z.ZodString; }, z.core.$strict>>; }, z.core.$strict>>; purpose: z.ZodOptional<z.ZodString>; actions: z.ZodObject<{ /** The number of actions on the amendment. A count element may include actions from the House, Senate, and Library of Congress. */ count: z.ZodNumber; /** A referrer URL to the actions level of the amendment */ url: z.ZodURL; }, z.core.$strict>; sponsors: z.ZodArray<z.ZodObject<{ /** The unique identifier for the amendment's sponsor, as assigned in the [Biographical Directory of the United States Congress, 1774-Present](https://bioguide.congress.gov/). * View a [field values list of Bioguide identifiers](https://www.congress.gov/help/field-values/member-bioguide-ids) for current and former members in Congress.gov. */ bioguideId: z.ZodString; /** The first name of the amendment's sponsor. (e.g. Kyrsten) */ firstName: z.ZodString; /** The display name of the amendment's sponsor. (e.g. Sen. Sinema, Kyrsten [D-AZ]) */ fullName: z.ZodString; /** The middle name or initial of the amendment's sponsor. */ middleName: z.ZodOptional<z.ZodString>; /** The last name of the amendment's sponsor. (e.g. Sinema) */ lastName: z.ZodString; /** The party code of the amendment's sponsor. (e.g. D) */ party: z.ZodOptional<z.ZodEnum<typeof PartyCode>>; /** A two-letter abbreviation for the state, territory, or district represented by the amendment's sponsor. (e.g. AZ) */ state: z.ZodOptional<z.ZodEnum<typeof StateCode>>; /** The congressional district that the amendment's sponsor represents. * Note that this element will be empty for Senate sponsors and will be "0" for states, territories, or districts where there is only one congressional district. */ district: z.ZodOptional<z.ZodNumber>; /** A referrer URL to the member item in the API. (e.g. https://api.congress.gov/v3/member/S001191) */ url: z.ZodURL; }, z.core.$strict>>; onBehalfOfSponsor: z.ZodOptional<z.ZodObject<{ /** The unique identifier for the amendment's sponsor, as assigned in the [Biographical Directory of the United States Congress, 1774-Present](https://bioguide.congress.gov/). * View a [field values list of Bioguide identifiers](https://www.congress.gov/help/field-values/member-bioguide-ids) for current and former members in Congress.gov. */ bioguideId: z.ZodString; /** The first name of the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor. * (e.g. Kyrsten) */ firstName: z.ZodString; /** The display name of the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor * (e.g. Sen. Sinema, Kyrsten [D-AZ]) */ fullName: z.ZodString; /** The middle name or initial of the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor. */ middleName: z.ZodOptional<z.ZodString>; /** The last name of the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor. (e.g. Sinema) */ lastName: z.ZodString; /** The party code of the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor. (e.g. D) */ party: z.ZodOptional<z.ZodEnum<typeof PartyName>>; /** A two-letter abbreviation for the state, territory, or district represented by the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor. (e.g. AZ) */ state: z.ZodOptional<z.ZodEnum<typeof StateCode>>; /** The congressional district that the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor represents. * Note that this element will be empty for Senate sponsors and will be "0" for states, territories, or districts where there is only one congressional district. */ district: z.ZodOptional<z.ZodNumber>; /** The type of on behalf of sponsor action. This can be "Submitted on behalf of" the sponsor and/or "Proposed on behalf of" the sponsor. */ type: z.ZodOptional<z.ZodEnum<typeof OnBehalfOfSponsorAction>>; /** A referrer URL to the member item in the API. (e.g. https://api.congress.gov/v3/member/S001191) */ url: z.ZodString; }, z.core.$strict>>; proposedDate: z.ZodOptional<z.ZodISODateTime>; notes: z.ZodOptional<z.ZodString>; submittedDate: z.ZodOptional<z.ZodISODateTime>; textVersions: z.ZodObject<{ url: z.ZodURL; count: z.ZodNumber; formats: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; url: z.ZodURL; }, z.core.$strict>>>; }, z.core.$strict>; amendedBill: z.ZodObject<{ /** The congress during which the bill or resolution was introduced or submitted. e.g. 117) */ congress: z.ZodNumber; /** The assigned bill or resolution number. */ number: z.ZodString; /** The chamber of origin where a bill or resolution was introduced or submitted. * Possible values are "House" and "Senate". */ originChamber: z.ZodEnum<typeof Chamber>; /** The code for the chamber of origin where the bill or resolution was introduced or submitted. * Possible values are "H" and "S". */ originChamberCode: z.ZodEnum<typeof ChamberCode>; /** The display title for the bill or resolution on Congress.gov. */ title: z.ZodString; /** The type of bill or resolution. * Possible values are "HR", "S", "HJRES", "SJRES", "HCONRES", "SCONRES", "HRES", and "SRES". */ type: z.ZodEnum<typeof BillType>; /** A referrer URL to the bill or resolution item in the API */ url: z.ZodURL; /** **Not Documented** */ updateDateIncludingText: z.ZodString; }, z.core.$strict>; amendedAmendment: z.ZodOptional<z.ZodObject<{ /** The congress during which an amendment was submitted or offered. (e.g. 117) */ congress: z.ZodNumber; /** The assigned amendment number. */ number: z.ZodString; /** The amendment's description. * Only House amendments will have this element populated */ description: z.ZodOptional<z.ZodString>; /** The amendment's purpose. * House amendments and proposed Senate amendments may have this element populated. */ purpose: z.ZodOptional<z.ZodString>; /** The type of amendment. * Possible values are "HAMDT", "SAMDT", and "SUAMDT". Note that the "SUAMDT" type value is only available for the 97th and 98th Congresses. */ type: z.ZodEnum<typeof AmendmentType>; /** A referrer URL to the amendment item in the API. */ url: z.ZodURL; }, z.core.$strict>>; amendmentsToAmendment: z.ZodOptional<z.ZodObject<{ /** The number of amendments to the amendment. */ count: z.ZodNumber; /** A referrer URL to the amendment to amendments level of the amendment API. */ url: z.ZodURL; }, z.core.$strict>>; amendedTreaty: z.ZodOptional<z.ZodObject<{ /** The congress during which a treaty was submitted. (e.g. 116) */ congress: z.ZodNumber; /** The assigned treaty number. (e.g. 1) */ treatyNumber: z.ZodNumber; /** A referrer URL to the treaty item in the API. Documentation for the treaty endpoint is available here. */ url: z.ZodURL; }, z.core.$strict>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodEnum<{ readonly SAMDT: AmendmentType.SAMDT; }>; cosponsors: z.ZodOptional<z.ZodObject<{ count: z.ZodNumber; countIncludingWithdrawnCosponsors: z.ZodNumber; url: z.ZodString; }, z.core.$strict>>; number: z.ZodString; congress: z.ZodNumber; updateDate: z.ZodISODateTime; chamber: z.ZodEnum<typeof Chamber>; latestAction: z.ZodOptional<z.ZodObject<{ /** The date of the latest action taken on the amendment. (e.g. 2021-08-08) */ actionDate: z.ZodISODate; /** The text of the latest action taken on the amendment. (e.g. Amendment SA 2137 agreed to in Senate by Yea-Nay Vote. 69 - 28. Record Vote Number: 312.) */ text: z.ZodString; /** The time of the latest action taken on the amendment. * Certain actions taken by the House contain this element. */ actionTime: z.ZodOptional<z.ZodISOTime>; /** ** Not documented** */ links: z.ZodArray<z.ZodObject<{ url: z.ZodString; name: z.ZodString; }, z.core.$strict>>; }, z.core.$strict>>; purpose: z.ZodOptional<z.ZodString>; actions: z.ZodObject<{ /** The number of actions on the amendment. A count element may include actions from the House, Senate, and Library of Congress. */ count: z.ZodNumber; /** A referrer URL to the actions level of the amendment */ url: z.ZodURL; }, z.core.$strict>; sponsors: z.ZodArray<z.ZodObject<{ /** The unique identifier for the amendment's sponsor, as assigned in the [Biographical Directory of the United States Congress, 1774-Present](https://bioguide.congress.gov/). * View a [field values list of Bioguide identifiers](https://www.congress.gov/help/field-values/member-bioguide-ids) for current and former members in Congress.gov. */ bioguideId: z.ZodString; /** The first name of the amendment's sponsor. (e.g. Kyrsten) */ firstName: z.ZodString; /** The display name of the amendment's sponsor. (e.g. Sen. Sinema, Kyrsten [D-AZ]) */ fullName: z.ZodString; /** The middle name or initial of the amendment's sponsor. */ middleName: z.ZodOptional<z.ZodString>; /** The last name of the amendment's sponsor. (e.g. Sinema) */ lastName: z.ZodString; /** The party code of the amendment's sponsor. (e.g. D) */ party: z.ZodOptional<z.ZodEnum<typeof PartyCode>>; /** A two-letter abbreviation for the state, territory, or district represented by the amendment's sponsor. (e.g. AZ) */ state: z.ZodOptional<z.ZodEnum<typeof StateCode>>; /** The congressional district that the amendment's sponsor represents. * Note that this element will be empty for Senate sponsors and will be "0" for states, territories, or districts where there is only one congressional district. */ district: z.ZodOptional<z.ZodNumber>; /** A referrer URL to the member item in the API. (e.g. https://api.congress.gov/v3/member/S001191) */ url: z.ZodURL; }, z.core.$strict>>; onBehalfOfSponsor: z.ZodOptional<z.ZodObject<{ /** The unique identifier for the amendment's sponsor, as assigned in the [Biographical Directory of the United States Congress, 1774-Present](https://bioguide.congress.gov/). * View a [field values list of Bioguide identifiers](https://www.congress.gov/help/field-values/member-bioguide-ids) for current and former members in Congress.gov. */ bioguideId: z.ZodString; /** The first name of the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor. * (e.g. Kyrsten) */ firstName: z.ZodString; /** The display name of the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor * (e.g. Sen. Sinema, Kyrsten [D-AZ]) */ fullName: z.ZodString; /** The middle name or initial of the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor. */ middleName: z.ZodOptional<z.ZodString>; /** The last name of the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor. (e.g. Sinema) */ lastName: z.ZodString; /** The party code of the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor. (e.g. D) */ party: z.ZodOptional<z.ZodEnum<typeof PartyName>>; /** A two-letter abbreviation for the state, territory, or district represented by the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor. (e.g. AZ) */ state: z.ZodOptional<z.ZodEnum<typeof StateCode>>; /** The congressional district that the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor represents. * Note that this element will be empty for Senate sponsors and will be "0" for states, territories, or districts where there is only one congressional district. */ district: z.ZodOptional<z.ZodNumber>; /** The type of on behalf of sponsor action. This can be "Submitted on behalf of" the sponsor and/or "Proposed on behalf of" the sponsor. */ type: z.ZodOptional<z.ZodEnum<typeof OnBehalfOfSponsorAction>>; /** A referrer URL to the member item in the API. (e.g. https://api.congress.gov/v3/member/S001191) */ url: z.ZodString; }, z.core.$strict>>; proposedDate: z.ZodOptional<z.ZodISODateTime>; notes: z.ZodOptional<z.ZodString>; submittedDate: z.ZodOptional<z.ZodISODateTime>; textVersions: z.ZodObject<{ url: z.ZodURL; count: z.ZodNumber; formats: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; url: z.ZodURL; }, z.core.$strict>>>; }, z.core.$strict>; amendedBill: z.ZodObject<{ /** The congress during which the bill or resolution was introduced or submitted. e.g. 117) */ congress: z.ZodNumber; /** The assigned bill or resolution number. */ number: z.ZodString; /** The chamber of origin where a bill or resolution was introduced or submitted. * Possible values are "House" and "Senate". */ originChamber: z.ZodEnum<typeof Chamber>; /** The code for the chamber of origin where the bill or resolution was introduced or submitted. * Possible values are "H" and "S". */ originChamberCode: z.ZodEnum<typeof ChamberCode>; /** The display title for the bill or resolution on Congress.gov. */ title: z.ZodString; /** The type of bill or resolution. * Possible values are "HR", "S", "HJRES", "SJRES", "HCONRES", "SCONRES", "HRES", and "SRES". */ type: z.ZodEnum<typeof BillType>; /** A referrer URL to the bill or resolution item in the API */ url: z.ZodURL; /** **Not Documented** */ updateDateIncludingText: z.ZodString; }, z.core.$strict>; amendedAmendment: z.ZodOptional<z.ZodObject<{ /** The congress during which an amendment was submitted or offered. (e.g. 117) */ congress: z.ZodNumber; /** The assigned amendment number. */ number: z.ZodString; /** The amendment's description. * Only House amendments will have this element populated */ description: z.ZodOptional<z.ZodString>; /** The amendment's purpose. * House amendments and proposed Senate amendments may have this element populated. */ purpose: z.ZodOptional<z.ZodString>; /** The type of amendment. * Possible values are "HAMDT", "SAMDT", and "SUAMDT". Note that the "SUAMDT" type value is only available for the 97th and 98th Congresses. */ type: z.ZodEnum<typeof AmendmentType>; /** A referrer URL to the amendment item in the API. */ url: z.ZodURL; }, z.core.$strict>>; amendmentsToAmendment: z.ZodOptional<z.ZodObject<{ /** The number of amendments to the amendment. */ count: z.ZodNumber; /** A referrer URL to the amendment to amendments level of the amendment API. */ url: z.ZodURL; }, z.core.$strict>>; amendedTreaty: z.ZodOptional<z.ZodObject<{ /** The congress during which a treaty was submitted. (e.g. 116) */ congress: z.ZodNumber; /** The assigned treaty number. (e.g. 1) */ treatyNumber: z.ZodNumber; /** A referrer URL to the treaty item in the API. Documentation for the treaty endpoint is available here. */ url: z.ZodURL; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodEnum<{ readonly SUAMDT: AmendmentType.SUAMDT; }>; cosponsors: z.ZodOptional<z.ZodObject<{ /** The current number of cosponsors of the amendment, not including any withdrawn cosponsors. */ count: z.ZodNumber; /** The total number of cosponsors of the amendment, including any withdrawn cosponsors. */ countIncludingWithdrawnCosponsors: z.ZodNumber; /** A referrer URL to the cosponsors level of the amendment item in the API. (e.g. https://api.congress.gov/v3/amendment/117/samdt/3892/cosponsors) */ url: z.ZodURL; }, z.core.$strict>>; number: z.ZodString; congress: z.ZodNumber; updateDate: z.ZodISODateTime; chamber: z.ZodEnum<typeof Chamber>; latestAction: z.ZodOptional<z.ZodObject<{ /** The date of the latest action taken on the amendment. (e.g. 2021-08-08) */ actionDate: z.ZodISODate; /** The text of the latest action taken on the amendment. (e.g. Amendment SA 2137 agreed to in Senate by Yea-Nay Vote. 69 - 28. Record Vote Number: 312.) */ text: z.ZodString; /** The time of the latest action taken on the amendment. * Certain actions taken by the House contain this element. */ actionTime: z.ZodOptional<z.ZodISOTime>; /** ** Not documented** */ links: z.ZodArray<z.ZodObject<{ url: z.ZodString; name: z.ZodString; }, z.core.$strict>>; }, z.core.$strict>>; purpose: z.ZodOptional<z.ZodString>; actions: z.ZodObject<{ /** The number of actions on the amendment. A count element may include actions from the House, Senate, and Library of Congress. */ count: z.ZodNumber; /** A referrer URL to the actions level of the amendment */ url: z.ZodURL; }, z.core.$strict>; sponsors: z.ZodArray<z.ZodObject<{ /** The unique identifier for the amendment's sponsor, as assigned in the [Biographical Directory of the United States Congress, 1774-Present](https://bioguide.congress.gov/). * View a [field values list of Bioguide identifiers](https://www.congress.gov/help/field-values/member-bioguide-ids) for current and former members in Congress.gov. */ bioguideId: z.ZodString; /** The first name of the amendment's sponsor. (e.g. Kyrsten) */ firstName: z.ZodString; /** The display name of the amendment's sponsor. (e.g. Sen. Sinema, Kyrsten [D-AZ]) */ fullName: z.ZodString; /** The middle name or initial of the amendment's sponsor. */ middleName: z.ZodOptional<z.ZodString>; /** The last name of the amendment's sponsor. (e.g. Sinema) */ lastName: z.ZodString; /** The party code of the amendment's sponsor. (e.g. D) */ party: z.ZodOptional<z.ZodEnum<typeof PartyCode>>; /** A two-letter abbreviation for the state, territory, or district represented by the amendment's sponsor. (e.g. AZ) */ state: z.ZodOptional<z.ZodEnum<typeof StateCode>>; /** The congressional district that the amendment's sponsor represents. * Note that this element will be empty for Senate sponsors and will be "0" for states, territories, or districts where there is only one congressional district. */ district: z.ZodOptional<z.ZodNumber>; /** A referrer URL to the member item in the API. (e.g. https://api.congress.gov/v3/member/S001191) */ url: z.ZodURL; }, z.core.$strict>>; onBehalfOfSponsor: z.ZodOptional<z.ZodObject<{ /** The unique identifier for the amendment's sponsor, as assigned in the [Biographical Directory of the United States Congress, 1774-Present](https://bioguide.congress.gov/). * View a [field values list of Bioguide identifiers](https://www.congress.gov/help/field-values/member-bioguide-ids) for current and former members in Congress.gov. */ bioguideId: z.ZodString; /** The first name of the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor. * (e.g. Kyrsten) */ firstName: z.ZodString; /** The display name of the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor * (e.g. Sen. Sinema, Kyrsten [D-AZ]) */ fullName: z.ZodString; /** The middle name or initial of the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor. */ middleName: z.ZodOptional<z.ZodString>; /** The last name of the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor. (e.g. Sinema) */ lastName: z.ZodString; /** The party code of the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor. (e.g. D) */ party: z.ZodOptional<z.ZodEnum<typeof PartyName>>; /** A two-letter abbreviation for the state, territory, or district represented by the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor. (e.g. AZ) */ state: z.ZodOptional<z.ZodEnum<typeof StateCode>>; /** The congressional district that the senator who submitted and/or proposed the amendment on behalf of the sponsor of the amendment amendment's sponsor represents. * Note that this element will be empty for Senate sponsors and will be "0" for states, territories, or districts where there is only one congressional district. */ district: z.ZodOptional<z.ZodNumber>; /** The type of on behalf of sponsor action. This can be "Submitted on behalf of" the sponsor and/or "Proposed on behalf of" the sponsor. */ type: z.ZodOptional<z.ZodEnum<typeof OnBehalfOfSponsorAction>>; /** A referrer URL to the member item in the API. (e.g. https://api.congress.gov/v3/member/S001191) */ url: z.ZodString; }, z.core.$strict>>; proposedDate: z.ZodOptional<z.ZodISODateTime>; notes: z.ZodOptional<z.ZodString>; submittedDate: z.ZodOptional<z.ZodISODateTime>; textVersions: z.ZodObject<{ url: z.ZodURL; count: z.ZodNumber; formats: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodString; url: z.ZodURL; }, z.core.$strict>>>; }, z.core.$strict>; amendedBill: z.ZodObject<{ /** The congress during which the bill or resolution was introduced or submitted. e.g. 117) */ congress: z.ZodNumber; /** The assigned bill or resolution number. */ number: z.ZodString; /** The chamber of origin where a bill or resolution was introduced or submitted. * Possible values are "House" and "Senate". */ originChamber: z.ZodEnum<typeof Chamber>; /** The code for the chamber of origin where the bill or resolution was introduced or submitted. * Possible values are "H" and "S". */ originChamberCode: z.ZodEnum<typeof ChamberCode>; /** The display title for the bill or resolution on Congress.gov. */ title: z.ZodString; /** The type of bill or resolution. * Possible values are "HR", "S", "HJRES", "SJRES", "HCONRES", "SCONRES", "HRES", and "SRES". */ type: z.ZodEnum<typeof BillType>; /** A referrer URL to the bill or resolution item in the API */ url: z.ZodURL; /** **Not Documented** */ updateDateIncludingText: z.ZodString; }, z.core.$strict>; amendedAmendment: z.ZodOptional<z.ZodObject<{ /** The congress during which an amendment was submitted or offered. (e.g. 117) */ congress: z.ZodNumber; /** The assigned amendment number. */ number: z.ZodString; /** The amendment's description. * Only House amendments will have this element populated */ description: z.ZodOptional<z.ZodString>; /** The amendment's purpose. * House amendments and proposed Senate amendments may have this element populated. */ purpose: z.ZodOptional<z.ZodString>; /** The type of amendment. * Possible values are "HAMDT", "SAMDT", and "SUAMDT". Note that the "SUAMDT" type value is only available for the 97th and 98th Congresses. */ type: z.ZodEnum<typeof AmendmentType>; /** A referrer URL to the amendment item in the API. */ url: z.ZodURL; }, z.core.$strict>>; amendmentsToAmendment: z.ZodOptional<z.ZodObject<{ /** The number of amendments to the amendment. */ count: z.ZodNumber; /** A referrer URL to the amendment to amendments level of the amendment API. */ url: z.ZodURL; }, z.core.$strict>>; amendedTreaty: z.ZodOptional<z.ZodObject<{ /** The congress during which a treaty was submitted. (e.g. 116) */ congress: z.ZodNumber; /** The assigned treaty number. (e.g. 1) */ treatyNumber: z.ZodNumber; /** A referrer URL to the treaty item in the API. Documentation for the treaty endpoint is available here. */ url: z.ZodURL; }, z.core.$strict>>; }, z.core.$strict>]>; /** * Zod schema for validating entities returned from the `/amendment/{congress}/{amendmentType}/{amendmentNumber}/actions` endpoint. * @ignore */ declare const AmendmentActionSchema: z.ZodObject<{ /** The date of the action taken on an amendment. (e.g. 2021-08-08) */ actionDate: z.ZodISODate; /** The time of the action taken on an amendment. * Certain actions taken by the House contain this element. */ actionTime: z.ZodOptional<z.ZodISOTime>; /** An action code associated with the action taken on an amendment. * The `actionCode` element will be present only for actions where the `sourceSystem` is 2 (House) or 9 (Library of Congress). * [Action Codes](https://www.congress.gov/help/field-values/action-codes) is an authoritative list of values where the `sourceSystem` is 9 (Library of Congress). * An authoritative list of values where the `sourceSystem` is 2 (House) does not exist. * Various code sets are used by multiple systems in the House, Senate, and Library of Congress * by legislative clerks and data editors for functions independent of this data set. * As new codes and systems were developed, there was no coordinated effort to retroactively apply new codes to old records. * Many codes are concatenated with other codes or elements or utilize free text. Codes in one set may be redundant with a different code in another code set. * Additionally, some codes may have been used and re-used over the years for different purposes further complicating the ability to create an authoritative list. * View the original code set of [U.S. Congress legislative status steps](http://www.loc.gov/pictures/resource/ppmsca.33996/). */ actionCode: z.ZodOptional<z.ZodString>; /** recorded (roll call) votes associated with the action. * Read more [about roll call votes](https://www.congress.gov/help/legislative-glossary#glossary_rollcallvote) on Congress.gov. * More information can also be found at the [Roll Call Votes by the U.S. Congress](https://www.congress.gov/roll-call-votes) * and [Votes in the House and Senate](https://www.congress.gov/help/votes-in-the-house-and-senate) pages on Congress.gov. */ recordedVotes: z.ZodOptional<z.ZodArray<z.ZodObject<{ /** The chamber where the recorded (roll call) vote took place. * Possible values are "House" and "Senate". */ chamber: z.ZodEnum<typeof Chamber>; /** The congress during which the recorded (roll call) vote took place. (e.g. 117) */ congress: z.ZodNumber; /** The date of the recorded (roll call) vote. */ date: z.ZodISODateTime; /** The recorded (roll call) vote number. */ rollNumber: z.ZodNumber; /** The session of congress during which the recorded (roll call) vote took place. */ sessionNumber: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>; /** The url to the recorded (roll call) vote on Senate.gov or Clerk.House.gov. */ url: z.ZodURL; }, z.core.$strict>>>; /** The source system where the action was entered */ sourceSystem: z.ZodObject<{ /** A code for the source system that entered the action. * Possible values are "0", "1", "2", or "9". * "0" is for Senate, "1" and "2" are for House, and "9" is Library of Congress. */ code: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<9>]>; /** The name of the source system where the action was entered */ name: z.ZodEnum<typeof SourceSystemName>; }, z.core.$strict>; /** Committees associated with the action */ committees: z.ZodOptional<z.ZodObject<{ /** A referrer URL to the committee or subcommittee in the API. Documentation for the committee endpoint is available here. */ url: z.ZodURL; /** Unique ID value for the committee or subcommittee. */ systemCode: z.ZodString; /** The name of the committee or subcommittee associated with the action. */ name: z.ZodString; }, z.core.$strict>>; text: z.ZodString; /** A short name representing legislative process stages or categories of more detailed actions. Most types condense actions into sets. Some types are used for data processing and do not represent House or Senate legislative process activities. * Possible values are "Committee", "Floor", "IntroReferral", "ResolvingDifferences", and "NotUsed". */ type: z.ZodEnum<typeof ActionType>; }, z.core.$strict>; /** * Zod schema for validating entities returned from the `/amendment/{congress}/{amendmentType}/{amendmentNumber}/cosponsors` endpoint. * @ignore */ declare const AmendmentCosponsorSchema: z.ZodObject<{ /** The unique identifier for the amendment cosponsor, as assigned in the [Biographical Directory of the United States Congress, 1774-Present](https://bioguide.congress.gov/). * View a [field values list of Bioguide identifiers](https://www.congress.gov/help/field-values/member-bioguide-ids) for current and former members in Congress.gov. */ bioguideId: z.ZodString; /** The first name of the amendment cosponsor. */ firstName: z.ZodString; /** The display name for the amendment cosponsor. */ fullName: z.ZodString; /** The middle name or initial of the amendment cosponsor. */ middlename: z.ZodOptional<z.ZodString>; /** A designation that the member is an original or additional cosponsor of the amendment. * If the member cosponsored the amendment on the date of its submission, then this value will be "True". * If the member cosponsored the amendment after its date of submission, then this value will be "False". */ isOriginalCosponsor: z.ZodBoolean; /** The last name of the amendment cosponsor. */ lastName: z.ZodString; /** The party code of the amendment cosponsor. * Possible values are "D", "R", "I", "ID", and "L". * */ party: z.ZodEnum<typeof PartyCode>; /** A two-letter abbreviation for the state, territory, or district represented by the amendment cosponsor. */ state: z.ZodEnum<typeof StateCode>; /** The date the member became a cosponsor of the amendment. */ sponsorshipDate: z.ZodISODate; /** The date the cosponsor withdrew their cosponsorship of amendment. */ sponsorshipWithdrawnDate: z.ZodOptional<z.ZodISODate>; /** A referrer URL to the member item in the API. */ url: z.ZodURL; }, z.core.$strict>; /** * Zod schema for validating entities returned from the `/amendment/{congress}/{amendmentType}/{amendmentNumber}/amendments` endpoint. * @ignore */ declare const AmendmentToAmendmentSchema: z.ZodObject<{ /** The congress during which an amendment was submitted or offered. */ congress: z.ZodNumber; /** The latest action taken on the amendment */ latestAction: z.ZodObject<{ /** The date of the latest action taken on the amendment. */ actionDate: z.ZodISODate; /** The time of the latest action taken on the amendment. * Certain actions taken by the House contain this element. */ actionTime: z.ZodOptional<z.ZodISOTime>; /** The text of the latest action taken on the amendment. */ text: z.ZodString; /** A referrer URL to the amendment item in the API. */ url: z.ZodURL; }, z.core.$strict>; /** The assigned amendment number. */ number: z.ZodString; /** The amendment's description. * Only House amendments will have this element populated. */ description: z.ZodOptional<z.ZodString>; /** The amendment's purpose. * House amendments and proposed Senate amendments may have this element populated. */ purpose: z.ZodString; /** The type of amendment. * Possible values are "HAMDT", "SAMDT", and "SUAMDT". Note that the "SUAMDT" type value is only available for the 97th and 98th Congresses. */ type: z.ZodEnum<typeof AmendmentType>; /** */ url: z.ZodURL; }, z.core.$strict>; /** * Zod schema for validating detailed entity returned from the `/amendment/{congress}/{amendmentType}/{amendmentNumber}/text` endpoint. * @ignore */ declare const AmendmentTextSchema: z.ZodObject<{ /** The date of the amendment text. */ date: z.ZodISODateTime; /** Amendment text format types */ formats: z.ZodArray<z.ZodObject<{ /** The format type. For example, "PDF" or "HTML". */ type: z.ZodString; /** URL for the amendment text version. */ url: z.ZodURL; }, z.core.$strict>>; /** The type of the amendment. For example, "Submitted" or "Modified". */ type: z.ZodEnum<typeof AmendmentTextType>; }, z.core.$strict>; /** * Congress interface generated from zod AmendmentSummarySchema * @inline */ type AmendmentSummary = z.infer<typeof AmendmentSummarySchema>; /** * Congress interface generated from zod AmendmentSchema * @inline */ type Amendment = z.infer<typeof AmendmentSchema>; /** * Congress interface generated from zod AmendmentActionSchema * @inline */ type AmendmentAction = z.infer<typeof AmendmentActionSchema>; /** * Congress interface generated from zod AmendmentCosponsorSchema * @inline */ type AmendmentCosponsor = z.infer<typeof AmendmentCosponsorSchema>; /** * Congress interface generated from zod AmendmentTextSchema * @inline */ type AmendmentText = z.infer<typeof AmendmentTextSchema>; /** * Congress interface generate