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.

notifications.preferences.update

Update notification preferences.

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: stable
  • Owners: platform.notifications
  • Tags: notifications, preferences, update
  • File: packages/modules/notifications/src/contracts/index.ts
  • field.key.label
    notifications.preferences.update
    field.version.label
    1.0.0
    field.type.label
    operation (command)
    field.title.label
    notifications.preferences.update
    field.description.label

    Update notification preferences.

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: stable
  • Owners: platform.notifications
  • Tags: notifications, preferences, update
  • File: packages/modules/notifications/src/contracts/index.ts
  • field.tags.label
    notifications,preferences,update
    field.owners.label
    platform.notifications
    field.stability.label
    stable

    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',
    	},
    });