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 notifications for the current user.
Goal
Show user their notifications.
Context
Notification center UI.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import {
defineEnum,
defineSchemaModel,
ScalarTypeEnum,
} from '@lssm-tech/lib.schema';
export const ListNotificationsContract = defineQuery({
meta: {
key: 'notifications.list',
version: '1.0.0',
stability: 'stable',
owners: ['platform.notifications'],
tags: ['notifications', 'list'],
description: 'List notifications for the current user.',
goal: 'Show user their notifications.',
context: 'Notification center UI.',
},
io: {
input: ListNotificationsInputModel,
output: ListNotificationsOutputModel,
},
policy: {
auth: 'user',
},
});