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 an existing role.
Goal
Allow admins to modify role permissions.
Context
Role management in admin settings.
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 UpdateRoleContract = defineCommand({
meta: {
key: 'identity.rbac.role.update',
version: '1.0.0',
stability: 'stable',
owners: ['@platform.identity-rbac'],
tags: ['identity', 'rbac', 'role', 'update'],
description: 'Update an existing role.',
goal: 'Allow admins to modify role permissions.',
context: 'Role management in admin settings.',
},
io: {
input: UpdateRoleInputModel,
output: RoleModel,
},
policy: {
auth: 'admin',
},
sideEffects: {
audit: ['role.updated'],
},
});