AshTypescript.Manifest.Verifiers.VerifyRpc (ash_typescript v0.18.2)

Copy Markdown View Source

Validates the structural consistency of typescript_rpc configuration against the generated manifest.

Checks per RPC action:

  • The referenced action exists on the resource.
  • The action (and any read_action override) is public?: true.
  • :get? and :get_by options are coherent (read-only, mutually exclusive, get_by references real attributes).
  • :allowed_loads / :denied_loads are mutually exclusive.
  • RPC action / typed query / argument names are TypeScript-safe.
  • Each public relationship's destination has a public read action.

Also enforces cross-domain uniqueness of RPC action names and typed query names.

Reads rpc_configs (raw per-resource RPC config including typed_queries) from the manifest module's persisted state so resources that are reachability roots without rpc_actions still get their typed_queries validated.