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.
Delete a notification.
Goal
Allow user to remove unwanted notifications.
Context
User dismisses a notification.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import {
defineEnum,
defineSchemaModel,
ScalarTypeEnum,
} from '@lssm-tech/lib.schema';
export const DeleteNotificationContract = defineCommand({
meta: {
key: 'notifications.delete',
version: '1.0.0',
stability: 'stable',
owners: ['platform.notifications'],
tags: ['notifications', 'delete'],
description: 'Delete a notification.',
goal: 'Allow user to remove unwanted notifications.',
context: 'User dismisses a notification.',
},
io: {
input: defineSchemaModel({
name: 'DeleteNotificationInput',
fields: {
notificationId: {
type: ScalarTypeEnum.String_unsecure(),
isOptional: false,
},
},
}),
output: defineSchemaModel({
name: 'DeleteNotificationOutput',
fields: {
success: { type: ScalarTypeEnum.Boolean(), isOptional: false },
},
}),
},
policy: {
auth: 'user',
},
});