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.
A net worth snapshot was generated.
Source Definition
import { defineEvent, StabilityEnum } from '@lssm-tech/lib.contracts-spec';
import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
export const NetWorthSnapshotCreatedEvent = defineEvent({
meta: {
key: 'wealth.networth.snapshot_created',
version: '1.0.0',
description: 'A net worth snapshot was generated.',
stability: StabilityEnum.Experimental,
owners: [],
tags: [],
},
payload: defineSchemaModel({
name: 'NetWorthSnapshotEventPayload',
description: 'Net worth snapshot payload',
fields: {
netWorth: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
totalAssets: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
totalLiabilities: {
type: ScalarTypeEnum.Float_unsecure(),
isOptional: false,
},
currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
asOf: { type: ScalarTypeEnum.DateTime(), isOptional: false },
},
}),
});