Function: useAgentApprovals()
@roomful/solid / useAgentApprovals
Function: useAgentApprovals()
Section titled “Function: useAgentApprovals()”useAgentApprovals<
TPresence>(options?):UseAgentApprovalsResult
Defined in: solid/src/index.ts:1230
Subscribes to the room’s agent-approval workflow: agents propose actions and humans approve or
reject them. Exposes the proposal list (proposals and derived pending, newest first) plus the
approve/reject/propose decision controls.
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”The proposals and pending accessors plus approve/reject/propose.