Skip to content

Interface: UseAgentApprovalsResult

@roomful/vue


@roomful/vue / UseAgentApprovalsResult

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

Describes the return value of useAgentApprovals.

approve: (id) => void

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

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: ComputedRef<AgentProposal[]>

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

Exposes the proposals still awaiting a decision, newest first. Reactive: derived from proposals.


proposals: ReadonlyRef<AgentProposal[]>

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

Exposes every proposal, newest first. Reactive: updates on any local or remote change.


propose: (input) => AgentProposal

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

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: vue/src/index.ts:436

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