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.

user.create

Create a new user account with the provided email

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: stable
  • Owners: @team
  • Tags: user
  • File: packages/examples/minimal/src/contracts/user.ts
  • field.key.label
    user.create
    field.version.label
    1.0.0
    field.type.label
    operation (command)
    field.title.label
    user.create
    field.description.label

    Create a new user account with the provided email

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: stable
  • Owners: @team
  • Tags: user
  • File: packages/examples/minimal/src/contracts/user.ts
  • field.tags.label
    user
    field.owners.label
    @team
    field.stability.label
    stable

    Create a new user account with the provided email

    Goal

    Create a new user account

    Context

    User account management

    Source Definition

    import { defineCommand } from '@lssm-tech/lib.contracts-spec';
    import { ScalarTypeEnum, SchemaModel } from '@lssm-tech/lib.schema';
    
    export const CreateUser = defineCommand({
    	meta: {
    		key: 'user.create',
    		version: '1.0.0',
    		goal: 'Create a new user account',
    		description: 'Create a new user account with the provided email',
    		owners: ['@team'],
    		tags: ['user'],
    		stability: 'stable',
    		context: 'User account management',
    	},
    	io: {
    		input: UserInput,
    		output: UserInput,
    	},
    	policy: {
    		auth: 'anonymous',
    	},
    });