/** * This file was generated by @pikku/cli@0.12.54 */ /** * Workflow type map with input/output types for each workflow */ // Addon package Workflow maps import type { WorkflowMap as ConsoleWorkflowMap } from '@pikku/addon-console/.pikku/workflow/pikku-workflow-map.gen.d.js' interface WorkflowHandler { input: I; output: O; } interface GraphNodeHandler { input: I; } export type WorkflowMap = { }; export type GraphsMap = { }; type PrefixWorkflowKeys = unknown extends T ? {} : { [K in keyof T as `${Prefix}:${string & K}`]: T[K] } export type FlattenedWorkflowMap = WorkflowMap & PrefixWorkflowKeys export type WorkflowClient = { start: (input: FlattenedWorkflowMap[Name]['input']) => Promise<{ runId: string }>; getRun: (runId: string) => Promise; cancelRun: (runId: string) => Promise; } export type TypedWorkflowClients = { [Name in keyof FlattenedWorkflowMap]: WorkflowClient; }