Skip to content

Interface: UseAgentApprovalsResult

@roomful/react


@roomful/react / UseAgentApprovalsResult

Defined in: react/src/index.ts:378

Describes the return value of useAgentApprovals.

approve: (id) => void

Defined in: react/src/index.ts:392

Approves a pending proposal (if permitted) and broadcasts the decision.

Approves a pending proposal (if permitted) and broadcasts the decision.

string

The proposal id.

void


pending: AgentProposal[]

Defined in: react/src/index.ts:387

The proposals still awaiting a decision, newest first.


proposals: AgentProposal[]

Defined in: react/src/index.ts:382

Every proposal, newest first. Reactive: re-renders on any local or remote change.


propose: (input) => AgentProposal

Defined in: react/src/index.ts:402

Proposes an action for approval and broadcasts it as pending.

Proposes an action for approval and broadcasts it to peers as pending.

The action type and optional payload.

unknown

string

AgentProposal

The created proposal.


reject: (id) => void

Defined in: react/src/index.ts:397

Rejects a pending proposal (if permitted) and broadcasts the decision.

Rejects a pending proposal (if permitted) and broadcasts the decision.

string

The proposal id.

void