{"_id":"@anarchitects/identity-nest","_rev":"3-4f8c7f15147e6ae802926fafaee0d4b0","name":"@anarchitects/identity-nest","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"@anarchitects/identity-nest","version":"0.0.1","_id":"@anarchitects/identity-nest@0.0.1","maintainers":[{"name":"vrxj81","email":"johan@anarchitects.dev"}],"homepage":"https://github.com/anarchitects/anarchitecture-bricks-3tier/tree/main/libs/identity/nest","bugs":{"url":"https://github.com/anarchitects/anarchitecture-bricks-3tier/issues"},"dist":{"shasum":"315685b39056d5c131af75c7ecdec186f9802d48","tarball":"https://registry.npmjs.org/@anarchitects/identity-nest/-/identity-nest-0.0.1.tgz","fileCount":74,"integrity":"sha512-+Jo0h5eM8yy3NDOWt8z+vODVT45/vh3Cu2dtmIJxnfDVxBq9Nvxya58qcK5gEQ7Nm4jyXIQiVqtKVpX7useSBg==","signatures":[{"sig":"MEUCIFWNFi7WR/GEmIWzN5RJAVOtCv+rhNqc5CnT3wDhHD6GAiEA/aE4/FL2FfaQsWchAclJe1B7PeueUx/PzYQITwzaW1o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61295},"main":"./src/index.js","type":"commonjs","types":"./src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","default":"./src/index.js"},"./config":"./src/config/index.js","./application":"./src/application/index.js","./config/index":"./src/config/index.js","./package.json":"./package.json","./presentation":"./src/presentation/index.js","./infrastructure":"./src/infrastructure/index.js","./application/index":"./src/application/index.js","./presentation/index":"./src/presentation/index.js","./infrastructure/index":"./src/infrastructure/index.js","./infrastructure-persistence":"./src/infrastructure-persistence/index.js","./infrastructure-persistence/index":"./src/infrastructure-persistence/index.js"},"gitHead":"7d880553c94f848401b390cb7828e7bc813d752f","_npmUser":{"name":"vrxj81","email":"johan@anarchitects.dev"},"repository":{"url":"git+https://github.com/anarchitects/anarchitecture-bricks-3tier.git","type":"git","directory":"libs/identity/nest"},"_npmVersion":"11.19.0","description":"NestJS facade and layer entry points for the Anarchitecture identity domain.","directories":{},"_nodeVersion":"26.8.1","dependencies":{"tslib":"^2.3.0","uuidv7":"^1.0.2","@anarchitects/identity-ts":"^0.0.1"},"publishConfig":{"access":"public"},"typesVersions":{"*":{"config":["src/config/index.d.ts"],"application":["src/application/index.d.ts"],"presentation":["src/presentation/index.d.ts"],"infrastructure":["src/infrastructure/index.d.ts"],"infrastructure-persistence":["src/infrastructure-persistence/index.d.ts"]}},"_hasShrinkwrap":false,"peerDependencies":{"typeorm":"^0.3.27","@nestjs/common":"^11.0.0","@nestjs/config":"^4.0.2","@nestjs/typeorm":"^11.0.0","@nestjs/platform-fastify":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/identity-nest_0.0.1_1788257333876_0.8796387425210541","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@anarchitects/identity-nest","version":"0.0.2","_id":"@anarchitects/identity-nest@0.0.2","maintainers":[{"name":"vrxj81","email":"johan@anarchitects.dev"}],"homepage":"https://github.com/anarchitects/anarchitecture-bricks-3tier/tree/main/libs/identity/nest","bugs":{"url":"https://github.com/anarchitects/anarchitecture-bricks-3tier/issues"},"dist":{"shasum":"921fd555fa72d4bdb814e7e4f9a73361fc02e199","tarball":"https://registry.npmjs.org/@anarchitects/identity-nest/-/identity-nest-0.0.2.tgz","fileCount":74,"integrity":"sha512-lFfyHEF9VL03diBMOC2BpQLHN2aSQw8SwUZfhORDkNC1bxAHqNyWSp41XcLKLglmlkL6Xgkz8wQbevop86eJtw==","signatures":[{"sig":"MEQCIEyfhRmPoD3C167Too362TOxpnIA9NP7SYzYX9To76KgAiBqw1CpOa7bme20fgN8vk1yOZ0DUh2LhNU8ETxnXRFg3w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCICrk/q6LvxJKn8gfqsoYgx5yQ4zruiAB5Z8EJQpb9Rc+AiEA3Gh9UapQ3ng6HppsvaK+vRiiKWj3wrLt0EUVlFddMqk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61493},"main":"./src/index.js","type":"commonjs","types":"./src/index.d.ts","engines":{"node":"^20.19.0 || ^22.13.0 || >=24.11.0"},"exports":{".":{"types":"./src/index.d.ts","default":"./src/index.js"},"./config":"./src/config/index.js","./application":"./src/application/index.js","./config/index":"./src/config/index.js","./package.json":"./package.json","./presentation":"./src/presentation/index.js","./infrastructure":"./src/infrastructure/index.js","./application/index":"./src/application/index.js","./presentation/index":"./src/presentation/index.js","./infrastructure/index":"./src/infrastructure/index.js","./infrastructure-persistence":"./src/infrastructure-persistence/index.js","./infrastructure-persistence/index":"./src/infrastructure-persistence/index.js"},"gitHead":"01c1b71ebfa5a6e42599cd00af64bf3ce99cb0a5","_npmUser":{"name":"vrxj81","email":"johan@anarchitects.dev"},"repository":{"url":"git+https://github.com/anarchitects/anarchitecture-bricks-3tier.git","type":"git","directory":"libs/identity/nest"},"_npmVersion":"11.19.0","description":"NestJS facade and layer entry points for the Anarchitecture identity domain.","directories":{},"_nodeVersion":"26.8.1","dependencies":{"tslib":"^2.3.0","uuidv7":"^1.0.2","@anarchitects/identity-ts":"^0.0.2"},"publishConfig":{"access":"public"},"typesVersions":{"*":{"config":["src/config/index.d.ts"],"application":["src/application/index.d.ts"],"presentation":["src/presentation/index.d.ts"],"infrastructure":["src/infrastructure/index.d.ts"],"infrastructure-persistence":["src/infrastructure-persistence/index.d.ts"]}},"_hasShrinkwrap":false,"peerDependencies":{"typeorm":"^1.1.0","@nestjs/common":"^11.0.0","@nestjs/config":"^4.0.2","@nestjs/typeorm":"^11.0.1","@nestjs/platform-fastify":"^11.1.6"},"_npmOperationalInternal":{"tmp":"tmp/identity-nest_0.0.2_1788340060746_0.5864790076616873","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"_id":"@anarchitects/identity-nest@0.1.0","bugs":{"url":"https://github.com/anarchitects/anarchitecture-bricks-3tier/issues"},"dist":{"shasum":"0b47b539dcf67330d14bc0111654ff4eac7fcfdb","tarball":"https://registry.npmjs.org/@anarchitects/identity-nest/-/identity-nest-0.1.0.tgz","fileCount":74,"integrity":"sha512-BSoHtNyKvBgmYUYzR3S6kSuaTuSl/puKmzYBNQXtmexztYOwHr88YrmOsN/R8A7TAsWPQ47C2ombQw1Nr8dhyg==","signatures":[{"sig":"MEYCIQDZ0aDajoiyGzcAKF3lEttzEes8FxcGOr8uYCFjENc7MgIhAOSI2J86tAZm76LUQVfXJkh8zNtzyXsv+atOJvLL5dif","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFLAKdTXMaL0yCK6gM6O/aWKY/ng96MakbTKPpQLTxnDAiEA+chw4O3fsPZZ5b71Ja9q/fZosj7GukjSXVkbiHvdkZM="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anarchitects%2fidentity-nest@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":61493},"main":"./src/index.js","name":"@anarchitects/identity-nest","type":"commonjs","types":"./src/index.d.ts","engines":{"node":"^20.19.0 || ^22.13.0 || >=24.11.0"},"exports":{".":{"types":"./src/index.d.ts","default":"./src/index.js"},"./config":"./src/config/index.js","./application":"./src/application/index.js","./config/index":"./src/config/index.js","./package.json":"./package.json","./presentation":"./src/presentation/index.js","./infrastructure":"./src/infrastructure/index.js","./application/index":"./src/application/index.js","./presentation/index":"./src/presentation/index.js","./infrastructure/index":"./src/infrastructure/index.js","./infrastructure-persistence":"./src/infrastructure-persistence/index.js","./infrastructure-persistence/index":"./src/infrastructure-persistence/index.js"},"gitHead":"fe0603339f56fcc4ecc1156ca51f676366d72104","version":"0.1.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:84e05a1b-a577-4e05-8dd7-a1718a24a33b"}},"homepage":"https://github.com/anarchitects/anarchitecture-bricks-3tier/tree/main/libs/identity/nest","repository":{"url":"git+https://github.com/anarchitects/anarchitecture-bricks-3tier.git","type":"git","directory":"libs/identity/nest"},"_npmVersion":"11.17.0","description":"NestJS facade and layer entry points for the Anarchitecture identity domain.","directories":{},"maintainers":[{"name":"vrxj81","email":"johan@anarchitects.dev"}],"_nodeVersion":"24.19.0","dependencies":{"tslib":"^2.3.0","uuidv7":"^1.0.2","@anarchitects/identity-ts":"^0.1.0"},"publishConfig":{"access":"public"},"typesVersions":{"*":{"config":["src/config/index.d.ts"],"application":["src/application/index.d.ts"],"presentation":["src/presentation/index.d.ts"],"infrastructure":["src/infrastructure/index.d.ts"],"infrastructure-persistence":["src/infrastructure-persistence/index.d.ts"]}},"_hasShrinkwrap":false,"peerDependencies":{"typeorm":"^1.1.0","@nestjs/common":"^11.0.0","@nestjs/config":"^4.0.2","@nestjs/typeorm":"^11.0.1","@nestjs/platform-fastify":"^11.1.6"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/identity-nest_0.1.0_1788341664036_0.6301853176254162"}}},"time":{"created":"2026-09-01T10:08:53.619Z","modified":"2026-09-02T09:34:26.195Z","0.0.1":"2026-09-01T10:08:54.015Z","0.0.2":"2026-09-02T09:07:40.833Z","0.1.0":"2026-09-02T09:34:24.156Z"},"bugs":{"url":"https://github.com/anarchitects/anarchitecture-bricks-3tier/issues"},"homepage":"https://github.com/anarchitects/anarchitecture-bricks-3tier/tree/main/libs/identity/nest","repository":{"url":"git+https://github.com/anarchitects/anarchitecture-bricks-3tier.git","type":"git","directory":"libs/identity/nest"},"description":"NestJS facade and layer entry points for the Anarchitecture identity domain.","maintainers":[{"name":"vrxj81","email":"johan@anarchitects.dev"}],"readme":"# @anarchitects/identity-nest\n\nNestJS facade and layer entry points for the Anarchitecture identity domain.\n\n## Developer + AI Agent Start Here\n\n- Start with `IdentityModule.forRoot()` or `IdentityModule.forRootFromConfig()` from the root entry point.\n- Start from the published facade, then compose profile endpoints through the presentation entry point when you need the built-in controller surface.\n- Import advanced composition surfaces through public secondary entry points only.\n\n## Features\n\n- Root facade module with `forRoot` and `forRootFromConfig`\n- Explicit `application`, `presentation`, `infrastructure`, `infrastructure-persistence`, and `config` entry points\n- TypeORM-backed `UserProfile` persistence with scalar `authUserId` ownership\n- Identity profile application services and controller endpoints for create/get/update flows\n- No inverse auth persistence relations; identity stores ownership through `authUserId` only\n\n## Installation\n\n```bash\nnpm install @anarchitects/identity-nest\n# or\nyarn add @anarchitects/identity-nest\n# or\npnpm add @anarchitects/identity-nest\n```\n\nThe TypeORM 1 package line requires Node.js\n`^20.19.0 || ^22.13.0 || >=24.11.0`, `@nestjs/typeorm@^11.0.1`, and\n`typeorm@^1.1.0`.\n\n## Exports\n\n| Import path                                              | Description                                                             |\n| -------------------------------------------------------- | ----------------------------------------------------------------------- |\n| `@anarchitects/identity-nest`                            | Root facade module and convenience re-exports                           |\n| `@anarchitects/identity-nest/application`                | Application-layer placeholder module                                    |\n| `@anarchitects/identity-nest/presentation`               | Presentation module and `UserProfilesController`                        |\n| `@anarchitects/identity-nest/infrastructure`             | Infrastructure-layer placeholder module                                 |\n| `@anarchitects/identity-nest/infrastructure-persistence` | `UserProfileEntity`, migration, persistence module, and repository port |\n| `@anarchitects/identity-nest/config`                     | Typed config namespace and module option helpers                        |\n\n## Usage\n\n```ts\nimport { Module } from '@nestjs/common';\nimport { IdentityModule } from '@anarchitects/identity-nest';\n\n@Module({\n  imports: [IdentityModule.forRoot()],\n})\nexport class AppModule {}\n```\n\n## Scripts\n\n- `yarn nx run identity-nest:build`\n- `yarn nx run identity-nest:test`\n\n## Development notes\n\n- The package now exposes profile endpoints at `/identity/profiles`, `/identity/profiles/:profileId`, and `/identity/profiles/by-auth-user/:authUserId`.\n- `UserProfile` persistence lives in the identity domain and stores auth ownership only through scalar `authUserId`.\n- Do not add TypeORM relations back into auth; future identity runtime behavior should extend the published layer entry points instead of introducing deep imports.\n\n## Contributing\n\nKeep `presentation -> application <- infrastructure` boundaries intact and add new behavior through the published entry points.\n\n## License\n\nLicensed under the Apache License, Version 2.0.\n","readmeFilename":"README.md"}