Interface: AgentApprovalsStore
@roomful/svelte / AgentApprovalsStore
Interface: AgentApprovalsStore
Section titled “Interface: 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.
Extends
Section titled “Extends”Readable<AgentProposal[]>
Properties
Section titled “Properties”approve()
Section titled “approve()”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.
Parameters
Section titled “Parameters”string
The proposal id.
Returns
Section titled “Returns”void
pending
Section titled “pending”pending:
Readable<AgentProposal[]>
Defined in: packages/svelte/src/index.ts:514
A readable store of the pending proposals awaiting a decision (newest first).
propose()
Section titled “propose()”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.
Parameters
Section titled “Parameters”The action type and optional payload.
payload?
Section titled “payload?”unknown
string
Returns
Section titled “Returns”The created proposal.
reject()
Section titled “reject()”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.
Parameters
Section titled “Parameters”string
The proposal id.
Returns
Section titled “Returns”void
Methods
Section titled “Methods”subscribe()
Section titled “subscribe()”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.
Parameters
Section titled “Parameters”void
Subscriber<AgentProposal[]>
subscription callback
invalidate?
Section titled “invalidate?”Invalidator<AgentProposal[]>
cleanup callback
Returns
Section titled “Returns”Unsubscriber
Inherited from
Section titled “Inherited from”Readable.subscribe