@adonis-agora/agent
Version:
Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.
11 lines • 718 B
TypeScript
/**
* Whether shield's CSRF check would reject a bare `POST` to `/<path>` (an MCP client sends no CSRF
* token). `false` when CSRF is off, `POST` is not a checked method, or `exceptRoutes` exempts the
* route: an array naming the pattern, or a function that answers `true` for a minimal context of
* that request. `'unknown'` when an `exceptRoutes` function throws on that minimal context: it may
* well block the path, so the caller warns.
*/
export declare function csrfBlocksPath(shield: unknown, path: string): boolean | 'unknown';
/** The boot warning for {@link csrfBlocksPath}. */
export declare function csrfWarning(path: string, verdict?: boolean | 'unknown'): string;
//# sourceMappingURL=csrf.d.ts.map