Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

intercom-client

Latest version: v7.1.0

Overview

Last scanned
3 Nov 2026
Published
3 Nov 2026
npm package Publisher: intercom-npm-publisher
390 Stars
117 Forks
1 Versions
1.7M Downloads
TypeScript Repo language

Scan summary

intercom-client was last scanned on 3 Nov 2026 at version 7.1.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 3 Nov 2026.
  • Findings: No rules fired in version 7.1.0.
  • Downloads: 1,686,551 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
7.1.0 LATEST 3 Nov 2026 No rules fired

No rules fired in 7.1.0

Findings

Findings for v7.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 7.1.0; other versions have their own rules, not their own score.

Known vulnerabilities

1 CVE · last 7 May 2026

1 CRITICAL 0 HIGH 0 MEDIUM 0 LOW

Versions

  • > 7.0.4
  • ≥ 7.0.4, ≤ 7.0.4 1 CRITICAL
  • < 7.0.4

Vulnerabilities

  • GHSA-54PG-9963-V8VG Critical 7 May 2026 Compromised version of intercom-client published to npm No fix yet

README

The publisher’s own README, as collected from the registry.

Intercom TypeScript Library

fern shield npm shield

The Intercom TypeScript library provides convenient access to the Intercom APIs from TypeScript.

Table of Contents

  • Installation
  • Reference
  • Usage
  • Environments
  • Request and Response Types
  • Exception Handling
  • Pagination
  • Advanced
    • Additional Headers
    • Additional Query String Parameters
    • Retries
    • Timeouts
    • Aborting Requests
    • Access Raw Response Data
    • Logging
    • Custom Fetch
    • Custom Fetcher
    • Runtime Compatibility
  • Contributing

Installation

npm i -s intercom-client

Reference

A full reference for this library is available here.

Usage

Instantiate and use the client with the following:

import { IntercomClient } from "intercom-client";

const client = new IntercomClient({ token: "YOUR_TOKEN" });
await client.aiContent.createContentImportSource({
    url: "https://www.example.com"
});

Environments

This SDK allows you to configure different environments for API requests.

import { IntercomClient, IntercomEnvironment } from "intercom-client";

const client = new IntercomClient({
    environment: IntercomEnvironment.UsProduction,
});

Request and Response Types

The SDK exports all request and response types as TypeScript interfaces. Simply import them with the following namespace:

import { Intercom } from "intercom-client";

const request: Intercom.ConfigureAwayAdminRequest = {
    ...
};

Exception Handling

When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error will be thrown.

import { IntercomError } from "intercom-client";

try {
    await client.aiContent.createContentImportSource(...);
} catch (err) {
    if (err instanceof IntercomError) {
        console.log(err.statusCode);
        console.log(err.message);
        console.log(err.body);
        console.log(err.rawResponse);
    }
}

Pagination

List endpoints are paginated. The SDK provides an iterator so that you can simply loop over the items:

import { IntercomClient } from "intercom-client";

const client = new IntercomClient({ token: "YOUR_TOKEN" });
const pageableResponse = await client.articles.list();
for await (const item of pageableResponse) {
    console.log(item);
}

// Or you can manually iterate page-by-page
let page = await client.articles.list();
while (page.hasNextPage()) {
    page = await page.getNextPage();
}

// You can also access the underlying response
const response = page.response;

Advanced

Additional Headers

If you would like to send additional headers as part of the request, use the headers request option.

import { IntercomClient } from "intercom-client";

const client = new IntercomClient({
    ...
    headers: {
        'X-Custom-Header': 'custom value'
    }
});

const response = await client.aiContent.createContentImportSource(..., {
    headers: {
        'X-Custom-Header': 'custom value'
    }
});
Additional Query String Parameters

If you would like to send additional query string parameters as part of the request, use the queryParams request option.

const response = await client.aiContent.createContentImportSource(..., {
    queryParams: {
        'customQueryParamKey': 'custom query param value'
    }
});
Retries

The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2).

Requests are retried on:

  • 408 (Timeout)
  • 429 (Too Many Requests)
  • 5XX (All server errors, including 500)

Use the maxRetries request option to configure this behavior.

const response = await client.aiContent.createContentImportSource(..., {
    maxRetries: 0 // override maxRetries at the request level
});
Timeouts

The SDK defaults to a 20 second timeout. Use the timeoutInSeconds option to configure this behavior.

const response = await client.aiContent.createContentImportSource(..., {
    timeoutInSeconds: 30 // override timeout to 30s
});
Aborting Requests

The SDK allows users to abort requests at any point by passing in an abort signal.

const controller = new AbortController();
const response = await client.aiContent.createContentImportSource(..., {
    abortSignal: controller.signal
});
controller.abort(); // aborts the request
Access Raw Response Data

The SDK provides access to raw response data, including headers, through the .withRawResponse() method. The .withRawResponse() method returns a promise that results to an object with a data and a rawResponse property.

const { data, rawResponse } = await client.aiContent.createContentImportSource(...).withRawResponse();

console.log(data);
console.log(rawResponse.headers['X-My-Header']);
Logging

The SDK supports logging. You can configure the logger by passing in a logging object to the client options.

import { IntercomClient, logging } from "intercom-client";

const client = new IntercomClient({
    ...
    logging: {
        level: logging.LogLevel.Debug, // defaults to logging.LogLevel.Info
        logger: new logging.ConsoleLogger(), // defaults to ConsoleLogger
        silent: false, // defaults to true, set to false to enable logging
    }
});

The logging object can have the following properties:

  • level: The log level to use. Defaults to logging.LogLevel.Info.
  • logger: The logger to use. Defaults to a logging.ConsoleLogger.
  • silent: Whether to silence the logger. Defaults to true.

The level property can be one of the following values:

  • logging.LogLevel.Debug
  • logging.LogLevel.Info
  • logging.LogLevel.Warn
  • logging.LogLevel.Error

To provide a custom logger, you can pass in an object that implements the logging.ILogger interface.

Here's an example using the popular winston logging library.

import winston from 'winston';

const winstonLogger = winston.createLogger({...});

const logger: logging.ILogger = {
    debug: (msg, ...args) => winstonLogger.debug(msg, ...args),
    info: (msg, ...args) => winstonLogger.info(msg, ...args),
    warn: (msg, ...args) => winstonLogger.warn(msg, ...args),
    error: (msg, ...args) => winstonLogger.error(msg, ...args),
};

Here's an example using the popular pino logging library.

import pino from 'pino';

const pinoLogger = pino({...});

const logger: logging.ILogger = {
  debug: (msg, ...args) => pinoLogger.debug(args, msg),
  info: (msg, ...args) => pinoLogger.info(args, msg),
  warn: (msg, ...args) => pinoLogger.warn(args, msg),
  error: (msg, ...args) => pinoLogger.error(args, msg),
};
Custom Fetch

The SDK provides a low-level fetch method for making custom HTTP requests while still benefiting from SDK-level configuration like authentication, retries, timeouts, and logging. The auth header is only sent to the client's configured environment, so set environment to call a regional host such as https://api.eu.intercom.io. This is useful for calling API endpoints not yet supported in the SDK.

const response = await client.fetch("/v1/custom/endpoint", {
    method: "GET",
}, {
    timeoutInSeconds: 30,
    maxRetries: 3,
    headers: {
        "X-Custom-Header": "custom-value",
    },
});

const data = await response.json();
Custom Fetcher

The SDK provides a way for you to customize the underlying HTTP client / Fetch function. If you're running in an unsupported environment, this provides a way for you to break glass and ensure the SDK works.

import { IntercomClient } from "intercom-client";

const client = new IntercomClient({
    ...
    fetcher: // provide your implementation here
});
Runtime Compatibility

The SDK works in the following runtimes:

  • Node.js 18+
  • Vercel
  • Cloudflare Workers
  • Deno v1.25+
  • Bun 1.0+
  • React Native

Contributing

While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!

On the other hand, contributions to the README are always very welcome!

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm intercom-client

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229