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.

identity.rbac.role.update

Update an existing role.

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: stable
  • Owners: @platform.identity-rbac
  • Tags: identity, rbac, role, update
  • File: packages/libs/identity-rbac/src/contracts/rbac.ts
  • field.key.label
    identity.rbac.role.update
    field.version.label
    1.0.0
    field.type.label
    operation (command)
    field.title.label
    identity.rbac.role.update
    field.description.label

    Update an existing role.

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: stable
  • Owners: @platform.identity-rbac
  • Tags: identity, rbac, role, update
  • File: packages/libs/identity-rbac/src/contracts/rbac.ts
  • field.tags.label
    identity,rbac,role,update
    field.owners.label
    @platform.identity-rbac
    field.stability.label
    stable

    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'],
    	},
    });