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.get

Get notification preferences for current user.

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

    Get notification preferences for current user.

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

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