import type { z } from "zod"; import type { CreateSmithersApi } from "../CreateSmithersApi"; type Equal = (() => T extends A ? 1 : 2) extends () => T extends B ? 1 : 2 ? true : false; type Assert = T; type Api = CreateSmithersApi<{ input: z.ZodObject<{ prompt: z.ZodString }>; }>; type Ctx = Parameters[0]>[0]; type _PromptIsString = Assert>; // @ts-expect-error input.foo is not declared by the workflow input schema. type _MissingFoo = Ctx["input"]["foo"];