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.
Update a threshold.
Goal
Modify threshold configuration.
Context
Called when adjusting limits.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
export const UpdateThresholdContract = defineCommand({
meta: {
key: 'threshold.update',
version: '1.0.0',
stability: 'stable',
owners: ['platform.metering'],
tags: ['metering', 'threshold', 'update'],
description: 'Update a threshold.',
goal: 'Modify threshold configuration.',
context: 'Called when adjusting limits.',
},
io: {
input: UpdateThresholdInput,
output: UsageThresholdModel,
errors: {
THRESHOLD_NOT_FOUND: {
description: 'Threshold does not exist',
http: 404,
gqlCode: 'THRESHOLD_NOT_FOUND',
when: 'Threshold ID is invalid',
},
},
},
policy: {
auth: 'admin',
},
});