import type { SchemaBase } from './dsl.js'; // A pure descriptor of one method invocation (e.g. payDao.insert). // No args/results — the invocation stays natural language for now. // SequenceSchema is the ordered list of such invocations. export interface MethodSchema extends SchemaBase { /** Owning schema name, e.g. 'payDao'. */ owner: string; } export type SequenceSchema = MethodSchema[]; export function defineMethod(options: { name: string; owner: string; description?: string; }): MethodSchema { return { name: options.name, owner: options.owner, description: options.description }; }