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.

team.space.create

Create a new team space.

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: stable
  • Owners: @examples.team-hub
  • Tags: team-hub, space, create
  • File: packages/examples/team-hub/src/space/space.operations.ts
  • field.key.label
    team.space.create
    field.version.label
    1.0.0
    field.type.label
    operation (command)
    field.title.label
    team.space.create
    field.description.label

    Create a new team space.

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: stable
  • Owners: @examples.team-hub
  • Tags: team-hub, space, create
  • File: packages/examples/team-hub/src/space/space.operations.ts
  • field.tags.label
    team-hub,space,create
    field.owners.label
    @examples.team-hub
    field.stability.label
    stable

    Create a new team space.

    Goal

    Organize teams/projects.

    Context

    Workspace creation.

    Source Definition

    import { defineCommand } from '@lssm-tech/lib.contracts-spec';
    import { CreateSpaceInputModel, SpaceModel } from './space.schema';
    
    export const CreateSpaceContract = defineCommand({
    	meta: {
    		key: 'team.space.create',
    		version: '1.0.0',
    		stability: 'stable',
    		owners: ['@examples.team-hub'],
    		tags: ['team-hub', 'space', 'create'],
    		description: 'Create a new team space.',
    		goal: 'Organize teams/projects.',
    		context: 'Workspace creation.',
    	},
    	io: {
    		input: CreateSpaceInputModel,
    		output: SpaceModel,
    	},
    	policy: { auth: 'user' },
    	acceptance: {
    		scenarios: [
    			{
    				key: 'create-space-happy-path',
    				given: ['User is authenticated'],
    				when: ['User creates a new space'],
    				then: ['Space is created'],
    			},
    		],
    		examples: [
    			{
    				key: 'create-engineering',
    				input: { name: 'Engineering', description: 'Engineering team space' },
    				output: { id: 'space-123', name: 'Engineering' },
    			},
    		],
    	},
    });