Skip to content
Developer Preview

SubscriptionUsage

The one usage payload shape: the usage/read result’s usage member and the usage/changed params (ADR 32563 D2/D3). The numbers are point-in-time — observedAtMs is the host’s arrival stamp, so a client renders “as of”, never implies live data.

  • observedAtMs
  • tier
  • weekly
  • window
Source

schema/msp/experimental/msp.schema.json#/types/SubscriptionUsage

{
"description": "The one usage payload shape: the `usage/read` result's `usage` member and\nthe `usage/changed` params (ADR 32563 D2/D3). The numbers are\npoint-in-time — `observedAtMs` is the host's arrival stamp, so a client\nrenders \"as of\", never implies live data.",
"properties": {
"observedAtMs": {
"description": "When the host RECEIVED this observation (frame arrival or mint\nrequest-send), epoch milliseconds.",
"type": "integer"
},
"tier": {
"description": "The provider's subscription tier id, verbatim.",
"type": "string"
},
"weekly": {
"$ref": "#/$defs/SubscriptionUsageWeekly",
"description": "The rolling weekly block."
},
"window": {
"$ref": "#/$defs/SubscriptionUsageWindow",
"description": "The current window."
}
},
"required": [
"observedAtMs",
"tier",
"weekly",
"window"
],
"type": "object"
}