/** * a2a/schema/validate.ts — structural validation against the vendored A2A * subset in types.ts. Dependency-free by design (no npm JSON-Schema * engine): this is small enough to hand-check field by field, and every * check cites the field it is checking so a mismatch is traceable back to * README.md's source. * * Used two ways: the server validates every AgentCard and Task it emits * (a bug that shapes an invalid card is worse when nothing notices), and * `aibroker a2a check` uses the same functions against an ARBITRARY * remote agent's card, which is what makes that command interoperability * tooling rather than a self-test. */ export interface ValidationResult { ok: boolean; errors: string[]; } /** * Spec 5.5 AgentCard Object. Checks only the fields this project sets — * see schema/README.md for what is deliberately out of scope. */ export declare function validateAgentCard(card: unknown): ValidationResult; /** Spec 6.1 Task Object + 6.2 TaskStatus Object + 6.3 TaskState Enum. */ export declare function validateTask(task: unknown): ValidationResult; /** Spec 6.4 Message Object — used to validate an inbound message/send params.message. */ export declare function validateMessage(msg: unknown): ValidationResult; //# sourceMappingURL=validate.d.ts.map