Skip to content

Interface: AgentApprovalsStore

@roomful/svelte


@roomful/svelte / AgentApprovalsStore

Defined in: packages/svelte/src/index.ts:509

Readable store of the room’s agent-approval proposals (newest first) augmented with a reactive pending sub-store and the approve/reject/propose controls. The store’s value updates on any local or remote proposal change.

approve: (id) => void

Defined in: packages/svelte/src/index.ts:519

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

Defined in: packages/svelte/src/index.ts:514

A readable store of the pending proposals awaiting a decision (newest first).


propose: (input) => AgentProposal

Defined in: packages/svelte/src/index.ts:529

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: packages/svelte/src/index.ts:524

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

subscribe(this, run, invalidate?): Unsubscriber

Defined in: node_modules/.pnpm/svelte@4.2.20/node_modules/svelte/types/index.d.ts:1619

Subscribe on value changes.

void

Subscriber<AgentProposal[]>

subscription callback

Invalidator<AgentProposal[]>

cleanup callback

Unsubscriber

Readable.subscribe