Skip to content

Node.js SDK

Installation

npm install @scalekit-sdk/node
v2.1.9 TypeScript ESM Ready
Updated 2 days ago
Initialize the client
import { ScalekitClient } from '@scalekit-sdk/node';
const scalekit = new ScalekitClient(
process.env.SCALEKIT_ENVIRONMENT_URL,
process.env.SCALEKIT_CLIENT_ID,
process.env.SCALEKIT_CLIENT_SECRET
);
export default scalekit;

v2.1.9

What's Changed

New Contributors

Release Notes

Version 2.1.9

New Feature: Domain List API Type Filtering

Added optional type filtering to listDomains() method. Filter domains by ALLOWED_EMAIL_DOMAIN or ORGANIZATION_DOMAIN type.

API:

// List all domains (no filter)
await client.domain.listDomains('org_123456');

// Filter by type
await client.domain.listDomains('org_123456', {
  domainType: DomainType.ALLOWED_EMAIL_DOMAIN  // or 'ORGANIZATION_DOMAIN'
});

Highlights:

  • ✅ Fully backward compatible
  • ✅ Supports enum and string values
  • ✅ Comprehensive test coverage
  • ✅ No migration required

Changes

Added:

  • Type filtering parameter in listDomains()
  • resolveDomainType() helper method
  • Test coverage for all filtering scenarios

Improved:

  • Error messages for invalid domain types
  • Type safety for domain parameters

Migration

No migration needed - existing code works unchanged. The domainType parameter is optional.


Documentation: Domain API Docs

Full Changelog: v2.1.8...v2.1.9

v2.1.8

What's Changed

  • Bump js-yaml from 3.14.1 to 3.14.2 in #127
  • Add WebAuthn support in #130
  • Bump qs from 6.13.0 to 6.14.1 in #134

Full Changelog: v2.1.7...v2.1.8

v2.1.7

What's Changed

  • Add upsertUserManagementSettings method to OrganizationClient in #128

Full Changelog: v2.1.6...v2.1.7

v2.1.6

What's Changed

*Generate proto files to support given_name and family_name in user object in #126

Full Changelog: v2.1.5...v2.1.6

v2.1.5

What's Changed

  • add verifyInterceptorPayload method in #119

Full Changelog: v2.1.4...v2.1.5

v2.1.4

What's Changed

  • Add session management sdk methods #111

Full Changelog: v2.1.3...v2.1.4

v2.1.3

Enchancements

  • Add getDomain and deleteDomain methods to DomainClient by @dhaneshbs in #108
  • Add role and permission management sdk methods

v2.1.1

What's Changed

  • Add domainType option to createDomain method and updated proto files by @dhaneshbs in #107

Full Changelog: v2.1.0...v2.1.1

v2.1.0

What's Changed

  • Update Error Handling for Node SDK by @dhaneshbs in #105
  • Rename sendActivationEmail to sendInvitationEmail and add resendInvite sdk method by @dhaneshbs in #106

Full Changelog: v2.0.1...v2.1.0

v2.0.1

What's Changed

  • Implemented issuer, audience, and scope validation in tokens by @dhaneshbs in #103

Full Changelog: v2.0.0...v2.0.1