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.
Get a specific audit log by ID.
Goal
View detailed audit log entry.
Context
Log detail view.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import {
defineEnum,
defineSchemaModel,
ScalarTypeEnum,
} from '@lssm-tech/lib.schema';
export const GetAuditLogContract = defineQuery({
meta: {
key: 'audit.logs.get',
version: '1.0.0',
stability: 'stable',
owners: ['platform.audit-trail'],
tags: ['audit', 'logs', 'get'],
description: 'Get a specific audit log by ID.',
goal: 'View detailed audit log entry.',
context: 'Log detail view.',
},
io: {
input: defineSchemaModel({
name: 'GetAuditLogInput',
fields: {
logId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
},
}),
output: AuditLogModel,
},
policy: {
auth: 'admin',
},
});