/** * `weft.workflows.get` operation + REST binding. * * Returns a workflow's state by id. REST response shape preserves the * historical format: 200 with the serialized `WorkflowState`, or a 4xx/5xx * with the string `error` plus audited structured `data`. * * @module server/operations/get-workflow */ import { z } from 'zod'; import type { WorkflowState } from '../../core/types.ts'; import type { UnknownRestBinding } from '../rest-bindings.ts'; declare const getWorkflowInput: z.ZodObject<{ workflowId: z.ZodString; }, z.core.$strip>; export type GetWorkflowInput = z.infer; export type GetWorkflowOutput = WorkflowState; export declare const getWorkflowOperation: import("../operation-catalog.ts").OperationDefinition<{ workflowId: string; }, WorkflowState, unknown>; /** * RestBinding for `GET /v1/workflows/:id`. Pulls the workflow id from * the path param, invokes the operation, maps success/fault to the * REST response shape. * * Typed as `UnknownRestBinding` at the module boundary so the router's * heterogeneous `ReadonlyArray` storage doesn't * run into `exactOptionalPropertyTypes` contravariance on * the binding shape. The router itself only sees a shape-uniform * `RestBinding`. */ export declare const getWorkflowRestBinding: UnknownRestBinding; export {};