Skip to content

CapabilityGrant

stable

Single permission grant card with conditions (time-bounded, value-bounded, approval-gated), audit trail toggle, and revoke trigger

Human-in-the-Loop/Storybook ↗
import { CapabilityGrant } from "@nodus/design-system/patterns"
Loading demo…

Props

grantIdrequired
Type stringDefault

Unique grant identifier.

agentNamerequired
Type stringDefault

Agent receiving the grant.

capabilityrequired
Type stringDefault

Capability name (e.g. TRANSACT).

scoperequired
Type stringDefault

Resource scope (e.g. treasury/accounts/*).

statusrequired
Type 'active' | 'conditional' | 'revoked' | 'expired'Default

Grant status.

grantedByrequired
Type stringDefault

Granting authority display name.

grantedAtrequired
Type stringDefault

ISO timestamp of grant issuance.

conditions
Type GrantCondition[]Default

Array of grant conditions.

auditTrail
Type ProvenanceStep[]Default

Audit events as ProvenanceChain steps.

onRevoke
Type (grantId: string) => voidDefault

Shows revoke button for active/conditional grants.

Metadatasemantictypebordersurface
Design Rationale

This component was designed to express:

Explore Related

Was this helpful?