📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

@emergentmethods/flowdapt-ts-sdk

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emergentmethods/flowdapt-ts-sdk

Rest API Client for Flowdapt

1.0.7
latest
Source
npm
Version published
Weekly downloads
3
50%
Maintainers
0
Weekly downloads
 
Created
Source

Flowdapt TypeScript SDK

This is the official TypeScript SDK for the Flowdapt API. It provides a simple way to programmatically interact with Flowdapt in TypeScript. It is asynchronous and uses fetch as the underlying HTTP client but is written in a way that allows you to override and use your own HTTP client.

Installation

npm install @emergentmethods/flowdapt-ts-sdk

Usage

import { FlowdaptSDK } from '@emergentmethods/flowdapt-ts-sdk'

async function main() {
  const client = new FlowdaptSDK()

  console.log(await client.ping())

  const workflows = await client.workflows.listWorkflows({
    version: 'v1alpha1',
  })
  console.log(workflows)

  const workflow = await client.workflows.getWorkflow({
    identifier: 'my-workflow',
    version: 'v1alpha1',
  })
  console.log(workflow)

  const result = await client.workflows.runWorkflow({
    identifier: 'my-workflow',
    input: { x: 5 },
    wait: true,
    namespace: 'default',
    version: 'v1alpha1',
  })
  console.log(result)
}

Keywords

machine learning

FAQs

Package last updated on 02 Aug 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