0.1.1 • Published 6 months ago
@identity-flow/sdk v0.1.1
@identity-flow/sdk
The code-first SDK to define workflows for IdentityFlow.
Introduction
The @identity-flow/sdk
package provides a comprehensive set of tools and utilities to enhance your workflow development experience with IdentityFlow. It includes all the necessary bindings and APIs to simplify the process of defining, executing, and managing workflows.
Installation
To install the package, use the following command:
npm add @identity-flow/sdk
Usage
Here is a basic example of how to use the SDK to define and execute a workflow:
import { defineWorkflow } from '@identity-flow/sdk';
export default defineWorkflow('myWorkflow', async (flow) => {
// Define your workflow logic here
return { result: 'success' };
});
Available Exports
The package exports the following modules:
- .: Defines a new workflow. See @identity-flow/api.
- ./bindings/graphql: Creates a GraphQL binding for use in workflows. See @identity-flow/binding-graphql.
- ./schemas: Provides schema validation utilities. See @identity-flow/api.
- ./valibot: Includes validation utilities. See valibot.
License
This project is licensed under the MIT License - see the LICENSE file for details.