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.
Record multiple usage events.
Goal
Efficiently track bulk usage.
Context
Called for batch processing.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
export const RecordBatchUsageContract = defineCommand({
meta: {
key: 'usage.recordBatch',
version: '1.0.0',
stability: 'stable',
owners: ['platform.metering'],
tags: ['metering', 'usage', 'batch'],
description: 'Record multiple usage events.',
goal: 'Efficiently track bulk usage.',
context: 'Called for batch processing.',
},
io: {
input: RecordBatchUsageInput,
output: RecordBatchUsageOutput,
},
policy: {
auth: 'admin',
},
});