UNPKG

business-as-code

Version:

Primitives for expressing business logic and processes as code

36 lines 2.45 kB
/** * business-as-code/finance — the outcome-contract economic substrate. * * Source of truth for the economic primitives of the agentic economy: * Money/Cost/Budget value types, Account/Card/Ledger/Identity payment types, * Pricing, OutcomeContract, ProofPredicate, SLAPolicy, RefundContract, * AuthorityBoundary, and the FinanceProvider/Merchant ports. * * Finance is foundational here because it is the core of the default OKRs * (Revenue / Growth / Profit). `services-as-software` and `digital-tools` * consume these primitives directly from here. * * Importable via the `business-as-code/finance` subpath export. * * @packageDocumentation */ export type { FiatCurrency, StablecoinCurrency, CryptoCurrency, Currency, Money, Cost, Budget, BudgetScope, SpendControl, CostModel, } from './types.js'; export type { Account, AccountSpec, TransferOpts, TransferResult } from './account.js'; export type { Card, CardSpec } from './card.js'; export type { LedgerEntry, LedgerLine } from './ledger.js'; export type { AgentIdentity, AgentMerchant } from './identity.js'; export type { ProofPredicate } from './proof-predicate.js'; export { SchemaMatch, EvaluatorPass, HumanSign, External, LoadBearingPass, OverallFloor, UnmetRequirementsPass, AND, OR, } from './proof-predicate.js'; export type { OutcomeContract, OutcomeContractBase, OutcomeContractWithExpiresAt, OutcomeContractWithTimeoutDays, OutcomeContractWithTiers, ProofOfResult, } from './outcome-contract.js'; export { resolveOutcomeAmount } from './outcome-contract.js'; export type { SLAPolicy, SLATarget } from './sla.js'; export type { RefundContractRef } from './refund.js'; export { RefundContracts } from './refund.js'; export type { AuthorityBoundaryRef } from './authority.js'; export { AuthorityBoundaries } from './authority.js'; export type { OutcomeTier, PerInvocationTier, MeteredEntry, CompositeBase, SubscriptionPlan, PercentOfBasis, } from './pricing.js'; export { Pricing, money } from './pricing.js'; export type { Pricing as PricingValue } from './pricing.js'; export type { FinanceProvider, ProviderCapabilities, ProviderRail, ChargeOpts, ChargeResult, RefundResult, EscrowHandle, ReleaseResult, SubscribeOpts, Subscription, MeterEvent, } from './port.js'; export type { MerchantCapable, PriceInterval, ProvisionProductOpts, ProvisionedProduct, CheckoutOpts, CheckoutSession, PayoutOpts, PayoutResult, } from './merchant.js'; //# sourceMappingURL=index.d.ts.map