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.
Mark all notifications as read.
Goal
Clear notification badge.
Context
User clicks
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import {
defineEnum,
defineSchemaModel,
ScalarTypeEnum,
} from '@lssm-tech/lib.schema';
export const MarkAllNotificationsReadContract = defineCommand({
meta: {
key: 'notifications.markAllRead',
version: '1.0.0',
stability: 'stable',
owners: ['platform.notifications'],
tags: ['notifications', 'read'],
description: 'Mark all notifications as read.',
goal: 'Clear notification badge.',
context: 'User clicks "mark all as read".',
},
io: {
input: null,
output: defineSchemaModel({
name: 'MarkAllNotificationsReadOutput',
fields: {
markedCount: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
},
}),
},
policy: {
auth: 'user',
},
});