Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

@playbookmedia/email-verification-typescript-sdk

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@playbookmedia/email-verification-typescript-sdk

Playbook Media Email Verification SDK for interacting with the Email Verification API

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

Vector Email Verification Service TypeScript Client SDK

npm package Build Status Downloads Issues Code Coverage Semantic Release

Official TypeScript SDK for Vector's Backend Services

Overview

This package provides a modern, type-safe TypeScript client for interacting with Vector's Email Verification Service. Built with TypeScript and following best practices, it offers a seamless integration experience with comprehensive type definitions and Promise-based APIs.

Features

  • 🔒 Type Safety: Full TypeScript support with comprehensive type definitions
  • 🚀 Modern Architecture: Promise-based API with async/await support
  • 🛡️ Error Handling: Built-in error handling and retry mechanisms
  • 📦 Zero Dependencies: Minimal production dependencies
  • 🔄 Automatic Retries: Smart retry logic for failed requests
  • 📚 Rich Documentation: Extensive documentation and examples
  • IDE Support: Great IDE integration with TypeScript

Installation

# Using npm
npm install @playbookmedia/email-verification-typescript-sdk

# Using yarn
yarn add @playbookmedia/email-verification-typescript-sdk

# Using pnpm
pnpm add @playbookmedia/email-verification-typescript-sdk

Quick Start

import { VectorClient } from '@playbookmedia/email-verification-typescript-sdk';

// Initialize the client
const client = new VectorClient({
  apiKey: 'your-api-key',
  environment: 'production' // or 'staging'
});

// Example: Using the client
async function example() {
  try {
    // Make API calls
    const response = await client.someEndpoint({
      // request parameters
    });

    console.log('Response:', response);
  } catch (error) {
    if (error instanceof VectorAPIError) {
      console.error('API Error:', error.message);
      console.error('Status:', error.status);
      console.error('Code:', error.code);
    } else {
      console.error('Unexpected error:', error);
    }
  }
}

API Reference

Client Configuration

interface VectorClientConfig {
  apiKey: string;
  environment?: 'production' | 'staging';
  timeout?: number;
  retryConfig?: {
    maxRetries: number;
    initialDelayMs: number;
  };
}

Available Methods

  • client.method1(): Description of method 1
  • client.method2(): Description of method 2
  • More methods documented in our API Reference

Development

Prerequisites

  • Node.js >= 12.0
  • npm or yarn

Setup

  • Clone the repository:

    git clone https://github.com/VectorEngineering/vector-protobuf-definitions.git
    cd vector-protobuf-definitions/sdk/client/client-typescript-sdk
    
  • Install dependencies:

    npm install
    

Available Scripts

  • npm run build - Builds the package using TypeScript
  • npm run clean - Removes build artifacts
  • npm run test - Runs tests with Jest
  • npm run lint - Lints code using ESLint
  • npm run format - Formats code using Prettier
  • npm run typecheck - Runs TypeScript type checking
  • npm run semantic-release - Handles semantic versioning and releases

Testing

# Run all tests
npm test

# Run tests in watch mode
npm run test:watch

# Generate coverage report
npm run test:coverage

Contributing

We welcome contributions! Please follow these steps:

  • Fork the repository
  • Create your feature branch: git checkout -b feature/amazing-feature
  • Commit your changes: npm run cm (uses Commitizen)
  • Push to the branch: git push origin feature/amazing-feature
  • Open a Pull Request

Support

License

MIT © [Vector Engineering]

Keywords

boilerplate

FAQs

Package last updated on 29 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts