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

@attesso/types

v2.0.1

Published

Type definitions for Attesso — cybersecurity authorization layer for AI agents.

Readme

@attesso/types

TypeScript type definitions for the Attesso API.

npm install @attesso/types

Overview

Shared TypeScript types used across all Attesso packages. Zero runtime dependencies except for PROCESSING_FEES which is a plain object constant.

Mandates

import type {
  Mandate,
  MandateResponse,
  MandateStatus,
  CreateMandateRequest,
  FeeMode,
  FeeRegion,
  MandateFees,
  PreviewFeesRequest,
  PreviewFeesResponse,
} from '@attesso/types';

// MandateStatus: 'active' | 'issuing' | 'completed' | 'revoked' | 'expired'
// FeeMode: 'markup' | 'inclusive'
// FeeRegion: 'EEA' | 'US' | 'UK' | 'CUSTOM'

Mandate Requests

import type {
  CreateMandateRequestInput,
  CreateMandateRequestResponse,
  MandateRequestDetails,
  MandateRequestStatus,
  ApprovedMandateDetails,
  MandateRequestEventType,
  MandateRequestWebhookPayload,
} from '@attesso/types';

// MandateRequestStatus: 'pending' | 'approved' | 'expired' | 'rejected' | 'cancelled'

Payments and Cards

import type {
  Payment,
  PaymentResponse,
  PaymentStatus,
  PaymentError,
  PaymentErrorCode,
  IssueCardRequest,
  IssueCardResponse,
} from '@attesso/types';

// PaymentStatus: 'pending' | 'processing' | 'authorized' | 'completed' | 'failed' | 'cancelled'
// PaymentErrorCode: 'MANDATE_NOT_FOUND' | 'AMOUNT_EXCEEDS_LIMIT' | 'MERCHANT_MISMATCH' | ...

Fee Calculation

FeeMode controls how fees relate to the mandate amount:

  • 'markup' -- use for commerce. The amount is the agent's spending limit. Fees are added on top, so the user pays more than the stated amount. Choose this when the agent needs a specific budget (e.g., "buy an item for $100").
  • 'inclusive' -- use for fixed budgets. The amount is what the user is charged. Fees are deducted, so the agent's spending limit is less than the stated amount. Choose this for stipends, allowances, or any scenario where the user expects to pay an exact figure.
import type {
  FeeMode,
  FeeRegion,
  MandateFees,
  PreviewFeesRequest,
  PreviewFeesResponse,
  RegionalFeeStructure,
  RegionalFees,
  InclusiveFeeConfig,
  FeeBreakdown,
  InclusiveFeeResult,
} from '@attesso/types';

import { PROCESSING_FEES } from '@attesso/types';

// Pre-configured Revolut acquiring rates
PROCESSING_FEES.EEA // { variablePercent: 1.2, fixedCents: 20, currency: 'EUR' }
PROCESSING_FEES.US  // { variablePercent: 1.2, fixedCents: 30, currency: 'USD' }
PROCESSING_FEES.UK  // { variablePercent: 1.2, fixedCents: 20, currency: 'GBP' }

For fee calculation logic, see @attesso/rails.

Users

import type {
  User,
  BankAccount,
  AuthChallengeRequest,
  AuthChallengeResponse,
  AuthTokenResponse,
} from '@attesso/types';

Package Compatibility

This package is used by:

  • @attesso/sdk -- Client SDK
  • @attesso/mcp -- MCP server

Requirements

  • TypeScript 5.0+

Links

License

MIT