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

@smartytalent/api-client

v0.9.5

Published

TypeScript API client generated from SmartyTalent OpenAPI spec

Readme

@smartytalent/api-client

npm version npm downloads

TypeScript client for the SmartyTalent recruitment API, auto-generated from the OpenAPI spec using openapi-generator-cli with the typescript-fetch template.

Fully typed requests, responses, and models. Works in Node.js 18+, modern browsers, and edge runtimes that support the Fetch API.

Install

npm install @smartytalent/api-client
# or
pnpm add @smartytalent/api-client
# or
yarn add @smartytalent/api-client

Quick start

import { Configuration, TenantsApi } from '@smartytalent/api-client'

const config = new Configuration({
  basePath: 'https://api.smartytalent.example.com',
  apiKey: `Bearer ${process.env.SMARTYTALENT_TOKEN}`,
})

const tenantsApi = new TenantsApi(config)

const tenants = await tenantsApi.listTenants({ filterStatus: 'active' })
console.log(tenants)

Authentication

The API uses Bearer token auth. Pass the full Authorization header value (including the Bearer prefix) as apiKey:

const config = new Configuration({
  basePath: 'https://api.smartytalent.example.com',
  apiKey: `Bearer ${accessToken}`,
})

apiKey also accepts a function for dynamic token resolution (useful for refresh flows):

const config = new Configuration({
  basePath: '...',
  apiKey: (name) => `Bearer ${getFreshToken()}`,
})

API surface

The client exposes one class per API tag. Available API classes include:

ActionsApi, AdsApi, ApikeysApi, AssessmentsApi, BrowsersApi, CallsApi, CandidatesApi, ChatsApi, ConversationsApi, EmailsApi, FilesApi, FindersApi, FormsApi, JobsApi, LinksApi, MeetingsApi, NotesApi, NotificationsApi, OperationsApi, PersonasApi, ReportsApi, RolesApi, RunsApi, TalentsApi, TenantsApi, TranslationsApi, TriggersApi, UsersApi, WebhooksApi, WorkflowsApi.

All request/response DTOs are exported as TypeScript interfaces from the package root.

Deep imports

Tree-shakeable deep imports are supported via the exports map:

import { JobsApi } from '@smartytalent/api-client/apis/JobsApi'
import type { Tenant } from '@smartytalent/api-client/models/Tenant'

Configuration options

Configuration accepts:

| Option | Type | Description | | ---------------- | ----------------------------------------- | ----------------------------------------------- | | basePath | string | API base URL | | apiKey | string \| (name: string) => string | Authorization header value | | accessToken | string \| (name, scopes) => string | OAuth2 bearer token | | fetchApi | typeof fetch | Custom fetch implementation | | middleware | Middleware[] | Request/response interceptors | | headers | Record<string, string> | Default headers on every request | | queryParamsStringify | (params) => string | Custom query-string serializer | | credentials | RequestCredentials | CORS credentials mode |

Middleware

const config = new Configuration({
  basePath: '...',
  middleware: [{
    pre: async (ctx) => {
      console.log(ctx.url, ctx.init)
    },
    post: async (ctx) => {
      if (!ctx.response.ok) console.error('API error', ctx.response.status)
    },
  }],
})

Error handling

Non-2xx responses throw a ResponseError (also exported from the package) that exposes the underlying Response:

import { ResponseError } from '@smartytalent/api-client'

try {
  await tenantsApi.getTenant({ id: '...' })
} catch (err) {
  if (err instanceof ResponseError) {
    console.error(err.response.status, await err.response.text())
  }
  throw err
}

Versioning

This package is auto-published on every update to the OpenAPI spec. Version numbers are synchronized across all @smartytalent/* packages so you can safely pin them to the same version.

License

Licensed under the Apache License, Version 2.0.

Copyright © 2026 SmartyTalent (SmartyMeet sp. z o.o.)