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 net worth snapshots for a period.
Goal
Render charts and indicators.
Context
Dashboard.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
export const GetNetWorthContract = defineQuery({
meta: {
key: 'wealth.networth.get',
version: '1.0.0',
stability: 'stable',
owners: ['examples.wealth-snapshot'],
tags: ['wealth', 'networth'],
description: 'Get net worth snapshots for a period.',
goal: 'Render charts and indicators.',
context: 'Dashboard.',
},
io: {
input: NetWorthQueryInput,
output: defineSchemaModel({
name: 'NetWorthQueryOutput',
description: 'Snapshots + latest indicators',
fields: {
snapshots: {
type: NetWorthSnapshotModel,
isArray: true,
isOptional: false,
},
latest: { type: NetWorthSnapshotModel, isOptional: true },
},
}),
},
policy: { auth: 'user' },
});