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.
List all available roles.
Goal
Show available roles for assignment.
Context
Role assignment UI.
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 ListRolesContract = defineQuery({
meta: {
key: 'identity.rbac.role.list',
version: '1.0.0',
stability: 'stable',
owners: ['@platform.identity-rbac'],
tags: ['identity', 'rbac', 'role', 'list'],
description: 'List all available roles.',
goal: 'Show available roles for assignment.',
context: 'Role assignment UI.',
},
io: {
input: null,
output: ListRolesOutputModel,
},
policy: {
auth: 'user',
},
});