Skip to content

IntentProvideDecl

An intent capability the app provides — a request/response RPC or a fire-and-forget event.

intent: string;

The intent name (e.g. customer.lookup).


optional kind?: "request" | "event";

Whether the intent is a request/response or an event. Defaults to request when omitted.


optional payloadSchema?: unknown;

JSON Schema describing the invoke payload, for discovery and validation tooling.


optional requiredPermission?: string;

Inert: kept in the type but read by nothing — user authorization is enforced at the provider’s backend.


optional resultSchema?: unknown;

JSON Schema describing the result, for discovery and validation tooling.


version: string;

The intent version this app implements (e.g. 1.0).