UNPKG

@us-legal-tools/courtlistener-sdk

Version:

TypeScript SDK and MCP server for CourtListener API

12 lines 38 kB
{ "version": 3, "sources": ["../src/api/client.ts", "../src/api/generated/endpoints.ts", "../src/index.ts"], "sourcesContent": [ "import axios, { type AxiosRequestConfig } from 'axios';\n\nexport const customInstance = <T>(\n config: AxiosRequestConfig,\n options?: AxiosRequestConfig,\n): Promise<T> => {\n // Get auth token if available\n const authToken = process.env.COURTLISTENER_API_TOKEN;\n \n const source = axios.CancelToken.source();\n const promise = axios({\n baseURL: 'https://www.courtlistener.com/api/rest/v4',\n timeout: 30000,\n headers: {\n 'Content-Type': 'application/json',\n 'User-Agent': '@us-legal-tools/courtlistener-sdk/1.5.1',\n ...(authToken && { 'Authorization': `Token ${authToken}` }),\n },\n ...config,\n ...options,\n cancelToken: source.token,\n }).then(({ data }) => data);\n\n // @ts-ignore\n promise.cancel = () => {\n source.cancel('Query was cancelled by React Query');\n };\n\n return promise;\n};\n\nexport default customInstance;", "/**\n * Generated by orval v7.11.2 🍺\n * Do not edit manually.\n * CourtListener REST API\n * The CourtListener REST API provides access to a comprehensive database of legal documents, case law, judges, oral arguments, and citation lookups. This API supports advanced search capabilities, rate limiting, and token-based authentication.\n * OpenAPI spec version: 4.0.0\n */\nimport type {\n Agreement,\n Alert,\n Audio,\n Citation,\n CitationResult,\n Cluster,\n Court,\n Debt,\n Docket,\n DocketAlert,\n FinancialDisclosure,\n Get200,\n GetAgreementsParams,\n GetAlertsParams,\n GetAudioParams,\n GetCitationsParams,\n GetClustersParams,\n GetCourtsParams,\n GetDebtsParams,\n GetDocketAlertsParams,\n GetDocketsParams,\n GetFinancialDisclosuresParams,\n GetGiftsParams,\n GetInvestmentsParams,\n GetJudgePositionsParams,\n GetNonInvestmentIncomeParams,\n GetOpinionsParams,\n GetOriginalProceedingsPanelsParams,\n GetPacerDocIdsParams,\n GetPeopleParams,\n GetPoliticalAffiliationsParams,\n GetPositionsParams,\n GetProcessingQueueParams,\n GetRecapParams,\n GetReimbursementsParams,\n GetSchoolsParams,\n GetSearchParams,\n GetSpouseIncomeParams,\n GetVisualizationsParams,\n Gift,\n Investment,\n JudgePosition,\n NonInvestmentIncome,\n Opinion,\n PaginatedAgreements,\n PaginatedAlerts,\n PaginatedAudio,\n PaginatedCitations,\n PaginatedClusters,\n PaginatedCourts,\n PaginatedDebts,\n PaginatedDocketAlerts,\n PaginatedDockets,\n PaginatedFinancialDisclosures,\n PaginatedGifts,\n PaginatedInvestments,\n PaginatedJudgePositions,\n PaginatedNonInvestmentIncome,\n PaginatedOpinions,\n PaginatedOriginalProceedingsPanels,\n PaginatedPACERDocIDs,\n PaginatedPeople,\n PaginatedPoliticalAffiliations,\n PaginatedPositions,\n PaginatedProcessingQueue,\n PaginatedRECAPDocuments,\n PaginatedReimbursements,\n PaginatedSchools,\n PaginatedSpouseIncome,\n PaginatedVisualizations,\n Person,\n PoliticalAffiliation,\n Position,\n PostAlertsBody,\n PostCitationLookupBody,\n PostDocketAlertsBody,\n PostRecapFetchBody,\n RECAPDocument,\n RECAPFetchResponse,\n Reimbursement,\n School,\n SearchResults,\n SpouseIncome,\n Visualization\n} from './model';\n\nimport { customInstance } from '../client';\n\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n\n /**\n * Returns a JSON object with all available API endpoints and their descriptions\n * @summary Get API root endpoints\n */\nexport const get = (\n \n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<Get200>(\n {url: `https://www.courtlistener.com/api/rest/v4/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Search across all content types including opinions, oral arguments, people, and RECAP documents. Supports advanced query operators including AND, OR, NOT, quotes, wildcards, fuzzy search (~), and field-specific searches.\n * @summary Universal search\n */\nexport const getSearch = (\n params?: GetSearchParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<SearchResults>(\n {url: `https://www.courtlistener.com/api/rest/v4/search/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Look up citations by providing either a text blob containing citations or specific volume/reporter/page parameters. Rate limited to 60 citations per minute with a maximum of 250 citations per request.\n * @summary Citation lookup and normalization\n */\nexport const postCitationLookup = (\n postCitationLookupBody: PostCitationLookupBody,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<CitationResult>(\n {url: `https://www.courtlistener.com/api/rest/v4/citation-lookup/`, method: 'POST',\n headers: {'Content-Type': 'application/json', },\n data: postCitationLookupBody\n },\n options);\n }\n \n/**\n * Get a list of court dockets with case information\n * @summary List dockets\n */\nexport const getDockets = (\n params?: GetDocketsParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedDockets>(\n {url: `https://www.courtlistener.com/api/rest/v4/dockets/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about a specific docket\n * @summary Get docket by ID\n */\nexport const getDocketsId = (\n id: number | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<Docket>(\n {url: `https://www.courtlistener.com/api/rest/v4/dockets/${id}/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Get a list of opinion clusters (groups of related opinions)\n * @summary List opinion clusters\n */\nexport const getClusters = (\n params?: GetClustersParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedClusters>(\n {url: `https://www.courtlistener.com/api/rest/v4/clusters/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about a specific opinion cluster\n * @summary Get cluster by ID\n */\nexport const getClustersId = (\n id: number | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<Cluster>(\n {url: `https://www.courtlistener.com/api/rest/v4/clusters/${id}/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Get a list of legal opinions\n * @summary List opinions\n */\nexport const getOpinions = (\n params?: GetOpinionsParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedOpinions>(\n {url: `https://www.courtlistener.com/api/rest/v4/opinions/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about a specific legal opinion\n * @summary Get opinion by ID\n */\nexport const getOpinionsId = (\n id: number | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<Opinion>(\n {url: `https://www.courtlistener.com/api/rest/v4/opinions/${id}/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Get a list of all courts in the system\n * @summary List courts\n */\nexport const getCourts = (\n params?: GetCourtsParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedCourts>(\n {url: `https://www.courtlistener.com/api/rest/v4/courts/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about a specific court\n * @summary Get court by ID\n */\nexport const getCourtsId = (\n id: string | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<Court>(\n {url: `https://www.courtlistener.com/api/rest/v4/courts/${id}/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Get a list of judges and other legal professionals\n * @summary List people (judges)\n */\nexport const getPeople = (\n params?: GetPeopleParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedPeople>(\n {url: `https://www.courtlistener.com/api/rest/v4/people/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about a specific judge or legal professional\n * @summary Get person by ID\n */\nexport const getPeopleId = (\n id: number | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<Person>(\n {url: `https://www.courtlistener.com/api/rest/v4/people/${id}/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Get a list of oral argument audio recordings\n * @summary List oral argument recordings\n */\nexport const getAudio = (\n params?: GetAudioParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedAudio>(\n {url: `https://www.courtlistener.com/api/rest/v4/audio/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about a specific oral argument recording\n * @summary Get audio recording by ID\n */\nexport const getAudioId = (\n id: number | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<Audio>(\n {url: `https://www.courtlistener.com/api/rest/v4/audio/${id}/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Get a list of judge financial disclosures\n * @summary List financial disclosures\n */\nexport const getFinancialDisclosures = (\n params?: GetFinancialDisclosuresParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedFinancialDisclosures>(\n {url: `https://www.courtlistener.com/api/rest/v4/financial-disclosures/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about a specific financial disclosure\n * @summary Get financial disclosure by ID\n */\nexport const getFinancialDisclosuresId = (\n id: number | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<FinancialDisclosure>(\n {url: `https://www.courtlistener.com/api/rest/v4/financial-disclosures/${id}/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Get a list of judge investments from financial disclosures\n * @summary List investments\n */\nexport const getInvestments = (\n params?: GetInvestmentsParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedInvestments>(\n {url: `https://www.courtlistener.com/api/rest/v4/investments/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about a specific investment\n * @summary Get investment by ID\n */\nexport const getInvestmentsId = (\n id: number | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<Investment>(\n {url: `https://www.courtlistener.com/api/rest/v4/investments/${id}/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Get a list of judge positions from financial disclosures\n * @summary List positions\n */\nexport const getPositions = (\n params?: GetPositionsParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedPositions>(\n {url: `https://www.courtlistener.com/api/rest/v4/positions/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about a specific position\n * @summary Get position by ID\n */\nexport const getPositionsId = (\n id: number | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<Position>(\n {url: `https://www.courtlistener.com/api/rest/v4/positions/${id}/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Get a list of judge agreements from financial disclosures\n * @summary List agreements\n */\nexport const getAgreements = (\n params?: GetAgreementsParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedAgreements>(\n {url: `https://www.courtlistener.com/api/rest/v4/agreements/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about a specific agreement\n * @summary Get agreement by ID\n */\nexport const getAgreementsId = (\n id: number | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<Agreement>(\n {url: `https://www.courtlistener.com/api/rest/v4/agreements/${id}/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Get a list of judge non-investment income from financial disclosures\n * @summary List non-investment income\n */\nexport const getNonInvestmentIncome = (\n params?: GetNonInvestmentIncomeParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedNonInvestmentIncome>(\n {url: `https://www.courtlistener.com/api/rest/v4/non-investment-income/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about specific non-investment income\n * @summary Get non-investment income by ID\n */\nexport const getNonInvestmentIncomeId = (\n id: number | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<NonInvestmentIncome>(\n {url: `https://www.courtlistener.com/api/rest/v4/non-investment-income/${id}/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Get a list of judge spouse income from financial disclosures\n * @summary List spouse income\n */\nexport const getSpouseIncome = (\n params?: GetSpouseIncomeParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedSpouseIncome>(\n {url: `https://www.courtlistener.com/api/rest/v4/spouse-income/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about specific spouse income\n * @summary Get spouse income by ID\n */\nexport const getSpouseIncomeId = (\n id: number | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<SpouseIncome>(\n {url: `https://www.courtlistener.com/api/rest/v4/spouse-income/${id}/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Get a list of judge reimbursements from financial disclosures\n * @summary List reimbursements\n */\nexport const getReimbursements = (\n params?: GetReimbursementsParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedReimbursements>(\n {url: `https://www.courtlistener.com/api/rest/v4/reimbursements/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about a specific reimbursement\n * @summary Get reimbursement by ID\n */\nexport const getReimbursementsId = (\n id: number | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<Reimbursement>(\n {url: `https://www.courtlistener.com/api/rest/v4/reimbursements/${id}/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Get a list of judge gifts from financial disclosures\n * @summary List gifts\n */\nexport const getGifts = (\n params?: GetGiftsParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedGifts>(\n {url: `https://www.courtlistener.com/api/rest/v4/gifts/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about a specific gift\n * @summary Get gift by ID\n */\nexport const getGiftsId = (\n id: number | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<Gift>(\n {url: `https://www.courtlistener.com/api/rest/v4/gifts/${id}/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Get a list of judge debts from financial disclosures\n * @summary List debts\n */\nexport const getDebts = (\n params?: GetDebtsParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedDebts>(\n {url: `https://www.courtlistener.com/api/rest/v4/debts/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about a specific debt\n * @summary Get debt by ID\n */\nexport const getDebtsId = (\n id: number | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<Debt>(\n {url: `https://www.courtlistener.com/api/rest/v4/debts/${id}/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Get user's search alerts\n * @summary List search alerts\n */\nexport const getAlerts = (\n params?: GetAlertsParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedAlerts>(\n {url: `https://www.courtlistener.com/api/rest/v4/alerts/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Create a new search alert\n * @summary Create search alert\n */\nexport const postAlerts = (\n postAlertsBody: PostAlertsBody,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<Alert>(\n {url: `https://www.courtlistener.com/api/rest/v4/alerts/`, method: 'POST',\n headers: {'Content-Type': 'application/json', },\n data: postAlertsBody\n },\n options);\n }\n \n/**\n * Get list of PACER documents in processing queue\n * @summary List PACER processing queue items\n */\nexport const getProcessingQueue = (\n params?: GetProcessingQueueParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedProcessingQueue>(\n {url: `https://www.courtlistener.com/api/rest/v4/processing-queue/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Get list of RECAP documents from PACER\n * @summary List RECAP documents\n */\nexport const getRecap = (\n params?: GetRecapParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedRECAPDocuments>(\n {url: `https://www.courtlistener.com/api/rest/v4/recap/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about a specific RECAP document\n * @summary Get RECAP document by ID\n */\nexport const getRecapId = (\n id: number | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<RECAPDocument>(\n {url: `https://www.courtlistener.com/api/rest/v4/recap/${id}/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Get list of PACER document identifiers\n * @summary List PACER document IDs\n */\nexport const getPacerDocIds = (\n params?: GetPacerDocIdsParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedPACERDocIDs>(\n {url: `https://www.courtlistener.com/api/rest/v4/pacer-doc-ids/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Fetch a specific document from PACER via RECAP\n * @summary Fetch RECAP document\n */\nexport const postRecapFetch = (\n postRecapFetchBody: PostRecapFetchBody,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<RECAPFetchResponse>(\n {url: `https://www.courtlistener.com/api/rest/v4/recap-fetch/`, method: 'POST',\n headers: {'Content-Type': 'application/json', },\n data: postRecapFetchBody\n },\n options);\n }\n \n/**\n * Get user's docket alerts for case updates\n * @summary List docket alerts\n */\nexport const getDocketAlerts = (\n params?: GetDocketAlertsParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedDocketAlerts>(\n {url: `https://www.courtlistener.com/api/rest/v4/docket-alerts/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Create a new docket alert for case updates\n * @summary Create docket alert\n */\nexport const postDocketAlerts = (\n postDocketAlertsBody: PostDocketAlertsBody,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<DocketAlert>(\n {url: `https://www.courtlistener.com/api/rest/v4/docket-alerts/`, method: 'POST',\n headers: {'Content-Type': 'application/json', },\n data: postDocketAlertsBody\n },\n options);\n }\n \n/**\n * Get list of original proceedings panels from PACER\n * @summary List original proceedings panels\n */\nexport const getOriginalProceedingsPanels = (\n params?: GetOriginalProceedingsPanelsParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedOriginalProceedingsPanels>(\n {url: `https://www.courtlistener.com/api/rest/v4/original-proceedings-panels/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Get a list of judicial positions\n * @summary List judge positions\n */\nexport const getJudgePositions = (\n params?: GetJudgePositionsParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedJudgePositions>(\n {url: `https://www.courtlistener.com/api/rest/v4/judge-positions/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about a specific judicial position\n * @summary Get judge position by ID\n */\nexport const getJudgePositionsId = (\n id: number | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<JudgePosition>(\n {url: `https://www.courtlistener.com/api/rest/v4/judge-positions/${id}/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Get a list of schools from judge education data\n * @summary List schools\n */\nexport const getSchools = (\n params?: GetSchoolsParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedSchools>(\n {url: `https://www.courtlistener.com/api/rest/v4/schools/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about a specific school\n * @summary Get school by ID\n */\nexport const getSchoolsId = (\n id: number | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<School>(\n {url: `https://www.courtlistener.com/api/rest/v4/schools/${id}/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Get a list of judge political affiliations\n * @summary List political affiliations\n */\nexport const getPoliticalAffiliations = (\n params?: GetPoliticalAffiliationsParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedPoliticalAffiliations>(\n {url: `https://www.courtlistener.com/api/rest/v4/political-affiliations/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about a specific political affiliation\n * @summary Get political affiliation by ID\n */\nexport const getPoliticalAffiliationsId = (\n id: number | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PoliticalAffiliation>(\n {url: `https://www.courtlistener.com/api/rest/v4/political-affiliations/${id}/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Get citation network information showing how cases cite each other\n * @summary List citation network data\n */\nexport const getCitations = (\n params?: GetCitationsParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedCitations>(\n {url: `https://www.courtlistener.com/api/rest/v4/citations/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about a specific citation relationship\n * @summary Get citation by ID\n */\nexport const getCitationsId = (\n id: number | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<Citation>(\n {url: `https://www.courtlistener.com/api/rest/v4/citations/${id}/`, method: 'GET'\n },\n options);\n }\n \n/**\n * Get data for network visualizations and charts\n * @summary List visualization data\n */\nexport const getVisualizations = (\n params?: GetVisualizationsParams,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<PaginatedVisualizations>(\n {url: `https://www.courtlistener.com/api/rest/v4/visualizations/`, method: 'GET',\n params\n },\n options);\n }\n \n/**\n * Retrieve detailed information about a specific visualization\n * @summary Get visualization by ID\n */\nexport const getVisualizationsId = (\n id: number | undefined | null,\n options?: SecondParameter<typeof customInstance>,) => {\n return customInstance<Visualization>(\n {url: `https://www.courtlistener.com/api/rest/v4/visualizations/${id}/`, method: 'GET'\n },\n options);\n }\n \nexport type GetResult = NonNullable<Awaited<ReturnType<typeof get>>>\nexport type GetSearchResult = NonNullable<Awaited<ReturnType<typeof getSearch>>>\nexport type PostCitationLookupResult = NonNullable<Awaited<ReturnType<typeof postCitationLookup>>>\nexport type GetDocketsResult = NonNullable<Awaited<ReturnType<typeof getDockets>>>\nexport type GetDocketsIdResult = NonNullable<Awaited<ReturnType<typeof getDocketsId>>>\nexport type GetClustersResult = NonNullable<Awaited<ReturnType<typeof getClusters>>>\nexport type GetClustersIdResult = NonNullable<Awaited<ReturnType<typeof getClustersId>>>\nexport type GetOpinionsResult = NonNullable<Awaited<ReturnType<typeof getOpinions>>>\nexport type GetOpinionsIdResult = NonNullable<Awaited<ReturnType<typeof getOpinionsId>>>\nexport type GetCourtsResult = NonNullable<Awaited<ReturnType<typeof getCourts>>>\nexport type GetCourtsIdResult = NonNullable<Awaited<ReturnType<typeof getCourtsId>>>\nexport type GetPeopleResult = NonNullable<Awaited<ReturnType<typeof getPeople>>>\nexport type GetPeopleIdResult = NonNullable<Awaited<ReturnType<typeof getPeopleId>>>\nexport type GetAudioResult = NonNullable<Awaited<ReturnType<typeof getAudio>>>\nexport type GetAudioIdResult = NonNullable<Awaited<ReturnType<typeof getAudioId>>>\nexport type GetFinancialDisclosuresResult = NonNullable<Awaited<ReturnType<typeof getFinancialDisclosures>>>\nexport type GetFinancialDisclosuresIdResult = NonNullable<Awaited<ReturnType<typeof getFinancialDisclosuresId>>>\nexport type GetInvestmentsResult = NonNullable<Awaited<ReturnType<typeof getInvestments>>>\nexport type GetInvestmentsIdResult = NonNullable<Awaited<ReturnType<typeof getInvestmentsId>>>\nexport type GetPositionsResult = NonNullable<Awaited<ReturnType<typeof getPositions>>>\nexport type GetPositionsIdResult = NonNullable<Awaited<ReturnType<typeof getPositionsId>>>\nexport type GetAgreementsResult = NonNullable<Awaited<ReturnType<typeof getAgreements>>>\nexport type GetAgreementsIdResult = NonNullable<Awaited<ReturnType<typeof getAgreementsId>>>\nexport type GetNonInvestmentIncomeResult = NonNullable<Awaited<ReturnType<typeof getNonInvestmentIncome>>>\nexport type GetNonInvestmentIncomeIdResult = NonNullable<Awaited<ReturnType<typeof getNonInvestmentIncomeId>>>\nexport type GetSpouseIncomeResult = NonNullable<Awaited<ReturnType<typeof getSpouseIncome>>>\nexport type GetSpouseIncomeIdResult = NonNullable<Awaited<ReturnType<typeof getSpouseIncomeId>>>\nexport type GetReimbursementsResult = NonNullable<Awaited<ReturnType<typeof getReimbursements>>>\nexport type GetReimbursementsIdResult = NonNullable<Awaited<ReturnType<typeof getReimbursementsId>>>\nexport type GetGiftsResult = NonNullable<Awaited<ReturnType<typeof getGifts>>>\nexport type GetGiftsIdResult = NonNullable<Awaited<ReturnType<typeof getGiftsId>>>\nexport type GetDebtsResult = NonNullable<Awaited<ReturnType<typeof getDebts>>>\nexport type GetDebtsIdResult = NonNullable<Awaited<ReturnType<typeof getDebtsId>>>\nexport type GetAlertsResult = NonNullable<Awaited<ReturnType<typeof getAlerts>>>\nexport type PostAlertsResult = NonNullable<Awaited<ReturnType<typeof postAlerts>>>\nexport type GetProcessingQueueResult = NonNullable<Awaited<ReturnType<typeof getProcessingQueue>>>\nexport type GetRecapResult = NonNullable<Awaited<ReturnType<typeof getRecap>>>\nexport type GetRecapIdResult = NonNullable<Awaited<ReturnType<typeof getRecapId>>>\nexport type GetPacerDocIdsResult = NonNullable<Awaited<ReturnType<typeof getPacerDocIds>>>\nexport type PostRecapFetchResult = NonNullable<Awaited<ReturnType<typeof postRecapFetch>>>\nexport type GetDocketAlertsResult = NonNullable<Awaited<ReturnType<typeof getDocketAlerts>>>\nexport type PostDocketAlertsResult = NonNullable<Awaited<ReturnType<typeof postDocketAlerts>>>\nexport type GetOriginalProceedingsPanelsResult = NonNullable<Awaited<ReturnType<typeof getOriginalProceedingsPanels>>>\nexport type GetJudgePositionsResult = NonNullable<Awaited<ReturnType<typeof getJudgePositions>>>\nexport type GetJudgePositionsIdResult = NonNullable<Awaited<ReturnType<typeof getJudgePositionsId>>>\nexport type GetSchoolsResult = NonNullable<Awaited<ReturnType<typeof getSchools>>>\nexport type GetSchoolsIdResult = NonNullable<Awaited<ReturnType<typeof getSchoolsId>>>\nexport type GetPoliticalAffiliationsResult = NonNullable<Awaited<ReturnType<typeof getPoliticalAffiliations>>>\nexport type GetPoliticalAffiliationsIdResult = NonNullable<Awaited<ReturnType<typeof getPoliticalAffiliationsId>>>\nexport type GetCitationsResult = NonNullable<Awaited<ReturnType<typeof getCitations>>>\nexport type GetCitationsIdResult = NonNullable<Awaited<ReturnType<typeof getCitationsId>>>\nexport type GetVisualizationsResult = NonNullable<Awaited<ReturnType<typeof getVisualizations>>>\nexport type GetVisualizationsIdResult = NonNullable<Awaited<ReturnType<typeof getVisualizationsId>>>\n", "// CourtListener SDK\nexport * from './api/client';\n\n// Generated API functions and types\nexport * from './api/generated/endpoints';\nexport type * from './api/generated/model';\n\nexport default {\n name: 'CourtListener SDK',\n version: '1.0.0',\n description: 'TypeScript SDK and MCP server for the CourtListener API',\n};\n" ], "mappings": ";AAAA;AAEO,IAAM,iBAAiB,CAC5B,QACA,YACe;AAAA,EAEf,MAAM,YAAY,QAAQ,IAAI;AAAA,EAE9B,MAAM,SAAS,MAAM,YAAY,OAAO;AAAA,EACxC,MAAM,UAAU,MAAM;AAAA,IACpB,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,MACP,gBAAgB;AAAA,MAChB,cAAc;AAAA,SACV,a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