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.user.me

Get the current authenticated user profile.

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

    Get the current authenticated user profile.

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

    Get the current authenticated user profile.

    Goal

    Retrieve user profile for the authenticated session.

    Context

    Called on app load and after profile updates.

    Source Definition

    import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
    import { ScalarTypeEnum, SchemaModel } from '@lssm-tech/lib.schema';
    
    export const GetCurrentUserContract = defineQuery({
    	meta: {
    		key: 'identity.user.me',
    		version: '1.0.0',
    		stability: 'stable',
    		owners: ['platform.identity-rbac'],
    		tags: ['identity', 'user', 'profile'],
    		description: 'Get the current authenticated user profile.',
    		goal: 'Retrieve user profile for the authenticated session.',
    		context: 'Called on app load and after profile updates.',
    	},
    	io: {
    		input: null,
    		output: UserProfileModel,
    	},
    	policy: {
    		auth: 'user',
    	},
    });