congress-dot-gov - v0.4.3
    Preparing search index...

    Type Alias Bill

    Bill: {
        actions: { count: number; url: string };
        amendments: { count: number; url: string };
        cboCostEstimates: {
            description: string;
            pubDate: string;
            title: string;
            url: string;
        }[];
        committeeReports?: { citation: string; url: string }[];
        committees: { count: number; url: string };
        congress: number;
        constitutionalAuthorityStatementText: string;
        cosponsors: {
            count: number;
            countIncludingWithdrawnCosponsors: number;
            url: string;
        };
        introducedDate: string;
        latestAction: { actionDate: string; actionTime?: string; text: string };
        laws?: { number: string; type: LawType }[];
        notes?: string;
        number: string;
        originChamber: Chamber;
        originChamberCode: ChamberCode;
        policyArea: { name: string };
        relatedBills: { count: number; url: string };
        sponsors: {
            bioguideId: string;
            district: number;
            firstName: string;
            fullName: string;
            isByRequest: "Y" | "N";
            lastName: string;
            middleName?: string;
            party: PartyCode;
            state?:
                | ALABAMA
                | ALASKA
                | ARIZONA
                | ARKANSAS
                | CALIFORNIA
                | COLORADO
                | CONNECTICUT
                | DELAWARE
                | DISTRICT_OF_COLUMBIA
                | FLORIDA
                | GEORGIA
                | HAWAII
                | IDAHO
                | ILLINOIS
                | INDIANA
                | IOWA
                | KANSAS
                | KENTUCKY
                | LOUISIANA
                | MAINE
                | MARYLAND
                | MASSACHUSETTS
                | MICHIGAN
                | MINNESOTA
                | MISSISSIPPI
                | MISSOURI
                | MONTANA
                | NEBRASKA
                | NEVADA
                | NEW_HAMPSHIRE
                | NEW_JERSEY
                | NEW_MEXICO
                | NEW_YORK
                | NORTH_CAROLINA
                | NORTH_DAKOTA
                | OHIO
                | OKLAHOMA
                | OREGON
                | PENNSYLVANIA
                | RHODE_ISLAND
                | SOUTH_CAROLINA
                | SOUTH_DAKOTA
                | TENNESSEE
                | TEXAS
                | UTAH
                | VERMONT
                | VIRGINIA
                | WASHINGTON
                | WEST_VIRGINIA
                | WISCONSIN
                | WYOMING;
            url: string;
        }[];
        subjects: { count: number; url: string };
        summaries: { count: number; url: string };
        textVersions: { count: number; url: string };
        title: string;
        titles: { count: number; url: string };
        type: BillType;
        updateDate: string;
        updateDateIncludingText: string;
    }

    Zod schema for validating entities returned from the /bill/{congress}/{billType}/{billNumber} detail endpoint.

    Type declaration

    • actions: { count: number; url: string }

      Actions on the bill or resolution.

      • count: number

        The number of actions on the bill or resolution. The includes actions from the House, Senate, and Library of Congress.

      • url: string

        A referrer URL to the actions level of the bill API.

    • amendments: { count: number; url: string }

      Amendments to the bill or resolution.

      • count: number

        The number of amendments to the bill or resolution.

      • url: string

        A referrer URL to the amendments level of the bill API.

    • cboCostEstimates: { description: string; pubDate: string; title: string; url: string }[]

      Container for Congressional Budget Office (CBO) cost estimates associated with a bill or resolution. Read about CBO on Congress.gov.

    • OptionalcommitteeReports?: { citation: string; url: string }[]

      Committee reports associated with the bill or resolution.

    • committees: { count: number; url: string }

      Committees or subcommittees with activity associated with the bill or resolution.

      • count: number

        The number of committees with activity associated with the bill or resolution.

      • url: string

        A referrer URL to the committees level of the bill API.

    • congress: number

      The congress during which a bill or resolution was introduced or submitted. View the field values list of Congresses on Congress.gov. Read more about Congresses on Congress.gov.

    • constitutionalAuthorityStatementText: string

      Text extracted from the Congressional Record to accompany House Bills (HR) and House Joint Resolutions (HJRES) that cites the power granted to Congress by the Constitution to enact the proposed law, as required by Clause 7 of House Rule XII. Read more about constitutional authority statements on the House Rules Committee website.

    • cosponsors: { count: number; countIncludingWithdrawnCosponsors: number; url: string }

      Any cosponsors of the bill or resolution

      • count: number

        The current number of cosponsors of the bill or resolution, not including any withdrawn cosponsors.

      • countIncludingWithdrawnCosponsors: number

        The total number of cosponsors of the bill or resolution, including any withdrawn cosponsors.

      • url: string

        A referrer URL to the cosponsors level of the bill API.

    • introducedDate: string

      The date the bill or resolution was submitted or introduced.

    • latestAction: { actionDate: string; actionTime?: string; text: string }

      Latest action taken by the House, Senate, or the President on the bill or resolution.

      • actionDate: string

        The date of the latest action taken on the bill or resolution.

      • OptionalactionTime?: string

        The time of the latest action taken on the bill or resolution. Certain actions taken by the House contain this element.

      • text: string

        The text of the latest action taken on the bill or resolution.

    • Optionallaws?: { number: string; type: LawType }[]

      Public or private law data for the bill or joint resolution

    • Optionalnotes?: string

      notes attached to the bill or resolution on Congress.gov. The note may contain supplemental information about the bill or resolution that users may find helpful. Read more about notes on Congress.gov.

    • number: string

      The assigned bill or resolution number.

    • originChamber: Chamber

      The chamber of origin where a bill or resolution was introduced or submitted. Possible values are "House" and "Senate".

    • originChamberCode: ChamberCode

      Not Documented

    • policyArea: { name: string }

      The policy area term of the bill or resolution. Every bill and resolution is assigned one policy area term out of a controlled field values list available on Congress.gov. Read more about policy area terms on Congress.gov.

      • name: string

        The policy area term assigned to the bill or resolution by CRS.

    • relatedBills: { count: number; url: string }

      Related bills to the bill or resolution, as assigned by CRS, the House, and the Senate.

      • count: number

        The number of related bills assigned to the bill or resolution.

      • url: string

        A referrer URL to the related bills level of the bill API.

    • sponsors: {
          bioguideId: string;
          district: number;
          firstName: string;
          fullName: string;
          isByRequest: "Y" | "N";
          lastName: string;
          middleName?: string;
          party: PartyCode;
          state?:
              | ALABAMA
              | ALASKA
              | ARIZONA
              | ARKANSAS
              | CALIFORNIA
              | COLORADO
              | CONNECTICUT
              | DELAWARE
              | DISTRICT_OF_COLUMBIA
              | FLORIDA
              | GEORGIA
              | HAWAII
              | IDAHO
              | ILLINOIS
              | INDIANA
              | IOWA
              | KANSAS
              | KENTUCKY
              | LOUISIANA
              | MAINE
              | MARYLAND
              | MASSACHUSETTS
              | MICHIGAN
              | MINNESOTA
              | MISSISSIPPI
              | MISSOURI
              | MONTANA
              | NEBRASKA
              | NEVADA
              | NEW_HAMPSHIRE
              | NEW_JERSEY
              | NEW_MEXICO
              | NEW_YORK
              | NORTH_CAROLINA
              | NORTH_DAKOTA
              | OHIO
              | OKLAHOMA
              | OREGON
              | PENNSYLVANIA
              | RHODE_ISLAND
              | SOUTH_CAROLINA
              | SOUTH_DAKOTA
              | TENNESSEE
              | TEXAS
              | UTAH
              | VERMONT
              | VIRGINIA
              | WASHINGTON
              | WEST_VIRGINIA
              | WISCONSIN
              | WYOMING;
          url: string;
      }[]

      The sponsor of the bill or resolution.

    • subjects: { count: number; url: string }

      Legislative subject terms assigned to the bill or resolution by CRS.

      • count: number

        The number of legislative subject terms assigned to the bill or resolution by CRS.

      • url: string

        A referrer URL to the subjects level of the bill API.

    • summaries: { count: number; url: string }

      Bill summaries, written by CRS legislative analysts, on the bill or resolution.

      • count: number

        The number of bill summaries on the bill or resolution.

      • url: string

        A referrer URL to the summaries level of the bill API.

    • textVersions: { count: number; url: string }

      Text versions of the bill or resolution.

      • count: number

        The number of texts for the bill or resolution.

      • url: string

        A referrer URL to the text level of the bill API.

    • title: string

      The display title for the bill or resolution on Congress.gov.

    • titles: { count: number; url: string }

      Titles associated with the bill or resolution.

      • count: number

        The number of titles associated with the bill or resolution. This number may include measure short titles, level short titles, and official titles from the House, Senate, and the Government Publishing Office (GPO).

      • url: string

        A referrer URL to the titles level of the bill API

    • type: BillType

      The type of bill or resolution. Possible values are "HR", "S", "HJRES", "SJRES", "HCONRES", "SCONRES", "HRES", and "SRES".

    • updateDate: string

      The date of update on Congress.gov. This update date does not include updates to bill text. The updateDate is the date of the last update received for the legislative entity . It’s not a date corresponding to the legislative date or legislative action date.

    • updateDateIncludingText: string

      The date of update on Congress.gov, including if the update was to bill text.The updateDate is the date of the last update received for the legislative entity . It’s not a date corresponding to the legislative date or legislative action date.