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 notification preferences for current user.
Goal
Show user their notification settings.
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 GetNotificationPreferencesContract = defineQuery({
meta: {
key: 'notifications.preferences.get',
version: '1.0.0',
stability: 'stable',
owners: ['platform.notifications'],
tags: ['notifications', 'preferences', 'get'],
description: 'Get notification preferences for current user.',
goal: 'Show user their notification settings.',
context: 'Notification settings page.',
},
io: {
input: null,
output: NotificationPreferenceModel,
},
policy: {
auth: 'user',
},
});