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.

identity.org.update

Update organization details.

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: stable
  • Owners: platform.identity-rbac
  • Tags: identity, org, update
  • File: packages/libs/identity-rbac/src/contracts/organization.ts
  • field.key.label
    identity.org.update
    field.version.label
    1.0.0
    field.type.label
    operation (command)
    field.title.label
    identity.org.update
    field.description.label

    Update organization details.

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: stable
  • Owners: platform.identity-rbac
  • Tags: identity, org, update
  • File: packages/libs/identity-rbac/src/contracts/organization.ts
  • field.tags.label
    identity,org,update
    field.owners.label
    platform.identity-rbac
    field.stability.label
    stable

    Update organization details.

    Goal

    Allow org admins to update organization settings.

    Context

    Organization settings page.

    Emitted Events

    `org.updated` (v1.0.0)

    Source Definition

    import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
    import { ScalarTypeEnum, SchemaModel } from '@lssm-tech/lib.schema';
    import { SuccessResultModel } from './user';
    
    export const UpdateOrgContract = defineCommand({
    	meta: {
    		key: 'identity.org.update',
    		version: '1.0.0',
    		stability: 'stable',
    		owners: ['platform.identity-rbac'],
    		tags: ['identity', 'org', 'update'],
    		description: 'Update organization details.',
    		goal: 'Allow org admins to update organization settings.',
    		context: 'Organization settings page.',
    	},
    	io: {
    		input: UpdateOrgInputModel,
    		output: OrganizationModel,
    	},
    	policy: {
    		auth: 'user',
    	},
    	sideEffects: {
    		emits: [
    			{
    				key: 'org.updated',
    				version: '1.0.0',
    				when: 'Organization is updated',
    				payload: OrganizationModel,
    			},
    		],
    		audit: ['org.updated'],
    	},
    });