Function: useAgentApprovals()
@roomful/vue / useAgentApprovals
Function: useAgentApprovals()
Section titled “Function: 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.
Type Parameters
Section titled “Type Parameters”TPresence
Section titled “TPresence”TPresence extends PresenceData = PresenceData
The room presence shape.
Parameters
Section titled “Parameters”options?
Section titled “options?”AgentApprovalOptions
Optional configuration (permission hook).
Returns
Section titled “Returns”Readonly refs for the proposals and pending proposals plus approve/reject/propose.