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 organization details.
Goal
Allow org admins to update organization settings.
Context
Organization settings page.
Emitted Events
•
`org.updated` (v1.0.0)
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import { ScalarTypeEnum, SchemaModel } from '@lssm-tech/lib.schema';
import { SuccessResultModel } from './user';
export const UpdateOrgContract = defineCommand({
meta: {
key: 'identity.org.update',
version: '1.0.0',
stability: 'stable',
owners: ['platform.identity-rbac'],
tags: ['identity', 'org', 'update'],
description: 'Update organization details.',
goal: 'Allow org admins to update organization settings.',
context: 'Organization settings page.',
},
io: {
input: UpdateOrgInputModel,
output: OrganizationModel,
},
policy: {
auth: 'user',
},
sideEffects: {
emits: [
{
key: 'org.updated',
version: '1.0.0',
when: 'Organization is updated',
payload: OrganizationModel,
},
],
audit: ['org.updated'],
},
});