@trinsic/api
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

Trinsic API TypeScript Library

Version Build Status

The Trinsic API TypeScript library provides convenient access to the Trinsic API from applications written in server-side JavaScript/TypeScript.

Documentation

See the Trinsic docs for more detailed information on how to start integrating with our identity acceptance network.

Installation

Install the package with:

npm install @trinsic/api

Usage

The package needs to be configured with your app's access token, which is available in the Trinsic Dashboard.

import { AttachmentsApi, Configuration, NetworkApi, SessionsApi } from "@trinsic/api";

const config = new Configuration({ accessToken: "your-access-token" });

const attachments = new AttachmentsApi(config);
const network = new NetworkApi(config);
const sessions = new SessionsApi(config);

const session = await sessionsApi.createWidgetSession();

You can find a full TypeScript server example in the samples folder.

SDK Versioning

Our SDKs follow the Semantic Versioning ("SemVer") scheme.

For example, the version number 1.13.0 has a major version of 1, a minor version of 13, and a patch version of 0.

Breaking changes are only introduced alongside a new major version.

Support

Any issues, inquiries, and feature requests can be sent to support@trinsic.id, or feel free to open a GitHub issue here.

More Information

Readme

Keywords

none

Package Sidebar

Install

npm i @trinsic/api

Homepage

trinsic.id

Weekly Downloads

34

Version

2.0.3

License

MIT

Unpacked Size

874 kB

Total Files

368

Last publish

Collaborators

  • janpieterz