@suluk/cost - v0.2.0
    Preparing search index...

    Interface CostSettlement

    @suluk/cost — cost as a contract facet + runtime metering. You can't price a user without knowing what they cost you. So: declare per-operation cost (incl. third-party usage) on the contract — it bubbles into the v4 doc, Scalar, and the audit; meter the ACTUAL cost per request at runtime, traced from the frontend action down to each third party; and read the raw per-user picture from the ledger. We display the data as it is and let you build pricing on top (Stripe via @suluk/stripe). CANDIDATE tooling — NOT official OAS.

    interface CostSettlement {
        method: SettlementMethod;
        credits?: number;
        overflow?: "credit" | "deny";
    }
    Index

    Properties

    credits?: number

    method:"credit" — the credits debited per call (a non-negative integer). Omitted ⇒ derived from estimateMicroUsd × the operator's credit rate (a runtime concern, not declared here).

    overflow?: "credit" | "deny"

    method:"rate-limited" — what happens when the free cap (x-suluk-ratelimit) is exhausted: refuse, or fall back to charging credits. Advisory; the runtime enforces it.