@oneclick.dev/sdk
Version:
The OneClick Studio SDK
20 lines (19 loc) • 532 B
TypeScript
import type { FlowOptions } from '../types';
declare class FlowClient {
private endpoint;
private key;
private project;
constructor(config: {
endpoint: string;
key: string;
project: string;
});
/**
* Fires a flow by name with optional dynamic parameters.
*
* @param flowName The name/slug of the flow to trigger
* @param payload Any dynamic data to pass to the flow
*/
fire({ flowName, payload }: FlowOptions): Promise<void>;
}
export default FlowClient;