SellerServiceOptions
@totemsdk/edge / SellerServiceOptions
Interface: SellerServiceOptions
Properties
limits?
optionallimits?:Partial<NegotiationLimits>
Default negotiation limits.
manifest?
optionalmanifest?:SignedManifest<Manifest>
Standing service manifest (for computing manifestId when opening a negotiation).
negotiationStore
negotiationStore:
NegotiationStore
Durable negotiation store.
now?
optionalnow?: () =>number
Current time (for deterministic tests).
Returns
number
onEvent?
optionalonEvent?: (event) =>void
Event sink.
Parameters
event
Returns
void
onOutboundEnqueued?
optionalonOutboundEnqueued?: () =>Promise<void>
Optional hook invoked after a message is enqueued to the durable outbox. The runtime uses this to trigger an immediate outbox drain over the wire.
Returns
Promise<void>
outboxStore
outboxStore:
OutboxStore
Durable outbox store.
principal
principal:
string
Authenticated principal (root identity) that owns this seller service.
principalStore
principalStore:
PrincipalNegotiationStore
Durable principal anti-abuse store.
replayLedger
replayLedger:
ReplayLedger
Durable replay ledger.
sign
sign:
Signer
Signature creation (WOTS).
strategy
strategy:
SellerStrategy
Seller bargaining strategy.
txpow
txpow:
EdgeTxPowAdapter
TxPoW adapter (work admission).
usageStatementLog?
optionalusageStatementLog?:UsageStatementLogStore
Optional durable log of reconciled usage statements (Phase 3a accounting
fold). When provided, an inbound usage.statement is recorded exactly
once per statementId. When absent, the seller refuses to reconcile
statements (no silent accounting).
verifySignature
verifySignature:
SignatureVerifier
Signature verification (WOTS).
verifyUsageStatementAgreement?
optionalverifyUsageStatementAgreement?: (params) =>boolean|Promise<boolean>
Optional agreement cross-check for inbound usage statements: return true
when agreementId was negotiated by this seller with buyer. When
absent, statements are recorded without an agreement cross-check (the
fold is advisory; reimbursement/settlement stays per the agreement).
Parameters
params
agreementId
string
buyer
string
requestId
string
Returns
boolean | Promise<boolean>
workPolicy
workPolicy:
EdgeWorkPolicy
Edge work policy.