Skip to content

Function: useAgentApprovals()

@roomful/vue


@roomful/vue / useAgentApprovals

useAgentApprovals<TPresence>(options?): UseAgentApprovalsResult

Defined in: vue/src/index.ts:1402

Subscribes to the room’s agent-approval workflow: agents propose actions and humans approve/reject them, with every peer seeing the synced proposal list. Returns a reactive proposals ref (newest first) plus a derived pending ref and the decision actions.

TPresence extends PresenceData = PresenceData

The room presence shape.

AgentApprovalOptions

Optional configuration (permission hook).

UseAgentApprovalsResult

Readonly refs for the proposals and pending proposals plus approve/reject/propose.