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