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 tenant config was rolled back to a previous version.
Source Definition
import { ScalarTypeEnum, SchemaModel } from '@lssm-tech/lib.schema';
import { defineEvent } from '../events';
import { OwnersEnum, StabilityEnum, TagsEnum } from '../ownership';
export const ConfigRolledBackEvent = defineEvent({
meta: {
...lifecycleOwnership,
key: 'app_config.rolled_back',
version: '1.0.0',
description: 'A tenant config was rolled back to a previous version.',
},
payload: new SchemaModel({
name: 'ConfigRolledBackPayload',
fields: {
tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },
appId: { type: ScalarTypeEnum.ID(), isOptional: false },
newVersion: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
rolledBackFrom: {
type: ScalarTypeEnum.String_unsecure(),
isOptional: false,
},
rolledBackTo: {
type: ScalarTypeEnum.String_unsecure(),
isOptional: false,
},
rolledBackBy: {
type: ScalarTypeEnum.String_unsecure(),
isOptional: false,
},
reason: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
},
}),
});