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

Delete a notification.

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

    Delete a notification.

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

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