New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@or-sdk/hitl

Package Overview
Dependencies
Maintainers
0
Versions
603
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@or-sdk/hitl

  • 0.34.58
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
increased by40.77%
Maintainers
0
Weekly downloads
 
Created
Source

Installation:

$ npm i @or-sdk/hitl

Usage

Example for inside of a flow usage

const HitlApi = require('@or-sdk/hitl').HITL;

// with direct api url
const hitlApi = new HitlApi({
  token: `FLOW ${this.config.flowToken}`,
  hitlUrl: this.config.env.HITL_API_URL,
  hitlEksUrl: 'https://hitl.svc.<client-env>.api.onereach.ai', // need only for migrations
});

// with service discovery(slower)
const hitlApi = new HitlApi({
  token: `FLOW ${this.config.flowToken}`,
  discoveryUrl: this.config.env.SERVICE_DISCOVERY_API_URL,
});

const contactRuleGroupsList = await hitlApi.contactRuleGroups.searchContactRuleGroups();

After initializing HitL SDK various parts of the SDK become available to be used to make requests to HitL API (all available HitL API part could be found in the api folder)

Examples

Basic usage

const HitlApi = require('@or-sdk/hitl').HITL;

const { agents, cannedMessages, filters, migrations } = new HitlApi({
  token: `FLOW ${this.config.flowToken}`,
  discoveryUrl: this.config.env.SERVICE_DISCOVERY_API_URL,
});

await migrations.runAllMigrations();
const status = await migrations.getRunMigrationsStatus();
const agentsList = await agents.getAgents();
const cannedMessages = cannedMessages.getCannedMessages({ id });

FAQs

Package last updated on 31 Dec 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc