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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    apiKey: string
    baseUrl: string
    endpoint: string

    Methods

    • Returns detailed information for a specified amendment.

      Parameters

      • congress: number

        The Congress number (e.g., 117)

      • amendmentType: AmendmentType

        The type of amendment (samdt or hamdt)

      • amendmentNumber: string

        The amendment number

      • params: { format?: Format } = {}

        {BaseParams} - Accepts format parameter (json or xml)

      Returns Promise<
          BasePaginatedResponse & {
              amendment: | {
                  actions: { count: number; url: string };
                  amendedAmendment?: {
                      congress: number;
                      description?: string;
                      number: string;
                      purpose?: string;
                      type: AmendmentType;
                      url: string;
                  };
                  amendedBill: {
                      congress: number;
                      number: string;
                      originChamber: Chamber;
                      originChamberCode: ChamberCode;
                      title: string;
                      type: BillType;
                      updateDateIncludingText: string;
                      url: string;
                  };
                  amendedTreaty?: { congress: number; treatyNumber: number; url: string };
                  amendmentsToAmendment?: { count: number; url: string };
                  chamber: Chamber;
                  congress: number;
                  description: string;
                  latestAction?: {
                      actionDate: string;
                      actionTime?: string;
                      links: { name: string; url: string }[];
                      text: string;
                  };
                  notes?: string;
                  number: string;
                  onBehalfOfSponsor?: {
                      bioguideId: string;
                      district?: number;
                      firstName: string;
                      fullName: string;
                      lastName: string;
                      middleName?: string;
                      party?: | DEMOCRATIC
                      | INDEPENDENT
                      | INDEPENDENT_DEMOCRAT
                      | LIBERTARIAN
                      | REPUBLICAN;
                      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;
                      type?: SUBMITTED_ON_BEHALF_OF
                      | PROPOSED_ON_BEHALF_OF;
                      url: string;
                  };
                  proposedDate?: string;
                  purpose?: string;
                  sponsors: {
                      bioguideId: string;
                      district?: number;
                      firstName: string;
                      fullName: string;
                      lastName: string;
                      middleName?: string;
                      party?: | DEMOCRATIC
                      | INDEPENDENT
                      | INDEPENDENT_DEMOCRAT
                      | LIBERTARIAN
                      | REPUBLICAN;
                      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;
                  }[];
                  submittedDate?: string;
                  textVersions: {
                      count: number;
                      formats?: { type: string; url: string }[];
                      url: string;
                  };
                  type: HAMDT;
                  updateDate: string;
              }
              | {
                  actions: { count: number; url: string };
                  amendedAmendment?: {
                      congress: number;
                      description?: string;
                      number: string;
                      purpose?: string;
                      type: AmendmentType;
                      url: string;
                  };
                  amendedBill: {
                      congress: number;
                      number: string;
                      originChamber: Chamber;
                      originChamberCode: ChamberCode;
                      title: string;
                      type: BillType;
                      updateDateIncludingText: string;
                      url: string;
                  };
                  amendedTreaty?: { congress: number; treatyNumber: number; url: string };
                  amendmentsToAmendment?: { count: number; url: string };
                  chamber: Chamber;
                  congress: number;
                  cosponsors?: {
                      count: number;
                      countIncludingWithdrawnCosponsors: number;
                      url: string;
                  };
                  latestAction?: {
                      actionDate: string;
                      actionTime?: string;
                      links: { name: string; url: string }[];
                      text: string;
                  };
                  notes?: string;
                  number: string;
                  onBehalfOfSponsor?: {
                      bioguideId: string;
                      district?: number;
                      firstName: string;
                      fullName: string;
                      lastName: string;
                      middleName?: string;
                      party?: | DEMOCRATIC
                      | INDEPENDENT
                      | INDEPENDENT_DEMOCRAT
                      | LIBERTARIAN
                      | REPUBLICAN;
                      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;
                      type?: SUBMITTED_ON_BEHALF_OF
                      | PROPOSED_ON_BEHALF_OF;
                      url: string;
                  };
                  proposedDate?: string;
                  purpose?: string;
                  sponsors: {
                      bioguideId: string;
                      district?: number;
                      firstName: string;
                      fullName: string;
                      lastName: string;
                      middleName?: string;
                      party?: | DEMOCRATIC
                      | INDEPENDENT
                      | INDEPENDENT_DEMOCRAT
                      | LIBERTARIAN
                      | REPUBLICAN;
                      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;
                  }[];
                  submittedDate?: string;
                  textVersions: {
                      count: number;
                      formats?: { type: string; url: string }[];
                      url: string;
                  };
                  type: SAMDT;
                  updateDate: string;
              }
              | {
                  actions: { count: number; url: string };
                  amendedAmendment?: {
                      congress: number;
                      description?: string;
                      number: string;
                      purpose?: string;
                      type: AmendmentType;
                      url: string;
                  };
                  amendedBill: {
                      congress: number;
                      number: string;
                      originChamber: Chamber;
                      originChamberCode: ChamberCode;
                      title: string;
                      type: BillType;
                      updateDateIncludingText: string;
                      url: string;
                  };
                  amendedTreaty?: { congress: number; treatyNumber: number; url: string };
                  amendmentsToAmendment?: { count: number; url: string };
                  chamber: Chamber;
                  congress: number;
                  cosponsors?: {
                      count: number;
                      countIncludingWithdrawnCosponsors: number;
                      url: string;
                  };
                  latestAction?: {
                      actionDate: string;
                      actionTime?: string;
                      links: { name: string; url: string }[];
                      text: string;
                  };
                  notes?: string;
                  number: string;
                  onBehalfOfSponsor?: {
                      bioguideId: string;
                      district?: number;
                      firstName: string;
                      fullName: string;
                      lastName: string;
                      middleName?: string;
                      party?: | DEMOCRATIC
                      | INDEPENDENT
                      | INDEPENDENT_DEMOCRAT
                      | LIBERTARIAN
                      | REPUBLICAN;
                      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;
                      type?: SUBMITTED_ON_BEHALF_OF
                      | PROPOSED_ON_BEHALF_OF;
                      url: string;
                  };
                  proposedDate?: string;
                  purpose?: string;
                  sponsors: {
                      bioguideId: string;
                      district?: number;
                      firstName: string;
                      fullName: string;
                      lastName: string;
                      middleName?: string;
                      party?: | DEMOCRATIC
                      | INDEPENDENT
                      | INDEPENDENT_DEMOCRAT
                      | LIBERTARIAN
                      | REPUBLICAN;
                      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;
                  }[];
                  submittedDate?: string;
                  textVersions: {
                      count: number;
                      formats?: { type: string; url: string }[];
                      url: string;
                  };
                  type: SUAMDT;
                  updateDate: string;
              };
          } & { rateLimit: RateLimitInfo },
      >

      Detailed information for the specified amendment

    • Returns the list of actions on a specified amendment.

      Parameters

      • congress: number

        The Congress number (e.g., 117)

      • amendmentType: AmendmentType

        The type of amendment (samdt or hamdt)

      • amendmentNumber: string

        The amendment number

      • params: { format?: Format; limit?: number; offset?: number } = {}

        {PaginationParams} - Accepts pagination and format parameters

      Returns Promise<
          BasePaginatedResponse & {
              actions: {
                  actionCode?: string;
                  actionDate: string;
                  actionTime?: string;
                  committees?: { name: string; systemCode: string; url: string };
                  recordedVotes?: {
                      chamber: Chamber;
                      congress: number;
                      date: string;
                      rollNumber: number;
                      sessionNumber: 1 | 2;
                      url: string;
                  }[];
                  sourceSystem: { code: 0
                  | 1
                  | 2
                  | 9; name: SourceSystemName };
                  text: string;
                  type: ActionType;
              }[];
          } & { rateLimit: RateLimitInfo },
      >

      List of actions on the specified amendment

    • Returns the list of amendments to a specified amendment.

      Parameters

      • congress: number

        The Congress number (e.g., 117)

      • amendmentType: AmendmentType

        The type of amendment (samdt or hamdt)

      • amendmentNumber: string

        The amendment number

      • params: { format?: Format; limit?: number; offset?: number } = {}

        {PaginationParams} - Accepts pagination and format parameters

      Returns Promise<
          BasePaginatedResponse & {
              amendments: (
                  | {
                      actions: { count: number; url: string };
                      amendedAmendment?: {
                          congress: number;
                          description?: string;
                          number: string;
                          purpose?: string;
                          type: AmendmentType;
                          url: string;
                      };
                      amendedBill: {
                          congress: number;
                          number: string;
                          originChamber: Chamber;
                          originChamberCode: ChamberCode;
                          title: string;
                          type: BillType;
                          updateDateIncludingText: string;
                          url: string;
                      };
                      amendedTreaty?: { congress: number; treatyNumber: number; url: string };
                      amendmentsToAmendment?: { count: number; url: string };
                      chamber: Chamber;
                      congress: number;
                      description: string;
                      latestAction?: {
                          actionDate: string;
                          actionTime?: string;
                          links: { name: string; url: string }[];
                          text: string;
                      };
                      notes?: string;
                      number: string;
                      onBehalfOfSponsor?: {
                          bioguideId: string;
                          district?: number;
                          firstName: string;
                          fullName: string;
                          lastName: string;
                          middleName?: string;
                          party?: | DEMOCRATIC
                          | INDEPENDENT
                          | INDEPENDENT_DEMOCRAT
                          | LIBERTARIAN
                          | REPUBLICAN;
                          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;
                          type?: SUBMITTED_ON_BEHALF_OF
                          | PROPOSED_ON_BEHALF_OF;
                          url: string;
                      };
                      proposedDate?: string;
                      purpose?: string;
                      sponsors: {
                          bioguideId: string;
                          district?: number;
                          firstName: string;
                          fullName: string;
                          lastName: string;
                          middleName?: string;
                          party?: | DEMOCRATIC
                          | INDEPENDENT
                          | INDEPENDENT_DEMOCRAT
                          | LIBERTARIAN
                          | REPUBLICAN;
                          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;
                      }[];
                      submittedDate?: string;
                      textVersions: {
                          count: number;
                          formats?: { type: string; url: string }[];
                          url: string;
                      };
                      type: HAMDT;
                      updateDate: string;
                  }
                  | {
                      actions: { count: number; url: string };
                      amendedAmendment?: {
                          congress: number;
                          description?: string;
                          number: string;
                          purpose?: string;
                          type: AmendmentType;
                          url: string;
                      };
                      amendedBill: {
                          congress: number;
                          number: string;
                          originChamber: Chamber;
                          originChamberCode: ChamberCode;
                          title: string;
                          type: BillType;
                          updateDateIncludingText: string;
                          url: string;
                      };
                      amendedTreaty?: { congress: number; treatyNumber: number; url: string };
                      amendmentsToAmendment?: { count: number; url: string };
                      chamber: Chamber;
                      congress: number;
                      cosponsors?: {
                          count: number;
                          countIncludingWithdrawnCosponsors: number;
                          url: string;
                      };
                      latestAction?: {
                          actionDate: string;
                          actionTime?: string;
                          links: { name: string; url: string }[];
                          text: string;
                      };
                      notes?: string;
                      number: string;
                      onBehalfOfSponsor?: {
                          bioguideId: string;
                          district?: number;
                          firstName: string;
                          fullName: string;
                          lastName: string;
                          middleName?: string;
                          party?: | DEMOCRATIC
                          | INDEPENDENT
                          | INDEPENDENT_DEMOCRAT
                          | LIBERTARIAN
                          | REPUBLICAN;
                          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;
                          type?: SUBMITTED_ON_BEHALF_OF
                          | PROPOSED_ON_BEHALF_OF;
                          url: string;
                      };
                      proposedDate?: string;
                      purpose?: string;
                      sponsors: {
                          bioguideId: string;
                          district?: number;
                          firstName: string;
                          fullName: string;
                          lastName: string;
                          middleName?: string;
                          party?: | DEMOCRATIC
                          | INDEPENDENT
                          | INDEPENDENT_DEMOCRAT
                          | LIBERTARIAN
                          | REPUBLICAN;
                          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;
                      }[];
                      submittedDate?: string;
                      textVersions: {
                          count: number;
                          formats?: { type: string; url: string }[];
                          url: string;
                      };
                      type: SAMDT;
                      updateDate: string;
                  }
                  | {
                      actions: { count: number; url: string };
                      amendedAmendment?: {
                          congress: number;
                          description?: string;
                          number: string;
                          purpose?: string;
                          type: AmendmentType;
                          url: string;
                      };
                      amendedBill: {
                          congress: number;
                          number: string;
                          originChamber: Chamber;
                          originChamberCode: ChamberCode;
                          title: string;
                          type: BillType;
                          updateDateIncludingText: string;
                          url: string;
                      };
                      amendedTreaty?: { congress: number; treatyNumber: number; url: string };
                      amendmentsToAmendment?: { count: number; url: string };
                      chamber: Chamber;
                      congress: number;
                      cosponsors?: {
                          count: number;
                          countIncludingWithdrawnCosponsors: number;
                          url: string;
                      };
                      latestAction?: {
                          actionDate: string;
                          actionTime?: string;
                          links: { name: string; url: string }[];
                          text: string;
                      };
                      notes?: string;
                      number: string;
                      onBehalfOfSponsor?: {
                          bioguideId: string;
                          district?: number;
                          firstName: string;
                          fullName: string;
                          lastName: string;
                          middleName?: string;
                          party?: | DEMOCRATIC
                          | INDEPENDENT
                          | INDEPENDENT_DEMOCRAT
                          | LIBERTARIAN
                          | REPUBLICAN;
                          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;
                          type?: SUBMITTED_ON_BEHALF_OF
                          | PROPOSED_ON_BEHALF_OF;
                          url: string;
                      };
                      proposedDate?: string;
                      purpose?: string;
                      sponsors: {
                          bioguideId: string;
                          district?: number;
                          firstName: string;
                          fullName: string;
                          lastName: string;
                          middleName?: string;
                          party?: | DEMOCRATIC
                          | INDEPENDENT
                          | INDEPENDENT_DEMOCRAT
                          | LIBERTARIAN
                          | REPUBLICAN;
                          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;
                      }[];
                      submittedDate?: string;
                      textVersions: {
                          count: number;
                          formats?: { type: string; url: string }[];
                          url: string;
                      };
                      type: SUAMDT;
                      updateDate: string;
                  }
              )[];
          } & { rateLimit: RateLimitInfo },
      >

      List of amendments to the specified amendment

    • Returns the list of cosponsors on a specified amendment.

      Parameters

      • congress: number

        The Congress number (e.g., 117)

      • amendmentType: AmendmentType

        The type of amendment (samdt or hamdt)

      • amendmentNumber: string

        The amendment number

      • params: { format?: Format; limit?: number; offset?: number } = {}

        {PaginationParams} - Accepts pagination and formatparameters

      Returns Promise<
          BasePaginatedResponse & {
              cosponsors: {
                  bioguideId: string;
                  firstName: string;
                  fullName: string;
                  isOriginalCosponsor: boolean;
                  lastName: string;
                  middlename?: string;
                  party: PartyCode;
                  sponsorshipDate: string;
                  sponsorshipWithdrawnDate?: string;
                  state: StateCode;
                  url: string;
              }[];
          } & { rateLimit: RateLimitInfo },
      >

      List of cosponsors on the specified amendment

    • Returns a list of amendments sorted by date of latest action.

      Parameters

      • params: { format?: Format; limit?: number; offset?: number } & DateFilterParams = {}

        {PaginationParams & DateFilterParams} - Accepts pagination, date range filter, and format parameters

      Returns Promise<
          BasePaginatedResponse & {
              amendments: (
                  | {
                      congress: number;
                      description: string;
                      latestAction?: { actionDate: string; actionTime?: string; text: string };
                      number: string;
                      purpose?: string;
                      type: HAMDT;
                      updateDate: string;
                      url: string;
                  }
                  | {
                      congress: number;
                      latestAction?: { actionDate: string; actionTime?: string; text: string };
                      number: string;
                      purpose?: string;
                      type: SAMDT;
                      updateDate: string;
                      url: string;
                  }
                  | {
                      congress: number;
                      latestAction?: { actionDate: string; actionTime?: string; text: string };
                      number: string;
                      purpose?: string;
                      type: SUAMDT;
                      updateDate: string;
                      url: string;
                  }
              )[];
          } & { rateLimit: RateLimitInfo },
      >

      A list of amendments sorted by date of latest action

    • Returns a list of amendments filtered by the specified congress, sorted by date of latest action.

      Parameters

      • congress: number

        The Congress number (e.g., 117)

      • params: { format?: Format; limit?: number; offset?: number } & DateFilterParams = {}

        {PaginationParams & DateFilterParams} - Accepts pagination, date range filter, and format parameters

      Returns Promise<
          BasePaginatedResponse & {
              amendments: (
                  | {
                      congress: number;
                      description: string;
                      latestAction?: { actionDate: string; actionTime?: string; text: string };
                      number: string;
                      purpose?: string;
                      type: HAMDT;
                      updateDate: string;
                      url: string;
                  }
                  | {
                      congress: number;
                      latestAction?: { actionDate: string; actionTime?: string; text: string };
                      number: string;
                      purpose?: string;
                      type: SAMDT;
                      updateDate: string;
                      url: string;
                  }
                  | {
                      congress: number;
                      latestAction?: { actionDate: string; actionTime?: string; text: string };
                      number: string;
                      purpose?: string;
                      type: SUAMDT;
                      updateDate: string;
                      url: string;
                  }
              )[];
          } & { rateLimit: RateLimitInfo },
      >

      List of amendments filtered by the specified congress, sorted by date of latest action

    • Returns a list of amendments filtered by the specified congress and amendment type, sorted by date of latest action.

      Parameters

      • congress: number

        The Congress number (e.g., 117)

      • amendmentType: AmendmentType

        The type of amendment (samdt or hamdt)

      • params: { format?: Format; limit?: number; offset?: number } & DateFilterParams = {}

        {PaginationParams & DateFilterParams} - Accepts pagination, date range filter, and format parameters

      Returns Promise<
          BasePaginatedResponse & {
              amendments: (
                  | {
                      congress: number;
                      description: string;
                      latestAction?: { actionDate: string; actionTime?: string; text: string };
                      number: string;
                      purpose?: string;
                      type: HAMDT;
                      updateDate: string;
                      url: string;
                  }
                  | {
                      congress: number;
                      latestAction?: { actionDate: string; actionTime?: string; text: string };
                      number: string;
                      purpose?: string;
                      type: SAMDT;
                      updateDate: string;
                      url: string;
                  }
                  | {
                      congress: number;
                      latestAction?: { actionDate: string; actionTime?: string; text: string };
                      number: string;
                      purpose?: string;
                      type: SUAMDT;
                      updateDate: string;
                      url: string;
                  }
              )[];
          } & { rateLimit: RateLimitInfo },
      >

      List of amendments filtered by the specified congress and amendment type

    • Returns the list of text versions for a specified amendment from the 117th Congress onwards.

      Parameters

      • congress: number

        The Congress number (e.g., 117)

      • amendmentType: AmendmentType

        The type of amendment (samdt or hamdt)

      • amendmentNumber: string

        The amendment number

      • params: { format?: Format; limit?: number; offset?: number } = {}

        {PaginationParams} - Accepts pagination and format parameters

      Returns Promise<
          BasePaginatedResponse & {
              textVersions: {
                  date: string;
                  formats: { type: string; url: string }[];
                  type: AmendmentTextType;
              }[];
          } & { rateLimit: RateLimitInfo },
      >

      List of text versions for the specified amendment