OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
Get aggregated usage summary.
Goal
View usage totals for billing.
Context
Called for billing and reporting.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
export const GetUsageSummaryContract = defineQuery({
meta: {
key: 'usage.getSummary',
version: '1.0.0',
stability: 'stable',
owners: ['platform.metering'],
tags: ['metering', 'usage', 'summary'],
description: 'Get aggregated usage summary.',
goal: 'View usage totals for billing.',
context: 'Called for billing and reporting.',
},
io: {
input: GetUsageSummaryInput,
output: GetUsageSummaryOutput,
},
policy: {
auth: 'user',
},
});