npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@maccuaa/intellitrust-admin-sdk

v5.44.0

Published

TypeScript SDK client for Entrust Identity as a Service Administration API

Readme

@maccuaa/intellitrust-admin-sdk

NPM Version NPM Downloads

TypeScript SDK for the Entrust Identity as a Service (IDaaS) Administration API.

Note: This is an unofficial community-maintained SDK, not an official Entrust product.

Features

  • 🎯 Fully Typed: Complete TypeScript definitions for all API operations
  • 🚀 Modern ESM: Built for modern JavaScript environments
  • 📦 Tree-shakeable: Import only the functions you need
  • 🔒 Type-safe: Discriminated union types for response handling
  • 🪶 Lightweight: Minimal runtime dependencies

Installation

npm install @maccuaa/intellitrust-admin-sdk
bun add @maccuaa/intellitrust-admin-sdk

Quick Start

import {
  listAuthApiApplicationsUsingGet,
  createUserUsingPost,
} from "@maccuaa/intellitrust-admin-sdk";

// Configure your base URL and authentication headers
const baseUrl = "https://customer.region.trustedauth.com";
const headers = {
  Authorization: "applicationId,sharedSecret",
};

// List authentication API applications
const response = await listAuthApiApplicationsUsingGet({ baseUrl, headers });

if (response.status === 200) {
  console.log("Applications:", response.data);
}

// Create a new user
const createResponse = await createUserUsingPost(
  {
    userParms: {
      userId: "john.doe",
      firstName: "John",
      lastName: "Doe",
      email: "[email protected]",
    },
  },
  { baseUrl, headers }
);

if (createResponse.status === 200) {
  console.log("User created:", createResponse.data);
}

Response Handling

The SDK uses discriminated union types for type-safe response handling:

const response = await createTokenUsingPost(
  { userid: "user123", $type: "GOOGLE_AUTHENTICATOR" },
  { baseUrl, headers }
);

// Type guard with status check
if (response.status === 200) {
  // response.data is now typed as Token
  console.log("Token ID:", response.data.id);
} else if (response.status === 400) {
  // response.data is now typed as ErrorInfo
  console.log("Error:", response.data.errorMessage);
}

Configuration

Global Defaults

Set default options for all requests:

import { defaults } from "@maccuaa/intellitrust-admin-sdk";

defaults.baseUrl = "https://customer.region.trustedauth.com";
defaults.headers = {
  Authorization: "applicationId,sharedSecret",
};

// Now you can call functions without specifying baseUrl/headers each time
const response = await listAuthApiApplicationsUsingGet();

Per-Request Options

Override defaults for individual requests:

const response = await listAuthApiApplicationsUsingGet({
  baseUrl: "https://different.trustedauth.com",
  headers: {
    Authorization: "different,credentials",
  },
});

Common Operations

User Management

import {
  createUserUsingPost,
  userByUseridUsingPost,
  updateUserUsingPut,
  deleteUserUsingDelete,
} from "@maccuaa/intellitrust-admin-sdk";

// Get user by userId
const userResponse = await userByUseridUsingPost(
  { userGetParms: { userId: "john.doe" } },
  { baseUrl, headers }
);

// Update user
if (userResponse.status === 200) {
  await updateUserUsingPut(
    {
      id: userResponse.data.id,
      userParms: { email: "[email protected]" },
    },
    { baseUrl, headers }
  );
}

// Delete user
await deleteUserUsingDelete({ id: userResponse.data.id }, { baseUrl, headers });

Token Management

import {
  createTokenUsingPost,
  startActivateTokenUsingPost,
  deleteTokenUsingDelete,
} from "@maccuaa/intellitrust-admin-sdk";

// Create a Google Authenticator token
const tokenResponse = await createTokenUsingPost(
  {
    userid: "user-id",
    $type: "GOOGLE_AUTHENTICATOR",
    tokenCreateParms: {
      activateParms: { type: ["OFFLINE"] },
    },
  },
  { baseUrl, headers }
);

// Start token activation
if (tokenResponse.status === 200) {
  const activationResponse = await startActivateTokenUsingPost(
    {
      tokenid: tokenResponse.data.id,
      activateParms: {
        deliverActivationEmail: false,
        returnQRCode: true,
        type: ["OFFLINE"],
      },
    },
    { baseUrl, headers }
  );

  if (activationResponse.status === 200) {
    console.log("QR Code:", activationResponse.data.qrCode);
  }
}

Application Management

import {
  listAuthApiApplicationsUsingGet,
  createAuthApiApplicationUsingPost,
} from "@maccuaa/intellitrust-admin-sdk";

// List all auth API applications
const appsResponse = await listAuthApiApplicationsUsingGet({
  baseUrl,
  headers,
});

// Create new auth API application
const createAppResponse = await createAuthApiApplicationUsingPost(
  {
    authApiApplicationParms: {
      name: "My Application",
      description: "Application description",
    },
  },
  { baseUrl, headers }
);

API Documentation

For detailed API documentation, refer to the official Entrust IDaaS Administration API documentation.

Requirements

  • Node.js >= 22.12.0
  • TypeScript >= 5.0 (for TypeScript projects)

License

ISC

Support

This is a community-maintained SDK. For issues or feature requests, please visit the GitHub repository.

For official Entrust IDaaS support, contact Entrust directly.