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.
Query audit logs with filters.
Goal
Enable searching and filtering of audit history.
Context
Admin dashboard, compliance reporting, debugging.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import {
defineEnum,
defineSchemaModel,
ScalarTypeEnum,
} from '@lssm-tech/lib.schema';
export const QueryAuditLogsContract = defineQuery({
meta: {
key: 'audit.logs.query',
version: '1.0.0',
stability: 'stable',
owners: ['platform.audit-trail'],
tags: ['audit', 'logs', 'query'],
description: 'Query audit logs with filters.',
goal: 'Enable searching and filtering of audit history.',
context: 'Admin dashboard, compliance reporting, debugging.',
},
io: {
input: AuditQueryInputModel,
output: AuditQueryOutputModel,
},
policy: {
auth: 'admin',
},
});