Skip to content

MeteredFeature

Defined in: src/catalog.ts:81

A consumption counter that resets (API calls, tokens, exports per month).

Property Type Description Inherited from Defined in
creditCost? Record<string, number> Draw from credit pools instead of (or in addition to) a plan limit: { ai_credits: 0.5 } charges 0.5 credits per unit consumed. - src/catalog.ts:88
description? string - FeatureCommon.description src/catalog.ts:65
hidden? boolean Hide from pricing tables and the customer portal. FeatureCommon.hidden src/catalog.ts:71
kind "metered" - - src/catalog.ts:82
metadata? JsonObject - FeatureCommon.metadata src/catalog.ts:72
metering? MeteringMode "buffered" decides locally and writes behind (ADR 0006). Default "strict". - src/catalog.ts:90
name? string Display name (defaults to the key). FeatureCommon.name src/catalog.ts:64
reset ResetInterval - - src/catalog.ts:83
thresholds? number[] Usage ratios that fire onThreshold once per period. Default [0.8, 1]. - src/catalog.ts:92
unit? string Singular unit label, e.g. "seat", "call". FeatureCommon.unit src/catalog.ts:67
units? string Plural unit label. Default: unit + "s". FeatureCommon.units src/catalog.ts:69