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

    Type Alias SponsoredLegislation

    SponsoredLegislation: {
        congress: number;
        introducedDate: string;
        latestAction: { actionDate: string; actionTime?: string; text: string };
        number: string;
        policyArea: { name: string };
        title: string;
        type: BillType;
        url: string;
    }

    Zod schema for validating entities returned from the /member/{bioguideId}/sponsored-legislation detail endpoints.

    Type declaration

    • congress: number

      The Congress during which the member served. View the field values list of Congresses on Congress.gov. Read more about Congresses on Congress.gov. (e.g., 94)

    • introducedDate: string

      The date the bill or resolution was introduced. (e.g., 2022-06 - 16)

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

      The latest action taken on the bill or resolution.

      • actionDate: string

        The date of the latest action taken on the bill or resolution. (e.g., 2022-06-16)

      • OptionalactionTime?: string

        The time of the latest action taken on the bill or resolution. (e.g., 12:00:00)

      • text: string

        The text of the latest action taken on the bill or resolution. (e.g., Read twice and referred to the Committee on the Judiciary.)

    • number: string

      The assigned bill or resolution number. (e.g., 4417)

    • policyArea: { name: string }

      The policy area term of the bill or resolution. Every bill and resolution is assigned one policy area term. View the field values list of policy area terms 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. (e.g., Commerce)

    • title: string

      The display title for the bill or resolution on Congress.gov. (e.g., Patent Trial and Appeal Board Reform Act of 2022)

    • type: BillType

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

    • url: string

      A referrer URL to the bill item in the API. Documentation for the bill endpoint is here. (e.g., https://api.congress.gov/v3/bill/117/s/4417)