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.
Update notification preferences.
Goal
Allow user to control notification delivery.
Context
Notification settings page.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import {
defineEnum,
defineSchemaModel,
ScalarTypeEnum,
} from '@lssm-tech/lib.schema';
export const UpdateNotificationPreferencesContract = defineCommand({
meta: {
key: 'notifications.preferences.update',
version: '1.0.0',
stability: 'stable',
owners: ['platform.notifications'],
tags: ['notifications', 'preferences', 'update'],
description: 'Update notification preferences.',
goal: 'Allow user to control notification delivery.',
context: 'Notification settings page.',
},
io: {
input: UpdatePreferencesInputModel,
output: NotificationPreferenceModel,
},
policy: {
auth: 'user',
},
});