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

    Type Alias MemberDetail

    MemberDetail: {
        addressInformation?: {
            city: "Washington";
            district: "DC";
            officeAddress?: string;
            phoneNumber?: string;
            zipCode?: string;
        };
        bioguideId: string;
        birthYear?: string;
        cosponsoredLegislation?: { count: number; url: string };
        currentMember?: boolean;
        deathYear?: string;
        depiction?: { attribution?: string; imageUrl?: string };
        directOrderName?: string;
        district?: number;
        firstName: string;
        honorificName?: string;
        invertedOrderName?: string;
        lastName?: string;
        leadership?: { congress: number; current?: boolean; type: string }[];
        middleName?: string;
        nickName?: string;
        officialUrl?: string;
        party?:
            | DEMOCRATIC
            | INDEPENDENT
            | INDEPENDENT_DEMOCRAT
            | LIBERTARIAN
            | REPUBLICAN;
        partyHistory?: {
            partyAbbreviation: PartyCode;
            partyName: PartyName;
            startYear: number;
        }[];
        previousNames?: {
            directOrderName?: string;
            endDate?: string;
            firstName?: string;
            honorificName?: string;
            invertedOrderName?: string;
            lastName?: string;
            middleName?: string;
            startDate?: string;
            suffixName?: string;
        }[];
        sponsoredLegislation?: { count: number; url: string };
        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;
        suffixName?: string;
        terms: {
            chamber: CongressChamber;
            congress: number;
            district?: number;
            endYear: number;
            memberType: MemberType;
            partyCode?: | DEMOCRATIC
            | INDEPENDENT
            | INDEPENDENT_DEMOCRAT
            | LIBERTARIAN
            | REPUBLICAN;
            partyName?: | DEMOCRATIC
            | INDEPENDENT
            | INDEPENDENT_DEMOCRAT
            | LIBERTARIAN
            | REPUBLICAN;
            startYear: number;
            stateCode: StateCode;
            stateName: StateName;
        }[];
        updateDate: string;
    }

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

    Type declaration

    • OptionaladdressInformation?: {
          city: "Washington";
          district: "DC";
          officeAddress?: string;
          phoneNumber?: string;
          zipCode?: string;
      }

      The member’s contact information.

      • city: "Washington"

        The city of Washington. (Washington)

      • district: "DC"

        The two letter postal abbreviation for the District of Columbia. (DC)

      • OptionalofficeAddress?: string

        The member’s mailing and physical office address in Washington, D.C.The < officeAddress > element provides the full address for Senate members and only the House office building information for House members. (e.g, 437 Russell Senate Office Building Washington, DC 20510)

      • OptionalphoneNumber?: string

        The telephone number for the member’s office in Washington, D.C. (e.g., (202) 224 - 4242)

      • OptionalzipCode?: string

        The postal zip code for the member’s office in Washington, D.C. (e.g., 20510)

    • bioguideId: string

      The unique ID value that originates in the Biographical Directory of the United States Congress, 1774-Present. View a field values list of Bioguide identifiers for current and former members in Congress.gov. (e.g., L000174)

    • OptionalbirthYear?: string

      Member’s year of birth. (e.g., 1940)

    • OptionalcosponsoredLegislation?: { count: number; url: string }

      Bills and resolutions cosponsored by member.

    • OptionalcurrentMember?: boolean

      Indicator of whether the member is currently serving. Possible values are "True" or "False". (e.g., True)

    • OptionaldeathYear?: string

      Member’s year of death.

    • Optionaldepiction?: { attribution?: string; imageUrl?: string }

      The member’s current official portrait.

    • OptionaldirectOrderName?: string

      The member’s name in first - name - first order. (e.g., Patrick J.Leahy)

    • Optionaldistrict?: number

      The Congressional district represented by the member (exclusive to House). The value of zero indicates the state, district or territory has only one member in the House.

    • firstName: string

      The member’s first name. (e.g., Patrick)

    • OptionalhonorificName?: string

      The honorific title of the member. (e.g., Mr.)

    • OptionalinvertedOrderName?: string

      The member’s name in last - name - first order. (e.g., Leahy, Patrick J.)

    • OptionallastName?: string

      The member’s last name. (e.g., Leahy)

    • Optionalleadership?: { congress: number; current?: boolean; type: string }[]

      The leadership positions available on Congress.gov that the member has held during their membership / tenure of service.

    • OptionalmiddleName?: string

      The member’s middle name. (e.g., Joseph)

    • OptionalnickName?: string

      The member’s nickname.

    • OptionalofficialUrl?: string

      The member’s official website. (e.g., https://www.leahy.senate.gov/)

    • Optionalparty?: DEMOCRATIC | INDEPENDENT | INDEPENDENT_DEMOCRAT | LIBERTARIAN | REPUBLICAN

      The current political party of the member.Note: This does not currently reflect party changes. Possible values are "Democratic", "Independent", "Independent Democrat", "Libertarian", and "Republication". (e.g., Democatic)

    • OptionalpartyHistory?: { partyAbbreviation: PartyCode; partyName: PartyName; startYear: number }[]

      Member's party history.

    • OptionalpreviousNames?: {
          directOrderName?: string;
          endDate?: string;
          firstName?: string;
          honorificName?: string;
          invertedOrderName?: string;
          lastName?: string;
          middleName?: string;
          startDate?: string;
          suffixName?: string;
      }[]

      The previous names of the member.

    • OptionalsponsoredLegislation?: { count: number; url: string }

      Bills and resolutions sponsored by member.

    • Optionalstate?:
          | 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

      The state represented by the member. (e.g., Vermont)

    • OptionalsuffixName?: string

      The member’s suffix.

    • terms: {
          chamber: CongressChamber;
          congress: number;
          district?: number;
          endYear: number;
          memberType: MemberType;
          partyCode?:
              | DEMOCRATIC
              | INDEPENDENT
              | INDEPENDENT_DEMOCRAT
              | LIBERTARIAN
              | REPUBLICAN;
          partyName?: | DEMOCRATIC
          | INDEPENDENT
          | INDEPENDENT_DEMOCRAT
          | LIBERTARIAN
          | REPUBLICAN;
          startYear: number;
          stateCode: StateCode;
          stateName: StateName;
      }[]

      The member’s service in an individual Congress.

    • updateDate: string

      The date of update in Congress.gov. (e.g., 2022-05 - 17T18: 44:02Z)