Anarchitecture Bricks Docs

Repository documentation hub for packages, guides, and generated references.

@anarchitects/identity-ts

Shared TypeScript models and TypeBox DTO schemas for the Anarchitecture identity domain.

Developer + AI Agent Start Here

Features

Installation

npm install @anarchitects/identity-ts
# or
yarn add @anarchitects/identity-ts
# or
pnpm add @anarchitects/identity-ts

Entry points

Import path Description
@anarchitects/identity-ts Root barrel for shared identity models and DTOs
@anarchitects/identity-ts/models Shared identity model definitions
@anarchitects/identity-ts/dtos Shared identity DTO schemas and types

Usage

import { CreateUserProfileRequestDTO, UserProfile } from '@anarchitects/identity-ts';

const createProfile: CreateUserProfileRequestDTO = {
  authUserId: 'auth-user-id',
  displayName: 'Jane Doe',
};

const profile: UserProfile = {
  id: 'profile-id',
  authUserId: 'auth-user-id',
  displayName: 'Jane Doe',
  givenName: 'Jane',
  familyName: 'Doe',
  avatarUrl: null,
  locale: 'en-BE',
  timeZone: 'Europe/Brussels',
  createdAt: new Date('2026-05-08T12:00:00.000Z'),
  updatedAt: new Date('2026-05-08T12:00:00.000Z'),
};

Scripts

Development notes

Contributing

Add new identity DTOs and models here first, then wire Angular and Nest consumers against the published entry points.

License

Licensed under the Apache License, Version 2.0.

Source Links