Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

ThreadSync Node.js SDK

npmlicense

Official Node.js / TypeScript SDK for the ThreadSync API.

Installation

Preview: SDKs are in preview and installed from GitHub. Registry packages (npm, PyPI, etc.) will be available at GA.

npm i github:threadsync-infrastructure/threadsync-node

Quick Start

import{ThreadSync}from'@threadsync/sdk';constclient=newThreadSync({bearerToken: 'YOUR_API_KEY'});// Create a connectionconstconnection=awaitclient.connections.create('salesforce',{credentials: {username: 'user@example.com',password: 'secret'}});// Set up a syncconstsync=awaitclient.sync.create({source: {connection: connection.id,object: 'Contact'},destination: {connection: 'dest-conn-id',table: 'contacts'},schedule: 'realtime',});console.log(`Sync started: ${sync.id}`);

API Reference

new ThreadSync(config)

OptionTypeRequiredDescription
bearerTokenstringYesYour ThreadSync API key
baseUrlstringNoOverride the API base URL (default: https://api.threadsync.io/v1)

client.connections

MethodDescription
connections.create(provider, options?)Create a new connection
connections.get(id)Retrieve a connection by ID
connections.list()List all connections

client.sync

MethodDescription
sync.create(config)Create a new sync job
sync.get(id)Retrieve a sync by ID
sync.list()List all syncs

Links

License

MIT — see LICENSE

About

Official Node.js SDK for ThreadSync's LLM Gateway and Magic Runtime. Governed AI access across Claude, GPT, Gemini, Groq, and Perplexity with policy controls and per-request audit.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages