artifacts
ArtifactStoreReader | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifacts.get
(uri: string) => { handle: ResourceHandle; value: Record<string, unknown>; } | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifacts.get().return.handle
ResourceHandle | unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifacts.get().return.value
Record<string, unknown> | unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifacts.get(uri)
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifacts.list
(filter?: { kind?: ResourceHandleKind; }) => ResourceHandle[] | unitless by name | Required / declared member No @default declared; consult the signature and description. |
artifacts.list(filter)
{ kind?: ResourceHandleKind; } | undefined | unitless by name | Optional No @default declared; consult the signature and description. |
artifacts.list(filter).kind
ResourceHandleKind | unitless by name | Optional No @default declared; consult the signature and description. |
budgets
{ maxInputBytes: number | null; deadlineMs: number | null; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
budgets.deadlineMs
number | null | milliseconds | Required / declared member No @default declared; consult the signature and description. |
budgets.maxInputBytes
number | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
capabilities
readonly string[] | What the caller holds (Stage 7B.2 Decision 9); the runtime refused the call already when a required one is missing. unitless by name | Required / declared member No @default declared; consult the signature and description. |
seed
number | null | The resolved seed for a stochastic call (the seed policy injects the default when absent); `null` for a deterministic call. unitless by name | Required / declared member No @default declared; consult the signature and description. |
signal
OperationSignal | null | Cooperative cancellation for job-class operations; `null` for an inline run. unitless by name | Required / declared member No @default declared; consult the signature and description. |
signal.aborted
boolean | unitless by name | Required / declared member No @default declared; consult the signature and description. |
signal.reason
unknown | unitless by name | Optional No @default declared; consult the signature and description. |
stores
{ authorization: AuthorizationStore | null; journal: ExecutionJournalStore | null; } | The trade lifecycle's stores (Decision 10), explicit parameters of the runtime — never session state. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization
AuthorizationStore | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume
(input: import('@insiderfinance/totalfinance/workflows').GrantConsumption & { hashOrUri: string; }) => import('@insiderfinance/totalfinance/workflows').GrantConsumption | Atomically claim the grant with its validated write-ahead batch before journal commit.
Idempotent only for the same store, receipt, key and batch; all other claims refuse. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume().return.consumedTimestampMs
number | epoch milliseconds (UTC instant) | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume().return.idempotencyKey
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume().return.journalEvents
readonly import('@insiderfinance/totalfinance/portfolio').ExecutionJournalEvent[] | Write-ahead event batch: recovery replays these exact facts, never the fill engine. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume().return.journalId
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume().return.journalStoreId
string | Opaque identity of the authoritative store, retained across file-store restarts. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume().return.receiptId
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume(input)
import('@insiderfinance/totalfinance/workflows').GrantConsumption & { hashOrUri: string; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume(input).consumedTimestampMs
number | epoch milliseconds (UTC instant) | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume(input).hashOrUri
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume(input).idempotencyKey
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume(input).journalEvents
readonly import('@insiderfinance/totalfinance/portfolio').ExecutionJournalEvent[] | Write-ahead event batch: recovery replays these exact facts, never the fill engine. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume(input).journalId
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume(input).journalStoreId
string | Opaque identity of the authoritative store, retained across file-store restarts. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.consume(input).receiptId
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get
(hashOrUri: string) => { handle: ResourceHandle; grant: import('@insiderfinance/totalfinance/portfolio').AuthorizationGrant; consumed: import('@insiderfinance/totalfinance/workflows').GrantConsumption | null; } | null | The grant by content hash (or handle uri) with its consumption (null while unconsumed), or null. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get().return.consumed
import('@insiderfinance/totalfinance/workflows').GrantConsumption | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get().return.consumed.consumedTimestampMs
number | epoch milliseconds (UTC instant) | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get().return.consumed.idempotencyKey
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get().return.consumed.journalEvents
readonly import('@insiderfinance/totalfinance/portfolio').ExecutionJournalEvent[] | Write-ahead event batch: recovery replays these exact facts, never the fill engine. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get().return.consumed.journalId
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get().return.consumed.journalStoreId
string | Opaque identity of the authoritative store, retained across file-store restarts. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get().return.consumed.receiptId
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get().return.grant
import('@insiderfinance/totalfinance/portfolio').AuthorizationGrant | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get().return.handle
ResourceHandle | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.get(hashOrUri)
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.list
() => ResourceHandle[] | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put
(input: { grant: import('@insiderfinance/totalfinance/portfolio').AuthorizationGrant; createdTimestampMs: EpochMs; }) => ResourceHandle | Store a grant under its content hash; idempotent (the first put stands). Returns its handle. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put().return.contentHash
string | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put().return.createdTimestampMs
number | When the store minted the handle — the caller's clock in epoch ms, never the library's. epoch milliseconds (UTC instant) | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put().return.expiresTimestampMs
number | null | When the stored value stops being served, epoch ms; null = never. epoch milliseconds (UTC instant) | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put().return.kind
ResourceHandleKind | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put().return.provenance
Provenance | Caller-supplied provenance, preserved verbatim. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put().return.schema
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put().return.uri
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put().return.version
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put(input)
{ createdTimestampMs: EpochMs; grant: import('@insiderfinance/totalfinance/portfolio').AuthorizationGrant; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put(input).createdTimestampMs
number | epoch milliseconds (UTC instant) | Required / declared member No @default declared; consult the signature and description. |
stores.authorization.put(input).grant
import('@insiderfinance/totalfinance/portfolio').AuthorizationGrant | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal
ExecutionJournalStore | null | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.append
(input: { events: readonly import('@insiderfinance/totalfinance/portfolio').ExecutionJournalEvent[]; }) => { journalId: string; appended: number; skipped: number; total: number; } | Append atomically; identical eventId/body retries are skipped, conflicting bodies refused. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.append().return.appended
number | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.append().return.journalId
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.append().return.skipped
number | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.append().return.total
number | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.append(input)
{ events: readonly import('@insiderfinance/totalfinance/portfolio').ExecutionJournalEvent[]; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.append(input).events
readonly import('@insiderfinance/totalfinance/portfolio').ExecutionJournalEvent[] | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.list
() => string[] | Every journal id, sorted. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.read
(journalId: string) => import('@insiderfinance/totalfinance/portfolio').ExecutionJournalEvent[] | Every event of a journal in append order (empty for an unknown journal). unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.read(journalId)
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.storeId
string | Stable opaque storage identity. Fresh stores differ; reopening a file store retains it. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.transact
<T>(input: { journalId: string; execute: (prior: readonly import('@insiderfinance/totalfinance/portfolio').ExecutionJournalEvent[]) => { events: readonly import('@insiderfinance/totalfinance/portfolio').ExecutionJournalEvent[]; result: T; }; }) => T | Serialize restoration, idempotency checks, identity allocation and commit for one journal.
`execute` is synchronous and receives a detached snapshot. Its events are a newly appended
batch (possibly empty), committed before result is returned. Exceptions commit nothing.
Do not nest transactions/append on the same journal; read does not acquire another lock. unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.transact(input)
{ execute: (prior: readonly import('@insiderfinance/totalfinance/portfolio').ExecutionJournalEvent[]) => { events: readonly import('@insiderfinance/totalfinance/portfolio').ExecutionJournalEvent[]; result: T; }; journalId: string; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.transact(input).execute
(prior: readonly import('@insiderfinance/totalfinance/portfolio').ExecutionJournalEvent[]) => { events: readonly import('@insiderfinance/totalfinance/portfolio').ExecutionJournalEvent[]; result: T; } | unitless by name | Required / declared member No @default declared; consult the signature and description. |
stores.journal.transact(input).journalId
string | unitless by name | Required / declared member No @default declared; consult the signature and description. |