testing/cross_backend/action_manifest.ts view source
value + type
{ method: string; input: "object" | "void"; side_effects: boolean; account: "optional" | "none" | "required"; actor: "optional" | "none" | "required"; roles: string[]; credential_types: string[]; rate_limit: "both" | ... 2 more ... | null; } import {ActionManifestEntry} from '@fuzdev/fuz_app/testing/cross_backend/action_manifest.js'; One method's normalized RPC metadata — the cross-impl-comparable unit.
roles / credential_types are always present + sorted (an absent gate
and an empty list both serialize to []) so the diff never trips on a
undefined-vs-[] or declaration-order difference between impls; the
auth axes reuse the canonical AuthAxisState enum. rate_limit is
nullable rather than optional for the same reason — an unthrottled action
serializes an explicit null, so a missing key is drift, not a default.
method
RPC method name (spec.method).
type string
input
'void' when the input is a void schema (is_void_schema: s.void, a
parameterless method), else 'object' — the Rust spine's declared
InputShape, which its dispatcher enforces. An object({}) input is
'object'.
type "object" | "void"
side_effects
true when the action declares side_effects (mutation; POST-only on the RPC transport).
type boolean
account
type "optional" | "none" | "required"
actor
type "optional" | "none" | "required"
roles
Required roles (any-of), sorted; [] when the action declares no role gate.
type string[]
credential_types
Permitted credential channels, sorted; [] when ungated (any credential).
type string[]
rate_limit
Per-action rate-limit class, or null when the action declares none.
type "both" | "account" | "ip" | null